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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Add Content Task fails with "No content input stream available"

CJL
4-Participant
4-Participant

Add Content Task fails with "No content input stream available"

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.

3 REPLIES 3

To me the error No content input stream available sounds like problems we
struggled with using an external SOAP client. That relies on the same
underlying IE tasks as far as I know.

My guess is that there is a problem with the handle to the actual data you
need to send to the server first.


Jorn




Chris Lindberg <->
11-08-2011 00:52
Please respond to
Chris Lindberg <->


To
<->
cc

Subject
[solutions] - Add Content Task fails with "No content input stream
available"






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.

Site Links: View post online View mailing list online Send new post
via email Unsubscribe from this mailing list Manage your subscription
Use of this email content is governed by the terms of service at:

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.

CJL
4-Participant
4-Participant
(To:CJL)

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="&lt;%=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>

Top Tags