You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by BugRat Mail System <to...@cortexity.com> on 2000/12/13 21:53:50 UTC

BugRat Report #590 has been filed.

Bug report #590 has just been filed.

You can view the report at the following URL:

   <http://znutar.cortexity.com/BugRatViewer/ShowReport/590>

REPORT #590 Details.

Project: Tomcat
Category: Bug Report
SubCategory: New Bug Report
Class: support
State: received
Priority: high
Severity: critical
Confidence: public
Environment: 
   Release: jakarta-tomcat-4.0-m4
   JVM Release: JDK-1.2.2_005
   Operating System: Solaris
   OS Release: 2.7
   Platform: Sun Ultra

Synopsis: 
java.lang.NullPointerException with jakarta-tomcat-4.0-m4

Description:
I am using a third party software package by a company 
called Tom Sawyer. It is a topology engine, and can be used
in a servlet environment. It works in the following way. You
create a graph that represents a network, which is composed
of nodes (such as servers and storage devices) and edges
(connections between the nodes). You can then apply different
layouts to the graph, such as circular or hierarchical. 

I installed and configured jakarta-tomcat-3.2, as well
as the Tom Sawyer software on my system, and it works
correctly. However, when I try it with jakarta-tomcat-4.0-m4,
I get get several errors, as shown below in the output
from catalina.out, localhost_log.2000-12-12.txt, and 
from the Tom Sawyer program as well, which is called
Tomahawk. I made sure that environment for both the 3.2
and 4.0 was set up correctly, as shown under Additional
Environment Description. The reason we want to use 4.0 is 
because it has struts, while 3.2 does not. If you have any 
ideas on how to solve this problem, or when 4.1 might be
available, please let me know. Thanks Eric Jamison

eirc.jamison@sun.com

output from catalina.out:
--------------------------

wiseguy 331 =>!328
cat catalina.out
Apache Tomcat/4.0-dev
java.lang.NullPointerException
        at java.io.ObjectInputStream.read(ObjectInputStream.java, Compiled Code)
        at java.io.DataInputStream.readShort(DataInputStream.java, Compiled 
Code)
        at java.io.ObjectInputStream.readShort(ObjectInputStream.java, Compiled 
Code)
        at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java, 
Compiled Code)
        at java.io.ObjectInputStream.<init>(ObjectInputStream.java, Compiled 
Code)
        at tomsawyer.layout.TSServletHelper.fetchGraphData(Unknown Source)
        at tomsawyer.layout.TSServletHelper.run(Unknown Source)
        at tomsawyer.layout.TSServletLayoutServer.doPost(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
        at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java
, Compiled Code)
        at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.jav
a, Compiled Code)
        at 
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java, 
Compiled Code)
        at 
org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java, Compiled 
Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java, Compiled Code)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java, 
Compiled Code)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java, 
Compiled Code)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
        at org.apache.catalina.core.StandardContext.invoke(StandardContext.java, 
Compiled Code)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java, 
Compiled Code)
        at org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java, 
Compiled Code)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java, 
Compiled Code)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java, 
Compiled Code)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
        at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java, 
Compiled Code)
        at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java, 
Compiled Code)
        at java.lang.Thread.run(Thread.java, Compiled Code)


output from localhost_access_log.2000-12-12.txt:
------------------------------------------------

wiseguy 333 =>!325
cat localhost_access_log.2000-12-12.txt
wiseguy - - [12/Dec/2000:12:21:41 -0800] "POST /getj/servlet/LayoutServer 
HTTP/1.0" 200 -

output from localhost_log.2000-12-12.txt:
-----------------------------------------

wiseguy 337 =>cat localhost_log.2000-12-12.txt
2000-12-12 12:20:08 StandardHost[localhost]: Deploying web application at 
context path  from URL file:/files/jakarta-tomcat-4.0-m4/webapps/ROOT
2000-12-12 12:20:11 StandardWrapper[:default]: Loading container servlet default
2000-12-12 12:20:11 default: init
2000-12-12 12:20:11 StandardWrapper[:invoker]: Loading container servlet invoker
2000-12-12 12:20:11 invoker: init
2000-12-12 12:20:11 jsp: init
2000-12-12 12:20:15 StandardHost[localhost]: Deploying web application at 
context path /manager from URL file:/files/jakarta-tomcat-4.0-m4/webapps/manager
2000-12-12 12:20:15 ContextConfig[/manager]: Configured an authenticator for 
method BASIC
2000-12-12 12:20:15 StandardWrapper[/manager:default]: Loading container servlet 
default
2000-12-12 12:20:15 default: init
2000-12-12 12:20:15 StandardWrapper[/manager:invoker]: Loading container servlet 
invoker
2000-12-12 12:20:15 invoker: init
2000-12-12 12:20:15 jsp: init
2000-12-12 12:20:15 StandardHost[localhost]: Deploying web application at 
context path /webdav from URL file:/files/jakarta-tomcat-4.0-m4/webapps/webdav
2000-12-12 12:20:15 StandardWrapper[/webdav:default]: Loading container servlet 
default
2000-12-12 12:20:15 default: init
2000-12-12 12:20:15 StandardWrapper[/webdav:invoker]: Loading container servlet 
invoker
2000-12-12 12:20:15 invoker: init
2000-12-12 12:20:15 jsp: init
2000-12-12 12:20:15 StandardHost[localhost]: Deploying web application at 
context path /getj from URL file:/files/jakarta-tomcat-4.0-m4/webapps/getj
2000-12-12 12:20:16 StandardWrapper[/getj:default]: Loading container servlet 
default
2000-12-12 12:20:16 default: init
2000-12-12 12:20:16 StandardWrapper[/getj:invoker]: Loading container servlet 
invoker
2000-12-12 12:20:16 invoker: init
2000-12-12 12:20:16 jsp: init
2000-12-12 12:21:41 LayoutServer: init
2000-12-12 12:21:41 ApplicationDispatcher[/getj] Servlet.service() for servlet 
LayoutServer threw exception
java.io.IOException
        at tomsawyer.layout.TSServletHelper.fetchGraphData(Unknown Source)
        at tomsawyer.layout.TSServletHelper.run(Unknown Source)
        at tomsawyer.layout.TSServletLayoutServer.doPost(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
        at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java
, Compiled Code)
        at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.jav
