Re: [rules-users] UrlResource returning 401 error in Drools 5.4

2012-07-09 Thread Hrumph
Guess I'll try one last time.  I've pulled down the source and tried to fake
out the DemoAuthenticator, which gets me past the UrlResource sample below,
but when I try to use the KnowledgeAgent it still throws the same error:


16:15:21,714 INFO  [stdout] (EJB default - 1) createKnowledgeAgent using
URL:
http://10.76.232.65:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/org.ihc.hwcir.drools/LATEST/ChangeSet.xml
16:15:23,805 ERROR [stderr] (EJB default - 1) java.lang.RuntimeException:
Unable to parse ChangeSet
16:15:23,805 ERROR [stderr] (EJB default - 1)   at
org.drools.agent.impl.KnowledgeAgentImpl.getChangeSet(KnowledgeAgentImpl.java:448)
16:15:23,805 ERROR [stderr] (EJB default - 1)   at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:180)
16:15:23,805 ERROR [stderr] (EJB default - 1)   at
org.ihc.hwcir.drools.framework.core.ejb.DroolsRuntimeCoreImpl.createKnowledgeAgent(DroolsRuntimeCoreImpl.java:91)
16:15:23,805 ERROR [stderr] (EJB default - 1)   at
org.ihc.hwcir.drools.framework.core.ejb.DroolsRuntimeCoreImpl.createLogicSession(DroolsRuntimeCoreImpl.java:66)
16:15:23,805 ERROR [stderr] (EJB default - 1)   at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
16:15:23,805 ERROR [stderr] (EJB default - 1)   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
16:15:23,805 ERROR [stderr] (EJB default - 1)   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
16:15:23,820 ERROR [stderr] (EJB default - 1)   at
java.lang.reflect.Method.invoke(Method.java:601)
16:15:23,820 ERROR [stderr] (EJB default - 1)   at
org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)
16:15:23,820 ERROR [stderr] (EJB default - 1)   at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
16:15:23,820 ERROR [stderr] (EJB default - 1)   at
org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
16:15:23,820 ERROR [stderr] (EJB default - 1)   at
org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
16:15:23,820 ERROR [stderr] (EJB default - 1)   at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
16:15:23,820 ERROR [stderr] (EJB default - 1)   at
org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374)
16:15:23,836 ERROR [stderr] (EJB default - 1)   at
org.jboss.as.ejb3.concurrency.ContainerManagedConcurrencyInterceptor.processInvocation(ContainerManagedConcurrencyInterceptor.java:104)
16:15:23,836 ERROR [stderr] (EJB default - 1)   at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
16:15:23,836 ERROR [stderr] (EJB default - 1)   at
org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
16:15:23,836 ERROR [stderr] (EJB default - 1)   at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
16:15:23,836 ERROR [stderr] (EJB default - 1)   at
org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
16:15:23,836 ERROR [stderr] (EJB default - 1)   at
org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
16:15:23,836 ERROR [stderr] (EJB default - 1)   at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
16:15:23,836 ERROR [stderr] (EJB default - 1)   at
org.jboss.as.ejb3.component.singleton.SingletonComponentInstanceAssociationInterceptor.processInvocation(SingletonComponentInstanceAssociationInterceptor.java:53)
16:15:23,836 ERROR [stderr] (EJB default - 1)   at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
16:15:23,851 ERROR [stderr] (EJB default - 1)   at
org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:202)
16:15:23,851 ERROR [stderr] (EJB default - 1)   at
org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:306)
16:15:23,851 ERROR [stderr] (EJB default - 1)   at
org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190)
16:15:23,851 ERROR [stderr] (EJB default - 1)   at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
16:15:23,851 ERROR [stderr] (EJB default - 1)   at
org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
16:15:23,851 ERROR [stderr] (EJB default - 1)   at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
16:15:23,851 ERROR [stderr] (EJB default - 1)   at
org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
16:15:23,851 ERROR [stderr] (EJB default - 1)   at

Re: [rules-users] UrlResource returning 401 error in Drools 5.4

2012-07-05 Thread Hrumph
Here is a sample that demonstrates the problem.  We're running JBoss 7.1.1,
Java 7, Guvnor 5.4:


UrlResource url = new
UrlResource(http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/org.ihc.hwcir.drools/LATEST/ChangeSet.xml;);

InputStream is = url.getInputStream();


The 401 exception is coming from HttpURLConnection, but we can't step into
the source.  The only thing that has changed is moving from Guvnor 5.3.1 to
5.4.0.

