cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Add-ContentItems webject throws exception but file is attached

Highlighted
Gravel

Add-ContentItems webject throws exception but file is attached

We are trying to attach file to custom ChangeRequest object.

We are using "Add-ContentItems" webject.

We call Start-Session and Start-Transaction webject before calling this webject.

 

The file gets attached to ChangeRequest object but it throws exception.

No ApplicationData object is returned. Later when we fetch ApplicationData object we are able to fetch it.

 

I have attached the .XML file and Method server logs.

Below is the stack trace :

 

wt.pom.connection wcmig-svc - POMHandler.freeConnection() transaction active - rolling back
java.lang.Throwable
at wt.pom.POMHandler.freeConnection(POMHandler.java:292)
at wt.method.MethodContext.freeConnection(MethodContext.java:2458)
at wt.method.MethodContext.unregister(MethodContext.java:1180)
at wt.httpgw.WTContextBean$ServerContextHelper.freeMethodContext(WTContextBean.java:658)
at wt.httpgw.WTContextBean$ServerContextHelper.activateServerContext(WTContextBean.java:629)
at wt.httpgw.WTContextBean.activateServerContext(WTContextBean.java:535)
at wt.httpgw.WTContextBean.activate(WTContextBean.java:455)
at wt.httpgw.WTContextBean.setRequest(WTContextBean.java:310)
at wt.httpgw.WTContextBeanHandler.setRequest(WTContextBeanHandler.java:193)
at wt.httpgw.WTContextBeanHandler.<init>(WTContextBeanHandler.java:131)
at wt.fv.FvMountValidator.updateMountStatusInDB(FvMountValidator.java:1203)
at wt.fv.FvMountValidator.validateMountsInternal(FvMountValidator.java:1191)
at wt.fv.FvMountValidator.validateFvMounts(FvMountValidator.java:1111)
at wt.fv.StandardFvService.validateRelatedFvMounts(StandardFvService.java:4334)
at sun.reflect.GeneratedMethodAccessor885.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at wt.services.ServiceFactory$ServerInvocationHandler.invoke(ServiceFactory.java:399)
at com.sun.proxy.$Proxy174.validateRelatedFvMounts(Unknown Source)
at wt.fv.StandardFvService.evaluateIfMountNotValid(StandardFvService.java:10342)
at wt.fv.StandardFvService.isAnyMountNotValid(StandardFvService.java:10267)
at wt.fv.StandardFvService.getActiveFolderFromDatabase(StandardFvService.java:6573)
at wt.fv.StandardFvService.findAndGetActiveFolder(StandardFvService.java:6389)
at wt.fv.StandardFvService.getActiveFolder(StandardFvService.java:6342)
at wt.fv.StandardFvService.getActiveFolder(StandardFvService.java:6336)
at wt.fv.StandardFvService.hasActiveFolders(StandardFvService.java:6834)
at wt.fv.StandardFvService.getStreamedObject(StandardFvService.java:1826)
at wt.content.StandardContentService.updateContent(StandardContentService.java:1751)
at wt.content.StandardContentService.updateContent(StandardContentService.java:1705)
at wt.content.StandardContentService.updateContent(StandardContentService.java:814)
at com.ptc.core.adapter.server.impl.AddContentItemsWebjectDelegate.invoke(AddContentItemsWebjectDelegate.java:639)
at com.ptc.core.adapter.server.impl.WebjectDelegateFactory.invokeDelegate(WebjectDelegateFactory.java:434)
at sun.reflect.GeneratedMethodAccessor281.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at wt.method.WTAdapterImpl.processWebject(WTAdapterImpl.java:812)
at wt.method.WTAdapterImpl.processRequest(WTAdapterImpl.java:521)
at com.infoengine.procunit.adapter.Adapter.send(Adapter.java:199)
at com.infoengine.SAK.ObjectWebject.invoke(ObjectWebject.java:262)