I am using the 3.7 nightly build of Orbeon with a Java application.
I have deployed Orbeon and the java app separately under tomcat. I have written a servlet to POST to, to retrieve the data and submit with the following xforms tag: <xforms:submission id="save-data" method="post" resource="http://localhost:8082/xformsApp/xforms-jsp/HelloWorld "/> <xforms:submit submission="save-data"> <xforms:label>Continue</xforms:label> </xforms:submit> This posts to my servlet fine but I have to use an absolute URL and I want to use a relative URL. When I tried to post to a relative URL, I get the following error: Type class java.lang.NullPointerException Message null Location oxf:/config/xforms-widgets.xsl Line 24 Column -1 Stack Trace java.lang.NullPointerException at org.orbeon.oxf.xforms.XFormsSubmissionUtils.openOptimizedConnection(XFormsSubmissionUtils.java:106) … Any thoughts? |
Administrator
|
Serena,
This doesn't sound like something that should happen, but we'd need a reproducible test case to debug this. Can you recreate this by creating a JSP file you put in the xforms-jsp directory? Alex |
I have attached the zipped context I have separtely deployed. The file to run is /xformsApp/xforms-jsp/test.jsp.
Thanks xformsApp.zip |
Hello guys,
After two weeks of xforms, I could say that I've started to like it, but I'm facing a new issue. It is just the same described in this thread. Is there a fix for it? In the documentation at paragraph "8.3. XForms Submisssion" it stands that orbeon can handle relative URIs, and also how they are resolved. In reality is not working as it is supposed to. Thanks, Alexandru
|
Administrator
|
Alexandru,
On Thu, Oct 1, 2009 at 1:47 PM, iga <[hidden email]> wrote: > After two weeks of xforms, I could say that I've started to like it, but I'm > facing a new issue. It is just the same described in this thread. Is there a > fix for it? > In the documentation at paragraph "8.3. XForms Submisssion" it stands that > orbeon can handle relative URIs, and also how they are resolved. In reality > is not working as it is supposed to. If the issue you're having is indeed due to a rewrite bug with relative URLs in separate deployment, this is your lucky day (well... almost), as Erik is working on a fix for this. So stay tuned; this bug should become history soon, and in the meantime you can use an full URL. Alex -- 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 |
Hello Alessandroand thank you for your support.
Attached you may fist a small project exported from eclipse. All you have to do is to deploy it in a tomcat 5.5 AS. Now the submission link is http://localhost:8080/SubmissionTest/service/dispatchRequest.do but if you change it to /service/dispatchRequest.do (as mapped in web.xml) the submission will not work anymore ending up with this error:
regards, Alexandru On Sat, Oct 10, 2009 at 06:13, Alessandro Vernet (via Nabble) <[hidden email]> wrote: Alexandru, submissionTest.war (941K) Download Attachment |
Administrator
|
In reply to this post by Alessandro Vernet
Alexandru,
On Mon, Oct 5, 2009 at 6:17 PM, Alessandro Vernet <[hidden email]> wrote: > If the issue you're having is indeed due to a rewrite bug with > relative URLs in separate deployment, this is your lucky day (well... > almost), as Erik is working on a fix for this. So stay tuned; this > bug should become history soon, and in the meantime you can use an > full URL. Erik did it! These changes didn't make it yet to the master nightly builds, but you can for now download a build for testing with those changes in from the URL below. You'll let us know if this does it for you. http://forge.objectweb.org/nightlybuilds/ops/ops/orbeon-development.war Alex -- 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 |
Free forum by Nabble | Edit this page |