Thanks,

Herm


--
View this message in context: 
http://drools.46999.n3.nabble.com/UrlResource-returning-401-error-in-Drools-5-4-tp4018439p4018489.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] UrlResource returning 401 error in Drools 5.4

2012-07-03 Thread Hrumph
Hi.   We're trying to upgrade to Drools 5.4 and use the KnowledgeAgent to
retrieve ChangeSets from Guvnor.  
We're getting an error from the KnowledgeAgent stating Unable to parse
ChangeSet, and have traced it down to the UrlResource class is returning:
Server returned HTTP response code: 401 for URL:
http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/org.ihc.hwcir.drools/LATEST/ChangeSet.xml;

when getInputStream() is called.   Has something changed with respect to
authorization?This works fine with Drools 5.3.

Thanks,

Herm

--
View this message in context: 
http://drools.46999.n3.nabble.com/UrlResource-returning-401-error-in-Drools-5-4-tp4018439.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] KnowledgeAgent custom class loader not working for PKG resources

2012-07-02 Thread Hrumph
Hello.  I posted this issue quite awhile ago and also created Jira
JBRULES-3388.   Esteban proposed a solution and submitted a pull request but
this was not resolved in 5.3 or 5.4 releases.  I haven't seen Esteban online
for awhile, so perhaps it has been overlooked.   This seems like a
significant issue to me - the ability to use the KnowledgeBase classloader
for dependencies that reside in a .PKG.   This feature was also described in
the DroolsCookbook, but only demonstrated for a .DRL type resource.   I am
surprised that others have not pointed out this issue - is there another
approach for loading packages and their dependencies that is more commonly
used?

Thanks,

Herm

--
View this message in context: 
http://drools.46999.n3.nabble.com/KnowledgeAgent-custom-class-loader-not-working-for-PKG-resources-tp3746456p4018395.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Decision Table column testing for exists

2012-06-20 Thread Hrumph
Hi.   I'm trying to figure out how to express a Condition that does the
following:

Column name:   FeV1 exists
Possible values:   true, false, n/a

I wish to test for the existence of an FeV1 fact and have a different
condition in the rule generated, as follows:

true, generates 'exists FeV1()'
false, generates 'not FeV1()'
n/a, generates nothing

Is there some way to do this?

Thanks,

Herm



--
View this message in context: 
http://drools.46999.n3.nabble.com/Decision-Table-column-testing-for-exists-tp4018115.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] ProcessInstance from StartProcessCommand

2012-05-18 Thread Hrumph
Yes I have read it.  I now see that by specifying the 'outIdentifier' I get
the processInstanceId returned in the   executionResults.  

Thanks Mauricio,

Herm

--
View this message in context: 
http://drools.46999.n3.nabble.com/ProcessInstance-from-StartProcessCommand-tp383p4001106.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] ProcessInstance from StartProcessCommand

2012-05-17 Thread Hrumph
I am using the StartProcessCommand through the BatchExecution interface, and
it works fine, but I don't see any return information in the
ExecutionResults, such as a ProcessInstanceId or ProcessState?   Is there
some way to acquire this information.  I see a number of other Commands in
the process package but it's not clear how to use them or where the
ProcessState would come from.

Thanks,

Herm

--
View this message in context: 
http://drools.46999.n3.nabble.com/ProcessInstance-from-StartProcessCommand-tp383.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] ProcessInstance from StartProcessCommand

2012-05-17 Thread Hrumph
What would one call with the outIdentifier to get a result?  

--
View this message in context: 
http://drools.46999.n3.nabble.com/ProcessInstance-from-StartProcessCommand-tp383p4000166.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] KnowledgeAgent Changeset problems

2012-02-29 Thread Hrumph
For your issue #1, we were having the same problem. In
org.drools.xml.ExtensibleXmlParser it appears that 'isValidating' defaults
to true.   This field is tied to the property 'drools.schema.validating'. 
The only way we have been able to avoid this error is by setting
-Ddrools.schema.validating=false when we boot JBoss.   We think the reason
we see this and others may not is due to our proxy server.  

Hope this helps,

Herm

--
View this message in context: 
http://drools.46999.n3.nabble.com/KnowledgeAgent-Changeset-problems-tp3787165p3788035.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] KnowledgeAgent custom class loader not working for PKG resources

2012-02-23 Thread Hrumph
That was the problem – I updated Guvnor to the new 5.4.0-SNAPSHOT I built and 
it works!

Thanks much for your help Esteban,

Herm

