RE: [Webunitproj-users] random errors - please help!
Brought to you by:
dgan
From: Brian K. <bt...@ne...> - 2003-07-21 16:42:43
|
I figured out what is happening... there is a bug in the way an onchange event is fired for a select tag. Currently when you set an option on a select drop-down, ExplorerNativeWebClient only has a handle to WebOptionField, with this it tries to get it's parent (the select tag) by calling el.getParentElement(). Unfortunately the parent is sometimes null which is causing the null pointer exception on line 657. Don't know why it's randomly null though. I was able to create a hacked fix locally, by firing the onchange event directly on the select tag, rather than getting the option's parent. The clean fix will be much more involved though, and I will probably need to get some feedback on the best implementation approach in order to create a patch. Thanks, Brian -----Original Message----- From: Doron [mailto:dg...@sh...]=20 Sent: Monday, July 21, 2003 8:54 AM To: Brian Knorr Cc: web...@li... Subject: Re: [Webunitproj-users] random errors - please help! Hi Brian, Sounds like there maybe a spurious timing issue (hard to solve as it is spurious). It would hard to debug it without actually being there. Is there some javascript that changes the page while web unit is trying to do something? It looks like the error is here: com/zeborg/webunit/ie/ExplorerNativeWebClient.setOption (ExplorerNativeWebClient.java:65 You may want to look at that line of code and see what would cause a null pointer exception there. -Doron =09 On Sun, 2003-07-20 at 16:49, Brian Knorr wrote: > We are encountering some very strange problems with webunit... we can > run a webunit script with no problems and then run it again an > encounter errors ("Bad Stuff happened")... it's very random - we cannot > cause something to fail consistently. Here is one of the stack > tracing we get when these random errors occur... please help... thanks. >=20 > =20 >=20 > =20 >=20 > java.lang.NullPointerException >=20 > at com/zeborg/webunit/ie/ExplorerNativeWebClient.setOption > (ExplorerNativeWebClient.java:657) >=20 > at java/lang/reflect/Method.invoke (Method.java) >=20 > at com/zeborg/iorpc/RemoteProcessServer.process > (RemoteProcessServer.java:125) >=20 > at com/zeborg/iorpc/RemoteProcessServer.run > (RemoteProcessServer.java:179) >=20 > at com/zeborg/webunit/ie/ExplorerIORPCServer.main > (ExplorerIORPCServer.java:35) >=20 > toStrign(Th) >=20 > toString(Throwable) >=20 > toString(Throwable) >=20 > Error invoking method:setOption er:java.rmi.RemoteException: Error > invoking method:java.rmi.RemoteException: Error on invoking: > com.zeborg.webunit.ie.ExplorerNativeWebClient.setOptionjava.lang.reflect .InvocationTargetException >=20 > at java/lang/reflect/Method.invoke (Method.java) >=20 > at com/zeborg/iorpc/RemoteProcessServer.process > (RemoteProcessServer.java:125) >=20 > at com/zeborg/iorpc/RemoteProcessServer.run > (RemoteProcessServer.java:179) >=20 > at com/zeborg/webunit/ie/ExplorerIORPCServer.main > (ExplorerIORPCServer.java:35) >=20 > =20 >=20 > RootCause:java.lang.RuntimeException: Error in > click:java.lang.NullPointerException >=20 > at com/zeborg/webunit/ie/ExplorerNativeWebClient.setOption > (ExplorerNativeWebClient.java:657) >=20 > at java/lang/reflect/Method.invoke (Method.java) >=20 > at com/zeborg/iorpc/RemoteProcessServer.process > (RemoteProcessServer.java:125) >=20 > at com/zeborg/iorpc/RemoteProcessServer.run > (RemoteProcessServer.java:179) >=20 > at com/zeborg/webunit/ie/ExplorerIORPCServer.main > (ExplorerIORPCServer.java:35) >=20 > =20 >=20 > at com/zeborg/webunit/ie/ExplorerNativeWebClient.setOption > (ExplorerNativeWebClient.java:660) >=20 > at java/lang/reflect/Method.invoke (Method.java) >=20 > at com/zeborg/iorpc/RemoteProcessServer.process > (RemoteProcessServer.java:125) >=20 > at com/zeborg/iorpc/RemoteProcessServer.run > (RemoteProcessServer.java:179) >=20 > at com/zeborg/webunit/ie/ExplorerIORPCServer.main > (ExplorerIORPCServer.java:35) >=20 > =20 >=20 > <<no stack trace available>> |