[jboss-jira] [JBoss JIRA] Commented: (JBRULES-1992) IllegalArgumetException when using @timestamp?
Edson Tirelli (JIRA)
jira-events at lists.jboss.org
Wed Mar 11 23:19:22 EDT 2009
[ https://jira.jboss.org/jira/browse/JBRULES-1992?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12456827#action_12456827 ]
Edson Tirelli commented on JBRULES-1992:
----------------------------------------
We have a test for this exact scenario here:
https://svn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/CepEspTest.java
Test is: testEventAssertionWithDateTimestamp() and it works.
Would you be able to export your Guvnor repository and send us so that we can reproduce the problem? If there is no confidential code in it, just attach it to the ticket. Otherwise, send it directly to me by e-mail and I will not disclose.
Thanks,
Edson
> IllegalArgumetException when using @timestamp?
> ----------------------------------------------
>
> Key: JBRULES-1992
> URL: https://jira.jboss.org/jira/browse/JBRULES-1992
> Project: JBoss Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-compiler (fusion), drools-core (fusion)
> Affects Versions: 5.0.0.M5
> Environment: jdk 1.6
> Reporter: Zoltan Farkas
> Assignee: Edson Tirelli
> Fix For: 5.0.0.CR1
>
>
> I think problem is with @timestamp, I use GUVNOR to build my package.
> Here is the exception:
> 2009-03-05 19:56:07,891 [http-0.0.0.0-8080-2] ERROR STDERR - com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract org.drools.guvnor.client.rpc.BuilderResult[] org.drools.guvnor
> .client.rpc.RepositoryService.buildPackage(java.lang.String,java.lang.String,boolean) throws com.google.gwt.user.client.rpc.SerializableException' threw an unexpected exception: org.drools.RuntimeDroolsExcep
> tion: java.lang.IllegalArgumentException: argument type mismatch
> 2009-03-05 19:56:07,895 [http-0.0.0.0-8080-2] ERROR STDERR - at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:360)
> 2009-03-05 19:56:07,895 [http-0.0.0.0-8080-2] ERROR STDERR - at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:546)
> 2009-03-05 19:56:07,895 [http-0.0.0.0-8080-2] ERROR STDERR - at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
> 2009-03-05 19:56:07,896 [http-0.0.0.0-8080-2] ERROR STDERR - at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
> 2009-03-05 19:56:07,896 [http-0.0.0.0-8080-2] ERROR STDERR - at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> 2009-03-05 19:56:07,896 [http-0.0.0.0-8080-2] ERROR STDERR - at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 2009-03-05 19:56:07,896 [http-0.0.0.0-8080-2] ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> 2009-03-05 19:56:07,896 [http-0.0.0.0-8080-2] ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 2009-03-05 19:56:07,896 [http-0.0.0.0-8080-2] ERROR STDERR - at org.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42)
> 2009-03-05 19:56:07,896 [http-0.0.0.0-8080-2] ERROR STDERR - at org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:53)
> 2009-03-05 19:56:07,896 [http-0.0.0.0-8080-2] ERROR STDERR - at org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)
> 2009-03-05 19:56:07,896 [http-0.0.0.0-8080-2] ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 2009-03-05 19:56:07,896 [http-0.0.0.0-8080-2] ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 2009-03-05 19:56:07,897 [http-0.0.0.0-8080-2] ERROR STDERR - at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> 2009-03-05 19:56:07,897 [http-0.0.0.0-8080-2] ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 2009-03-05 19:56:07,897 [http-0.0.0.0-8080-2] ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 2009-03-05 19:56:07,897 [http-0.0.0.0-8080-2] ERROR STDERR - at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
> 2009-03-05 19:56:07,897 [http-0.0.0.0-8080-2] ERROR STDERR - at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> 2009-03-05 19:56:07,897 [http-0.0.0.0-8080-2] ERROR STDERR - at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
> 2009-03-05 19:56:07,897 [http-0.0.0.0-8080-2] ERROR STDERR - at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
> 2009-03-05 19:56:07,897 [http-0.0.0.0-8080-2] ERROR STDERR - at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> 2009-03-05 19:56:07,897 [http-0.0.0.0-8080-2] ERROR STDERR - at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> 2009-03-05 19:56:07,897 [http-0.0.0.0-8080-2] ERROR STDERR - at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
> 2009-03-05 19:56:07,897 [http-0.0.0.0-8080-2] ERROR STDERR - at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 2009-03-05 19:56:07,898 [http-0.0.0.0-8080-2] ERROR STDERR - at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
> 2009-03-05 19:56:07,898 [http-0.0.0.0-8080-2] ERROR STDERR - at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> 2009-03-05 19:56:07,898 [http-0.0.0.0-8080-2] ERROR STDERR - at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> 2009-03-05 19:56:07,898 [http-0.0.0.0-8080-2] ERROR STDERR - at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
> 2009-03-05 19:56:07,898 [http-0.0.0.0-8080-2] ERROR STDERR - at java.lang.Thread.run(Thread.java:619)
> 2009-03-05 19:56:07,898 [http-0.0.0.0-8080-2] ERROR STDERR - Caused by: org.drools.RuntimeDroolsException: java.lang.IllegalArgumentException: argument type mismatch
> 2009-03-05 19:56:07,898 [http-0.0.0.0-8080-2] ERROR STDERR - at org.drools.base.ClassFieldAccessorFactory.getClassFieldReader(ClassFieldAccessorFactory.java:152)
> 2009-03-05 19:56:07,899 [http-0.0.0.0-8080-2] ERROR STDERR - at org.drools.base.ClassFieldAccessorCache$CacheEntry.getReadAccessor(ClassFieldAccessorCache.java:315)
> 2009-03-05 19:56:07,899 [http-0.0.0.0-8080-2] ERROR STDERR - at org.drools.base.ClassFieldAccessorCache.getReadAcessor(ClassFieldAccessorCache.java:245)
> 2009-03-05 19:56:07,899 [http-0.0.0.0-8080-2] ERROR STDERR - at org.drools.base.ClassFieldAccessorStore.wire(ClassFieldAccessorStore.java:379)
> 2009-03-05 19:56:07,899 [http-0.0.0.0-8080-2] ERROR STDERR - at org.drools.base.ClassFieldAccessorStore.getReader(ClassFieldAccessorStore.java:97)
> 2009-03-05 19:56:07,899 [http-0.0.0.0-8080-2] ERROR STDERR - at org.drools.base.ClassFieldAccessorStore.getReader(ClassFieldAccessorStore.java:74)
> 2009-03-05 19:56:07,899 [http-0.0.0.0-8080-2] ERROR STDERR - at org.drools.compiler.PackageBuilder.processTypeDeclarations(PackageBuilder.java:1031)
> 2009-03-05 19:56:07,899 [http-0.0.0.0-8080-2] ERROR STDERR - at org.drools.compiler.PackageBuilder.mergePackage(PackageBuilder.java:916)
> 2009-03-05 19:56:07,899 [http-0.0.0.0-8080-2] ERROR STDERR - at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:608)
> 2009-03-05 19:56:07,899 [http-0.0.0.0-8080-2] ERROR STDERR - at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:284)
> 2009-03-05 19:56:07,899 [http-0.0.0.0-8080-2] ERROR STDERR - at org.drools.guvnor.server.contenthandler.DRLFileContentHandler.compile(DRLFileContentHandler.java:36)
> 2009-03-05 19:56:07,899 [http-0.0.0.0-8080-2] ERROR STDERR - at org.drools.guvnor.server.builder.ContentPackageAssembler.buildAsset(ContentPackageAssembler.java:198)
> 2009-03-05 19:56:07,900 [http-0.0.0.0-8080-2] ERROR STDERR - at org.drools.guvnor.server.builder.ContentPackageAssembler.buildPackage(ContentPackageAssembler.java:178)
> 2009-03-05 19:56:07,900 [http-0.0.0.0-8080-2] ERROR STDERR - at org.drools.guvnor.server.builder.ContentPackageAssembler.<init>(ContentPackageAssembler.java:104)
> 2009-03-05 19:56:07,900 [http-0.0.0.0-8080-2] ERROR STDERR - at org.drools.guvnor.server.builder.ContentPackageAssembler.<init>(ContentPackageAssembler.java:117)
> 2009-03-05 19:56:07,900 [http-0.0.0.0-8080-2] ERROR STDERR - at org.drools.guvnor.server.ServiceImplementation.buildPackage(ServiceImplementation.java:1375)
> 2009-03-05 19:56:07,900 [http-0.0.0.0-8080-2] ERROR STDERR - at org.drools.guvnor.server.ServiceImplementation.buildPackage(ServiceImplementation.java:1359)
> 2009-03-05 19:56:07,900 [http-0.0.0.0-8080-2] ERROR STDERR - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 2009-03-05 19:56:07,900 [http-0.0.0.0-8080-2] ERROR STDERR - at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 2009-03-05 19:56:07,900 [http-0.0.0.0-8080-2] ERROR STDERR - at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 2009-03-05 19:56:07,900 [http-0.0.0.0-8080-2] ERROR STDERR - at java.lang.reflect.Method.invoke(Method.java:597)
> 2009-03-05 19:56:07,900 [http-0.0.0.0-8080-2] ERROR STDERR - at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
> 2009-03-05 19:56:07,901 [http-0.0.0.0-8080-2] ERROR STDERR - at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
> 2009-03-05 19:56:07,901 [http-0.0.0.0-8080-2] ERROR STDERR - at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
> 2009-03-05 19:56:07,901 [http-0.0.0.0-8080-2] ERROR STDERR - at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
> 2009-03-05 19:56:07,901 [http-0.0.0.0-8080-2] ERROR STDERR - at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
> 2009-03-05 19:56:07,901 [http-0.0.0.0-8080-2] ERROR STDERR - at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
> 2009-03-05 19:56:07,901 [http-0.0.0.0-8080-2] ERROR STDERR - at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
> 2009-03-05 19:56:07,901 [http-0.0.0.0-8080-2] ERROR STDERR - at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
> 2009-03-05 19:56:07,901 [http-0.0.0.0-8080-2] ERROR STDERR - at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
> 2009-03-05 19:56:07,901 [http-0.0.0.0-8080-2] ERROR STDERR - at org.jboss.seam.security.SecurityInterceptor.aroundInvoke(SecurityInterceptor.java:157)
> 2009-03-05 19:56:07,901 [http-0.0.0.0-8080-2] ERROR STDERR - at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
> 2009-03-05 19:56:07,902 [http-0.0.0.0-8080-2] ERROR STDERR - at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
> 2009-03-05 19:56:07,902 [http-0.0.0.0-8080-2] ERROR STDERR - at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
> 2009-03-05 19:56:07,902 [http-0.0.0.0-8080-2] ERROR STDERR - at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
> 2009-03-05 19:56:07,902 [http-0.0.0.0-8080-2] ERROR STDERR - at org.drools.guvnor.server.ServiceImplementation_$$_javassist_7.buildPackage(ServiceImplementation_$$_javassist_7.java)
> 2009-03-05 19:56:07,902 [http-0.0.0.0-8080-2] ERROR STDERR - at org.drools.guvnor.server.RepositoryServiceServlet.buildPackage(RepositoryServiceServlet.java:196)
> 2009-03-05 19:56:07,902 [http-0.0.0.0-8080-2] ERROR STDERR - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 2009-03-05 19:56:07,902 [http-0.0.0.0-8080-2] ERROR STDERR - at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 2009-03-05 19:56:07,902 [http-0.0.0.0-8080-2] ERROR STDERR - at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 2009-03-05 19:56:07,902 [http-0.0.0.0-8080-2] ERROR STDERR - at java.lang.reflect.Method.invoke(Method.java:597)
> 2009-03-05 19:56:07,902 [http-0.0.0.0-8080-2] ERROR STDERR - at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527)
> 2009-03-05 19:56:07,902 [http-0.0.0.0-8080-2] ERROR STDERR - ... 27 more
> 2009-03-05 19:56:07,903 [http-0.0.0.0-8080-2] ERROR STDERR - Caused by: java.lang.IllegalArgumentException: argument type mismatch
> 2009-03-05 19:56:07,903 [http-0.0.0.0-8080-2] ERROR STDERR - at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 2009-03-05 19:56:07,903 [http-0.0.0.0-8080-2] ERROR STDERR - at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> 2009-03-05 19:56:07,903 [http-0.0.0.0-8080-2] ERROR STDERR - at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> 2009-03-05 19:56:07,903 [http-0.0.0.0-8080-2] ERROR STDERR - at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> 2009-03-05 19:56:07,903 [http-0.0.0.0-8080-2] ERROR STDERR - at org.drools.base.ClassFieldAccessorFactory.getClassFieldReader(ClassFieldAccessorFactory.java:143)
> 2009-03-05 19:56:07,903 [http-0.0.0.0-8080-2] ERROR STDERR - ... 68 more
> here is my drl:
> package eventprocessor
> import eventprocessor.model.NetworkEvent
> global EventExpertProcessor processor
> declare NetworkEvent
> @role( event )
> @timestamp( creationTime )
> end
> here is the NetworkEvent code:
> package eventprocessor.model;
> import java.util.Date;
> /**
> *
> * @author zoly
> */
> public class NetworkEvent {
> private String id;
> private String description;
> private NetworkNode sourceComponent;
> private Integer severity;
> private Date creationTime;
> private java.math.BigDecimal locElevation;
> private java.math.BigDecimal locLongitude;
> private java.math.BigDecimal locLatitude;
> /**
> * @return the id
> */
> public String getId()
> {
> return id;
> }
> /**
> * @param id the id to set
> */
> public void setId(String id)
> {
> this.id = id;
> }
> /**
> * @return the description
> */
> public String getDescription()
> {
> return description;
> }
> /**
> * @param description the description to set
> */
> public void setDescription(String description)
> {
> this.description = description;
> }
> /**
> * @return the sourceComponent
> */
> public NetworkNode getSourceComponent()
> {
> return sourceComponent;
> }
> /**
> * @param sourceComponent the sourceComponent to set
> */
> public void setSourceComponent(NetworkNode sourceComponent)
> {
> this.sourceComponent = sourceComponent;
> }
> /**
> * @return the severity
> */
> public Integer getSeverity()
> {
> return severity;
> }
> /**
> * @param severity the severity to set
> */
> public void setSeverity(Integer severity)
> {
> this.severity = severity;
> }
> /**
> * @return the creationTime
> */
> public Date getCreationTime()
> {
> return creationTime;
> }
> /**
> * @param creationTime the creationTime to set
> */
> public void setCreationTime(Date creationTime)
> {
> this.creationTime = creationTime;
> }
> /**
> * @return the locElevation
> */
> public java.math.BigDecimal getLocElevation()
> {
> return locElevation;
> }
> /**
> * @param locElevation the locElevation to set
> */
> public void setLocElevation(java.math.BigDecimal locElevation)
> {
> this.locElevation = locElevation;
> }
> /**
> * @return the locLongitude
> */
> public java.math.BigDecimal getLocLongitude()
> {
> return locLongitude;
> }
> /**
> * @param locLongitude the locLongitude to set
> */
> public void setLocLongitude(java.math.BigDecimal locLongitude)
> {
> this.locLongitude = locLongitude;
> }
> /**
> * @return the locLatitude
> */
> public java.math.BigDecimal getLocLatitude()
> {
> return locLatitude;
> }
> /**
> * @param locLatitude the locLatitude to set
> */
> public void setLocLatitude(java.math.BigDecimal locLatitude)
> {
> this.locLatitude = locLatitude;
> }
> @Override
> public boolean equals(Object obj)
> {
> if (obj == null)
> {
> return false;
> }
> if (getClass() != obj.getClass())
> {
> return false;
> }
> final NetworkEvent other = (NetworkEvent) obj;
> if ((this.id == null) ? (other.id != null) : !this.id.equals(other.id))
> {
> return false;
> }
> return true;
> }
> @Override
> public int hashCode()
> {
> int hash = 7;
> hash = 17 * hash + (this.id != null ? this.id.hashCode() : 0);
> return hash;
> }
> public String toString()
> {
> StringBuilder toStringBuilder = new StringBuilder();
> toStringBuilder.append(super.toString());
> toStringBuilder.append("\n");
> toStringBuilder.append("\nid: ");
> toStringBuilder.append(id);
> toStringBuilder.append("\ndescription: ");
> toStringBuilder.append(description);
> toStringBuilder.append("\nsourceComponent: ");
> toStringBuilder.append(sourceComponent);
> toStringBuilder.append("\nseverity: ");
> toStringBuilder.append(severity);
> toStringBuilder.append("\ncreationTime: ");
> toStringBuilder.append(creationTime);
> toStringBuilder.append("\nlocElevation: ");
> toStringBuilder.append(locElevation);
> toStringBuilder.append("\nlocLongitude: ");
> toStringBuilder.append(locLongitude);
> toStringBuilder.append("\nlocLatitude: ");
> toStringBuilder.append(locLatitude);
> return toStringBuilder.toString();
> }
>
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list