Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Hello all,
I have an issue communicating with Windchill, but I think that the error is on TWX side.
I have the following error :
Wrapped com.ptc.connected.plm.thingworx.JSONServerException: JSON Server error HTTP 400 java.io.EOFException: No content to map to Object due to end of input Cause: JSON Server error HTTP 400 java.io.EOFException: No content to map to Object due to end of input
And my service looks like this :
var params = {
headers: {
'Accept': "application/json",
'Content-Type': 'application/json'
},
data: undefined,
type: 'GET',
url: me.getRestUrl() + "/changeBoardMeetingService/"
};
// result: JSON
// Assuming that the shape is implemented below :
var result = me.processJSONRequest(params);
Does any knows why I get this error?
Solved! Go to Solution.
It was due to the fact that my windchill service didn't have the good signature.
So here is what I have now, and it works :
@SuppressWarnings("deprecation") | |
@GET | |
@Path("/") | |
public Response processRequest() throws IOException, JSONException, WTException { |
It was due to the fact that my windchill service didn't have the good signature.
So here is what I have now, and it works :
@SuppressWarnings("deprecation") | |
@GET | |
@Path("/") | |
public Response processRequest() throws IOException, JSONException, WTException { |
where did you put this signature in service definition? in the snippet area?
can you share screenshot?