JBoss Community

IronJacamar AbstractResourceAdapterDeployer classloader issue

created by insipid in JBoss AS7 Development - View the full discussion

After being unable to get some AdminObjects to bind, I decided to do a little debugging and noticed this:

 

if (ao != null && ao instanceof Serializable && ao instanceof Referenceable)  [AbstractResourceAdapterDeployer line 859]

 

which seems to always fail with the provided classloader handed down from ResourceAdapterXmlDeploymentService's deployer implementation.  I am still learning my way around the code, but perhaps these interfaces were loaded seperately by ao's classloader and this check needs to be fixed?

 

The reason I am posting here instead of actually fixing the issue is that I could not get IronJacamar to build in Windows.  Perhaps I am not using the correct encoding and that is causing the annotation processor to croak?  (been trying to figure it out all night)

 

[javac]

    [javac]

    [javac] An annotation processor threw an uncaught exception.

    [javac] Consult the following stack trace for details.

    [javac] java.lang.StringIndexOutOfBoundsException: String index out of range

: 1

    [javac]     at java.lang.String.charAt(String.java:695)

    [javac]     at java.util.regex.Matcher.appendReplacement(Matcher.java:761)

    [javac]     at java.util.regex.Matcher.replaceAll(Matcher.java:905)

    [javac]     at java.lang.String.replaceAll(String.java:2210)

    [javac]     at org.jboss.logging.generator.apt.TranslationFileGenerator.proc

essTypeElement(TranslationFileGenerator.java:55)

    [javac]     at org.jboss.logging.generator.apt.LoggingToolsProcessor.process

(LoggingToolsProcessor.java:152)

    [javac]     at com.sun.tools.javac.processing.JavacProcessingEnvironment.cal

lProcessor(JavacProcessingEnvironment.java:793)

    [javac]     at com.sun.tools.javac.processing.JavacProcessingEnvironment.dis

coverAndRunProcs(JavacProcessingEnvironment.java:722)

    [javac]     at com.sun.tools.javac.processing.JavacProcessingEnvironment.acc

ess$1700(JavacProcessingEnvironment.java:97)

    [javac]     at com.sun.tools.javac.processing.JavacProcessingEnvironment$Rou

nd.run(JavacProcessingEnvironment.java:1029)

    [javac]     at com.sun.tools.javac.processing.JavacProcessingEnvironment.doP

rocessing(JavacProcessingEnvironment.java:1163)

    [javac]     at com.sun.tools.javac.main.JavaCompiler.processAnnotations(Java

Compiler.java:1106)

    [javac]     at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.ja

va:824)

    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:417)

    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:331)

    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:322)

    [javac]     at com.sun.tools.javac.Main.compile(Main.java:76)

    [javac]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    [javac]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces

sorImpl.java:57)

    [javac]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet

hodAccessorImpl.java:43)

    [javac]     at java.lang.reflect.Method.invoke(Method.java:601)

    [javac]     at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac

13.java:56)

    [javac]     at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1134)

    [javac]     at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:912)

    [javac]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja

va:291)

    [javac]     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)

    [javac]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet

hodAccessorImpl.java:43)

    [javac]     at java.lang.reflect.Method.invoke(Method.java:601)

    [javac]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchU

tils.java:106)

    [javac]     at org.apache.tools.ant.Task.perform(Task.java:348)

    [javac]     at org.apache.tools.ant.Target.execute(Target.java:390)

    [javac]     at org.apache.tools.ant.Target.performTasks(Target.java:411)

    [javac]     at org.apache.tools.ant.Project.executeSortedTargets(Project.jav

a:1399)

    [javac]     at org.apache.tools.ant.helper.SingleCheckExecutor.executeTarget

s(SingleCheckExecutor.java:38)

    [javac]     at org.apache.tools.ant.Project.executeTargets(Project.java:1251

)

    [javac]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)

    [javac]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja

va:291)

    [javac]     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)

    [javac]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet

hodAccessorImpl.java:43)

    [javac]     at java.lang.reflect.Method.invoke(Method.java:601)

    [javac]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchU

tils.java:106)

    [javac]     at org.apache.tools.ant.Task.perform(Task.java:348)

    [javac]     at org.apache.tools.ant.Target.execute(Target.java:390)

    [javac]     at org.apache.tools.ant.Target.performTasks(Target.java:411)

    [javac]     at org.apache.tools.ant.Project.executeSortedTargets(Project.jav

a:1399)

    [javac]     at org.apache.tools.ant.Project.executeTarget(Project.java:1368)

 

    [javac]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De

faultExecutor.java:41)

    [javac]     at org.apache.tools.ant.Project.executeTargets(Project.java:1251

)

    [javac]     at org.apache.tools.ant.Main.runBuild(Main.java:809)

    [javac]     at org.apache.tools.ant.Main.startAnt(Main.java:217)

    [javac]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)

    [javac]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

 

BUILD FAILED

Reply to this message by going to Community

Start a new discussion in JBoss AS7 Development at Community