From: Esteban [via Drools] [mailto:ml-node+s46999n376745...@n3.nabble.com]
Sent: Wednesday, February 22, 2012 11:52 AM
To: Herman Post
Subject: Re: [rules-users] KnowledgeAgent custom class loader not working for 
PKG resources

Are you sure that the binary package was also created with the same drools 
version you are using in your tests?

Best Regards,



Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com

On Wed, Feb 22, 2012 at 7:39 PM, Hrumph [hidden 
email]/user/SendEmail.jtp?type=nodenode=3767458i=0 wrote:
I have a 5.4.0-SNAPSHOT version with your changes built and made the 
KnowledgeAgentConfiguration change you suggested.  My test code is now like 
this:

KnowledgeAgentConfiguration aconf = 
KnowledgeAgentFactory.newKnowledgeAgentConfiguration();
aconf.setProperty(drools.agent.useKBaseClassLoaderForCompiling, 
true); // new
// KnowledgeAgent kagent = 
KnowledgeAgentFactory.newKnowledgeAgent(test, kbase, aconf, kbuilderConfig);
KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent(test, 
kbase, aconf);  // not passing kBuilderConfig

My project is attached – let me know if it doesn’t upload.

I can see I’m stepping threw your new code,  and I’m now getting a new error, 
below.

I can also tell you that we tried to just use the KnowledgeBuilder with custom 
classloader as in the Expert documentation (4.1.1) and could not get that to 
work either.  Stack trace follows:

java.lang.RuntimeException: KnowledgeAgent exception while trying to 
deserialize KnowledgeDefinitionsPackage
at 
org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(KnowledgeAgentImpl.java:770)
at 
org.drools.agent.impl.KnowledgeAgentImpl.addResourcesToKnowledgeBase(KnowledgeAgentImpl.java:1029)
at 
org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgentImpl.java:812)
at 
org.drools.agent.impl.KnowledgeAgentImpl.buildKnowledgeBase(KnowledgeAgentImpl.java:671)
at 
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:202)
at 
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:181)
at 
drools.cookbook.chapter02.KnowledgeAgentClassloaderTest.createKnowledgeBase(KnowledgeAgentClassloaderTest.java:62)
at 
drools.cookbook.chapter02.KnowledgeAgentClassloaderTest.customClassloaderTest(KnowledgeAgentClassloaderTest.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at 
org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
at 
org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
at 
org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
at 
org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
at 
org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
at 
org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
at 
org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
at 
org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
at 
org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
at 
org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
at 
org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
at 
org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
at 
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.io.OptionalDataException
at 
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1367

Re: [rules-users] KnowledgeAgent custom class loader not working for PKG resources

2012-02-22 Thread Hrumph
Thanks – I will try it this morning.


Herm

From: Esteban [via Drools] [mailto:ml-node+s46999n3765911...@n3.nabble.com]
Sent: Wednesday, February 22, 2012 1:55 AM
To: Herman Post
Subject: Re: [rules-users] KnowledgeAgent custom class loader not working for 
PKG resources

I forgot to mention that you will have to change your code a little bit. 
Instead of passing a KnowledgeBuilderConfiguration to the agent, you will need 
to add a configuration option to the KnowledgeAgentConfiguration object your 
are using:

aconf.setProperty(drools.agent.useKBaseClassLoaderForCompiling, true);

This way you are telling the agent to use the kbase's internal CL (We may set 
this as the default value I think).

If you want to try my fix, this is what you need to do:

- Prerequisites: java 1.5 or grater, maven 3.0.3 or grater and git
1.- $git clone 
git://github.com/droolsjbpm/drools.githttp://github.com/droolsjbpm/drools.git 
drools  (It will download all the sources and place them in drools directory)
2.- Get the fix from my repo. Fortunately, the fix is just one file: 
https://raw.github.com/esteban-aliverti/drools/61c2110df8c55c67ff532491865b3f28f368e8db/drools-core/src/main/java/org/drools/agent/impl/KnowledgeAgentImpl.java
3.- Replace the file 
/drools-core/src/main/java/org/drools/agent/impl/KnowledgeAgentImpl.java in 
your working copy with the file you downloaded in the previous step.
4.- $mvn clean install -DskipTests=true (this will compile everything and 
install the generated artifacts in your local maven repo) This could take some 
time.
5.- If in your project you are already using maven, then you just need to 
update the version of your dependencies to 5.4.0-SNAPSHOT. If you are not  
using maven, then you need to go to your local repo an get the generated 
drools-core-5.4.0-SNAPSHOT.jar and use it.

