Xpath in GWT

135 views
Skip to first unread message

Raja

unread,
Aug 18, 2011, 11:41:44 AM8/18/11
to Google Web Toolkit
Hi,

Can someone please help me in using xpath in GWT?
I tried smartgwt xmltools. it is failing.
Is there any alternative for this?

Here is the exception snippet:


java.lang.RuntimeException: Remote test failed at 192.168.123.39 /
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.19) Gecko/
2010031422 Firefox/3.0.19
at com.google.gwt.junit.JUnitShell.processTestResult(JUnitShell.java:
1288)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1408)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1309)
at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:650)
at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:
441)
at junit.framework.TestCase.runBare(TestCase.java:130)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:296)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:
130)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:
38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:
390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:
197)
Caused by: java.lang.Exception:
com.google.gwt.core.client.JavaScriptException: (null): null
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
237)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
132)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.smartgwt.client.data.XMLTools.selectString(XMLTools.java)
at
com.verifone.isd.client.Credential.isPasswordExpired(Credential.java:
82)
...
...
..



Thanks,
Raja

Harald Pehl

unread,
Aug 19, 2011, 3:44:08 AM8/19/11
to google-we...@googlegroups.com
Feel free to take a look at Totoe: http://code.google.com/p/totoe/ 

Totoe is a XML parser with json/xpath and namespace support. If you want to take a quick look at Totoes features check out http://totoe-tester.appspot.com/. There you can enter arbitrary JSON / XML and test your XPath / JSONPath expressions.

- Harald

stuckagain

unread,
Aug 19, 2011, 5:22:28 AM8/19/11
to google-we...@googlegroups.com
I am interested in this! We need better support for XML and XPath in GWT (and it needs to work fast).
The standard GWT wrapper on top of the browser XML support is very much incomplete.
 
But I see that totoe does not allow modifying the document.
Is it planned to implement this in the forseable future ?
 

Harald Pehl

unread,
Aug 19, 2011, 5:50:23 AM8/19/11
to google-we...@googlegroups.com
I agree, modification would be a nice feature. Unfortunately Totoe is one of my spare time projects and recently I do not have much time to implement new features.

- Harald

Reply all
Reply to author
Forward
0 new messages