xforms debugging hints requested

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

xforms debugging hints requested

ilango_g
Hi
I have an Xform that will not deploy at all, because of some error in it. Debugging is a painful process, but I am learning. The Orbeon sandbox helped me along the way. I have used schema/XML validators to iron out some errors. But I am still stuck. Orbeon Sandbox is not able to detect (?) my error or something else is happening..

I am not asking anyone to debug the code for me, because I know everyone is so busy and I have no intention of burdening anyone.

But how can I debug this piece of code? Any suggestions are helpful. I hate to attach my files here, because I feel like I would be troubling people here..

thanks anyways
Reply | Threaded
Open this post in threaded view
|

Re: xforms debugging hints requested

Alessandro Vernet
Administrator
XGuy wrote
I have an Xform that will not deploy at all, because of some error in it. Debugging is a painful process, but I am learning. The Orbeon sandbox helped me along the way. I have used schema/XML validators to iron out some errors. But I am still stuck. Orbeon Sandbox is not able to detect (?) my error or something else is happening..
Are you saying that your XForms loads fine in the XForms sandbox, but then doesn't work as expected? If there are errors, you should either see them right away when you load the form, or if those are submission errors, you should see something in the log.

If you are using Tomcat, in most cases you will find the Orbeon Forms log file in the Tomcat logs directory (ops.log). If you don't find it there, check the configuration you have in the resources/config/log4j.xml.

Alex
Reply | Threaded
Open this post in threaded view
|

Re: xforms debugging hints requested

Colin Berry
In reply to this post by ilango_g
XGuy wrote:

> Hi
> I have an Xform that will not deploy at all, because of some error in it.
> Debugging is a painful process, but I am learning. The Orbeon sandbox helped
> me along the way. I have used schema/XML validators to iron out some errors.
> But I am still stuck. Orbeon Sandbox is not able to detect (?) my error or
> something else is happening..
>
> I am not asking anyone to debug the code for me, because I know everyone is
> so busy and I have no intention of burdening anyone.
>
> But how can I debug this piece of code? Any suggestions are helpful. I hate
> to attach my files here, because I feel like I would be troubling people
> here..
>
> thanks anyways
>  
Three easy things. Are you using a dedicated xml editor? I once spent a
week on what I thought was a speck on the screen (it was a comma).
oXygen found it right away. This is even better when you can validate as
you go.
Second, look at your log. By selecting (ie uncommenting) <appender-ref
ref="ConsoleAppender"/> in log4j.xml, you should get all your error
messages into catalina.out. The default probably puts them in ops.log.
In any case, constant reference to this file will save much hair pulling.

Third, never start a script, page or program from a blank page. Always
find someone else's work that is close and sequentially modify it until
you get what you need. Debug and backup each step for when you stray way
off the path. That way you have only your last area of focus to search
for errors.

But don't feel bad about posting your code. If the only questions people
ask are really hard then Erik has to answer them all. Ask easy questions
and we can all help. Which is supposed to be how this works.

While I'm ranting... stop worrying about page layout until everything
works. Then do like the boys here in Appalachia do at closing time: have
a couple beers and whatever is in front of you will look a lot better.

 


--
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: xforms debugging hints requested

ilango_g
I am not using a dedicated XML editor. However I did use the XML PLugin under Notepad++. Perhaps that is not enough (??)
I will try your suggestions now and also post the code here.

 

Colin Berry wrote
XGuy wrote:
> Hi
> I have an Xform that will not deploy at all, because of some error in it.
> Debugging is a painful process, but I am learning. The Orbeon sandbox helped
> me along the way. I have used schema/XML validators to iron out some errors.
> But I am still stuck. Orbeon Sandbox is not able to detect (?) my error or
> something else is happening..
>
> I am not asking anyone to debug the code for me, because I know everyone is
> so busy and I have no intention of burdening anyone.
>
> But how can I debug this piece of code? Any suggestions are helpful. I hate
> to attach my files here, because I feel like I would be troubling people
> here..
>
> thanks anyways
>  
Three easy things. Are you using a dedicated xml editor? I once spent a
week on what I thought was a speck on the screen (it was a comma).
oXygen found it right away. This is even better when you can validate as
you go.
Second, look at your log. By selecting (ie uncommenting) <appender-ref
ref="ConsoleAppender"/> in log4j.xml, you should get all your error
messages into catalina.out. The default probably puts them in ops.log.
In any case, constant reference to this file will save much hair pulling.

Third, never start a script, page or program from a blank page. Always
find someone else's work that is close and sequentially modify it until
you get what you need. Debug and backup each step for when you stray way
off the path. That way you have only your last area of focus to search
for errors.

But don't feel bad about posting your code. If the only questions people
ask are really hard then Erik has to answer them all. Ask easy questions
and we can all help. Which is supposed to be how this works.

While I'm ranting... stop worrying about page layout until everything
works. Then do like the boys here in Appalachia do at closing time: have
a couple beers and whatever is in front of you will look a lot better.

 


--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: xforms debugging hints requested

ilango_g
In reply to this post by Alessandro Vernet
I admit I have not been looking at the log file in Tomcat at all. I do see a strange error "element html not allowed here". I do not know what that means.


Alessandro Vernet wrote
XGuy wrote
I have an Xform that will not deploy at all, because of some error in it. Debugging is a painful process, but I am learning. The Orbeon sandbox helped me along the way. I have used schema/XML validators to iron out some errors. But I am still stuck. Orbeon Sandbox is not able to detect (?) my error or something else is happening..
Are you saying that your XForms loads fine in the XForms sandbox, but then doesn't work as expected? If there are errors, you should either see them right away when you load the form, or if those are submission errors, you should see something in the log.

If you are using Tomcat, in most cases you will find the Orbeon Forms log file in the Tomcat logs directory (ops.log). If you don't find it there, check the configuration you have in the resources/config/log4j.xml.

Alex
Reply | Threaded
Open this post in threaded view
|

Re: xforms debugging hints requested

Alessandro Vernet
Administrator
On Jan 14, 2008 1:07 PM, XGuy <[hidden email]> wrote:
>
> I admit I have not been looking at the log file in Tomcat at all. I do see a
> strange error "element html not allowed here". I do not know what that
> means.

Could you quote the full exception or error message?

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.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