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 113787 - java.io.IOException HTTP response code: 500
Summary: java.io.IOException HTTP response code: 500
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Logger Server (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Jindrich Sedek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-25 04:21 UTC by noot
Modified: 2007-11-08 11:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch against the before_merge_103381 tag (1.55 KB, patch)
2007-10-15 08:18 UTC, Jaroslav Tulach
Details | Diff
My .war file if you do not want to build it yourself (5.04 MB, application/octet-stream)
2007-10-15 08:23 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description noot 2007-08-25 04:21:56 UTC
When I use the problem reporter when a problem occurred after hitting the send button a error message dialog is
displayed with the following message: Upload of log to statistics.netbeans.org failed

The message log shows a HTTP 500 error:
java.io.IOException: Server returned HTTP response code: 500 for URL: http://statistics.netbeans.org/analytics/upload.jsp
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1170)
	at org.netbeans.modules.uihandler.Installer.uLogs(Installer.java:610)
	at org.netbeans.modules.uihandler.Installer.uploadLogs(Installer.java:537)
[catch] at org.netbeans.modules.uihandler.Installer$Submit.uploadAndPost(Installer.java:962)
	at org.netbeans.modules.uihandler.Installer$Submit.access$200(Installer.java:658)
	at org.netbeans.modules.uihandler.Installer$Submit$1.run(Installer.java:885)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)
Comment 1 Jaroslav Tulach 2007-08-30 16:56:05 UTC
Well, maybe you connection was too slow? Next time you see this, could you visit 
http://statistics.netbeans.org/analytics
in an external browser and tell me whether the server was up or down? Indeed if it was down, then the 500 error is ok.
Comment 2 noot 2007-09-02 08:51:04 UTC
Got the exactly the same error again and the server is not down. Nothing wrong with the connection either.
Comment 3 bartvdc 2007-09-14 07:13:47 UTC
Same problem with build 20070913 on win xp.
The problem exists for months now. 
On nbusers the server is blamed.http://www.netbeans.org/servlets/ReadMsg?list=nbusers&msgNo=98450 
Comment 4 Jaroslav Tulach 2007-09-19 15:41:03 UTC
Error 500 means internal error (http://www.w3.org/Protocols/HTTP/HTRESP.html).
We have uploaded new version, hopefully it is going to work in better way.
Comment 5 noot 2007-09-21 04:14:13 UTC
I'm sorry but still have the same problem. I'm now running nightly built 200709191200
Comment 6 Jaroslav Tulach 2007-09-22 22:19:54 UTC
I've got to the same problem. This is what the server said:

INFO: accepting: multipart/form-data; boundary=--------konec<>bloku
Sep 22, 2007 8:59:27 PM org.netbeans.server.uihandler.LogsManager addLog
INFO: request for parsing /space/ui-logs/0676a418d-d130-42cf-b02c-bd355009bb10.9
Sep 22, 2007 8:59:27 PM org.netbeans.server.uihandler.LogsManager$1R run
INFO: processing parsing /space/ui-logs/0676a418d-d130-42cf-b02c-bd355009bb10.9

probably means the parsing of a log file filed, but how?
Comment 7 Jaroslav Tulach 2007-10-15 07:59:00 UTC
I am able to reproduce this problem from home, however after hibernate and de-hibernate of my computer at work I am 
able to submit the log without problems. That is why I think this must be somehow connected to the IP I am using.

The log file is useless, it does not contain any exception. Probably because there is just catch (Exception e) and not 
catch(Throwable t). I'll add here a diff that I need to be uploaded to the server. Jan, please make sure this fixed 
version is alive soon, this might be very significant problem.

Comment 8 Jaroslav Tulach 2007-10-15 08:18:37 UTC
Created attachment 50929 [details]
Patch against the before_merge_103381 tag
Comment 9 Jaroslav Tulach 2007-10-15 08:23:21 UTC
Created attachment 50930 [details]
My .war file if you do not want to build it yourself
Comment 10 Jaroslav Tulach 2007-10-17 10:01:05 UTC
Indeed the problem is in parsing my IP address, Jindra please look at it:

SEVERE: failure during parsing /space/ui-logs/0676a418d-d130-42cf-b02c-bd355009bb10.53
java.lang.NumberFormatException: For input string: "246, 86"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
        at java.lang.Integer.parseInt(Integer.java:456)
        at java.lang.Integer.<init>(Integer.java:620)
        at org.netbeans.modules.exceptions.entity.Logfile.setIpAddr(Logfile.java:110)
        at org.netbeans.server.uihandler.LogsManager$1R.run(LogsManager.java:247)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
        at java.util.concurrent.FutureTask.run(FutureTask.java:123)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301
(ScheduledThreadPoolExecutor.java:65)
        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
Comment 11 Jaroslav Tulach 2007-10-17 10:04:58 UTC
If it is of any help, my IP was probably 86.49.107.244
Comment 12 Jindrich Sedek 2007-10-17 15:33:01 UTC
adding more logging
Checking in LogsManager.java;
/cvs/logger/uihandlerserver/src/java/org/netbeans/server/uihandler/LogsManager.java,v  <--  LogsManager.java
new revision: 1.49; previous revision: 1.48
done

after Jarda's script upload should fail no more -> decreasing priority 
Comment 13 noot 2007-10-20 03:03:00 UTC
It works! 
Comment 14 Jindrich Sedek 2007-11-08 11:06:26 UTC
should be completelly correctly fixed
Checking in src/org/netbeans/modules/exceptions/entity/Logfile.java;
/cvs/logger/ExceptionUtils/src/org/netbeans/modules/exceptions/entity/Logfile.java,v  <--  Logfile.java
new revision: 1.5; previous revision: 1.4
done
Checking in test/org/netbeans/modules/exceptions/utils/MappingTest.java;
/cvs/logger/ExceptionUtils/test/org/netbeans/modules/exceptions/utils/MappingTest.java,v  <--  MappingTest.java
new revision: 1.4; previous revision: 1.3
done