hi all,
I'm trying to do the same example
(
http://magazine.redhat.com/2008/08/12/jboss-drools-how-to-tuning-guvnor-p....
I created the file Guvnor.properties but I can not log in because I must
enter correct username and password and I do not know how to do that.
I get the following error:
RuleAgent(default) EXCEPTION (Tue Jan 18 15:45:08 CET 2011): Server returned
HTTP response code: 401 for URL:
http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/prov....
Stack trace should follow.
java.io.IOException: Server returned HTTP response code: 401 for URL:
http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/prov...
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)
at org.drools.agent.HttpClientImpl.fetchPackage(HttpClientImpl.java:50)
at org.drools.agent.URLScanner.readPackage(URLScanner.java:148)
at org.drools.agent.URLScanner.getChangeSet(URLScanner.java:120)
at org.drools.agent.URLScanner.loadPackageChanges(URLScanner.java:96)
at org.drools.agent.RuleAgent.checkForChanges(RuleAgent.java:410)
at org.drools.agent.RuleAgent.refreshRuleBase(RuleAgent.java:362)
at org.drools.agent.RuleAgent.configure(RuleAgent.java:347)
at org.drools.agent.RuleAgent.init(RuleAgent.java:247)
at org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:187)
at org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:147)
at org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:256)
at kijanowski.eu.GuvnorTest.main(GuvnorTest.java:18)
Exception in thread "main" java.lang.NullPointerException
at org.drools.agent.RuleAgent.refreshRuleBase(RuleAgent.java:363)
at org.drools.agent.RuleAgent.configure(RuleAgent.java:347)
at org.drools.agent.RuleAgent.init(RuleAgent.java:247)
at org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:187)
at org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:147)
at org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:256)
at kijanowski.eu.GuvnorTest.main(GuvnorTest.java:18)
I'm using Guvnor 5.1 and I read that I must modify the file ChangeSet.xml
but I don't understand how.
Can anyone help me?
Thanks
Erika
Jaroslaw Kijanowski-3 wrote:
Hey John,
have you created a Drools Project in Eclipse? Then put the file in
src/main/java
It will be copied over to the bin directory automatically and then
picked up when running your app.
Cheers,
Jarek
John Peterson wrote:
> I’m using the example code from the Red Hat Magazine -
>
___http://magazine.redhat.com/2008/08/12/jboss-drools-how-to-tuning-guvno...
> - to try to get the sample code to work, but I keep getting the
> following error:
>
> Exception in thread "main"___ java.lang.NullPointerException_
>
> at java.util.Properties$LineReader.readLine(Unknown Source)
>
> at java.util.Properties.load0(Unknown Source)
>
> at java.util.Properties.load(Unknown Source)
>
> at
> org.drools.agent.RuleAgent.loadFromProperties(___RuleAgent.java:299_)
>
> at
> org.drools.agent.RuleAgent.newRuleAgent(___RuleAgent.java:256_)
>
> at test.GuvnorTest.main(___GuvnorTest.java:15_)
>
> It appears to be unable to find my ‘Guvnor.properties’ file, but I have
> it in the classpath (I actually have it in several different places on
> my C: drive as I tried to figure out why it couldn’t find it). Does
> anyone have any thoughts on what’s wrong here?
>
> I’d appreciate any guidance. It seems like this should be a simple
> answer but I haven’t been able to figure it out.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Trying-to-get-Eclipse...
Sent from the Drools - User mailing list archive at
Nabble.com.