[JBoss JIRA] Created: (JBAS-7798) Naming deployers should get module name from NamedModule attached to DeploymentUnit
by Brian Stansberry (JIRA)
Naming deployers should get module name from NamedModule attached to DeploymentUnit
-----------------------------------------------------------------------------------
Key: JBAS-7798
URL: https://jira.jboss.org/jira/browse/JBAS-7798
Project: JBoss Application Server
Issue Type: Sub-task
Security Level: Public (Everyone can see)
Components: Deployers
Reporter: Brian Stansberry
Assignee: Carlo de Wolf
Fix For: JBossAS-6.0.0.M3
See discussion thread linked from parent issue.
The ModuleNameDeployer created for the JBAS-7644 work attaches the metadata object that implements the NamedModule interface to the DU under key NamedModule.class. The naming deployers should get this attachment to find the module name, rather than using NamingJavaEEModuleInformer.getModulePath().
Note that my JBAS-7644 work actually hacked NamingJavaEEModuleInformer.getModulePath() to have it get the NamedModule attachment rather than returning a path. That was to allow the deployer to get integrated and tested in hudson pending completion of this subtask.
--
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
14 years, 9 months
[JBoss JIRA] Created: (JBREFLECT-108) Javassist primitive field joinpoints don't compile
by Kabir Khan (JIRA)
Javassist primitive field joinpoints don't compile
--------------------------------------------------
Key: JBREFLECT-108
URL: https://jira.jboss.org/jira/browse/JBREFLECT-108
Project: JBoss Reflection
Issue Type: Bug
Reporter: Kabir Khan
Assignee: Kabir Khan
Fix For: JBossReflection.2.2.0-Alpha5
java.lang.RuntimeException: Error configuring property: time for tester
at org.jboss.kernel.plugins.dependency.ConfigureAction.dispatchSetProperty(ConfigureAction.java:112)
at org.jboss.kernel.plugins.dependency.ConfigureAction.setAttributes(ConfigureAction.java:85)
at org.jboss.kernel.plugins.dependency.ConfigureAction.installActionInternal(ConfigureAction.java:44)
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:1)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:377)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)
at org.jboss.test.kernel.annotations.test.AbstractBeanAnnotationAdapterTest$TestController.install(AbstractBeanAnnotationAdapterTest.java:8
8)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)
at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:894)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:641)
at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:103)
at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:97)
at org.jboss.test.kernel.annotations.test.AfterInstantiateAnnotationsTestCase.testAfterInstantiationBeanInfo(AfterInstantiateAnnotationsTes
tCase.java:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.RuntimeException: Cannot compile public void set(Object target, Object value) throws Throwable {if (target == null) thr
ow new IllegalArgumentException("Null target for time");if (target instanceof org.jboss.test.kernel.annotations.support.AfterInstantiateTest
er == false) throw new IllegalArgumentException("Target " + target + " is not an instance of org.jboss.test.kernel.annotations.support.After
InstantiateTester for time");if (type == null) throw new IllegalArgumentException("Value cannot be null for int for time");if (value != nul
l && value instanceof java.lang.Integer == false) throw new IllegalArgumentException("Value " + value + " is not an instance of java.lang.In
teger for time");((org.jboss.test.kernel.annotations.support.AfterInstantiateTester)target).time=((java.lang.Integer)value).intValue();}
at org.jboss.reflect.plugins.javassist.JavassistReflectionFactory.createField(JavassistReflectionFactory.java:571)
at org.jboss.reflect.plugins.javassist.JavassistFieldInfo.set(JavassistFieldInfo.java:151)
at org.jboss.beans.info.plugins.FieldPropertyInfo.set(FieldPropertyInfo.java:99)
at org.jboss.beans.info.plugins.BeanInfoUtil.set(BeanInfoUtil.java:177)
at org.jboss.beans.info.plugins.AbstractBeanInfo.setProperty(AbstractBeanInfo.java:289)
at org.jboss.kernel.plugins.dependency.PropertyDispatchWrapper.execute(PropertyDispatchWrapper.java:114)
at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:125)
at org.jboss.kernel.plugins.dependency.ConfigureAction.dispatchSetProperty(ConfigureAction.java:107)
... 38 more
Caused by: javassist.CannotCompileException: [source error] no such field: type
at javassist.CtNewMethod.make(CtNewMethod.java:78)
at javassist.CtNewMethod.make(CtNewMethod.java:44)
at org.jboss.reflect.plugins.javassist.JavassistReflectionFactory.createField(JavassistReflectionFactory.java:566)
... 46 more
Caused by: compile error: no such field: type
at javassist.compiler.TypeChecker.fieldAccess(TypeChecker.java:812)
at javassist.compiler.TypeChecker.atFieldRead(TypeChecker.java:770)
at javassist.compiler.TypeChecker.atMember(TypeChecker.java:952)
at javassist.compiler.JvstTypeChecker.atMember(JvstTypeChecker.java:65)
at javassist.compiler.ast.Member.accept(Member.java:38)
at javassist.compiler.TypeChecker.booleanExpr(TypeChecker.java:514)
at javassist.compiler.TypeChecker.atBinExpr(TypeChecker.java:336)
at javassist.compiler.ast.BinExpr.accept(BinExpr.java:40)
at javassist.compiler.CodeGen.doTypeCheck(CodeGen.java:241)
at javassist.compiler.CodeGen.compileBooleanExpr(CodeGen.java:235)
at javassist.compiler.CodeGen.atIfStmnt(CodeGen.java:383)
at javassist.compiler.CodeGen.atStmnt(CodeGen.java:354)
at javassist.compiler.ast.Stmnt.accept(Stmnt.java:49)
at javassist.compiler.CodeGen.atStmnt(CodeGen.java:350)
at javassist.compiler.ast.Stmnt.accept(Stmnt.java:49)
at javassist.compiler.CodeGen.atMethodBody(CodeGen.java:291)
at javassist.compiler.CodeGen.atMethodDecl(CodeGen.java:273)
at javassist.compiler.ast.MethodDecl.accept(MethodDecl.java:43)
at javassist.compiler.Javac.compileMethod(Javac.java:168)
at javassist.compiler.Javac.compile(Javac.java:94)
at javassist.CtNewMethod.make(CtNewMethod.java:73)
... 48 more
--
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
14 years, 9 months