Best Regards,



Best Regards,



Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com

On Tue, Feb 21, 2012 at 7:52 PM, Hrumph [hidden 
email]/user/SendEmail.jtp?type=nodenode=3765911i=0 wrote:
Thanks Esteban.  I’m not too adept with Git but will see what I can do.


Herm

From: Esteban [via Drools] [mailto:[hidden 
email]http://user/SendEmail.jtp?type=nodenode=3764501i=0]
Sent: Tuesday, February 21, 2012 11:10 AM

To: Herman Post
Subject: Re: [rules-users] KnowledgeAgent custom class loader not working for 
PKG resources

I added some comments to the issue and provided a possible solution to it. I'm 
waiting for the review and comments from the core developers.
In the meantime, if you have some skills with maven and git and you don't want 
to wait, you can create your own version of drools applying the provided patch 
to see if everything is ok.

Best Regards,



Esteban Aliverti
- Developer @ click here.
NAMLhttp://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml


View this message in context: RE: [rules-users] KnowledgeAgent custom class 
loader not working for PKG 
resourceshttp://drools.46999.n3.nabble.com/KnowledgeAgent-custom-class-loader-not-working-for-PKG-resources-tp3746456p3764501.html
Sent from the Drools: User forum mailing list 
archivehttp://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html at 
Nabble.com.

___
rules-users mailing list
[hidden email]/user/SendEmail.jtp?type=nodenode=3765911i=1
https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
[hidden email]/user/SendEmail.jtp?type=nodenode=3765911i=2
https://lists.jboss.org/mailman/listinfo/rules-users


If you reply to this email, your message will be added to the discussion below:
http://drools.46999.n3.nabble.com/KnowledgeAgent-custom-class-loader-not-working-for-PKG-resources-tp3746456p3765911.html
To unsubscribe from KnowledgeAgent custom class loader not working for PKG 
resources, click 
herehttp://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3746456code=SGVybWFuLlBvc3RAaW1haWwub3JnfDM3NDY0NTZ8NDA0OTE1Mzg5.
NAMLhttp://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml


--
View this message in context: 
http://drools.46999.n3.nabble.com/KnowledgeAgent-custom-class-loader-not-working

Re: [rules-users] KnowledgeAgent custom class loader not working for PKG resources

2012-02-22 Thread Hrumph
I have a 5.4.0-SNAPSHOT version with your changes built and made the 
KnowledgeAgentConfiguration change you suggested.  My test code is now like 
this:

KnowledgeAgentConfiguration aconf = 
KnowledgeAgentFactory.newKnowledgeAgentConfiguration();
aconf.setProperty(drools.agent.useKBaseClassLoaderForCompiling, 
true); // new
// KnowledgeAgent kagent = 
KnowledgeAgentFactory.newKnowledgeAgent(test, kbase, aconf, kbuilderConfig);
KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent(test, 
kbase, aconf);  // not passing kBuilderConfig

My project is attached – let me know if it doesn’t upload.

I can see I’m stepping threw your new code,  and I’m now getting a new error, 
below.

I can also tell you that we tried to just use the KnowledgeBuilder with custom 
classloader as in the Expert documentation (4.1.1) and could not get that to 
work either.  Stack trace follows:

java.lang.RuntimeException: KnowledgeAgent exception while trying to 
deserialize KnowledgeDefinitionsPackage
at 
org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(KnowledgeAgentImpl.java:770)
at 
org.drools.agent.impl.KnowledgeAgentImpl.addResourcesToKnowledgeBase(KnowledgeAgentImpl.java:1029)
at 
org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgentImpl.java:812)
at 
org.drools.agent.impl.KnowledgeAgentImpl.buildKnowledgeBase(KnowledgeAgentImpl.java:671)
at 
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:202)
at 
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:181)
at 
drools.cookbook.chapter02.KnowledgeAgentClassloaderTest.createKnowledgeBase(KnowledgeAgentClassloaderTest.java:62)
at 
drools.cookbook.chapter02.KnowledgeAgentClassloaderTest.customClassloaderTest(KnowledgeAgentClassloaderTest.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at 
org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
at 
org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
at 
org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
at 
org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
at 
org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
at 
org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
at 
org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
at 
org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
at 
org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
at 
org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
at 
org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
at 
org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
at 
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.io.OptionalDataException
at 
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1367)
at 
java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
at org.drools.rule.Pattern.readExternal(Pattern.java:118)
at 
java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1810)
at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1769)
at 
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
at 
java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
at java.util.ArrayList.readObject(ArrayList.java:733)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 

