Exception when doing Initial instance from service

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Exception when doing Initial instance from service

jeffhu
Hi,

I am trying to follow the instructions on

http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-form-runner#TOC-Initial-instance-from-service

Here is my properties-local.xml

<properties xmlns:xs="http://www.w3.org/2001/XMLSchema"
            xmlns:oxf="http://www.orbeon.com/oxf/processors"
            xmlns:xi="http://www.w3.org/2001/XInclude">
        <property as="xs:boolean" name="oxf.fr.detail.new.accept-post.*.*" value="true"/>
       
    <property as="xs:boolean" name="oxf.fr.detail.new.service.enable.*.*" value="true"/>
    <property as="xs:string"  name="oxf.fr.detail.new.service.uri.*.*"  
                              value="http://localhost:8080/myservlet/data"/>
    <property as="xs:string" name="oxf.fr.detail.new.service.passing-request-parameters.*.*"
              value="uuid"/>
</properties>

myservlet uses the given uuid to pull the xml document from eXist and returns it verbatim (application/xml;charset=UTF-8). Then I call the FR as following:

http://localhost:8080/orbeon-nb/fr/app/form/new?uuid=06dad474502ecd2f5e29f067808aea6f

However, the form is not filled and I see the following in the log:

2011-12-14 15:58:58,588 INFO  ProcessorService  - /fr/cv-bank/main/new - Timing: 6636
2011-12-14 15:59:47,435 INFO  ProcessorService  - /fr/cv-bank/main/new - Received request
2011-12-14 15:59:47,459 INFO  ProcessorService  - /fr/service/persistence/crud/app/form/form/form.xhtml - Received request
2011-12-14 15:59:47,473 INFO  ProcessorService  - /fr/service/exist/crud/app/form/form/form.xhtml - Received request
2011-12-14 15:19:53,189 ERROR XFormsServer  - xforms-submit-error - setting throwable {throwable: "java.net.MalformedURLException: unknown protocol: xxforms
        at java.net.URL.<init>(URL.java:590)
        at java.net.URL.<init>(URL.java:480)
        at org.orbeon.oxf.resources.URLFactory.createURL(URLFactory.java:43)
        at org.orbeon.oxf.resources.URLFactory.createURL(URLFactory.java:35)
        at org.orbeon.oxf.xforms.submission.RegularSubmission.connect(RegularSubmission.java:48)
        at org.orbeon.oxf.xforms.submission.XFormsModelSubmission.doSubmit(XFormsModelSubmission.java:439)
        at org.orbeon.oxf.xforms.submission.XFormsModelSubmission.performDefaultAction(XFormsModelSubmission.java:278)
        at org.orbeon.oxf.xforms.xbl.XBLContainer.dispatchEvent(XBLContainer.java:1045)
        at org.orbeon.oxf.xforms.XFormsContainingDocument.dispatchEvent(XFormsContainingDocument.java:897)
        at org.orbeon.oxf.xforms.action.actions.XFormsSendAction.execute(XFormsSendAction.java:60)
        at org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runSingleIteration(XFormsActionInterpreter.java:297)
        at org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runAction(XFormsActionInterpreter.java:258)
        at org.orbeon.oxf.xforms.action.actions.XFormsActionAction$$anonfun$execute$1.apply(XFormsActionAction.scala:62)
..................

I am using te nightly build. Thanks for any help.

regards,
Jeffrey
Reply | Threaded
Open this post in threaded view
|

Re: Exception when doing Initial instance from service

Erik Bruchez
Administrator
For some reason, this seems to indicate that a submission is using
"xxforms" as the protocol. So there is a submission somewhere that
must end up with:

  <xforms:submission action="xxforms:some/rest/of/url" ...>

or:

  <xforms:submission resource="xxforms:some/rest/of/url" ...>

Can you check if this is in your code?

-Erik

On Wed, Dec 14, 2011 at 8:03 AM, jeffhu <[hidden email]> wrote:

> Hi,
>
> I am trying to follow the instructions on
>
> http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-form-runner#TOC-Initial-instance-from-service
> http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-form-runner#TOC-Initial-instance-from-service
>
> Here is my properties-local.xml
>
> <properties xmlns:xs="http://www.w3.org/2001/XMLSchema"
>            xmlns:oxf="http://www.orbeon.com/oxf/processors"
>            xmlns:xi="http://www.w3.org/2001/XInclude">
>        <property as="xs:boolean" name="oxf.fr.detail.new.accept-post.*.*"
> value="true"/>
>
>    <property as="xs:boolean" name="oxf.fr.detail.new.service.enable.*.*"
> value="true"/>
>    <property as="xs:string"  name="oxf.fr.detail.new.service.uri.*.*"
>                              value="http://localhost:8080/myservlet/data"/>
>    <property as="xs:string"
> name="oxf.fr.detail.new.service.passing-request-parameters.*.*"
>              value="uuid"/>
> </properties>
>
> myservlet uses the given uuid to pull the xml document from eXist and
> returns it verbatim (application/xml;charset=UTF-8). Then I call the FR as
> following:
>
> http://localhost:8080/orbeon-nb/fr/app/form/new?uuid=06dad474502ecd2f5e29f067808aea6f
>
> However, the form is not filled and I see the following in the log:
>
> 2011-12-14 15:58:58,588 INFO  ProcessorService  - /fr/cv-bank/main/new -
> Timing: 6636
> 2011-12-14 15:59:47,435 INFO  ProcessorService  - /fr/cv-bank/main/new -
> Received request
> 2011-12-14 15:59:47,459 INFO  ProcessorService  -
> /fr/service/persistence/crud/app/form/form/form.xhtml - Received request
> 2011-12-14 15:59:47,473 INFO  ProcessorService  -
> /fr/service/exist/crud/app/form/form/form.xhtml - Received request
> 2011-12-14 15:19:53,189 ERROR XFormsServer  - xforms-submit-error - setting
> throwable {throwable: "java.net.MalformedURLException: unknown protocol:
> xxforms
>        at java.net.URL.<init>(URL.java:590)
>        at java.net.URL.<init>(URL.java:480)
>        at org.orbeon.oxf.resources.URLFactory.createURL(URLFactory.java:43)
>        at org.orbeon.oxf.resources.URLFactory.createURL(URLFactory.java:35)
>        at
> org.orbeon.oxf.xforms.submission.RegularSubmission.connect(RegularSubmission.java:48)
>        at
> org.orbeon.oxf.xforms.submission.XFormsModelSubmission.doSubmit(XFormsModelSubmission.java:439)
>        at
> org.orbeon.oxf.xforms.submission.XFormsModelSubmission.performDefaultAction(XFormsModelSubmission.java:278)
>        at
> org.orbeon.oxf.xforms.xbl.XBLContainer.dispatchEvent(XBLContainer.java:1045)
>        at
> org.orbeon.oxf.xforms.XFormsContainingDocument.dispatchEvent(XFormsContainingDocument.java:897)
>        at
> org.orbeon.oxf.xforms.action.actions.XFormsSendAction.execute(XFormsSendAction.java:60)
>        at
> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runSingleIteration(XFormsActionInterpreter.java:297)
>        at
> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runAction(XFormsActionInterpreter.java:258)
>        at
> org.orbeon.oxf.xforms.action.actions.XFormsActionAction$$anonfun$execute$1.apply(XFormsActionAction.scala:62)
> ..................
>
> I am using te nightly build. Thanks for any help.
>
> regards,
> Jeffrey
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Exception-when-doing-Initial-instance-from-service-tp4195549p4195549.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> 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
>


--
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
Reply | Threaded
Open this post in threaded view
|

Re: Exception when doing Initial instance from service

jeffhu
Hi Erik,

I searched the code but didn't find any <xforms:submission> code. In fact, I edited most of the code with FB, apart from a couple of "hidden" fields and minor formatting. The part of code that might have caused the "submission" is following, I think:

                    <xforms:bind id="identitet-email-bind" nodeset="identitet-email" name="identitet-email"
                                 type="xs:string"
                                 xxforms:default="concat(xxforms:get-request-parameter('id'), '@msn.com')"/>
                    <xforms:bind id="identitet-cv-sprak-bind" nodeset="identitet-cv-sprak"
                                 name="identitet-cv-sprak"
                                 type="xs:string"
                                 xxforms:default="xxforms:get-request-parameter('lang')"/>

I can try to duplicated the error with a test case later and send the code if you need.

regards,
Jeffrey

Erik Bruchez wrote
For some reason, this seems to indicate that a submission is using
"xxforms" as the protocol. So there is a submission somewhere that
must end up with:

  <xforms:submission action="xxforms:some/rest/of/url" ...>

or:

  <xforms:submission resource="xxforms:some/rest/of/url" ...>

Can you check if this is in your code?

-Erik

On Wed, Dec 14, 2011 at 8:03 AM, jeffhu <[hidden email]> wrote:
> Hi,
>
> I am trying to follow the instructions on
>
> http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-form-runner#TOC-Initial-instance-from-service
> http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-form-runner#TOC-Initial-instance-from-service
>
> Here is my properties-local.xml
>
> <properties xmlns:xs="http://www.w3.org/2001/XMLSchema"
>            xmlns:oxf="http://www.orbeon.com/oxf/processors"
>            xmlns:xi="http://www.w3.org/2001/XInclude">
>        <property as="xs:boolean" name="oxf.fr.detail.new.accept-post.*.*"
> value="true"/>
>
>    <property as="xs:boolean" name="oxf.fr.detail.new.service.enable.*.*"
> value="true"/>
>    <property as="xs:string"  name="oxf.fr.detail.new.service.uri.*.*"
>                              value="http://localhost:8080/myservlet/data"/>
>    <property as="xs:string"
> name="oxf.fr.detail.new.service.passing-request-parameters.*.*"
>              value="uuid"/>
> </properties>
>
> myservlet uses the given uuid to pull the xml document from eXist and
> returns it verbatim (application/xml;charset=UTF-8). Then I call the FR as
> following:
>
> http://localhost:8080/orbeon-nb/fr/app/form/new?uuid=06dad474502ecd2f5e29f067808aea6f
>
> However, the form is not filled and I see the following in the log:
>
> 2011-12-14 15:58:58,588 INFO  ProcessorService  - /fr/cv-bank/main/new -
> Timing: 6636
> 2011-12-14 15:59:47,435 INFO  ProcessorService  - /fr/cv-bank/main/new -
> Received request
> 2011-12-14 15:59:47,459 INFO  ProcessorService  -
> /fr/service/persistence/crud/app/form/form/form.xhtml - Received request
> 2011-12-14 15:59:47,473 INFO  ProcessorService  -
> /fr/service/exist/crud/app/form/form/form.xhtml - Received request
> 2011-12-14 15:19:53,189 ERROR XFormsServer  - xforms-submit-error - setting
> throwable {throwable: "java.net.MalformedURLException: unknown protocol:
> xxforms
>        at java.net.URL.<init>(URL.java:590)
>        at java.net.URL.<init>(URL.java:480)
>        at org.orbeon.oxf.resources.URLFactory.createURL(URLFactory.java:43)
>        at org.orbeon.oxf.resources.URLFactory.createURL(URLFactory.java:35)
>        at
> org.orbeon.oxf.xforms.submission.RegularSubmission.connect(RegularSubmission.java:48)
>        at
> org.orbeon.oxf.xforms.submission.XFormsModelSubmission.doSubmit(XFormsModelSubmission.java:439)
>        at
> org.orbeon.oxf.xforms.submission.XFormsModelSubmission.performDefaultAction(XFormsModelSubmission.java:278)
>        at
> org.orbeon.oxf.xforms.xbl.XBLContainer.dispatchEvent(XBLContainer.java:1045)
>        at
> org.orbeon.oxf.xforms.XFormsContainingDocument.dispatchEvent(XFormsContainingDocument.java:897)
>        at
> org.orbeon.oxf.xforms.action.actions.XFormsSendAction.execute(XFormsSendAction.java:60)
>        at
> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runSingleIteration(XFormsActionInterpreter.java:297)
>        at
> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runAction(XFormsActionInterpreter.java:258)
>        at
> org.orbeon.oxf.xforms.action.actions.XFormsActionAction$$anonfun$execute$1.apply(XFormsActionAction.scala:62)
> ..................
>
> I am using te nightly build. Thanks for any help.
>
> regards,
> Jeffrey
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Exception-when-doing-Initial-instance-from-service-tp4195549p4195549.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> 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
>


--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Exception when doing Initial instance from service

Erik Bruchez
Administrator
Jeffrey,

The submission is probably the Form Runner submission that call the
service. I am not sure why it would contain a protocol starring with
"xxforms:". Which URL did you set in the service editor?

It's great if you send a reproducible case.

-Erik

On Mon, Dec 19, 2011 at 1:52 AM, jeffhu <[hidden email]> wrote:

> Hi Erik,
>
> I searched the code but didn't find any <xforms:submission> code. In fact, I
> edited most of the code with FB, apart from a couple of "hidden" fields and
> minor formatting. The part of code that might have caused the "submission"
> is following, I think:
>
>                    <xforms:bind id="identitet-email-bind"
> nodeset="identitet-email" name="identitet-email"
>                                 type="xs:string"
>
> xxforms:default="concat(xxforms:get-request-parameter('id'), '@msn.com')"/>
>                    <xforms:bind id="identitet-cv-sprak-bind"
> nodeset="identitet-cv-sprak"
>                                 name="identitet-cv-sprak"
>                                 type="xs:string"
>
> xxforms:default="xxforms:get-request-parameter('lang')"/>
>
> I can try to duplicated the error with a test case later and send the code
> if you need.
>
> regards,
> Jeffrey
>
>
> Erik Bruchez wrote
>>
>> For some reason, this seems to indicate that a submission is using
>> "xxforms" as the protocol. So there is a submission somewhere that
>> must end up with:
>>
>>   <xforms:submission action="xxforms:some/rest/of/url" ...>
>>
>> or:
>>
>>   <xforms:submission resource="xxforms:some/rest/of/url" ...>
>>
>> Can you check if this is in your code?
>>
>> -Erik
>>
>> On Wed, Dec 14, 2011 at 8:03 AM, jeffhu &lt;jeffrey.hu@&gt; wrote:
>>> Hi,
>>>
>>> I am trying to follow the instructions on
>>>
>>> http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-form-runner#TOC-Initial-instance-from-service
>>> http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-form-runner#TOC-Initial-instance-from-service
>>>
>>> Here is my properties-local.xml
>>>
>>> <properties xmlns:xs="http://www.w3.org/2001/XMLSchema"
>>>            xmlns:oxf="http://www.orbeon.com/oxf/processors"
>>>            xmlns:xi="http://www.w3.org/2001/XInclude">
>>>        <property as="xs:boolean" name="oxf.fr.detail.new.accept-post.*.*"
>>> value="true"/>
>>>
>>>    <property as="xs:boolean" name="oxf.fr.detail.new.service.enable.*.*"
>>> value="true"/>
>>>    <property as="xs:string"  name="oxf.fr.detail.new.service.uri.*.*"
>>>
>>>  value="http://localhost:8080/myservlet/data"/>
>>>    <property as="xs:string"
>>> name="oxf.fr.detail.new.service.passing-request-parameters.*.*"
>>>              value="uuid"/>
>>> </properties>
>>>
>>> myservlet uses the given uuid to pull the xml document from eXist and
>>> returns it verbatim (application/xml;charset=UTF-8). Then I call the FR
>>> as
>>> following:
>>>
>>> http://localhost:8080/orbeon-nb/fr/app/form/new?uuid=06dad474502ecd2f5e29f067808aea6f
>>>
>>> However, the form is not filled and I see the following in the log:
>>>
>>> 2011-12-14 15:58:58,588 INFO  ProcessorService  - /fr/cv-bank/main/new -
>>> Timing: 6636
>>> 2011-12-14 15:59:47,435 INFO  ProcessorService  - /fr/cv-bank/main/new -
>>> Received request
>>> 2011-12-14 15:59:47,459 INFO  ProcessorService  -
>>> /fr/service/persistence/crud/app/form/form/form.xhtml - Received request
>>> 2011-12-14 15:59:47,473 INFO  ProcessorService  -
>>> /fr/service/exist/crud/app/form/form/form.xhtml - Received request
>>> 2011-12-14 15:19:53,189 ERROR XFormsServer  - xforms-submit-error -
>>> setting
>>> throwable {throwable: "java.net.MalformedURLException: unknown protocol:
>>> xxforms
>>>        at java.net.URL.<init>(URL.java:590)
>>>        at java.net.URL.<init>(URL.java:480)
>>>        at
>>> org.orbeon.oxf.resources.URLFactory.createURL(URLFactory.java:43)
>>>        at
>>> org.orbeon.oxf.resources.URLFactory.createURL(URLFactory.java:35)
>>>        at
>>> org.orbeon.oxf.xforms.submission.RegularSubmission.connect(RegularSubmission.java:48)
>>>        at
>>> org.orbeon.oxf.xforms.submission.XFormsModelSubmission.doSubmit(XFormsModelSubmission.java:439)
>>>        at
>>> org.orbeon.oxf.xforms.submission.XFormsModelSubmission.performDefaultAction(XFormsModelSubmission.java:278)
>>>        at
>>> org.orbeon.oxf.xforms.xbl.XBLContainer.dispatchEvent(XBLContainer.java:1045)
>>>        at
>>> org.orbeon.oxf.xforms.XFormsContainingDocument.dispatchEvent(XFormsContainingDocument.java:897)
>>>        at
>>> org.orbeon.oxf.xforms.action.actions.XFormsSendAction.execute(XFormsSendAction.java:60)
>>>        at
>>> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runSingleIteration(XFormsActionInterpreter.java:297)
>>>        at
>>> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runAction(XFormsActionInterpreter.java:258)
>>>        at
>>> org.orbeon.oxf.xforms.action.actions.XFormsActionAction$$anonfun$execute$1.apply(XFormsActionAction.scala:62)
>>> ..................
>>>
>>> I am using te nightly build. Thanks for any help.
>>>
>>> regards,
>>> Jeffrey
>>>
>>> --
>>> View this message in context:
>>> http://orbeon-forms-ops-users.24843.n4.nabble.com/Exception-when-doing-Initial-instance-from-service-tp4195549p4195549.html
>>> Sent from the Orbeon Forms (ops-users) mailing list archive at
>>> Nabble.com.
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the ops-users@ mailing list.
>>> To unsubscribe: mailto:ops-users-unsubscribe@
>>> For general help: mailto:sympa@?subject=help
>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>
>>
>>
>> --
>> You receive this message as a subscriber of the ops-users@ mailing list.
>> To unsubscribe: mailto:ops-users-unsubscribe@
>> For general help: mailto:sympa@?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Exception-when-doing-Initial-instance-from-service-tp4195549p4213491.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> 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
>


--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Exception when doing Initial instance from service

jeffhu
Hi Erik,

I didn't realize that I needed to define the service with service editor. I am using the CE so the service editor is not available. Does CE support services that are defined manually? If so could you please point me to the reference for syntax?

My service url is in absolut form (http://localost:8080/myservlet/new?uuid=...), while the example is using a relative form. Does it matter?

In any case I noticed that once I put the properites-local.xml under WEB-INF/classes/config/, there is always the same exception in the log when I create a new document (/orbeon-nb/fr/app/form/new), even for the simplest form. (For the contents of the xml file pls see my original post). And it doesn't matter whether the service (servlet) is running or not.

I enclose the entire log file below. Hope it helps.

orbeon.log

and here is the properties-local.xml:

properties-local.xml

regards,
Jeffrey


Erik Bruchez wrote
Jeffrey,

The submission is probably the Form Runner submission that call the
service. I am not sure why it would contain a protocol starring with
"xxforms:". Which URL did you set in the service editor?

It's great if you send a reproducible case.

-Erik

On Mon, Dec 19, 2011 at 1:52 AM, jeffhu <[hidden email]> wrote:
> Hi Erik,
>
> I searched the code but didn't find any <xforms:submission> code. In fact, I
> edited most of the code with FB, apart from a couple of "hidden" fields and
> minor formatting. The part of code that might have caused the "submission"
> is following, I think:
>
>                    <xforms:bind id="identitet-email-bind"
> nodeset="identitet-email" name="identitet-email"
>                                 type="xs:string"
>
> xxforms:default="concat(xxforms:get-request-parameter('id'), '@msn.com')"/>
>                    <xforms:bind id="identitet-cv-sprak-bind"
> nodeset="identitet-cv-sprak"
>                                 name="identitet-cv-sprak"
>                                 type="xs:string"
>
> xxforms:default="xxforms:get-request-parameter('lang')"/>
>
> I can try to duplicated the error with a test case later and send the code
> if you need.
>
> regards,
> Jeffrey
>
>
> Erik Bruchez wrote
>>
>> For some reason, this seems to indicate that a submission is using
>> "xxforms" as the protocol. So there is a submission somewhere that
>> must end up with:
>>
>>   <xforms:submission action="xxforms:some/rest/of/url" ...>
>>
>> or:
>>
>>   <xforms:submission resource="xxforms:some/rest/of/url" ...>
>>
>> Can you check if this is in your code?
>>
>> -Erik
>>
>> On Wed, Dec 14, 2011 at 8:03 AM, jeffhu <jeffrey.hu@> wrote:
>>> Hi,
>>>
>>> I am trying to follow the instructions on
>>>
>>> http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-form-runner#TOC-Initial-instance-from-service
>>> http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-form-runner#TOC-Initial-instance-from-service
>>>
>>> Here is my properties-local.xml
>>>
>>> <properties xmlns:xs="http://www.w3.org/2001/XMLSchema"
>>>            xmlns:oxf="http://www.orbeon.com/oxf/processors"
>>>            xmlns:xi="http://www.w3.org/2001/XInclude">
>>>        <property as="xs:boolean" name="oxf.fr.detail.new.accept-post.*.*"
>>> value="true"/>
>>>
>>>    <property as="xs:boolean" name="oxf.fr.detail.new.service.enable.*.*"
>>> value="true"/>
>>>    <property as="xs:string"  name="oxf.fr.detail.new.service.uri.*.*"
>>>
>>>  value="http://localhost:8080/myservlet/data"/>
>>>    <property as="xs:string"
>>> name="oxf.fr.detail.new.service.passing-request-parameters.*.*"
>>>              value="uuid"/>
>>> </properties>
>>>
>>> myservlet uses the given uuid to pull the xml document from eXist and
>>> returns it verbatim (application/xml;charset=UTF-8). Then I call the FR
>>> as
>>> following:
>>>
>>> http://localhost:8080/orbeon-nb/fr/app/form/new?uuid=06dad474502ecd2f5e29f067808aea6f
>>>
>>> However, the form is not filled and I see the following in the log:
>>>
>>> 2011-12-14 15:58:58,588 INFO  ProcessorService  - /fr/cv-bank/main/new -
>>> Timing: 6636
>>> 2011-12-14 15:59:47,435 INFO  ProcessorService  - /fr/cv-bank/main/new -
>>> Received request
>>> 2011-12-14 15:59:47,459 INFO  ProcessorService  -
>>> /fr/service/persistence/crud/app/form/form/form.xhtml - Received request
>>> 2011-12-14 15:59:47,473 INFO  ProcessorService  -
>>> /fr/service/exist/crud/app/form/form/form.xhtml - Received request
>>> 2011-12-14 15:19:53,189 ERROR XFormsServer  - xforms-submit-error -
>>> setting
>>> throwable {throwable: "java.net.MalformedURLException: unknown protocol:
>>> xxforms
>>>        at java.net.URL.<init>(URL.java:590)
>>>        at java.net.URL.<init>(URL.java:480)
>>>        at
>>> org.orbeon.oxf.resources.URLFactory.createURL(URLFactory.java:43)
>>>        at
>>> org.orbeon.oxf.resources.URLFactory.createURL(URLFactory.java:35)
>>>        at
>>> org.orbeon.oxf.xforms.submission.RegularSubmission.connect(RegularSubmission.java:48)
>>>        at
>>> org.orbeon.oxf.xforms.submission.XFormsModelSubmission.doSubmit(XFormsModelSubmission.java:439)
>>>        at
>>> org.orbeon.oxf.xforms.submission.XFormsModelSubmission.performDefaultAction(XFormsModelSubmission.java:278)
>>>        at
>>> org.orbeon.oxf.xforms.xbl.XBLContainer.dispatchEvent(XBLContainer.java:1045)
>>>        at
>>> org.orbeon.oxf.xforms.XFormsContainingDocument.dispatchEvent(XFormsContainingDocument.java:897)
>>>        at
>>> org.orbeon.oxf.xforms.action.actions.XFormsSendAction.execute(XFormsSendAction.java:60)
>>>        at
>>> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runSingleIteration(XFormsActionInterpreter.java:297)
>>>        at
>>> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runAction(XFormsActionInterpreter.java:258)
>>>        at
>>> org.orbeon.oxf.xforms.action.actions.XFormsActionAction$$anonfun$execute$1.apply(XFormsActionAction.scala:62)
>>> ..................
>>>
>>> I am using te nightly build. Thanks for any help.
>>>
>>> regards,
>>> Jeffrey
>>>
>>> --
>>> View this message in context:
>>> http://orbeon-forms-ops-users.24843.n4.nabble.com/Exception-when-doing-Initial-instance-from-service-tp4195549p4195549.html
>>> Sent from the Orbeon Forms (ops-users) mailing list archive at
>>> Nabble.com.
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the ops-users@ mailing list.
>>> To unsubscribe: mailto:ops-users-unsubscribe@
>>> For general help: mailto:sympa@?subject=help
>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>
>>
>>
>> --
>> You receive this message as a subscriber of the ops-users@ mailing list.
>> To unsubscribe: mailto:ops-users-unsubscribe@
>> For general help: mailto:sympa@?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Exception-when-doing-Initial-instance-from-service-tp4195549p4213491.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> 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
>


--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Exception when doing Initial instance from service

Alessandro  Vernet
Administrator
Hi Jeffrey,

You don't need to define this service with the service editor for this. The error you were getting was due to a bug in Orbeon Forms, which we just fixed. So if this is still relevant by any chance, feel free to grab a nightly build, and this should now be working. For reference, the bug is:

https://github.com/orbeon/orbeon-forms/issues/435

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet