This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 231159 - org.codehaus.jackson.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at [Source: java.io.InputStreamReader@
Summary: org.codehaus.jackson.JsonParseException: Unexpected character ('<' (code 60))...
Status: RESOLVED FIXED
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: ODCS Tasks (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-12 15:22 UTC by Tomas Stupka
Modified: 2013-08-29 10:57 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 201359


Attachments
stacktrace (2.01 KB, text/plain)
2013-06-12 15:22 UTC, Tomas Stupka
Details
stacktrace (2.01 KB, text/plain)
2013-06-17 15:13 UTC, Ondrej Vrabec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Stupka 2013-06-12 15:22:53 UTC
Build: NetBeans IDE Dev (Build 20130611-526329abf728)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_17-b02
OS: Mac OS X

User Comments:
tstupka: exeucuting a odcs query




Stacktrace: 
org.codehaus.jackson.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
 at [Source: java.io.InputStreamReader@74021081; line: 1, column: 2]
   at org.codehaus.jackson.JsonParser._constructError(JsonParser.java:1432)
   at org.codehaus.jackson.impl.JsonParserMinimalBase._reportError(JsonParserMinimalBase.java:385)
   at org.codehaus.jackson.impl.JsonParserMinimalBase._reportUnexpectedChar(JsonParserMinimalBase.java:306)
   at org.codehaus.jackson.impl.ReaderBasedParser._handleUnexpectedValue(ReaderBasedParser.java:1192)
   at org.codehaus.jackson.impl.ReaderBasedParser.nextToken(ReaderBasedParser.java:479)
   at org.codehaus.jackson.map.ObjectMapper._initForReading(ObjectMapper.java:2761)
Comment 1 Tomas Stupka 2013-06-12 15:22:55 UTC
Created attachment 135705 [details]
stacktrace
Comment 2 Ondrej Vrabec 2013-06-17 15:13:48 UTC
Created attachment 135901 [details]
stacktrace

editing priority, adding a comment and submitting an ODCS task
Comment 3 Tomas Stupka 2013-08-01 16:15:36 UTC
looks like the server sometimes returns html instead of json

<html><head><title>Apache Tomcat/6.0.24 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.24</h3></body></html>


we should handle the parse exception more graciously ...
Comment 4 Tomas Stupka 2013-08-01 17:33:25 UTC
fixed in core-main #77ca0c26b562
Comment 5 Quality Engineering 2013-08-03 02:06:25 UTC
Integrated into 'main-silver', will be available in build *201308022300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/77ca0c26b562
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #231159 - org.codehaus.jackson.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')  at [Source: java.io.InputStreamReader@