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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Error in communicating with Windchill

fseheutderonchi
5-Regular Member

Error in communicating with Windchill

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?

1 ACCEPTED SOLUTION

Accepted Solutions

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 {

View solution in original post

2 REPLIES 2

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?

Top Tags