a, Compiled Code)
        at 
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java, 
Compiled Code)
        at 
org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java, Compiled 
Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java, Compiled Code)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java, 
Compiled Code)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java, 
Compiled Code)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
        at org.apache.catalina.core.StandardContext.invoke(StandardContext.java, 
Compiled Code)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java, 
Compiled Code)
        at org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java, 
Compiled Code)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java, 
Compiled Code)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java, 
Compiled Code)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
        at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java, 
Compiled Code)
        at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java, 
Compiled Code)
        at java.lang.Thread.run(Thread.java, Compiled Code)

2000-12-12 12:21:41 StandardWrapperValve[invoker]: Servlet.service() for servlet 
invoker threw exception
java.io.IOException
        at tomsawyer.layout.TSServletHelper.fetchGraphData(Unknown Source)
        at tomsawyer.layout.TSServletHelper.run(Unknown Source)
        at tomsawyer.layout.TSServletLayoutServer.doPost(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
        at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java
, Compiled Code)
        at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.jav
a, Compiled Code)
        at 
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java, 
Compiled Code)
        at 
org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java, Compiled 
Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java, Compiled Code)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java, 
Compiled Code)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java, 
Compiled Code)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
        at org.apache.catalina.core.StandardContext.invoke(StandardContext.java, 
Compiled Code)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java, 
Compiled Code)
        at org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java, 
Compiled Code)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java, 
Compiled Code)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java, 
Compiled Code)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
        at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java, 
Compiled Code)
        at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java, 
Compiled Code)
        at java.lang.Thread.run(Thread.java, Compiled Code)

stack trace from Tomahawk:
--------------------------

wiseguy 137 =>java Tomahawk layout.server.type=servlet
java.io.StreamCorruptedException: Caught EOFException while reading the stream 
header
        at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java, 
Compiled Code)
        at java.io.ObjectInputStream.<init>(ObjectInputStream.java, Compiled 
Code)
        at tomsawyer.layout.TSServletLayoutProxy.layout(Unknown Source)
        at command.ExLayoutCommand.doAction(ExLayoutCommand.java, Compiled Code)
        at tomsawyer.util.command.TSCommand.execute(Unknown Source)
        at tomsawyer.editor.TSEGraphWindow.listen(Unknown Source)
        at tomsawyer.editor.TSEGraphWindow.transmit(Unknown Source)
        at Tomahawk.onApplyLayout(Tomahawk.java, Compiled Code)
        at Tomahawk.actionPerformed(Tomahawk.java, Compiled Code)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java, 
Compiled Code)
        at 
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.ja
va, Compiled Code)
        at 
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java, 
Compiled Code)
        at 
javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java, 
Compiled Code)
        at javax.swing.AbstractButton.doClick(AbstractButton.java, Compiled 
Code)
        at 
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenu
ItemUI.java, Compiled Code)
        at java.awt.Component.processMouseEvent(Component.java, Compiled Code)
        at java.awt.Component.processEvent(Component.java, Compiled Code)
        at java.awt.Container.processEvent(Container.java, Compiled Code)
        at java.awt.Component.dispatchEventImpl(Component.java, Compiled Code)
        at java.awt.Container.dispatchEventImpl(Container.java, Compiled Code)
        at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java, 
Compiled Code)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java, 
Compiled Code)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java, Compiled 
Code)
        at java.awt.Container.dispatchEventImpl(Container.java, Compiled Code)
        at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java, Compiled Code)
        at 
java.awt.EventDispatchThread.pumpOneEventForComponent(EventDispatchThread.java, 
Compiled Code)
        at 
java.awt.EventDispatchThread.pumpEventsForComponent(EventDispatchThread.java, 
Compiled Code)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java, 
Compiled Code)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java, Compiled 
Code)