Skip to main content
5-Regular Member
June 2, 2016
Solved

Error in communicating with Windchill

  • June 2, 2016
  • 1 reply
  • 2231 views

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?

This topic has been closed for replies.
Best answer by fseheutderonchi

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 {

1 reply

fseheutderonchi5-Regular MemberAuthorAnswer
5-Regular Member
June 2, 2016

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 {
5-Regular Member
September 17, 2018

where did you put this signature in service definition? in the snippet area?

can you share screenshot?