[ jetty-Bugs-1538619 ] jetty6: NPE on executing example OneServletContext

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ jetty-Bugs-1538619 ] jetty6: NPE on executing example OneServletContext

SourceForge.net
Bugs item #1538619, was opened at 2006-08-11 11:17
Message generated for change (Comment added) made by janb
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107322&aid=1538619&group_id=7322

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Other
Group: None
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Yaroslav Sokolov (yarick123)
>Assigned to: Jan Bartel (janb)
Summary: jetty6: NPE on executing example OneServletContext

Initial Comment:
on executing sample OneServletContext:
java -cp
embedded-6.0.0rc0.jar;..\..\..\lib\jetty-6.0.0rc0.jar;..\..\..\lib\jetty-util-6.0.0rc0.jar;..\..\..\lib\servlet-api-2.5-6.0.0rc0.jar
org.mortbay.jetty.example.OneServletContext

it's thrown NPE exception:
Exception in thread "main" java.lang.NullPointerException
        at
org.mortbay.jetty.handler.HandlerCollection.setHandlers(HandlerCollection.java:73)
        at org.mortbay.jetty.Server.addHandler(Server.java:484)
        at
org.mortbay.jetty.servlet.Context.<init>(Context.java:110)
        at
org.mortbay.jetty.servlet.Context.<init>(Context.java:61)
        at
org.mortbay.jetty.example.OneServletContext.main(OneServletContext.java:34)

my enviroment:

jetty-6.0.0rc0 (2005-05-08),
WinXP, JDK 1.5.0_08

----------------------------------------------------------------------

>Comment By: Jan Bartel (janb)
Date: 2007-03-05 00:29

Message:
Logged In: YES
user_id=45251
Originator: NO

This works on jetty-6.1.2rc0, so I'm assuming it's fixed. If not, please
reopen on the jetty-6 jira at codehaus:
http://jira.codehaus.org/browse/Jetty

----------------------------------------------------------------------

Comment By: Yaroslav Sokolov (yarick123)
Date: 2006-08-11 12:43

Message:
Logged In: YES
user_id=972975

I attach suggested bugfix

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107322&aid=1538619&group_id=7322

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
jetty-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-discuss