Mark Proctor wrote:
>
> Diablo_UK wrote:
>> Just done a little bit more digging and it seems that the
exception is
>> occuring when the package is attempted to be read.
>>
>> If I point a browser at the url, I get the "opening package"
dialog from
>> the
>> browser. Does this mean that Guvnor hasn't generated the
package
>> correctly?
>>
>> Anyone got *any* ideas?
>>
> Rules Dev is for the development of drools, not for questions
about the
> use of drools. Please ask this on the user mailing list, which is
> detailed in the link below. Please also read the 17 netiquette
points.
>
http://www.jboss.org/drools/lists.html
> "The user mailing list is for general user querries about drools
and how
> to use and it problems with using it. The dev mailing list is for
more
> hard core discussions about about developing drools itself and
general
> rules/ai theory that might apply to future drools features."
>> Diablo_UK wrote:
>>
>>> Hi guys,
>>>
>>> I'm very new to Guvnor and Drools and all these exciting
tools.
>>>
>>> I'm working my way through the example that I found here:
>>>
>>>
http://www.jboss.org/feeds/post/jboss_drools_how_to_tuning_guvnor_part_1
>>>
>>> and everything was just fine and dandy until I had to run
the java code!
>>> Unfortunately, I get the following output:
>>>
>>> RuleAgent(default) INFO (Tue Feb 24 17:20:57 GMT 2009):
Configuring with
>>> newInstance=false, secondsToRefresh=-1
>>> RuleAgent(default) INFO (Tue Feb 24 17:20:57 GMT 2009):
Configuring
>>> package provider : URLScanner monitoring URLs:
>>>
http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/myNewPackage/LATEST
>>> RuleAgent(default) EXCEPTION (Tue Feb 24 17:20:58 GMT
2009): null. Stack
>>> trace should follow.
>>> java.io.OptionalDataException
>>> at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1340)
>>> at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
>>> at
org.drools.agent.HttpClientImpl.fetchPackage(HttpClientImpl.java:59)
>>> at
org.drools.agent.URLScanner.readPackage(URLScanner.java:138)
>>> at
org.drools.agent.URLScanner.getChangeSet(URLScanner.java:110)
>>> at
org.drools.agent.URLScanner.loadPackageChanges(URLScanner.java:88)
>>> at
org.drools.agent.RuleAgent.checkForChanges(RuleAgent.java:330)
>>> at
org.drools.agent.RuleAgent.refreshRuleBase(RuleAgent.java:298)
>>> at
org.drools.agent.RuleAgent.configure(RuleAgent.java:284)
>>> at org.drools.agent.RuleAgent.init(RuleAgent.java:208)
>>> at
org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:176)
>>> at
org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:148)
>>> at
org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:216)
>>> at com.ioko.GuvnorTest.main(GuvnorTest.java:27)
>>> com.ioko.Driver
>>>
>>> But I have no idea why!!!!
>>>
>>> Can any of you guys please please please help a newbie?
>>>
>>> Many thanks,
>>> Adrian M Bell
>>>
>>>
>>
>>
>
>