[JBoss JIRA] Created: (JBAOP-527) field NotFoundException on an already instrumented class
by Konstantin Sobolev (JIRA)
field NotFoundException on an already instrumented class
--------------------------------------------------------
Key: JBAOP-527
URL: http://jira.jboss.com/jira/browse/JBAOP-527
Project: JBoss AOP
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 1.5.6.GA
Environment: Linux, 1.6.0_04 x64
Reporter: Konstantin Sobolev
I'm using java agent API to instrument all of my classes, a static field named "sIzE_" is added using javassist library. Later, when such instrumented classes get to JBossAOP, it becomes very upset:
Caused by: java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.jboss.ejb.plugins.BMPPersistenceManager.createBeanClassInstance(BMPPersistenceManager.java:128)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createBeanClassInstance(CachedConnectionInterceptor.java:220)
at org.jboss.ejb.EntityContainer.createBeanClassInstance(EntityContainer.java:238)
at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:183)
... 121 more
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: javassist.NotFoundException: field: sIzE_ in com.supportwizard.utils.ejb.SWBMPEntityBean
at org.jboss.aop.pointcut.FieldMatcher.visit(FieldMatcher.java:166)
at org.jboss.aop.pointcut.ast.ASTAll.jjtAccept(ASTAll.java:21)
at org.jboss.aop.pointcut.MatcherHelper.visit(MatcherHelper.java:77)
at org.jboss.aop.pointcut.MatcherHelper.matches(MatcherHelper.java:72)
at org.jboss.aop.pointcut.PointcutExpression.matchesGet(PointcutExpression.java:139)
at org.jboss.aop.ClassAdvisor.resolveFieldPointcut(ClassAdvisor.java:365)
at org.jboss.aop.ClassAdvisor.createInterceptorChains(ClassAdvisor.java:456)
at org.jboss.aop.ClassAdvisor$1.run(ClassAdvisor.java:237)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:209)
at org.jboss.aop.AspectManager.getAdvisor(AspectManager.java:459)
at com.supportwizard.swgroups.SWGroupsBean.<clinit>(SWGroupsBean.java)
... 131 more
Caused by: java.lang.RuntimeException: javassist.NotFoundException: field: sIzE_ in com.supportwizard.utils.ejb.SWBMPEntityBean
at org.jboss.aop.Advisor.hasAnnotation(Advisor.java:325)
at org.jboss.aop.pointcut.FieldMatcher.visit(FieldMatcher.java:162)
... 142 more
Caused by: javassist.NotFoundException: field: sIzE_ in com.supportwizard.utils.ejb.SWBMPEntityBean
at javassist.CtClassType.getField(CtClassType.java:822)
at org.jboss.aop.util.ReflectToJavassist.fieldToJavassist(ReflectToJavassist.java:34)
at org.jboss.aop.annotation.PortableAnnotationElement.isAnyAnnotationPresent(PortableAnnotationElement.java:97)
at org.jboss.aop.Advisor.hasAnnotation(Advisor.java:321)
I tried to add
try{ ... } catch (javassist.NotFoundException e) {return false;}
to PortableAnnotationElement.isAnyAnnotationPresent(Field, String)
and it helped. Don't know if it is a valid fix though.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 5 months
[JBoss JIRA] Created: (JBCACHE-1126) distribution example cannot complete (2.0 CR3)
by Aleksandar Kostadinov (JIRA)
distribution example cannot complete (2.0 CR3)
----------------------------------------------
Key: JBCACHE-1126
URL: http://jira.jboss.com/jira/browse/JBCACHE-1126
Project: JBoss Cache
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 2.0.0.CR3
Environment: linux, jdk1.5.0_11
Reporter: Aleksandar Kostadinov
Assigned To: Manik Surtani
Fix For: 2.0.0.CR4
All examples fail - some can't compile, some at runtime. These that compile are running and seem to do something (at least eat some CPU cycles) but don't complete within few minutes and through exceptions so I consider them failing. Anything I'm doing wrong? btw I run with ant.
One problem with a known reason: on loadtime example path is specified with ";" between file names and not ":". To be portable to windows and unix ant path or location element has to be used.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 5 months
[JBoss JIRA] Resolved: (JBAS-2235) Server Controller Tasks: Throw error if normal shutdown fails
by Aleksandar Kostadinov (JIRA)
[ http://jira.jboss.com/jira/browse/JBAS-2235?page=all ]
Aleksandar Kostadinov resolved JBAS-2235.
-----------------------------------------
Resolution: Done
JBoss to use jboss-test 1.0.5.GA committed in rev69869.
Final test suite behavior:
If any servers failed to shutdown before timeout should get destroyed and test suite execution continue.
The whole execution of the "tests" test suite target is recorded in output/tests.log on INFO level.
Last action in the "tests" test suite target is to check if any servers failed to shutdown and fail the build.
Future enhancements:
Compare number of test cases executed to number of test cases reported so we catch cases where reports get overwritten. (see JBAS-4103)
> Server Controller Tasks: Throw error if normal shutdown fails
> -------------------------------------------------------------
>
> Key: JBAS-2235
> URL: http://jira.jboss.com/jira/browse/JBAS-2235
> Project: JBoss Application Server
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Test Suite
> Environment: jboss-4.0 tip
> Reporter: Ryan Campbell
> Assigned To: Aleksandar Kostadinov
> Fix For: JBossAS-5.0.0.CR1
>
> Attachments: jboss-test-diff
>
> Time Spent: 2 hours
> Remaining Estimate: 0 minutes
>
> Currently, when a server fails to respond to a shutdown request, the process is killed and the tests continue.
> There should be an error thrown if the server fails to shutdown within the timeout period.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 5 months
[JBoss JIRA] Created: (JBRULES-1409) JBoss Maven2 repository is missing dependencies for Drools 4.0.3
by Mikhail Grushinskiy (JIRA)
JBoss Maven2 repository is missing dependencies for Drools 4.0.3
----------------------------------------------------------------
Key: JBRULES-1409
URL: http://jira.jboss.com/jira/browse/JBRULES-1409
Project: JBoss Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: All
Affects Versions: 4.0.3
Reporter: Mikhail Grushinskiy
JBoss Maven2 repository is missing dependencies for Drools 4.0.3
Trying to build project with these dependencies (and pointing to JBoss repository at
http://repository.jboss.com/maven2 )
produces an error (others are downloaded fine)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.antlr:antlr-runtime:jar:3.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.antlr -DartifactId=antlr-runtime \
-Dversion=3.0 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.antlr -
-Dversion=3.0 -Dpackaging=jar -Dfile=/path/to/file \
-Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) com.bas.pbt.tiger:tiger-model:jar:1.0-SNAPSHOT
2) org.drools:drools-compiler:jar:4.0.3
3) org.antlr:antlr-runtime:jar:3.0
2) xerces:xercesImpl:jar:2.4.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=xerces -DartifactId=xercesImpl \
-Dversion=2.4.0 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=xerces -Dar
-Dversion=2.4.0 -Dpackaging=jar -Dfile=/path/to/file \
-Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) com.bas.pbt.tiger:tiger-model:jar:1.0-SNAPSHOT
2) org.drools:drools-compiler:jar:4.0.3
3) xerces:xercesImpl:jar:2.4.0
3) janino:janino:jar:2.5.10
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=janino -DartifactId=janino \
-Dversion=2.5.10 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=janino -Dar
-Dversion=2.5.10 -Dpackaging=jar -Dfile=/path/to/file \
-Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) com.bas.pbt.tiger:tiger-model:jar:1.0-SNAPSHOT
2) org.drools:drools-compiler:jar:4.0.3
3) janino:janino:jar:2.5.10
4) jexcelapi:jxl:jar:2.4.2
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=jexcelapi -DartifactId=jxl \
-Dversion=2.4.2 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=jexcelapi -
-Dversion=2.4.2 -Dpackaging=jar -Dfile=/path/to/file \
-Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) com.bas.pbt.tiger:tiger-model:jar:1.0-SNAPSHOT
2) org.drools:drools-decisiontables:jar:4.0.3
3) jexcelapi:jxl:jar:2.4.2
----------
4 required artifacts are missing.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 5 months
[JBoss JIRA] Created: (JBRULES-1333) Enum doesn't work in the decision table
by tobato king (JIRA)
Enum doesn't work in the decision table
---------------------------------------
Key: JBRULES-1333
URL: http://jira.jboss.com/jira/browse/JBRULES-1333
Project: JBoss Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Decision tables
Affects Versions: 4.0.3
Reporter: tobato king
I have a enum like this:
public enum JobStatus {
UNEMPLOYED,EMPLOYED,RETIRED
}
I know i have to get a rule like this:
rule "EMPLOYED test"
no-loop true
when
$moneys:List()
$person:Person(jobstatus == JobStatus.EMPLOYED)
then
System.out.println( "EMPLOYED"+$person.getName());
$moneys.add(new Money(2));
retract($person);
end
I have imported the enum class and tryed define condition like JobStatus.EMPLOYED, EMPLOYED,"EMPLOYED", but nothing work!
I found JobStatus.EMPLOYED was convert to
$person:Person(jobstatus == "JobStatus.EMPLOYED")
buy the SpreadsheetCompiler
So, I think it seems have a bug.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 5 months