JAM VM gives the following exceptions:

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




The environment is: 
- the jam vm version is JamVM 1.5.3
- GNU Classpath version is 0.98
- the GNU Classpath is build by disabling the following things as they are
not required by us:
 . /configure --disable-gtk-peer --disable-plugin --disable-gconf-peer
--enable-tools
- we are running jetty 6.1.8 using the jam vm. 
- we are connecting to the jetty (which is running on jamvm), through the
browser (IE7) on port 8080, but there is no response from the server.  
- Our code runs fine when it is running jetty on sun jre 1.5. So it is
certain that the problem is with the jamvm
- the linux platform is: debian
- After some analysis, it seems that there is some bug in the socket library
of GNU Classpath due to which it stops responding after running for
sometime.

The exceptions are:

java.lang.IllegalArgumentException: channel already registered
   at gnu.java.nio.EpollSelectorImpl.register(EpollSelectorImpl.java:266)
   at
java.nio.channels.spi.AbstractSelectableChannel.register(AbstractSelectableChannel.java:251)
   at
java.nio.channels.SelectableChannel.register(SelectableChannel.java:114)
   at
org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:488)
   at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:166)
   at
org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
   at
org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:537)
   at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
   
java.nio.channels.NotYetConnectedException
   at gnu.java.nio.SocketChannelImpl.write(SocketChannelImpl.java:240)
   at org.mortbay.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:166)
   at
org.mortbay.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:207)
   at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:693)
   at
org.mortbay.jetty.AbstractGenerator$Output.flush(AbstractGenerator.java:566)
   at org.mortbay.jetty.HttpConnection$Output.flush(HttpConnection.java:910)
   at
org.mortbay.jetty.AbstractGenerator$OutputWriter.flush(AbstractGenerator.java:731)
   at java.io.PrintWriter.flush(PrintWriter.java:244)
   at org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:221)
   at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:985)
   at
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:671)
   at
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:884)
   at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:855)
   at
org.apache.jsp.template_jsp._jspService(org.apache.jsp.template_jsp:135)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
   at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
   at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
   at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
   at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
   at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
   at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
   at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
   at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:285)
   at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
   at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
   at
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:261)
   at
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:237)
   at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:300)
   at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
   at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
   at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
   at
com.ipolicynet.dm.common.framework.DmActionServlet.doGet(DmActionServlet.java:151)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
   at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
   at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
   at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
   at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
   at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
   at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
   at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
   at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
   at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
   at org.mortbay.jetty.Server.handle(Server.java:324)
   at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
   at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
   at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
   at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
   at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
   at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
   at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
   
java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
   at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:607)
   at java.awt.Font.tk(Font.java:317)
   at java.awt.Font.getPeerFromToolkit(Font.java:329)
   at java.awt.Font.<init>(Font.java:381)
   at org.jfree.chart.plot.Plot.<init>(Plot.java:296)
   at org.jfree.chart.plot.dial.DialPlot.<init>(DialPlot.java:150)
   at org.jfree.chart.plot.dial.DialPlot.<init>(DialPlot.java:142)
   at
com.ipolicynet.dm.monitoring.dashboard.action.DmJfreeImageUtility.drawImage(DmJfreeImageUtility.java:28
   at
com.ipolicynet.dm.monitoring.dashboard.action.DmMonDashResUsgae.execute(DmMonDashResUsgae.java:59)
   at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
   at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
   at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
   at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
   at
com.ipolicynet.dm.common.framework.DmActionServlet.doGet(DmActionServlet.java:151)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
   at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
   at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
   at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
   at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
   at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
   at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
   at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
   at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
   at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
   at org.mortbay.jetty.Server.handle(Server.java:324)
   at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
   at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
   at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
   at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
   at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
   at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
   at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
Caused by: java.lang.UnsatisfiedLinkError: Native library `gtkpeer' not
found (as file `libgtkpeer.so') in gnath
   at java.lang.Runtime.loadLibrary(Runtime.java:763)
   at java.lang.System.loadLibrary(System.java:670)
   at gnu.java.awt.peer.gtk.GtkToolkit.<clinit>(GtkToolkit.java:177)
   at java.lang.VMClass.forName(Native Method)
   at java.lang.Class.forName(Class.java:233)
   at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:583)

-- 
View this message in context: http://www.nabble.com/JAM-VM-gives-the-following-exceptions%3A-tp24495104p24495104.html
Sent from the Gnu - Classpath - General mailing list archive at Nabble.com.



[Index of Archives]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]

  Powered by Linux