cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: C2 Error: java.lang.VerifyError
Date Fri, 15 Sep 2000 00:02:51 GMT
Hans Ulrich Niedermann wrote:
> 
> Hi,
> 
> I keep getting NPEs with current C2 when requesting any URI within the
> C2 webapps URI space. I'm still somewhat confused by the C2
> architecture and all this classloader stuff, but the error seems to be
> caused by some classloader issues, so the culprit may be some code
> that is not finished yet.
> 
> I'm using Linux (Redhat 6.2), Sun JDK 1.2.2, Tomcat 3.1 (via Apache
> 1.3.12 and Tomcat 3.1 mod_jserv, but that doesn't make any
> difference). If I remember correctly, this should meet all
> requirements for C2. Or should I better switch to Tomcat 4, JDK 1.3,
> whatever... in order to run C2?
> 
> The console Tomcat runs on says:
> 
> java.lang.VerifyError: (class: org/apache/cocoon/serialization/XMLSerializer, method:
setOutputStream signature: (Ljava/io/OutputStream;)V) Incompatible object argument for function
call
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:120)
>         at org.apache.cocoon.util.ClassUtils.loadClass(ClassUtils.java:45)
>         at org.apache.cocoon.util.ClassUtils.newInstance(ClassUtils.java:33)
>         at org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.java:83)
>         at _home._uli._public_html._xml_isd_uni_stuttgart_de._software._dist._tomcat._webapps._cocoon2._sitemap_xmap.setConfiguration(_sitemap_xmap.java:852)
>         at org.apache.cocoon.sitemap.SitemapHandler.run(SitemapHandler.java:149)
>         at java.lang.Thread.run(Thread.java:475)
> 
> And after that the following stacktrace appears on the Tomcat console
> and on the HTML page:
> 
> java.lang.NullPointerException:
>         at org.apache.cocoon.sitemap.SitemapHandler.process(SitemapHandler.java:127)
>         at org.apache.cocoon.sitemap.SitemapManager.invoke(SitemapManager.java:80)
>         at org.apache.cocoon.Cocoon.process(Cocoon.java:212)
>         at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:184)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
>         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
>         at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:156)
>         at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
>         at java.lang.Thread.run(Thread.java:475)
> 
> The following is the corresponding code fragment from _sitemap_xmap.java:
> 
> 848:  confBuilder.endDocument ();
> 849:  cconf = confBuilder.getConfiguration();
> 850:  serializer_config_xml = cconf;
> 851:  serializer_xml =
> 852:    (Serializer) load_component ("org.apache.cocoon.serialization.XMLSerializer",
cconf);
> 853:
> 854:  confBuilder.startDocument ();
> 855:
> 856:  confBuilder.startPrefixMapping("","http://apache.org/cocoon/sitemap/1.0");
> 
> All C2 lib/*.jar files are symlinked into tomcat/lib and in the
> classpath of the VM running Tomcat.
> 
> Uli

Try updating the CVS, latest Pier's fix might remove the problem.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



Mime
View raw message