Re: [rules-users] KnowledgeAgent custom class loader not working for PKG resources

2012-02-21 Thread Hrumph
Great!

https://issues.jboss.org/browse/JBRULES-3388


Herm

From: Esteban [via Drools] [mailto:ml-node+s46999n3760230...@n3.nabble.com]
Sent: Monday, February 20, 2012 2:30 AM
To: Herman Post
Subject: Re: [rules-users] KnowledgeAgent custom class loader not working for 
PKG resources

Hi Herman,
I'm working on this issue right now. Did you create the jira issue? Could you 
please send me the link?

Best Regards,



Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com

On Sat, Feb 18, 2012 at 1:46 PM, Hrumph [hidden 
email]/user/SendEmail.jtp?type=nodenode=3760230i=0 wrote:
http://drools.46999.n3.nabble.com/file/n3756244/knowledge-agent-classloader-5.4.zip
knowledge-agent-classloader-5.4.zip

Attached...thanks.

--
View this message in context: 
http://drools.46999.n3.nabble.com/KnowledgeAgent-custom-class-loader-not-working-for-PKG-resources-tp3746456p3756244.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
[hidden email]/user/SendEmail.jtp?type=nodenode=3760230i=1
https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
[hidden email]/user/SendEmail.jtp?type=nodenode=3760230i=2
https://lists.jboss.org/mailman/listinfo/rules-users


If you reply to this email, your message will be added to the discussion below:
http://drools.46999.n3.nabble.com/KnowledgeAgent-custom-class-loader-not-working-for-PKG-resources-tp3746456p3760230.html
To unsubscribe from KnowledgeAgent custom class loader not working for PKG 
resources, click 
herehttp://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3746456code=SGVybWFuLlBvc3RAaW1haWwub3JnfDM3NDY0NTZ8NDA0OTE1Mzg5.
NAMLhttp://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml


--
View this message in context: 
http://drools.46999.n3.nabble.com/KnowledgeAgent-custom-class-loader-not-working-for-PKG-resources-tp3746456p3763942.html
Sent from the Drools: User forum mailing list archive at Nabble.com.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] KnowledgeAgent custom class loader not working for PKG resources

2012-02-21 Thread Hrumph
Thanks Esteban.  I’m not too adept with Git but will see what I can do.


Herm

From: Esteban [via Drools] [mailto:ml-node+s46999n3764360...@n3.nabble.com]
Sent: Tuesday, February 21, 2012 11:10 AM
To: Herman Post
Subject: Re: [rules-users] KnowledgeAgent custom class loader not working for 
PKG resources

I added some comments to the issue and provided a possible solution to it. I'm 
waiting for the review and comments from the core developers.
In the meantime, if you have some skills with maven and git and you don't want 
to wait, you can create your own version of drools applying the provided patch 
to see if everything is ok.

Best Regards,



Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com

On Tue, Feb 21, 2012 at 4:56 PM, Hrumph [hidden 
email]/user/SendEmail.jtp?type=nodenode=3764360i=0 wrote:
Great!

https://issues.jboss.org/browse/JBRULES-3388


Herm

From: Esteban [via Drools] [mailto:[hidden 
email]http://user/SendEmail.jtp?type=nodenode=3763942i=0]
Sent: Monday, February 20, 2012 2:30 AM

To: Herman Post
Subject: Re: [rules-users] KnowledgeAgent custom class loader not working for 
PKG resources

Hi Herman,
I'm working on this issue right now. Did you create the jira issue? Could you 
please send me the link?

Best Regards,



Esteban Aliverti
- Developer @ click here.
NAMLhttp://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml


View this message in context: RE: [rules-users] KnowledgeAgent custom class 
loader not working for PKG 
resourceshttp://drools.46999.n3.nabble.com/KnowledgeAgent-custom-class-loader-not-working-for-PKG-resources-tp3746456p3763942.html
Sent from the Drools: User forum mailing list 
archivehttp://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html at 
Nabble.com.

___
rules-users mailing list
[hidden email]/user/SendEmail.jtp?type=nodenode=3764360i=1
https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
[hidden email]/user/SendEmail.jtp?type=nodenode=3764360i=2
https://lists.jboss.org/mailman/listinfo/rules-users


If you reply to this email, your message will be added to the discussion below:
http://drools.46999.n3.nabble.com/KnowledgeAgent-custom-class-loader-not-working-for-PKG-resources-tp3746456p3764360.html
To unsubscribe from KnowledgeAgent custom class loader not working for PKG 
resources, click 
herehttp://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3746456code=SGVybWFuLlBvc3RAaW1haWwub3JnfDM3NDY0NTZ8NDA0OTE1Mzg5.
NAMLhttp://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml


--
View this message in context: 
http://drools.46999.n3.nabble.com/KnowledgeAgent-custom-class-loader-not-working-for-PKG-resources-tp3746456p3764501.html
Sent from the Drools: User forum mailing list archive at Nabble.com.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] KnowledgeAgent custom class loader not working for PKG resources

