Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 83469

JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1] - Teamcenter Connector - Integration

$
0
0
When trying to logging in to teamcenter from Mendix , I am getting “Failed to send the service operation Core-2011-06-Session/login. JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]” error.when I debugged using eclipse I found from where that error occurs (Teamcenter Connector → javasourses → tcconnector.foundation → TcConnection.java → line number 195.)     And the HTTP Response which I received is given below:   Status : OK (200) Content :  =============================================================================================================  Teamcenter Login   
   
     
                                                                                                                                                                                                                                                                                                   
 
 
User Name:*
 
Password:*
 
 
 
           
   
=============================================================================================================    So the above httpresponse Content is passing as an argument in line number 195 which I mentioned above, That is why its throwing error since the above content is not JSONobject. But my doubt is the content which received as httpresponse is correct or the response should be in JSON format? I don’t know where I am doing mistake, Please help me in this.   Thanks in Advance. Suresh G    

Viewing all articles
Browse latest Browse all 83469

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>