Re: [Chiba-users] chiba-0.9.5 NullPointerException
Creators discontinued Chiba & founded betterFORM http://betterform.de
Brought to you by:
chibaxforms,
windauer
From: joern t. <joe...@we...> - 2004-03-24 10:48:26
|
hello, Giota Karadimitriou wrote: > When I had this mistake, the stack trace was=20 >=20 > java.lang.IllegalArgumentException: > PAR003 Class, > "org.chiba.xml.xforms.XFormsDocument"= , > not > found. > org.chiba.xml.xforms.XFormsDocument >=20 > and the code place where this was happening was in ChibaServlet:: > getDocumentBuilder() method in >=20 > factory.setAttribute("http://apache.org/xml/properties/dom/document-cla= s > s-name", > "org.chiba.xml.xforms.XFormsDocument")= ; we've seen this error before. it always occurs in conjunction with=20 classpath problems. please make sure that you don't have another xerces=20 on your classpath when running Chiba. Chiba uses the dom3-xercesImpl and=20 dom3-xmlapis and the above error occurs from using an incompatible=20 parser-version. Joern >=20 > that's why I thought it had to do with library conflicts, I actually > think it has to do with the modified castor.jar in chiba 0.9.5 but am > not certain >=20 > Hope this helps >=20 > Giota >=20 >=20 >=20 > -----Original Message----- > From: joern turner [mailto:joe...@we...]=20 > Sent: =D4=E5=F4=DC=F1=F4=E7, 17 =CC=E1=F1=F4=DF=EF=F5 2004 11:29 =EC=EC > To: jo...@va... > Cc: Giota Karadimitriou; chi...@li... > Subject: Re: [Chiba-users] chiba-0.9.5 NullPointerException >=20 > Hello Joe, >=20 > maybe we can resolve this issue before 0.9.6. at least i hope so but i=20 > really have problems reproducing your problem. even after re-installing= =20 > a clean copy of the distribution everything works on my system which=20 > makes me a bit perplex. >=20 > the stacktrace doesn't help very much here cause it does not allow to=20 > spot the actual point where it's crashing. >=20 > but if you turn on DEBUG in log4j.xml and send me the output from your=20 > console this might help to find the problem. >=20 > thanks, >=20 > Joern >=20 > Joe van Deventer wrote: >=20 >=20 >>Thanks for your help! Unfortunately, after playing around with various >=20 >=20 >>combinations of libraries, that doesn't seem to be the problem. I >=20 > guess=20 >=20 >>I just wait for 0.9.6. :) For what it's worth, here's the stack trace: >> >>java.lang.NullPointerException >> at org.chiba.adapter.web.ChibaServlet.doGet(ChibaServlet.java:293) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) >> at=20 >> >=20 > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic= a > tionFilterChain.java:247)=20 >=20 >> at=20 >> >=20 > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil= t > erChain.java:193)=20 >=20 >> at=20 >> >=20 > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal= v > e.java:243)=20 >=20 >> at=20 >> >=20 > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j= a > va:566)=20 >=20 >> at=20 >> >=20 > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:= 4 > 72) >=20 >> at=20 >>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) >> at=20 >> >=20 > org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal= v > e.java:190)=20 >=20 >> at=20 >> >=20 > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j= a > va:566)=20 >=20 >> at=20 >> >=20 > org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.j= a > va:246)=20 >=20 >> at=20 >> >=20 > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j= a > va:564)=20 >=20 >> at=20 >> >=20 > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:= 4 > 72) >=20 >> at=20 >>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) >> at=20 >> >=20 > org.apache.catalina.core.StandardContext.invoke(StandardContext.java:23= 4 > 7) >=20 >> at=20 >> >=20 > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav= a > :180)=20 >=20 >> at=20 >> >=20 > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j= a > va:566)=20 >=20 >> at=20 >> >=20 > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV= a > lve.java:170)=20 >=20 >> at=20 >> >=20 > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j= a > va:564)=20 >=20 >> at=20 >> >=20 > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav= a > :170)=20 >=20 >> at=20 >> >=20 > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j= a > va:564)=20 >=20 >> at=20 >> >=20 > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:46= 8 > ) >=20 >> at=20 >> >=20 > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j= a > va:564)=20 >=20 >> at=20 >> >=20 > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:= 4 > 72) >=20 >> at=20 >>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) >> at=20 >> >=20 > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. > java:174)=20 >=20 >> at=20 >> >=20 > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j= a > va:566)=20 >=20 >> at=20 >> >=20 > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:= 4 > 72) >=20 >> at=20 >>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) >> at=20 >> >=20 > org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.= j > ava:1027)=20 >=20 >> at=20 >> >=20 > org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java= : > 1125)=20 >=20 >> at java.lang.Thread.run(Thread.java:536) >> >> >> >>Giota Karadimitriou wrote: >> >> >>>I got a null pointer exception due to an illegal argument exception >>>which was caused because org.chiba.xml.XFormsDocument could not be >>>found >>>in >>> >>>factory.setAttribute("http://apache.org/xml/pr >>> perties/dom/document-class-name", >>> =20 >>>"org.chiba.xml.xforms.XFormsDocument"); >>> >>>I thought it was some kind of library conflict so I removed=20 >>>unnecessary lib files from \lib directory and it worked for me. >>> >>>Giota >>> >>>-----Original Message----- >>>From: chi...@li... >>>[mailto:chi...@li...] On Behalf Of Joe van >>>Deventer >>>Sent: =D4=F1=DF=F4=E7, 16 =CC=E1=F1=F4=DF=EF=F5 2004 10:33 =EC=EC >>>To: chi...@li... >>>Subject: [Chiba-users] chiba-0.9.5 NullPointerException >>> >>>I recently installed the chiba .war file into my Tomcat installation, >=20 >=20 >>>and it unpacked perfectly. However, when trying to run any of the=20 >>>samples, I get the exact same NullPointerException as was detailed by >=20 >=20 >>>Jozef Aerts. My web.xml file isn't empty, though - does anyone have a >=20 >=20 >>>functioning version I could try to see if that's the culprit? >>> >>> >>>------------------------------------------------------- >>>This SF.Net email is sponsored by: IBM Linux Tutorials >>>Free Linux tutorial presented by Daniel Robbins, President and CEO of >>>GenToo technologies. Learn everything from fundamentals to system >>>administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3D= click >>>_______________________________________________ >>>Chiba-users mailing list >>>Chi...@li... >>>https://lists.sourceforge.net/lists/listinfo/chiba-users >>> >>> >>>=20 >>> >> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: IBM Linux Tutorials >>Free Linux tutorial presented by Daniel Robbins, President and CEO of >>GenToo technologies. Learn everything from fundamentals to system >>administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dc= lick >>_______________________________________________ >>Chiba-users mailing list >>Chi...@li... >>https://lists.sourceforge.net/lists/listinfo/chiba-users >> >=20 >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id638&op=3Dclick > _______________________________________________ > Chiba-users mailing list > Chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiba-users >=20 |