2012-02-16 Thread Hrumph
Sorry for being a nuisance, but unless we are doing something wrong, this is
a significant issue for us.  We are trying to deploy Drools on a remote
server and hope to pull PKG Changesets and Fact models from Guvnor.  It is
essential that we can use custom Classloaders in our design.   

Should I just enter this in Jira?

Thanks,

Herm



--
View this message in context: 
http://drools.46999.n3.nabble.com/KnowledgeAgent-custom-class-loader-not-working-for-PKG-resources-tp3746456p3750972.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] KnowledgeAgent custom class loader not working for PKG resources

2012-02-16 Thread Hrumph
Regretably, I’m still getting the same error with 5.4.0.Beta2.

I did rebuild my PKG in 5.4.0.Beta2 Guvnor and switched my Drools dependencies 
over to 5.4.0.Beta2 in my sample app pom too.

Is your 5.4.0 Snapshot later than this, and possibly it was fixed since Beta2?

Thanks,

Herm

From: Esteban [via Drools] [mailto:ml-node+s46999n3751457...@n3.nabble.com]
Sent: Thursday, February 16, 2012 12:05 PM
To: Herman Post
Subject: Re: [rules-users] KnowledgeAgent custom class loader not working for 
PKG resources

Could you please try using 5.4.0-SNAPSHOT? I tried to reproduce your error in 
that version, but I couldn't. Using 5.3.1 I experienced the error you mentioned.
Please note that in order to change drools version you need to have a binary 
.pkg compiled using the same version.

Best Regards,



Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com

2012/2/16 Herman Post [hidden 
email]/user/SendEmail.jtp?type=nodenode=3751457i=0
In debug,  KnowledgeAgentImpl.createPackageFromResource(), the last line to run 
is DroolsStreamUtils.streamIn(is), then an excecption is caught:

this.listener.exception( new RuntimeException( KnowledgeAgent exception while 
trying to deserialize KnowledgeDefinitionsPackage  , ex));

The exception here says “java.lang.ClassNotFoundException: 
org.ihc.hwcir.drools.facts.Patient”, which is my Fact model.  It doesn’t seem 
to get surfaced anywhere.

As my sample illustrates, if I switch to DRL changeset, or put Patient.jar on 
classpath all works fine.

Thanks,

Herm

From: [hidden email]/user/SendEmail.jtp?type=nodenode=3751457i=1 
[mailto:[hidden email]/user/SendEmail.jtp?type=nodenode=3751457i=2] On 
Behalf Of Esteban Aliverti
Sent: Thursday, February 16, 2012 10:33 AM

To: Rules Users List
Subject: Re: [rules-users] KnowledgeAgent custom class loader not working for 
PKG resources

By the way, in the stacktrace you pasted I only see a NullPointerException, but 
no ClassNotFoundException. Where are you seeing the ClassNotFoundException?

Best Regards,



Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com
2012/2/16 Herman Post [hidden 
email]/user/SendEmail.jtp?type=nodenode=3751457i=3
Thanks Esteban, I will enter in Jira.


Herm

From: [hidden email]/user/SendEmail.jtp?type=nodenode=3751457i=4 
[mailto:[hidden email]/user/SendEmail.jtp?type=nodenode=3751457i=5] On 
Behalf Of Esteban Aliverti
Sent: Thursday, February 16, 2012 10:07 AM
To: Rules Users List
Subject: Re: [rules-users] KnowledgeAgent custom class loader not working for 
PKG resources

Seems like a bug to me. The best you can do is to rise a Jira issue.
Actually, the best you can do is to provide a patch also ;)

Best Regards,



Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com
On Thu, Feb 16, 2012 at 5:59 PM, Hrumph [hidden 
email]/user/SendEmail.jtp?type=nodenode=3751457i=6 wrote:
Sorry for being a nuisance, but unless we are doing something wrong, this is
a significant issue for us.  We are trying to deploy Drools on a remote
server and hope to pull PKG Changesets and Fact models from Guvnor.  It is
essential that we can use custom Classloaders in our design.

