Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
I am using a stand alone Java app to run IE tasks. (Java app based on RunTask.java example in WC 8.0 Customization using IE Tasks) I am not using a Java SOAP client. I think the issue has something to do with task delegation and using a dispatch task but have not found an example that provides a clear picture.
The error:
(com.ptc.core.adapter.server.impl.implResource/12) wt.util.WTException: No content input stream available.
at com.ptc.core.adapter.server.impl.AddContentItemsWebjectDelegate.invoke(AddContentItemsWebjectDelegate.java:397)
at com.ptc.core.adapter.server.impl.WebjectDelegateFactory.invokeDelegate(WebjectDelegateFactory.java:434)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at wt.method.WTAdapterImpl.processWebject(WTAdapterImpl.java:749)
at wt.method.WTAdapterImpl.processRequest(WTAdapterImpl.java:475)
at com.infoengine.au.SocketAccess$SocketThread.run(SocketAccess.java:1254)
Any help is appreciated.
Hi,
I am facing the same issue with using an external SOAP client (testing from SOAPUI). Did you managed to solve this ? if so can you please share your solution.
Thanks in advance.
Thanks.
A coworker sent me sample task for uploading content and it looks like the major difference between the task I had written/manipulated and the one they sent is that the session ID is passed to each webject in the task. I created a new task using that methodology and it worked.
The other difference is that the webjects in the task my coworker gave me used the INSTANCE attribute from the start session webject for their INSTANCE attribute data value. I suspect this has nothing to do with the issue becuase it is String value and references the same String variable that I originally was using to set each webject's instance.
Here's a couple of snippets from the new task that worked:
<%
String instance = wt.util.WTProperties.getLocalProperties().getProperty("wt.federation.ie.VMName");
%>
<ie:webject name="Start-Session" type="ACT">
<ie:param name="INSTANCE" data="<%=instance%">"/>
<ie:param name="GROUP_OUT" data="session"/">
<ie:param name="BLOB_COUNT" data="0"/">
</ie:webject>
<ie:webject name="Start-Transaction" type="ACT">
<ie:param name="INSTANCE" data="${session[]INSTANCE[0]}"/">
<ie:param name="SESSION_ID" data="${session[]SESSION_ID[0]}"/">
<ie:param name="BLOB_COUNT" data="0"/">
</ie:webject>