[rules-users] Use Knowledge Agent

Michael Anstis michael.anstis at gmail.com
Wed Oct 20 16:04:22 EDT 2010


"This" being
http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-war-5-1-td1474465.html

;-)

On 20 October 2010 21:03, Michael Anstis <michael.anstis at gmail.com> wrote:

> Guvnor 5.1 authenticates requests; hence the HTTP401.
>
> This<http://drools-java-rules-engine.46999.n3.nabble.com/How-to-modify-changeset-xml-in-guvnor-td1404619.html%20>is most applicable to your requirement however there are other ways to pass
> BASIC authentication in a Http request.
>
>
> On 20 October 2010 20:54, java.developer.researcher <
> java.developer.researcher at gmail.com> wrote:
>
>>
>> Hello,
>>
>> I am trying of integrate Drools Guvnor with an java web application. I am
>> using KnowledgeAgent, but occurs the next exception when execute the code:
>>
>> java.lang.RuntimeException: java.io.IOException: Server returned HTTP
>> response code: 401 for URL:
>>
>> http://localhost:8383/drools-guvnor/org.drools.guvnor.Guvnor/package/org.examples/org.examples
>>        at
>>
>> org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:559)
>>        at
>>
>> org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:25)
>>        at
>>
>> org.examples.test.TestKnowledgeAgent.getKnowledgeBase(TestKnowledgeAgent.java:63)
>>        at
>> org.examples.test.TestKnowledgeAgent.main(TestKnowledgeAgent.java:28)
>> Caused by: java.io.IOException: Server returned HTTP response code: 401
>> for
>> URL:
>>
>> http://localhost:8383/drools-guvnor/org.drools.guvnor.Guvnor/package/org.examples/org.examples
>>        at
>> sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
>>        at
>> org.drools.io.impl.UrlResource.getInputStream(UrlResource.java:76)
>>        at
>>
>> org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:512)
>>        ... 3 more
>> Exception in thread "main" java.lang.NullPointerException
>>        at
>> org.examples.test.TestKnowledgeAgent.main(TestKnowledgeAgent.java:37)
>>
>>     What is the cause of this exception? How can I solved it?
>>
>> Any help is welcome.
>>
>> Regards,
>> --
>> View this message in context:
>> http://drools-java-rules-engine.46999.n3.nabble.com/Use-Knowledge-Agent-tp1741354p1741354.html
>> Sent from the Drools - User mailing list archive at Nabble.com.
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101020/0b8c47ea/attachment.html 


More information about the rules-users mailing list