Get "Invalid control name" error while trying to migrate to Orbeon 3.8

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

Get "Invalid control name" error while trying to migrate to Orbeon 3.8

PrahladOrbeon
I am trying to migrate to Orbeon 3.8 (on Tomcat 7). Although the deployment is successful, I get following exception while clicking on one of the links in the application (which tries to display a new page):
 Since the trace is too long, am pasting only the partial trace.


===========   Trace Starts ==========================

ERROR TeeProcessor  - Tee state was cleared and re-read for output: data
ERROR ProcessorService  - Exception at  (initializing XForms containing document)
org.orbeon.oxf.common.OXFException: Invalid control name: {http://www.w3.org/2002/xforms}variable
        at org.orbeon.oxf.xforms.control.XFormsControlFactory.createXFormsControl(XFormsControlFactory.java:245)
        at org.orbeon.oxf.xforms.ControlTree$CreateControlsListener.startVisitControl(ControlTree.java:771)
       
============== Trace Ends ================

I also verified that there is no "xforms:variable" anywhere in the code.


When the server boots up, these are the few lines for info:

============ Trace Starts ====================

           2011-03-25 15:14:49,375 INFO  XmlLibraryChecker  - Looking for a valid Parser...
           Checking for Xerces, found version Xerces-J 2.9.0
           OK!

           2011-03-25 15:14:49,375 INFO  XmlLibraryChecker  - Looking for a valid Transformer...
           Checking for Saxon, found version 9.1.0.8
           OK!

           2011-03-25 15:14:49,375 INFO  XmlLibraryChecker  - Looking for a valid Resolver...
           Checking for Resolver, found version XmlResolver 1.2
           OK!

           2011-03-25 15:14:49,375 INFO  XmlLibraryChecker  - Using parser
           org.orbeon.oxf.xml.xerces.XercesSAXParser
           2011-03-25 15:14:49,390 INFO  XmlLibraryChecker  - Using transformer
           com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl

 =========  Trace Ends  ======================================


 In the exist-conf.xml, this is the transformer value:
 <transformer class="org.orbeon.saxon.TransformerFactoryImpl"/

 ============================================================


 Please help me.

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

Creating a custom persistence layer

Ramon de Beijer-2
Hi All,

I am using Orbeon 3.8 Form Runner in a Integrated deployment way.
I setup the Form Runner to use MySQL as persistence layer but I decided
that its more logical if I create my own persistence layer
at least for the saving of the data and maybe later on also the loading
of the form definitions.

If I read it correctly this can be done by setting a parameter like:
<property as="xs:anyURI"  name="oxf.fr.persistence.app.uri.*.*.data"
value="http://localhost:8080/orbeon/myservice"/>

Where myservice obviously is my REST implementation
But for now if have no luck with it.

I try to make sence of the documentation regarding how to implement a
REST persistence layer but i got a bit stuck.
Is there an example somewhere how to implement the REST api (with JAVA
preferably) for the Form Runner persistence layer.
So things like the input parameters of the methods and the return values.

Regards Ramon

ps:
I also read a post somewhere that there might be some bug regarding this
whole own persistence layer thing
but not sure if this is true and if it is true if its fixed and in what
release.



--
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: Creating a custom persistence layer

Erik Bruchez
Administrator
Ramon,

To implement the API, you will likely need to do some XML processing.
We don't have a full example in Java specifically for the persistence
API. But in this JSP example, we show how you can parse XML sent
through an HTTP POST:

https://github.com/orbeon/orbeon-forms/blob/master/src/examples-jsp/flickr-search/service-search.jsp

It's just one way of doing it.

There is no serious known bug regarding the persistence layer, at
least no bug that would prevent it to work, since the API is used by
all the built-in implementations, including the eXist and Oracle ones.
Those are not implemented directly in Java, but with XML pipelines,
XSLT, and related XML technologies available in Orbeon Forms.

I would start like this:

1. Set a property just for an a Form Runner app name, e.g. "myapp":

<property as="xs:anyURI"
name="oxf.fr.persistence.app.uri.myapp.*.data"
value="http://localhost:8080/orbeon/myservice"/>

2. Create a form with Form Builder with app name "myapp". Save and
publish the form.

3. Go to the new form's summary page, and say "New".

This will cause Form Runner to do a GET through the URL you have specified:

http://localhost:8080/orbeon/myservice/…

Now obviously you must implement something that responds to that
service. If you do this in the Orbeon Forms webapp, then it makes
sense for the path to start with http://localhost:8080/orbeon/…
otherwise, you have to point to whatever Java Servlet you are
implementing.

-Erik

On Mon, Mar 28, 2011 at 5:21 AM, Ramon de Beijer <[hidden email]> wrote:

> Hi All,
>
> I am using Orbeon 3.8 Form Runner in a Integrated deployment way.
> I setup the Form Runner to use MySQL as persistence layer but I decided that
> its more logical if I create my own persistence layer
> at least for the saving of the data and maybe later on also the loading of
> the form definitions.
>
> If I read it correctly this can be done by setting a parameter like:
> <property as="xs:anyURI"  name="oxf.fr.persistence.app.uri.*.*.data"
> value="http://localhost:8080/orbeon/myservice"/>
>
> Where myservice obviously is my REST implementation
> But for now if have no luck with it.
>
> I try to make sence of the documentation regarding how to implement a REST
> persistence layer but i got a bit stuck.
> Is there an example somewhere how to implement the REST api (with JAVA
> preferably) for the Form Runner persistence layer.
> So things like the input parameters of the methods and the return values.
>
> Regards Ramon
>
> ps:
> I also read a post somewhere that there might be some bug regarding this
> whole own persistence layer thing
> but not sure if this is true and if it is true if its fixed and in what
> release.
>
>
>
> --
> 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: Get "Invalid control name" error while trying to migrate to Orbeon 3.8

Erik Bruchez
Administrator
In reply to this post by PrahladOrbeon
Prahlad,

The reason of the issue I think is that you used xforms:variable
somewhere instead of xxforms:variable.

The TeeProcessor error is a bit worrying: does the app you are
migrating use custom processors? If so, that could indicate that such
a processor is trying "illegally" to read an input twice.

-Erik

On Sat, Mar 26, 2011 at 12:04 AM, PrahladOrbeon
<[hidden email]> wrote:

> I am trying to migrate to Orbeon 3.8 (on Tomcat 7). Although the deployment
> is successful, I get following exception while clicking on one of the links
> in the application (which tries to display a new page):
>  Since the trace is too long, am pasting only the partial trace.
>
>
> ===========   Trace Starts ==========================
>
> ERROR TeeProcessor  - Tee state was cleared and re-read for output: data
> ERROR ProcessorService  - Exception at  (initializing XForms containing
> document)
> org.orbeon.oxf.common.OXFException: Invalid control name:
> {http://www.w3.org/2002/xforms}variable
>        at
> org.orbeon.oxf.xforms.control.XFormsControlFactory.createXFormsControl(XFormsControlFactory.java:245)
>        at
> org.orbeon.oxf.xforms.ControlTree$CreateControlsListener.startVisitControl(ControlTree.java:771)
>
> ============== Trace Ends ================
>
> I also verified that there is no "xforms:variable" anywhere in the code.
>
>
> When the server boots up, these are the few lines for info:
>
> ============ Trace Starts ====================
>
>           2011-03-25 15:14:49,375 INFO  XmlLibraryChecker  - Looking for a
> valid Parser...
>           Checking for Xerces, found version Xerces-J 2.9.0
>           OK!
>
>           2011-03-25 15:14:49,375 INFO  XmlLibraryChecker  - Looking for a
> valid Transformer...
>           Checking for Saxon, found version 9.1.0.8
>           OK!
>
>           2011-03-25 15:14:49,375 INFO  XmlLibraryChecker  - Looking for a
> valid Resolver...
>           Checking for Resolver, found version XmlResolver 1.2
>           OK!
>
>           2011-03-25 15:14:49,375 INFO  XmlLibraryChecker  - Using parser
>           org.orbeon.oxf.xml.xerces.XercesSAXParser
>           2011-03-25 15:14:49,390 INFO  XmlLibraryChecker  - Using
> transformer
>           com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl
>
>  =========  Trace Ends  ======================================
>
>
>  In the exist-conf.xml, this is the transformer value:
>  <transformer class="org.orbeon.saxon.TransformerFactoryImpl"/
>
>  ============================================================
>
>
>  Please help me.
>
>  regards,
>  Prahlad
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Get-Invalid-control-name-error-while-trying-to-migrate-to-Orbeon-3-8-tp3407120p3407120.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: Get "Invalid control name" error while trying to migrate to Orbeon 3.8

PrahladOrbeon
In reply to this post by PrahladOrbeon
Hi Erik,

That was spot on !! Thanx a lot Erik. You saved my lot of time.
Actually initially while I was trying to search this tag/text 'xforms:variable', the windows search did not show it anywhere. So I thought I am not using it anywhere. But eventually I came across such texts.

Once again, thanx Erik.

cheers,
Prahlad
Reply | Threaded
Open this post in threaded view
|

Re: Re: Get "Invalid control name" error while trying to migrate to Orbeon 3.8

Erik Bruchez
Administrator
You're welcome. I love it when there is a simple explanation!

-Erik

On Mon, Mar 28, 2011 at 10:04 PM, PrahladOrbeon
<[hidden email]> wrote:

> Hi Erik,
>
> That was spot on !! Thanx a lot Erik. You saved my lot of time.
> Actually initially while I was trying to search this tag/text
> 'xforms:variable', the windows search did not show it anywhere. So I thought
> I am not using it anywhere. But eventually I came across such texts.
>
> Once again, thanx Erik.
>
> cheers,
> Prahlad
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Get-Invalid-control-name-error-while-trying-to-migrate-to-Orbeon-3-8-tp3407120p3413761.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