[rules-users] deploying rules in to BRMS

Mallareddy mallareddy.singireddy at patni.com
Mon Nov 3 12:37:11 EST 2008


 

Hi

 

I am new to Rule Engine.

 

I have been reading through the documentation and trying some of the
tutorials.

 

And I am trying to use BRMS with rule agent the sample application insurance
demo.

 

My problem is how to upload model classes. 

 

I tried in many ways but, I was uploaded class file and also uploaded jar
files but still I am getting the following error:

 

 

 

1. I found the following error message. logfile




An error occurred executing the action.



Details


java.lang.RuntimeException: SNO: Conversion failed
 at org.codehaus.janino.UnitCompiler.numericPromotion(UnitCompiler.java)
 at
org.codehaus.janino.UnitCompiler.binaryNumericPromotion(UnitCompiler.java)
 at
org.codehaus.janino.UnitCompiler.binaryNumericPromotion(UnitCompiler.java)
 at
org.codehaus.janino.UnitCompiler.compileArithmeticOperation(UnitCompiler.jav
a)
 at org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java)
 at org.codehaus.janino.UnitCompiler.access$44(UnitCompiler.java)
 at
org.codehaus.janino.UnitCompiler$9.visitBinaryOperation(UnitCompiler.java)
 at org.codehaus.janino.Java$BinaryOperation.accept(Java.java)
 at org.codehaus.janino.UnitCompiler.compileGet(UnitCompiler.java)
 at org.codehaus.janino.UnitCompiler.compileGetValue(UnitCompiler.java)
 at org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java)
 at org.codehaus.janino.UnitCompiler.access$51(UnitCompiler.java)
 at
org.codehaus.janino.UnitCompiler$9.visitMethodInvocation(UnitCompiler.java)
 at org.codehaus.janino.Java$MethodInvocation.accept(Java.java)
 at org.codehaus.janino.UnitCompiler.compileGet(UnitCompiler.java)
 at org.codehaus.janino.UnitCompiler.compileGetValue(UnitCompiler.java)
 at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java)
 at org.codehaus.janino.UnitCompiler.access$25(UnitCompiler.java)
 at
org.codehaus.janino.UnitCompiler$6.visitMethodInvocation(UnitCompiler.java)
 at org.codehaus.janino.Java$MethodInvocation.accept(Java.java)
 at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java)
 at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java)
 at org.codehaus.janino.UnitCompiler.access$8(UnitCompiler.java)
 at
org.codehaus.janino.UnitCompiler$4.visitExpressionStatement(UnitCompiler.jav
a)
 at org.codehaus.janino.Java$ExpressionStatement.accept(Java.java)
 at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java)
 at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java)
 at org.codehaus.janino.UnitCompiler.access$7(UnitCompiler.java)
 at org.codehaus.janino.UnitCompiler$4.visitBlock(UnitCompiler.java)
 at org.codehaus.janino.Java$Block.accept(Java.java)
 at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java)
 at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java)
 at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java)
 at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java)
 at
org.codehaus.janino.UnitCompiler$3.visitPackageMemberClassDeclaration(UnitCo
mpiler.java)
 at org.codehaus.janino.Java$PackageMemberClassDeclaration.accept(Java.java)
 at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java)
 at org.codehaus.janino.UnitCompiler.compileUnit(UnitCompiler.java)
 at org.codehaus.janino.Compiler.compile(Compiler.java)
 at
org.drools.commons.jci.compilers.JaninoJavaCompiler.compile(JaninoJavaCompil
er.java:174)
 at
org.drools.commons.jci.compilers.AbstractJavaCompiler.compile(AbstractJavaCo
mpiler.java:51)
 at
org.drools.rule.builder.dialect.java.JavaDialect.compileAll(JavaDialect.java
:342)
 at org.drools.compiler.DialectRegistry.compileAll(DialectRegistry.java:60)
 at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:308)
 at
org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:167
)
 at
org.drools.brms.server.contenthandler.DRLFileContentHandler.compile(DRLFileC
ontentHandler.java:32)
 at
org.drools.brms.server.builder.ContentPackageAssembler.buildAsset(ContentPac
kageAssembler.java:139)
 at
org.drools.brms.server.builder.ContentPackageAssembler.buildPackage(ContentP
ackageAssembler.java:127)
 at
org.drools.brms.server.builder.ContentPackageAssembler.<init>(ContentPackage
Assembler.java:84)
 at
org.drools.brms.server.builder.ContentPackageAssembler.<init>(ContentPackage
Assembler.java:92)
 at
org.drools.brms.server.ServiceImplementation.buildPackage(ServiceImplementat
ion.java:781)
 at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:43)
 at java.lang.reflect.Method.invoke(Method.java:618)
 at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
 at
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext
.java:31)
 at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext
.java:56)
 at
org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackIntercep
tor.java:31)
 at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext
.java:68)
 at
org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.j
ava:46)
 at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext
.java:68)
 at
org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInter
ceptor.java:42)
 at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext
.java:68)
 at
org.jboss.seam.security.SecurityInterceptor.aroundInvoke(SecurityInterceptor
.java:40)
 at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext
.java:68)
 at
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
 at
org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInt
erceptor.java:155)
 at
org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java
:91)
 at
org.drools.brms.server.ServiceImplementation_$$_javassist_3.buildPackage(Ser
viceImplementation_$$_javassist_3.java)
 at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:43)
 at java.lang.reflect.Method.invoke(Method.java:618)
 at
org.jboss.seam.remoting.gwt.GWTToSeamAdapter.callWebRemoteMethod(GWTToSeamAd
apter.java:74)
 at
org.jboss.seam.remoting.gwt.GWTRemoteServiceServlet.processCall(GWTRemoteSer
viceServlet.java:290)
 at
org.jboss.seam.remoting.gwt.GWTRemoteServiceServlet.doPost(GWTRemoteServiceS
ervlet.java:172)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:9
90)
 at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:9
31)
 at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.
java:145)
 at org.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42)
 at
org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServle
tRequest.java:46)
 at org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)
 at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstance
Wrapper.java:190)
 at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.
java:130)
 at
com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain
.java:87)
 at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterMana
ger.java:768)
 at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterMana
ger.java:676)
 at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.
java:499)
 at
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrappe
r.java:473)
 at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServl
etWrapper.java:90)
 at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
 at
com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
 at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:113)
 at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(Ht
tpInboundLink.java:454)
 at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(Ht
tpInboundLink.java:383)
 at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLRea
dCallback.java:102)
 at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioRea
dCompletionListener.java:165)
 at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java
:217)
 at
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture
.java:161)
 at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
 at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
 at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743
)
 at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
 at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)

 

 

 

 

 

 

 

 

2.Some times I am got error  like this manner also

 

 

 


Format

Name

Message




package

com.acme.insurance.base

com.acme.insurance.base.Rejection




package

com.acme.insurance.base

com.acme.insurance.base.Policy

 

 

 

 

Here one more question with the above web application   I am trying to
deploy it using Rule Agent.

 

To deploy using Rule Agent is it compulsory that related rules and model
should be deployed first in BRMS?????????

 

 

 

Thanks 

Mallareddy

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20081103/30d9ed87/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 605 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20081103/30d9ed87/attachment.gif 


More information about the rules-users mailing list