Login  Register

Re: Re: Re: Small problem with Bookshelf No SuchMethodError when clicking on review

Posted by Alessandro Vernet on Dec 25, 2009; 11:27pm
URL: https://discuss.orbeon.com/Schema-validation-for-XSD-int-tp44183p978924.html

Hi Alex,

1) After you have just installed Orbeon Forms, the Bookshelf example
won't show any data. So this is normal.

2) I followed those steps and didn't get any NoSuchMethod (or other
exception for that matter). I suspect that there is something iffy
with your installation, with either some old classes still around, or
some conflict with a library that comes with Rasin and that takes the
precedence over the one we ship with Orbeon Forms. Is the error always
with a class in org.apache.commons.fileupload? Could it be that Rasin
come with a version of commons-fileupload that takes the precedence
over the one in Orbeon Forms? Maybe you could try reinstalling a fresh
Rasin and Orbeon Forms, to check if you still get the same error.

Alex

On Thu, Dec 24, 2009 at 2:43 AM, Alex Sharaz <[hidden email]> wrote:

>
> Now this is getting silly.
> Fire up orbeon and select the Bookshelf app.
> (BTW, my installation  doesn't have any example data in bookshelf, should it?)
> Create an entry.
> From the bookshelf summary page, select the document
> Click on the PDF button
> it works and a pdf is downloaded to your browser.
> Click on the review button
> a review page appears.
> Click on the pdf button in the review field
> Get the "NoSuchMethod" error page.
> Close the review page and get back to the summary page
> Double click on the created entry to open the book details page
> Click on the pdf button
> Fails with nosuchmethod again
> Go back to book details
> Click on review
> Fails with no such method
> Help!!!
> Alex
>
> On 24 Dec 2009, at 09:15, Alex Sharaz wrote:
>
> Sigh!!
> The copy of orbeon at home works just fine on resin 4.0.2. Guess I've got a jar file somewhere with an older copy of the apache file upload lurking around.
> Alex
> On 23 Dec 2009, at 15:07, Alex Sharaz wrote:
>
> Hi,
>
> I'm currently running the 161209 nightly build of Orbeon on a Resin 4.0.2 server and have been looking at
>
> a). The bookshelf app and
> b) mplementing the file upload example from the orbeon web site how-to list
>
> With the bookshelf app, I can create a book entry and double click on it to view the details. However, when i click on either pdf or review when looking at the details, I get a NoSuchMethod
> error occurring as shown below:-
>
> Alyone else seen this error?
> Rgds
> Alex
>
>
>
> Orbeon Forms Error
>
> Typeclass java.lang.NoSuchMethodError
> Messageorg.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(Lorg/apache/commons/fileupload/RequestContext;)Ljava/util/List;
> Stack Trace
>
> java.lang.NoSuchMethodError: org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(Lorg/apache/commons/fileupload/RequestContext;)Ljava/util/List;
> at org.orbeon.oxf.util.NetUtils.getParameterMapMultipart(NetUtils.java:1003)
> at org.orbeon.oxf.servlet.ServletExternalContext$Request.getParameterMap(ServletExternalContext.java:148)
> at org.orbeon.oxf.processor.generator.RequestGenerator.addParameters(RequestGenerator.java:450)
> at org.orbeon.oxf.processor.generator.RequestGenerator.readWholeRequestAsDOM4J(RequestGenerator.java:321)
> at org.orbeon.oxf.processor.generator.RequestGenerator.readRequestAsDOM4J(RequestGenerator.java:293)
> at org.orbeon.oxf.processor.generator.RequestGenerator.access$500(RequestGenerator.java:79)
> at org.orbeon.oxf.processor.generator.RequestGenerator$1.fillOutState(RequestGenerator.java:213)
> at org.orbeon.oxf.processor.ProcessorImpl$DigestTransformerOutputImpl.getFilledOutState(ProcessorImpl.java:1411)
> at org.orbeon.oxf.processor.ProcessorImpl$DigestTransformerOutputImpl.getLocalKey(ProcessorImpl.java:1374)
> at org.orbeon.oxf.processor.ProcessorImpl$CacheableTransformerOutputImpl.getKeyImpl(ProcessorImpl.java:1316)
> at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.getKey(ProcessorImpl.java:1000)
> at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.getKey(ProcessorImpl.java:1190)
> at org.orbeon.oxf.processor.pipeline.TeeProcessor$TeeProcessorOutputImpl.getKeyImpl(TeeProcessor.java:147)
> at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.getKey(ProcessorImpl.java:1000)
> at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.getKey(ProcessorImpl.java:1190)
> at org.orbeon.oxf.processor.ProcessorImpl.getInputKey(ProcessorImpl.java:1212)
> at org.orbeon.oxf.processor.ProcessorImpl$CacheableTransformerOutputImpl.getKeyImpl(ProcessorImpl.java:1308)
> at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.getKey(ProcessorImpl.java:1000)
> at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.getKey(ProcessorImpl.java:1190)
> at org.orbeon.oxf.processor.ProcessorImpl.getInputKey(ProcessorImpl.java:1212)
> at org.orbeon.oxf.processor.ProcessorImpl$CacheableTransformerOutputImpl.getKeyImpl(ProcessorImpl.java:1308)
> at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.getKey(ProcessorImpl.java:1000)
> at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.getKey(ProcessorImpl.java:1190)
> at org.orbeon.oxf.processor.ProcessorImpl.getInputKey(ProcessorImpl.java:1212)
> at org.orbeon.oxf.processor.ProcessorImpl.getInputKeyValidity(ProcessorImpl.java:1247)
> at org.orbeon.oxf.processor.ProcessorImpl.isInputInCache(ProcessorImpl.java:1226)
> at org.orbeon.oxf.processor.ProcessorImpl.isInputInCache(ProcessorImpl.java:1233)
> at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.access$000(ConcreteChooseProcessor.java:35)
> at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1.getKeyImpl(ConcreteChooseProcessor.java:130)
> at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.getKey(ProcessorImpl.java:1000)
> at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.getKey(ProcessorImpl.java:1190)
> at org.orbeon.oxf.processor.pipeline.TeeProcessor$TeeProcessorOutputImpl.getKeyImpl(TeeProcessor.java:147)
> at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.getKey(ProcessorImpl.java:1000)
> at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.getKey(ProcessorImpl.java:1190)
> at org.orbeon.oxf.processor.ProcessorImpl.getInputKey(ProcessorImpl.java:1212)
> at org.orbeon.oxf.processor.ProcessorImpl.getInputKeyValidity(ProcessorImpl.java:1247)
> at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:439)
> at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsTinyTree(ProcessorImpl.java:409)
> at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(ConcreteChooseProcessor.java:189)
> at org.orbeon.oxf.processor.pipeline.PipelineProcessor$5.run(PipelineProcessor.java:647)
> at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:526)
> at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:644)
> at org.orbeon.oxf.processor.PageFlowControllerProcessor.start(PageFlowControllerProcessor.java:495)
> at org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:90)
> at org.orbeon.oxf.webapp.ProcessorService.service(ProcessorService.java:96)
> at org.orbeon.oxf.servlet.OrbeonServletDelegate.service(OrbeonServletDelegate.java:138)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:96)
> at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:112)
> at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:183)
> at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:169)
> at com.caucho.server.webapp.AccessLogFilterChain.doFilter(AccessLogFilterChain.java:103)
> at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:290)
> at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:784)
> at com.caucho.server.port.TcpConnection.handleRequestsImpl(TcpConnection.java:619)
> at com.caucho.server.port.TcpConnection.handleRequests(TcpConnection.java:556)
> at com.caucho.server.port.TcpConnection$AcceptTask.doTask(TcpConnection.java:1194)
> at com.caucho.server.port.TcpConnection$ConnectionReadTask.runThread(TcpConnection.java:1127)
> at com.caucho.server.port.TcpConnection$AcceptTask.run(TcpConnection.java:1158)
> at com.caucho.util.ThreadPool$PoolThread.runTasks(ThreadPool.java:901)
> at com.caucho.util.ThreadPool$PoolThread.run(ThreadPool.java:866)
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
> ==========
> Time for another Macmillan Cancer Support event. This time its the Trans Central America cycle challenge -680Km in 8 days.
> Please sponsor me at http://www.justgiving.com/alexsharaz
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
> ==========
> Time for another Macmillan Cancer Support event. This time its the Trans Central America cycle challenge -680Km in 8 days.
> Please sponsor me at http://www.justgiving.com/alexsharaz
> For route plan see Google Maps
> Link: <http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=107842292717531843695.000478a34dfab81e9c373&ll=11.323867,-84.188232&spn=3.791241,6.196289&t=p&z=8>
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet