XPathQuery Eclipse

0
I can't seem to retrieve a list with data from mendix using JAVA call action. com.mendix.core.CoreException: Exception occurred in action 'Microflow [ReportVisualisor.IVK_GeneratePropertyOverBleachImage]', all database changes executed by this action were rolled back at com.mendix.core.actionmanagement.CoreAction.d(SourceFile:553) Caused by: com.mendix.core.CoreException: Exception occurred in microflow 'ReportVisualisor.IVK_GeneratePropertyOverBleachImage' for activity 'Call 'Generate2DGraph'', all database changes executed by this microflow were rolled back at kM.b(SourceFile:252) Caused by: com.mendix.core.CoreException: kL: An exception has occurred for the following request(s): jE (depth = 0): Core.BleachingSequence_PropertyOverBleach = [MendixObject:: type:ReportVisualisor.PropertyOverBleach id:[MendixIdentifier:: guid=281496451547169 objectType=ReportVisualisor.PropertyOverBleach objectTypeHash=5 dataStoreCode=1 objectStoreId=33] state:NORMAL members:{System.owner=MendixObjectMember, changedDate=MendixObjectMember, ReportVisualisor.Report2D_Project=MendixObjectMember, Details=MendixObjectMember, ReportVisualisor.Report2D_Image=MendixObjectMember, ReportVisualisor.Report2D_ProjectSpecies=MendixObjectMember, ReportVisualisor.Report2D_Property=MendixObjectMember, createdDate=MendixObjectMember, Title=MendixObjectMember, System.changedBy=MendixObjectMember} at it.b(SourceFile:167) Caused by: kL: An exception has occurred for the following request(s): jE (depth = 0): Core.BleachingSequence_PropertyOverBleach = [MendixObject:: type:ReportVisualisor.PropertyOverBleach id:[MendixIdentifier:: guid=281496451547169 objectType=ReportVisualisor.PropertyOverBleach objectTypeHash=5 dataStoreCode=1 objectStoreId=33] state:NORMAL members:{System.owner=MendixObjectMember, changedDate=MendixObjectMember, ReportVisualisor.Report2D_Project=MendixObjectMember, Details=MendixObjectMember, ReportVisualisor.Report2D_Image=MendixObjectMember, ReportVisualisor.Report2D_ProjectSpecies=MendixObjectMember, ReportVisualisor.Report2D_Property=MendixObjectMember, createdDate=MendixObjectMember, Title=MendixObjectMember, System.changedBy=MendixObjectMember} Caused by: java.lang.RuntimeException: org.jaxen.XPathSyntaxException: Unexpected '[' at gX.a(SourceFile:120) at gX.a(SourceFile:99) at aI.a(SourceFile:38) at jE.getSuitableRequest(SourceFile:33) at lw.a(SourceFile:64) at jC.a(SourceFile:47) at jm.a(SourceFile:222) at fJ.b(SourceFile:121) at fJ.a(SourceFile:63) at iu.a(SourceFile:58) at iu.executeAction(SourceFile:20) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.retrieveXPathQuery(SourceFile:819) at com.mendix.core.Core.retrieveXPathQuery(SourceFile:973) at reportvisualisor.actions.Generate2DGraph.executeAction(Generate2DGraph.java:58) at reportvisualisor.actions.Generate2DGraph.executeAction(Generate2DGraph.java:1) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.execute(SourceFile:191) at hi.a(SourceFile:70) at kM.a(SourceFile:67) at eR.executeAction(SourceFile:96) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.execute(SourceFile:191) at dB.execute(SourceFile:183) at ju.a(SourceFile:299) at ju.a(SourceFile:230) at ju.processRequest(SourceFile:174) at fF.a(SourceFile:71) at com.mendix.core.MxRuntime.processRequest(SourceFile:938) at com.mendix.m2ee.server.handler.RuntimeHandler.handle(RuntimeHandler.java:42) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) at org.eclipse.jetty.server.Server.handle(Server.java:334) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559) at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1007) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:747) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:209) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436) at java.lang.Thread.run(Unknown Source) Caused by: org.jaxen.XPathSyntaxException: Unexpected '[' at org.jaxen.BaseXPath.<init>(BaseXPath.java:121) at bD.<init>(SourceFile:10) at gX.a(SourceFile:117) at gX.a(SourceFile:99) at aI.a(SourceFile:38) at jE.getSuitableRequest(SourceFile:33) at lw.a(SourceFile:64) at jC.a(SourceFile:47) at jm.a(SourceFile:222) at fJ.b(SourceFile:121) at fJ.a(SourceFile:63) at iu.a(SourceFile:58) at iu.executeAction(SourceFile:20) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.retrieveXPathQuery(SourceFile:819) at com.mendix.core.Core.retrieveXPathQuery(SourceFile:973) at reportvisualisor.actions.Generate2DGraph.executeAction(Generate2DGraph.java:58) at reportvisualisor.actions.Generate2DGraph.executeAction(Generate2DGraph.java:1) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.execute(SourceFile:191) at hi.a(SourceFile:70) at kM.a(SourceFile:67) at eR.executeAction(SourceFile:96) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.execute(SourceFile:191) at dB.execute(SourceFile:183) at ju.a(SourceFile:299) at ju.a(SourceFile:230) at ju.processRequest(SourceFile:174) at fF.a(SourceFile:71) at com.mendix.core.MxRuntime.processRequest(SourceFile:938) at com.mendix.m2ee.server.handler.RuntimeHandler.handle(RuntimeHandler.java:42) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) at org.eclipse.jetty.server.Server.handle(Server.java:334) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559) at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1007) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:747) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:209) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436) at java.lang.Thread.run(Unknown Source) Caused by: org.jaxen.saxpath.XPathSyntaxException: Unexpected '[' at org.jaxen.saxpath.base.XPathReader.createSyntaxException(XPathReader.java:1085) at org.jaxen.saxpath.base.XPathReader.pathExpr(XPathReader.java:190) at org.jaxen.saxpath.base.XPathReader.unionExpr(XPathReader.java:1007) at org.jaxen.saxpath.base.XPathReader.unaryExpr(XPathReader.java:995) at org.jaxen.saxpath.base.XPathReader.multiplicativeExpr(XPathReader.java:943) at org.jaxen.saxpath.base.XPathReader.additiveExpr(XPathReader.java:913) at org.jaxen.saxpath.base.XPathReader.relationalExpr(XPathReader.java:860) at org.jaxen.saxpath.base.XPathReader.equalityExpr(XPathReader.java:840) at org.jaxen.saxpath.base.XPathReader.andExpr(XPathReader.java:809) at org.jaxen.saxpath.base.XPathReader.orExpr(XPathReader.java:787) at org.jaxen.saxpath.base.XPathReader.expr(XPathReader.java:780) at org.jaxen.saxpath.base.XPathReader.parse(XPathReader.java:100) at org.jaxen.BaseXPath.<init>(BaseXPath.java:116) at bD.<init>(SourceFile:10) at gX.a(SourceFile:117) at gX.a(SourceFile:99) at aI.a(SourceFile:38) at jE.getSuitableRequest(SourceFile:33) at lw.a(SourceFile:64) at jC.a(SourceFile:47) at jm.a(SourceFile:222) at fJ.b(SourceFile:121) at fJ.a(SourceFile:63) at iu.a(SourceFile:58) at iu.executeAction(SourceFile:20) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.retrieveXPathQuery(SourceFile:819) at com.mendix.core.Core.retrieveXPathQuery(SourceFile:973) at reportvisualisor.actions.Generate2DGraph.executeAction(Generate2DGraph.java:58) at reportvisualisor.actions.Generate2DGraph.executeAction(Generate2DGraph.java:1) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.execute(SourceFile:191) at hi.a(SourceFile:70) at kM.a(SourceFile:67) at eR.executeAction(SourceFile:96) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.execute(SourceFile:191) at dB.execute(SourceFile:183) at ju.a(SourceFile:299) at ju.a(SourceFile:230) at ju.processRequest(SourceFile:174) at fF.a(SourceFile:71) at com.mendix.core.MxRuntime.processRequest(SourceFile:938) at com.mendix.m2ee.server.handler.RuntimeHandler.handle(RuntimeHandler.java:42) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) at org.eclipse.jetty.server.Server.handle(Server.java:334) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559) at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1007) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:747) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:209) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436) at java.lang.Thread.run(Unknown Source) and there is no "[" in the line of code. Any help on this?
asked
2 answers
1

Please post the code, not just the exception. Did you include the entityname in your query?

Core.retrieveByXPath("//MyObject[Bla => 'bla']", ..)
answered
0

Got it sorted out. Thanks!

answered