Created:
https://jira.jboss.org/jira/browse/JBRULES-1992
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.St
ring,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(RemoteSe
rviceServlet.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(RemoteService
Servlet.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(Applica
tionFilterChain.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(ApplicationFilt
erChain.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(ContextualHttpSe
rvletRequest.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(Applica
tionFilterChain.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(ApplicationFilt
erChain.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(ReplyHeaderFilte
r.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(Applica
tionFilterChain.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(ApplicationFilt
erChain.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(StandardWrapperValv
e.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(StandardContextValv
e.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(SecurityAs
sociationValve.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.j
ava: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(CachedConn
ectionValve.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:2
62)
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:84
4)
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(ClassField
AccessorFactory.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(Class
FieldAccessorCache.java:315)
2009-03-05 19:56:07,899 [http-0.0.0.0-8080-2] ERROR STDERR - at
org.drools.base.ClassFieldAccessorCache.getReadAcessor(ClassFieldAccesso
rCache.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.jav
a:379)
2009-03-05 19:56:07,899 [http-0.0.0.0-8080-2] ERROR STDERR - at
org.drools.base.ClassFieldAccessorStore.getReader(ClassFieldAccessorStor
e.java:97)
2009-03-05 19:56:07,899 [http-0.0.0.0-8080-2] ERROR STDERR - at
org.drools.base.ClassFieldAccessorStore.getReader(ClassFieldAccessorStor
e.java:74)
2009-03-05 19:56:07,899 [http-0.0.0.0-8080-2] ERROR STDERR - at
org.drools.compiler.PackageBuilder.processTypeDeclarations(PackageBuilde
r.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(DR
LFileContentHandler.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(Cont
entPackageAssembler.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(Co
ntentPackageAssembler.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>(ContentP
ackageAssembler.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>(ContentP
ackageAssembler.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(ServiceImple
mentation.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(ServiceImple
mentation.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.jav
a:39)
2009-03-05 19:56:07,900 [http-0.0.0.0-8080-2] ERROR STDERR - at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.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(RootInvocationCon
text.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(SeamInvocationCon
text.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(RollbackInte
rceptor.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(SeamInvocationCon
text.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(BijectionIntercept
or.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(SeamInvocationCon
text.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(MethodContextI
nterceptor.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(SeamInvocationCon
text.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(SecurityInterce
ptor.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(SeamInvocationCon
text.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(JavaBea
nInterceptor.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.buildPacka
ge(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(Repositor
yServiceServlet.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.jav
a:39)
2009-03-05 19:56:07,902 [http-0.0.0.0-8080-2] ERROR STDERR - at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.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(NativeConstructorA
ccessorImpl.java:39)
2009-03-05 19:56:07,903 [http-0.0.0.0-8080-2] ERROR STDERR - at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
tructorAccessorImpl.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(ClassField
AccessorFactory.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();
}
}
Regards
--zoly
-----Original Message-----
From: rules-dev-bounces(a)lists.jboss.org
[mailto:rules-dev-bounces@lists.jboss.org] On Behalf Of Michael Neale
Sent: Wednesday, March 04, 2009 10:24 PM
To: Rules Dev List
Subject: Re: [rules-dev] troubleshooting errors in guvnor
OK I added in some stack trace printing.
Note that it really *should* only be bugs that cause that sort of
error - if there is something that shouldn't cause it to happen then
please do raise a JIRA with details, so we can tighten the error
trapping and reporting (so we know if it is a real bug or someting we
need to report more clearly that can be rectified by the user -
without a stack trace being necessary of course !).
Thanks,
Michael.
On Thu, Mar 5, 2009 at 1:53 PM, Michael Neale <michael.neale(a)gmail.com>
wrote:
Ok, will see if I can add the stack trace back in - did you work out
what
the specific problem was ?
Sent from my phone.
On 05/03/2009, at 3:58, "Zoltan Farkas" <zoly(a)daxtechnologies.com>
wrote:
>
> I am attempting to build some rules with guvnor (5.0 latest
snapshot),
> and I get:
>
> "Sorry, a technical error occurred. Please contact a system
> administrator."
>
> I go to the event log and see a:
>
> org.drools.RuntimeException: java.lang.IllegalArgumentException:
> argument type mismatch
>
> I have a question:
>
> How can I get the stack trace of the exception, at some point in time
> they were available in the app server error log, but I don't see them
> there anymore. Stack trace would be of great help to figure out what
is
> going wrong.
>
> Thanks
>
> Zoltan Farkas
>
>
>
>
> _______________________________________________
> rules-dev mailing list
> rules-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-dev
--
Michael D Neale
home:
www.michaelneale.net
blog:
michaelneale.blogspot.com
_______________________________________________
rules-dev mailing list
rules-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev