W3C home > Mailing lists > Public > www-forms@w3.org > March 2005

Re: [Chiba-users] Urgent, Critical Chiba Error

From: Jason Eacott <jeacott@hardlight.com.au>
Date: Sun, 13 Mar 2005 17:40:55 +1030
To: sano@strings.net, joern Turner <joern.turner@web.de>
Cc: www-forms@w3.org
Message-ID: <42347B27.8100.EFC4933@localhost>

Hi and thanks,
	I extracted fresh source, rebuilt it, and all was well.
I cannot believe I spent a whole day trying to figure this out.
I still have absolutely no idea what went wrong. I recompiled dozens of times, 
clean, not clean etc, in 2 different contexts one with unpacked classes and 
one with the chiba.jar all with same weird result.

Sorry for the panic - but I really was :(

thanks all
Jason.


Copies to:      	chiba-users@lists.sourceforge.net
From:           	sano@strings.net
Subject:        	Re: [Chiba-users] Urgent, Critical Chiba Error
Date sent:      	Sat, 12 Mar 2005 22:54:06 -0500
To:             	jeacott@hardlight.com.au

> I can't reproduce the described behavior - all seems to be working ok.
> 
> Running Chiba 1.0.0 on MacOS X running java version "1.4.2_05"
> 
> A.
> 
> On Mar 12, 2005, at 8:12 PM, Jason Eacott wrote:
> 
> > Hi All,
> > 	I have discovered a massive problem with Chiba 1.0
> > i cannot run different forms in different browsers simultaneously!!!
> > this is a total showstopper for me (and others I would imagine).
> >
> > this is very easy to reproduce, even with the chiba servlet demo.
> >
> > to reproduce:
> > start the Chiba demo
> > open the chiba demo in a browser so you can see the list of forms.
> > choose - say address.xhtml
> >
> > now:
> > in ANOTHER browser do the same thing but
> > choose - say colors.xhtml
> >
> > now go back to the first browser and try hitting the insert after. (or  
> > just about any button - incidentally
> > the reset button seems to break this form completely anyway, all by  
> > itself!)
> >
> > you'll get one of a variety of messages, like the following:
> > they all seem to stem from
> > 	at  
> > org.chiba.adapter.web.HttpRequestHandler.handleData(HttpRequestHandler. 
> > java:351)
> >
> > java.lang.ClassCastException: org.chiba.xml.xforms.action.ActionAction
> > 	at  
> > org.chiba.xml.xforms.ChibaBean.updateControlValue(ChibaBean.java:658)
> > 	at  
> > org.chiba.xml.xforms.ChibaBean.updateControlValue(ChibaBean.java:631)
> > 	at  
> > org.chiba.adapter.web.HttpRequestHandler.handleData(HttpRequestHandler. 
> > java:351)
> > 	at
> > org.chiba.adapter.web.HttpRequestHandler.processMultiPartRequest(HttpRe 
> > questHandler.java:287)
> > 	at  
> > org.chiba.adapter.web.HttpRequestHandler.handleRequest(HttpRequestHandl 
> > er.java:187)
> > 	at  
> > org.chiba.adapter.web.HttpRequestHandler.execute(HttpRequestHandler.jav 
> > a:164)
> > 	at  
> > org.chiba.adapter.web.ServletAdapter.executeHandler(ServletAdapter.java 
> > :216)
> >
> > or
> >
> > org.chiba.xml.xforms.exception.XFormsException:  
> > org.w3c.dom.DOMException:
> > WRONG_DOCUMENT_ERR: A node is used in a different document than the  
> > one that created it.
> > 	at org.chiba.xml.xforms.Container.dispatch(Container.java:492)
> > 	at org.chiba.xml.xforms.Container.dispatch(Container.java:448)
> > 	at org.chiba.xml.xforms.Container.dispatch(Container.java:429)
> > 	at org.chiba.xml.xforms.ChibaBean.dispatch(ChibaBean.java:540)
> > 	at  
> > org.chiba.adapter.web.HttpRequestHandler.handleRequest(HttpRequestHandl 
> > er.java:198)
> > 	at  
> > org.chiba.adapter.web.HttpRequestHandler.execute(HttpRequestHandler.jav 
> > a:164)
> > 	at  
> > org.chiba.adapter.web.ServletAdapter.executeHandler(ServletAdapter.java 
> > :216)
> >
> > often a null pointer, or various other errors.
> >
> > anyway the upshot is that there is obviously corruption of what should  
> > be individual session objects.
> > I'm hoping the problem is limited to the sample servlet implementation  
> > here, and not Chiba itself, but I
> > have tried to follow it but I cant see any clear place where there  
> > might be a singleton abused, or
> > something that should be in a session or request variable that isnt.
> > Please help, I hope that someone more familiar with the code can spot  
> > the answer quickly.
> >
> > thank you in advance
> > Jason.
> >
> > -------------------------------------------------------
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products from real  
> > users.
> > Discover which products truly live up to the hype. Start reading now.
> > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> > _______________________________________________
> > Chiba-users mailing list
> > Chiba-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/chiba-users
> >
> >
> Alexander Zatko
> alexander.zatko@strings.net
> mobile	412 805-3259
> 
Received on Sunday, 13 March 2005 07:15:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:00 GMT