From mfinger at overstock.com Wed Apr 1 13:19:19 2009 Content-Type: multipart/mixed; boundary="===============3989327420764366702==" MIME-Version: 1.0 From: Michael Finger To: rules-users at lists.jboss.org Subject: [rules-users] Problem with execution server Date: Wed, 01 Apr 2009 11:23:00 -0600 Message-ID: <49D3A2F4.60309@overstock.com> --===============3989327420764366702== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable I'm running CR1 (Guvnor and exec server) on Tomcat (tried v 5XX and 6XX) I've tried this with the mortgage package and then went simpler, I'm getting the same error. The package now has one rule: when eval(true) then System.out.println("It works"); Compiles fine on govner, etc. My rule agent configuration is: newInstance=3Dtrue #file=3D/foo/bar/boo.pkg /foo/bar/boo2.pkg #dir=3D/my/dir url=3Dhttp://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/= foo/test #localCacheDir=3D/foo/bar/cache poll=3D30 name=3DMyConfig When I post to the url (via poster in firefox) I get: Apache Tomcat/5.5.17 - Error report

HTTP Status 500 -


type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

com.thoughtworks.xstream.io.StreamException:  : only whitespace
content allowed before start tag and not . (position: START_DOCUMENT
seen .... @1:1)

com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:78)

com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPu=
llReader.java:137)

com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullRe=
ader.java:130)

com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.=
java:109)

com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullRea=
der.java:94)

com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:48)

com.thoughtworks.xstream.io.xml.XppDriver.createReader(XppDriver.java:44)

com.thoughtworks.xstream.io.xml.XppDriver.createReader(XppDriver.java:49)
    com.thoughtworks.xstream.XStream.fromXML(XStream.java:861)

org.drools.server.KnowledgeStatelessServlet.doService(KnowledgeStatelessSer=
vlet.java:133)

org.drools.server.KnowledgeStatelessServlet.doPost(KnowledgeStatelessServle=
t.java:82)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.


Apache Tomcat/5.5.17

The full stack trace in the log doesn't contain much more info: Apr 1, 2009 11:07:04 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 1402 ms RuleAgent(MyConfig) INFO (Wed Apr 01 11:07:21 MDT 2009): Configuring with newInstance=3Dtrue, secondsToRefresh=3D30 RuleAgent(MyConfig) INFO (Wed Apr 01 11:07:21 MDT 2009): Configuring package provider : URLScanner monitoring UR Ls: http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/foo/te= st RuleAgent(MyConfig) INFO (Wed Apr 01 11:07:23 MDT 2009): Applying changes to the rulebase. RuleAgent(MyConfig) INFO (Wed Apr 01 11:07:23 MDT 2009): Creating a new rulebase as per settings. RuleAgent(MyConfig) INFO (Wed Apr 01 11:07:23 MDT 2009): Adding package called foo Apr 1, 2009 11:07:23 AM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet statelessService threw exception com.thoughtworks.xstream.io.StreamException: : only whitespace content allowed before start tag and not . (posi tion: START_DOCUMENT seen .... @1:1) at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:78) at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPu= llReader.java:137) at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullRe= ader.java:130) at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.= java:109) at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullRea= der.java:94) at com.thoughtworks.xstream.io.xml.XppReader.(XppReader.java:48) at com.thoughtworks.xstream.io.xml.XppDriver.createReader(XppDriver.java:44) at com.thoughtworks.xstream.io.xml.XppDriver.createReader(XppDriver.java:49) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:861) at org.drools.server.KnowledgeStatelessServlet.doService(KnowledgeStatelessSer= vlet.java:133) at org.drools.server.KnowledgeStatelessServlet.doPost(KnowledgeStatelessServle= t.java:82) at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio= nFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC= hain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j= ava:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j= ava:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:12= 6) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:10= 5) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav= a:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.process= Connection(Http11BaseProto col.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.ja= va:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerW= orkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja= va:684) at java.lang.Thread.run(Thread.java:595) Any ideas? Thanks, Mike CONFIDENTIALITY NOTICE: This message is intended only for the use and revi= ew of the individual or entity to which it is addressed and may contain inf= ormation that is privileged and confidential. If the reader of this messag= e is not the intended recipient, or the employee or agent responsible for d= elivering the message solely to the intended recipient, you are hereby noti= fied that any dissemination, distribution or copying of this communication = is strictly prohibited. If you have received this communication in error, = please notify sender immediately by telephone or return email. Thank you. --===============3989327420764366702==--