[JBoss AOP] - no such field: jboss
by s_singh
We've been using jboss-aop for past 6 months or so without any issues, except for one weird problem that crops up now and then.
Whenever a class to be aspectized contains a variable whose name is "org" (without quotes), then the aspectization fails with the error stack pasted below. Pls See sample code.
Mostly, when the source code is in my control i can change the variable name to "org1" or something and proceed, but sometimes changing the variable name can be quite a cumbersome process if source is not owned.
Is this some known issue ? I searched the forum and googled but didnt find anything.
We use load time weaving.
AOP version 1.5.3 GA
Jboss - 4.0.2
JRockit - jrockit-R26.4.0-jdk1.5.0_06
Steps to reproduce : include following package in jboss-service.xml of jboss-aop-jdk50.deployer, and invoke m1 from a JSP or some place.
package com.integral.admin;
public class Test
{
private static String org="Fail";
public void m1()
{
System.out.println("Dummy");
}
}
If variable name is changed from org to org1 it starts working. Weirdly enough, changing the package also fixes the problem. So, it looks to be combination of package name and variable name being org.
---- Error ---
[error] [source error] no such field: jboss.. Do verbose mode if you want full s
tack trace.
[JRockit] WARNING: Error during class preprocessing:
java.lang.RuntimeException: javassist.CannotCompileException: [source error] no
such field: jboss
at org.jboss.aop.deployment.AspectManagerService$1.transform(AspectManag
erService.java:212)
at org.jboss.aop.hook.JDK14TransformerManager.transform(JDK14Transformer
Manager.java:28)
at org.jboss.aop.hook.JRockitPluggableClassPreProcessor.preProcess(JRock
itPluggableClassPreProcessor.java:18)
at java.lang.ClassLoader.defineClass(Ljava.lang.String;[BIILjava.securit
y.ProtectionDomain;)Ljava.lang.Class;(Unknown Source)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
4)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(Repositor
yClassLoader.java:633)
at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassL
oader.java:613)
at java.lang.ClassLoader.loadClass(Ljava.lang.String;Z)Ljava.lang.Class;
(Unknown Source)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(Repositor
yClassLoader.java:162)
at org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask
.java:119)
at org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:385)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryCl
assLoader.java:481)
at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassL
oader.java:377)
at java.lang.ClassLoader.loadClass(Ljava.lang.String;Z)Ljava.lang.Class;
(Unknown Source)
at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:580)
at java.lang.ClassLoader.loadClass(Ljava.lang.String;Z)Ljava.lang.Class;
(Unknown Source)
at java.lang.ClassLoader.loadClass(Ljava.lang.String;)Ljava.lang.Class;(
Unknown Source)
at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:15
0)
at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:71
)
at java.lang.ClassLoader.loadClassFromNative(Ljava.lang.String;)Ljava.la
ng.Class;(Unknown Source)
Caused by: javassist.CannotCompileException: [source error] no such field: jboss
at javassist.CtField$CodeInitializer0.compileIfStatic(CtField.java:757)
at javassist.CtClassType.modifyClassConstructor(CtClassType.java:1237)
at javassist.CtClassType.toBytecode(CtClassType.java:1181)
at javassist.CtClass.toBytecode(CtClass.java:1110)
at org.jboss.aop.AspectManager.translate(AspectManager.java:796)
at org.jboss.aop.deployment.AspectManagerService$1.transform(AspectManag
erService.java:208)
at org.jboss.aop.hook.JDK14TransformerManager.transform(JDK14Transformer
Manager.java:28)
at org.jboss.aop.hook.JRockitPluggableClassPreProcessor.preProcess(JRock
itPluggableClassPreProcessor.java:18)
at java.lang.ClassLoader.defineClass(Ljava.lang.String;[BIILjava.securit
y.ProtectionDomain;)Ljava.lang.Class;(Unknown Source)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
4)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(Repositor
yClassLoader.java:633)
at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassL
oader.java:613)
at java.lang.ClassLoader.loadClass(Ljava.lang.String;Z)Ljava.lang.Class;
(Unknown Source)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(Repositor
yClassLoader.java:162)
at org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask
.java:119)
at org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:385)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryCl
assLoader.java:481)
at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassL
oader.java:377)
at java.lang.ClassLoader.loadClass(Ljava.lang.String;Z)Ljava.lang.Class;
(Unknown Source)
at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:580)
at java.lang.ClassLoader.loadClass(Ljava.lang.String;Z)Ljava.lang.Class;
(Unknown Source)
at java.lang.ClassLoader.loadClass(Ljava.lang.String;)Ljava.lang.Class;(
Unknown Source)
at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:15
0)
Caused by: compile error: no such field: jboss
at javassist.compiler.MemberResolver.lookupField(MemberResolver.java:302
)
at javassist.compiler.MemberResolver.lookupFieldByJvmName(MemberResolver
.java:288)
at javassist.compiler.TypeChecker.fieldAccess(TypeChecker.java:778)
at javassist.compiler.TypeChecker.atFieldRead(TypeChecker.java:719)
at javassist.compiler.TypeChecker.atExpr(TypeChecker.java:521)
at javassist.compiler.ast.Expr.accept(Expr.java:67)
at javassist.compiler.TypeChecker.fieldAccess(TypeChecker.java:776)
at javassist.compiler.TypeChecker.atFieldRead(TypeChecker.java:719)
at javassist.compiler.TypeChecker.atExpr(TypeChecker.java:521)
at javassist.compiler.ast.Expr.accept(Expr.java:67)
at javassist.compiler.TypeChecker.fieldAccess(TypeChecker.java:776)
at javassist.compiler.TypeChecker.atFieldRead(TypeChecker.java:719)
at javassist.compiler.TypeChecker.atExpr(TypeChecker.java:521)
at javassist.compiler.ast.Expr.accept(Expr.java:67)
at javassist.compiler.TypeChecker.atCallExpr(TypeChecker.java:603)
at javassist.compiler.JvstTypeChecker.atCallExpr(JvstTypeChecker.java:15
6)
at javassist.compiler.ast.CallExpr.accept(CallExpr.java:45)
at javassist.compiler.TypeChecker.atCallExpr(TypeChecker.java:603)
at javassist.compiler.JvstTypeChecker.atCallExpr(JvstTypeChecker.java:15
6)
at javassist.compiler.ast.CallExpr.accept(CallExpr.java:45)
at javassist.compiler.CodeGen.doTypeCheck(CodeGen.java:235)
at javassist.compiler.CodeGen.compileExpr(CodeGen.java:222)
at javassist.compiler.Javac.compileExpr(Javac.java:597)
at javassist.compiler.Javac.compileExpr(Javac.java:573)
at javassist.CtField$CodeInitializer.compileExpr(CtField.java:796)
at javassist.CtField$CodeInitializer0.compileIfStatic(CtField.java:752)
at javassist.CtClassType.modifyClassConstructor(CtClassType.java:1237)
at javassist.CtClassType.toBytecode(CtClassType.java:1181)
at javassist.CtClass.toBytecode(CtClass.java:1110)
at org.jboss.aop.AspectManager.translate(AspectManager.java:796)
at org.jboss.aop.deployment.AspectManagerService$1.transform(AspectManag
erService.java:208)
at org.jboss.aop.hook.JDK14TransformerManager.transform(JDK14Transformer
Manager.java:28)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040489#4040489
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040489
19 years
[Clustering/JBoss] - Re: Serious production problems
by anre42
We are struggling with the same kind of problems. Tomcat gets unresponsive after a while and sometimes we can see an OutOfMemoryError but not always.
We are running jboss 4.0.3_SP1 in a cluster with apache in front, java version is 1.5.0_11 and os is RedaHat EL.
The problem seams only to affect tomcat and the rest of jboss e.g. seams to run ok. From jstats we see that most threads are "BLOCKED" and the ones that are not are in "IN_NATIVE" state doing either socketAccespt, socketRead or receive. We cannot see any correlation to the load on the server, we can provoke this with only one user. However, it occurs most irregular, sometimes several times pers day sometimes a week can go by.
Would appreciate all hints that could help us solve this problem
Cheers!
/Andras
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040482#4040482
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040482
19 years
[JBoss Portal] - Re: Jboss26CR1 --for mysql5
by kevnlin
007-04-25 16:20:39,826 WARN [org.hibernate.util.JDBCExceptionReporter] SQL Warning: 1051, SQLState: 42S02
2007-04-25 16:20:39,826 WARN [org.hibernate.util.JDBCExceptionReporter] Unknown table 'JBPM_ID_PERMISSIONS'
2007-04-25 16:20:39,827 DEBUG [org.hibernate.tool.hbm2ddl.SchemaExport]
drop table if exists JBPM_ID_USER
2007-04-25 16:20:39,832 DEBUG [org.hibernate.util.JDBCExceptionReporter] SQL Warning
java.sql.SQLWarning: Unknown table 'JBPM_ACTION'
at com.mysql.jdbc.SQLError.convertShowWarningsToSQLWarnings(SQLError.java:730)
at com.mysql.jdbc.SQLError.convertShowWarningsToSQLWarnings(SQLError.java:658)
at com.mysql.jdbc.Statement.getWarnings(Statement.java:1945)
at org.jboss.resource.adapter.jdbc.WrappedStatement.getWarnings(WrappedStatement.java:144)
at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:309)
at org.hibernate.tool.hbm2ddl.SchemaExport.drop(SchemaExport.java:284)
at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:186)
at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:133)
at org.jboss.portal.jems.hibernate.SessionFactoryBinder.createSchema(SessionFactoryBinder.java:343)
at org.jboss.portal.jems.hibernate.SessionFactoryBinder.startService(SessionFactoryBinder.java:259)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
at org.jboss.portal.jems.as.system.AbstractJBossService.start(AbstractJBossService.java:73)
at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.portal.jems.as.system.JBossServiceModelMBean$ServiceMixin.execute(JBossServiceModelMBean.java:428)
at org.jboss.portal.jems.as.system.JBossServiceModelMBean$ServiceMixin.startService(JBossServiceModelMBean.java:394)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
at org.jboss.portal.jems.as.system.JBossServiceModelMBean$5.invoke(JBossServiceModelMBean.java:316)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:995)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040481#4040481
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040481
19 years
[JBoss Portal] - Re: Jboss26CR1 --for mysql5
by kevnlin
2007-04-25 16:20:34,379 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
2007-04-25 16:20:34,379 DEBUG [org.hibernate.jdbc.ConnectionManager] aggressively releasing JDBC connection
2007-04-25 16:20:34,380 DEBUG [org.hibernate.jdbc.ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
2007-04-25 16:20:34,381 DEBUG [org.hibernate.util.JDBCExceptionReporter] could not execute query [select taskinstan0_.ID_ as ID1_26_, taskinstan0_.DESTINATION_ as DESTINAT3_26_, taskinstan0_.EXCEPTION_ as EXCEPTION4_26_, taskinstan0_.ISSUSPENDED_ as ISSUSPEN5_26_, taskinstan0_.TOKEN_ as TOKEN6_26_, taskinstan0_.TRANSITIONNAME_ as TRANSIT10_26_, taskinstan0_.TASKINSTANCE_ as TASKINS11_26_ from JBPM_MESSAGE taskinstan0_ where taskinstan0_.CLASS_='K']
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table 'jbossp26.JBPM_MESSAGE' doesn't exist
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1403)
at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:236)
at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:186)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1668)
at org.hibernate.loader.Loader.doQuery(Loader.java:662)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
at org.hibernate.loader.Loader.doList(Loader.java:2144)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2028)
at org.hibernate.loader.Loader.list(Loader.java:2023)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:393)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
at org.hibernate.impl.SessionIm
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040480#4040480
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040480
19 years
[JBoss jBPM] - Re: jBMP for SOA
by kukeltje
The jbpm webconsole of version 3.2 has never been tested with 3.1.x in any way. There has never been any guarantee that it would/should work. So if that is your issue, unfortunately you are on your own. All the errors you get have most likely never been seen by others, and the jBPM core team has currently no intentions to try to backport the webconsole.
Deploying the webconsole on a different jboss instance is no different from deploying the full jbpm engine since the console needs the core.
The actionhandlers do not need to be deployed in each process, they can be deployed separately but if you do it on a packaging level there is not much overhead, at least for us there isn't.
If I were you, I'd focus on/pushing for seam to be compatible with jbpm 3.2
You are not asking to much of jbpm/seam, but what you are trying to do is put a ferrari engine on a lamborgini chassis and use a porsche bodywork.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040477#4040477
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040477
19 years