[rules-users] KnowledgeAgent doesn't throw an exception even if it is not able to get the resource

Harshit Bapna hrbapna at gmail.com
Tue Jan 18 11:18:02 EST 2011


Hello All,

I am using knowledgeAgent to retrieve a resource from Guvnor.
I have deliberately stopped the Guvnor to check if it throws any error but
KnowledgeAgent eats up the error.
*How can it be detected that an error occurred during creation of
knowledgeBase?*

*ConsoleOutput:*
Although KnowledgeAgent does logging in console
[2011:01:18 21:01:916:exception]
java.lang.RuntimeException: KnowledgeAgent exception while trying to
deserialize KnowledgeDefinitionsPackage
    at
org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(KnowledgeAgentImpl.java:664)
    at
org.drools.agent.impl.KnowledgeAgentImpl.addResourcesToKnowledgeBase(KnowledgeAgentImpl.java:889)
    at
org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgentImpl.java:704)
    ...
*Caused by: java.net.UnknownHostException: <hostName>*
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
    at java.net.Socket.connect(Socket.java:520)
    at java.net.Socket.connect(Socket.java:470)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110118/e03a1e3c/attachment.html 


More information about the rules-users mailing list