What is the XML u are posting look like?
On Wed, Apr 1, 2009 at 1:23 PM, Michael Finger <mfinger(a)overstock.com>wrote:
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=true
#file=/foo/bar/boo.pkg /foo/bar/boo2.pkg
#dir=/my/dir
url=
http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/foo/...
#localCacheDir=/foo/bar/cache
poll=30
name=MyConfig
When I post to the url (via poster in firefox) I get:
<html><head><title>Apache Tomcat/5.5.17 - Error
report</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}HR {color : #525D76;}--></style>
</head><body><h1>HTTP Status 500 - </h1><HR
size="1"
noshade="noshade"><p><b>type</b> Exception
report</p><p><b>message</b>
<u></u></p><p><b>description</b> <u>The server
encountered an internal
error () that prevented it from fulfilling this
request.</u></p><p><b>exception</b>
<pre>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(AbstractPullReader.java:137)
com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:130)
com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:109)
com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.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(KnowledgeStatelessServlet.java:133)
org.drools.server.KnowledgeStatelessServlet.doPost(KnowledgeStatelessServlet.java:82)
javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
</pre></p><p><b>note</b> <u>The full stack trace of
the root cause is
available in the Apache Tomcat/5.5.17 logs.</u></p><HR size="1"
noshade="noshade"><h3>Apache
Tomcat/5.5.17</h3></body></html>
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=true, secondsToRefresh=30
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/...
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(AbstractPullReader.java:137)
at
com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:130)
at
com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:109)
at
com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:94)
at
com.thoughtworks.xstream.io.xml.XppReader.<init>(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(KnowledgeStatelessServlet.java:133)
at
org.drools.server.KnowledgeStatelessServlet.doPost(KnowledgeStatelessServlet.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(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: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.processConnection(Http11BaseProto
col.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Any ideas?
Thanks,
Mike
CONFIDENTIALITY NOTICE: This message is intended only for the use and
review of the individual or entity to which it is addressed and may contain
information that is privileged and confidential. If the reader of this
message is not the intended recipient, or the employee or agent responsible
for delivering the message solely to the intended recipient, you are hereby
notified 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.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users