Should I just enter this in Jira?

Thanks,

Herm



--
View this message in context: 
http://drools.46999.n3.nabble.com/KnowledgeAgent-custom-class-loader-not-working-for-PKG-resources-tp3746456p3750972.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
[hidden email]/user/SendEmail.jtp?type=nodenode=3751457i=7
https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
[hidden email]/user/SendEmail.jtp?type=nodenode=3751457i=8
https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
[hidden email]/user/SendEmail.jtp?type=nodenode=3751457i=9
https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
[hidden email]/user/SendEmail.jtp?type=nodenode=3751457i=10
https://lists.jboss.org/mailman/listinfo/rules-users


If you reply to this email, your message will be added to the discussion below:
http://drools.46999.n3.nabble.com/KnowledgeAgent-custom-class-loader-not-working-for-PKG-resources-tp3746456p3751457.html
To unsubscribe from KnowledgeAgent custom class loader not working for PKG 
resources, click 
herehttp://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3746456code=SGVybWFuLlBvc3RAaW1haWwub3JnfDM3NDY0NTZ8NDA0OTE1Mzg5.
NAMLhttp://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase

Re: [rules-users] KnowledgeAgent custom class loader not working for PKG resources

2012-02-16 Thread Hrumph
Attached – let me know if I need to upload in a different manner.

Thanks much,

Herm

From: Esteban [via Drools] [mailto:ml-node+s46999n3752160...@n3.nabble.com]
Sent: Thursday, February 16, 2012 3:40 PM
To: Herman Post
Subject: Re: [rules-users] KnowledgeAgent custom class loader not working for 
PKG resources

Could you please upload you failing test project using 5.4 so I can test it?

Best Regards,



Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com

2012/2/16 Hrumph [hidden 
email]/user/SendEmail.jtp?type=nodenode=3752160i=0
Regretably, I’m still getting the same error with 5.4.0.Beta2.

I did rebuild my PKG in 5.4.0.Beta2 Guvnor and switched my Drools dependencies 
over to 5.4.0.Beta2 in my sample app pom too.

Is your 5.4.0 Snapshot later than this, and possibly it was fixed since Beta2?

Thanks,

Herm

From: Esteban [via Drools] [mailto:[hidden 
email]http://user/SendEmail.jtp?type=nodenode=3752041i=0]
Sent: Thursday, February 16, 2012 12:05 PM
To: Herman Post

Subject: Re: [rules-users] KnowledgeAgent custom class loader not working for 
PKG resources

Could you please try using 5.4.0-SNAPSHOT? I tried to reproduce your error in 
that version, but I couldn't. Using 5.3.1 I experienced the error you mentioned.
Please note that in order to change drools version you need to have a binary 
.pkg compiled using the same version.

Best Regards,



Esteban Aliverti
- Developer @ click here.
NAMLhttp://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml


View this message in context: RE: [rules-users] KnowledgeAgent custom class 
loader not working for PKG 
resourceshttp://drools.46999.n3.nabble.com/KnowledgeAgent-custom-class-loader-not-working-for-PKG-resources-tp3746456p3752041.html

Sent from the Drools: User forum mailing list 
archivehttp://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html at 
Nabble.com.

___
rules-users mailing list
[hidden email]/user/SendEmail.jtp?type=nodenode=3752160i=1
https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
[hidden email]/user/SendEmail.jtp?type=nodenode=3752160i=2
https://lists.jboss.org/mailman/listinfo/rules-users


If you reply to this email, your message will be added to the discussion below:
http://drools.46999.n3.nabble.com/KnowledgeAgent-custom-class-loader-not-working-for-PKG-resources-tp3746456p3752160.html
To unsubscribe from KnowledgeAgent custom class loader not working for PKG 
resources, click 
herehttp://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3746456code=SGVybWFuLlBvc3RAaW1haWwub3JnfDM3NDY0NTZ8NDA0OTE1Mzg5.
NAMLhttp://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml


--
View this message in context: 
http://drools.46999.n3.nabble.com/KnowledgeAgent-custom-class-loader-not-working-for-PKG-resources-tp3746456p3752251.html
Sent from the Drools: User forum mailing list archive at Nabble.com.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] KnowledgeAgent custom class loader not working for PKG resources

2012-02-15 Thread Hrumph
I believe there may be a bug when trying to use a custom class loader with
the KnowledgeAgent and the KnowledgeBuilderConfiguration, and when the
ChangeSet is a PKG resource. 

