DO NOT REPLY [Bug 32708] - NullPointer for every request

2004-12-15 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32708.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32708





--- Additional Comments From [EMAIL PROTECTED]  2004-12-15 10:21 ---
(In reply to comment #2)
 I don't understand what causes the bug. Can you submit a better test case
 (similar code runs fine for me) ?
 
 It's really odd that you're getting an exception there, because it can only
 happen if the String value is null, and this should be filtered out before 
 going
 into the StringCache because it's obviously useless. I could make the code a
 little bit more defensive, but this should not be needed.

ps, please leave the code unchanged. I like the webserver to not when something
is not right, instead of eg. continue-ing the webserver and maybe causing some
servere errors elsewhere, while not knowing what caused the problem.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 32708] - NullPointer for every request

2004-12-15 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32708.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32708


[EMAIL PROTECTED] changed:

   What|Removed |Added

   Severity|major   |normal
   Priority|P1  |P2




--- Additional Comments From [EMAIL PROTECTED]  2004-12-15 12:02 ---
Then the cause of the problem is what Bill said: an invalid encoding is used for
the String. I think I should be able to reproduce the issue now, and I'll try to
see if I can improve the situation.

The admin works again in 5.5.6, BTW. I don't know if it handles connectors
correctly or not, as I didn't use it at all in the 5.5 branch.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 32708] - NullPointer for every request

2004-12-15 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32708.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32708


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID




--- Additional Comments From [EMAIL PROTECTED]  2004-12-15 12:57 ---
I tried the admin webapp, and while it's probably not perfect for connector
handling, it didn't save bad information (such as URIEncoding=null), and
Tomcat operated fine after a restart.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 32708] - NullPointer for every request

2004-12-15 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32708.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32708





--- Additional Comments From [EMAIL PROTECTED]  2004-12-15 10:18 ---
(In reply to comment #1)
 Do you see this in conf/catalina.properties:
 tomcat.util.buf.StringCache.byte.enabled=true ?
 So you can easily work around the problem.

Done, which works, but causes other problems like getting 'white pages' on some
GET requests.

I found out how the problem arrised. When looking in server.xml, was a connector
entry:

Connector URIEncoding=null enableLookups=true port=9000 redirectPort=-1
backlog=10 disableUploadTimeout=false
/Connector

As you can see, the URIUncoding is null. I don't know what it means excactly,
but I didn't put it there. I used the admin tool to add the connector. I'd like
to try to reproduce the problem, but my Admin tool doesn't work anymore. I
cannot collapse items (I don't know if I should file this as another bug report,
but I cannot say more than: my menuitems don't collapse anymore after adding a
new service...)

After removing the URIencoding, everything is working fine again, even after
re-enabling the StringCache.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


DO NOT REPLY [Bug 32708] - NullPointer for every request

2004-12-15 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32708.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32708





--- Additional Comments From [EMAIL PROTECTED]  2004-12-15 10:37 ---
(In reply to comment #5)

 ps, please leave the code unchanged. I like the webserver to not when 
 something
 is not right, instead of eg. continue-ing the webserver and maybe causing some
 servere errors elsewhere, while not knowing what caused the problem.
 
[type]

I like the webserver to not when... = I like the webserver to 'crash' when...


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


DO NOT REPLY [Bug 32708] - NullPointer for every request

2004-12-14 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32708.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32708





--- Additional Comments From [EMAIL PROTECTED]  2004-12-15 00:26 ---
I don't understand what causes the bug. Can you submit a better test case
(similar code runs fine for me) ?

It's really odd that you're getting an exception there, because it can only
happen if the String value is null, and this should be filtered out before going
into the StringCache because it's obviously useless. I could make the code a
little bit more defensive, but this should not be needed.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 32708] - NullPointer for every request

2004-12-14 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32708.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32708





--- Additional Comments From [EMAIL PROTECTED]  2004-12-15 02:57 ---
(In reply to comment #2)
 I don't understand what causes the bug. Can you submit a better test case
 (similar code runs fine for me) ?

You could also get it from an unsupported encoding in toStringInternal.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 32708] - NullPointer for every request

2004-12-14 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32708.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32708


[EMAIL PROTECTED] changed:

   What|Removed |Added

   Severity|blocker |major




--- Additional Comments From [EMAIL PROTECTED]  2004-12-15 00:15 ---
Do you see this in conf/catalina.properties:
tomcat.util.buf.StringCache.byte.enabled=true ?
So you can easily work around the problem.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]