I have been trying to get the knowledge-agent-classloader sample from the
new Drools Cookbook to work with a PKG resource.  The sample works fine for
a DRL resource, but when I convert it to use my fact jar, and a PKG resource
containing my rules, which I downloaded from Guvnor, it throws a
ClassNotFoundException for my fact model.  If I put my fact model in the
classpath, the error goes away and my rules can be added to the
KnowledgeAgent and run correctly.  Following is the code from the sample
that I have converted, and I have attached a zip file with a complete
project demonstrating the problem.  Also,  I  can get my rules and fact
model to work if I use a DRL ChangeSet.knowledge-agent-classloader.zip

  URL modelJarURL = getClass().getResource(Patient-1.0.jar); 

URLClassLoader customURLClassloader = new URLClassLoader(new URL[]
{modelJarURL }); 

KnowledgeBuilderConfiguration kbuilderConfig =
KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration(null, 
customURLClassloader); 

KnowledgeBaseConfiguration kbaseConfig =
KnowledgeBaseFactory.newKnowledgeBaseConfiguration(null,
customURLClassloader); 
KnowledgeBase kbase =
KnowledgeBaseFactory.newKnowledgeBase(kbaseConfig); 

KnowledgeAgentConfiguration aconf =
KnowledgeAgentFactory.newKnowledgeAgentConfiguration(); 
KnowledgeAgent kagent =
KnowledgeAgentFactory.newKnowledgeAgent(test, kbase, aconf,
kbuilderConfig); 

// kagent.applyChangeSet(new ClassPathResource(change-set.xml,
getClass())); // this goes with model.jar 
// kagent.applyChangeSet(new ClassPathResource(drl-change-set.xml,
getClass())); // this goes with Patient.jar 
kagent.applyChangeSet(new ClassPathResource(pkg-change-set.xml,
getClass())); // this goes with Patient.jar 

return kagent.getKnowledgeBase(); 

Following is the stack trace from the error: 

java.lang.NullPointerException 
at
org.drools.impl.KnowledgeBaseImpl.addKnowledgePackages(KnowledgeBaseImpl.java:148)
 
at
org.drools.agent.impl.KnowledgeAgentImpl.addResourcesToKnowledgeBase(KnowledgeAgentImpl.java:1016)
 
at
org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgentImpl.java:785)
 
at
org.drools.agent.impl.KnowledgeAgentImpl.buildKnowledgeBase(KnowledgeAgentImpl.java:657)
 
at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:190)
 
at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:169)
 
at
drools.cookbook.chapter02.KnowledgeAgentClassloaderTest.createKnowledgeBase(KnowledgeAgentClassloaderTest.java:59)
at
drools.cookbook.chapter02.KnowledgeAgentClassloaderTest.customClassloaderTest(KnowledgeAgentClassloaderTest.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
at java.lang.reflect.Method.invoke(Unknown Source) 
at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59) 
at
org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98) 
at
org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79) 
at
org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
 
at
org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77) 
at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42) 
at
org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
 
at
org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
 
at
org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44) 
at
org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27) 
at
org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37) 
at
org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42) 
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
 
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) 
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
 
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
 
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
 
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
 

I have been having the exact same problem when trying to use a custom class
loader 

Re: [rules-users] proxy config for change-set schema fetch?

2012-01-23 Thread Hrumph
I have found a work-around for this problem, thought I would share it in case
anyone else runs into it.

It does appear to be caused by our proxy server and we could find no way to
correctly pass credentials to get   around it.  I did find that schema
validation for the changeset.xsd could be turned off by setting the
following system property:

drools.schema.validating=false



--
View this message in context: 
http://drools.46999.n3.nabble.com/rules-users-proxy-config-for-change-set-schema-fetch-tp2952812p3683482.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] proxy config for change-set schema fetch?

2012-01-19 Thread Hrumph
Hi - I am having this same problem - did you ever find a solution?

thanks

--
View this message in context: 
http://drools.46999.n3.nabble.com/rules-users-proxy-config-for-change-set-schema-fetch-tp2952812p3672962.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools-server KnowledgeSessions

2012-01-12 Thread Hrumph
Thanks Richard!

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-server-KnowledgeSessions-tp3652344p3654802.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Drools-server KnowledgeSessions

2012-01-11 Thread Hrumph
Is it possible to dynamically create a KnowledgeSession using the
Drools-server API, or must the be statically declared in the Spring config?

Thanks

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-server-KnowledgeSessions-tp3652344p3652344.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users