Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-14138

components/rich cannot be compiled with java 1.6

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.5.8, 4.5.9
    • Fix Version/s: 4.5.9
    • Component/s: None
    • Labels:
      None

      Description

      Running mvn clean install -DskipTests=true -DskipITs from components/rich module with JDK 6 (or openJDK 6) will fail with message:

      [INFO] [generator completed: 26 ms]
      [INFO] [generator started: RendererClassGenerator]
      [ERROR] Error parsing expression for attribute class
      org.richfaces.cdk.templatecompiler.el.ParsingException: javax/el/ELException : Unsupported major.minor version 51.0
      	at org.richfaces.cdk.templatecompiler.el.types.TypesFactoryImpl$ClassDataHolder.visit(TypesFactoryImpl.java:396)
      	at org.richfaces.cdk.templatecompiler.el.types.TypesFactoryImpl$ClassWalkingLogic.walk(TypesFactoryImpl.java:440)
      	at org.richfaces.cdk.templatecompiler.el.types.TypesFactoryImpl.resolveClassPropertiesAndMethods(TypesFactoryImpl.java:476)
      	at org.richfaces.cdk.templatecompiler.el.types.TypesFactoryImpl.getPropertyDescriptor(TypesFactoryImpl.java:497)
      	at org.richfaces.cdk.templatecompiler.el.ELVisitor.getPropertyDescriptor(ELVisitor.java:266)
      	at org.richfaces.cdk.templatecompiler.el.node.AstPropertySuffixTreeNode.visit(AstPropertySuffixTreeNode.java:46)
      	at org.richfaces.cdk.templatecompiler.el.node.AbstractTreeNode.getChildOutput(AbstractTreeNode.java:53)
      	at org.richfaces.cdk.templatecompiler.el.node.AstValueTreeNode.visit(AstValueTreeNode.java:41)
      	at org.richfaces.cdk.templatecompiler.el.node.AbstractTreeNode.getChildOutput(AbstractTreeNode.java:53)
      	at org.richfaces.cdk.templatecompiler.el.node.AbstractMethodTreeNode.visitMethod(AbstractMethodTreeNode.java:62)
      	at org.richfaces.cdk.templatecompiler.el.node.AstFunctionTreeNode.visitObjectMethod(AstFunctionTreeNode.java:111)
      	at org.richfaces.cdk.templatecompiler.el.node.AstFunctionTreeNode.visit(AstFunctionTreeNode.java:56)
      	at org.richfaces.cdk.templatecompiler.el.node.AstDeferredOrDynamicExpressionTreeNode.visit(AstDeferredOrDynamicExpressionTreeNode.java:51)
      	at org.richfaces.cdk.templatecompiler.el.ELVisitor.visit(ELVisitor.java:223)
      	at org.richfaces.cdk.templatecompiler.el.ELVisitor.parse(ELVisitor.java:189)
      	at org.richfaces.cdk.templatecompiler.el.ELParserImpl.parse(ELParserImpl.java:39)
      	at org.richfaces.cdk.templatecompiler.statements.WriteAttributeStatement.parseExpression(WriteAttributeStatement.java:74)
      	at org.richfaces.cdk.templatecompiler.statements.WriteAttributeStatement.setAttribute(WriteAttributeStatement.java:59)
      	at org.richfaces.cdk.templatecompiler.statements.AttributesStatement.setupAttributeStatement(AttributesStatement.java:238)
      	at org.richfaces.cdk.templatecompiler.statements.AttributesStatement.processRegularAttributes(AttributesStatement.java:191)
      	at org.richfaces.cdk.templatecompiler.statements.AttributesStatement.processAttributes(AttributesStatement.java:69)
      	at org.richfaces.cdk.templatecompiler.RendererClassVisitor.startElement(RendererClassVisitor.java:451)
      	at org.richfaces.cdk.templatecompiler.model.AnyElement.beforeVisit(AnyElement.java:133)
      	at org.richfaces.cdk.templatecompiler.model.ModelFragment.visit(ModelFragment.java:45)
      	at org.richfaces.cdk.templatecompiler.model.ModelFragment.visitChildren(ModelFragment.java:56)
      	at org.richfaces.cdk.templatecompiler.RendererClassGenerator.render(RendererClassGenerator.java:122)
      	at org.richfaces.cdk.apt.DefaultLibraryGenerator.generate(DefaultLibraryGenerator.java:28)
      	at org.richfaces.cdk.apt.CdkProcessorImpl.generate(CdkProcessorImpl.java:157)
      	at org.richfaces.cdk.apt.CdkProcessorImpl.continueAfterJavaSourceProcessing(CdkProcessorImpl.java:133)
      	at org.richfaces.cdk.apt.CdkProcessorImpl.process(CdkProcessorImpl.java:106)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:735)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$100(JavacProcessingEnvironment.java:82)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment$DiscoveredProcessors$ProcessorStateIterator.runContributingProcs(JavacProcessingEnvironment.java:595)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment.runLastRound(JavacProcessingEnvironment.java:962)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:872)
      	at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1061)
      	at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:796)
      	at com.sun.tools.javac.main.Main.compile(Main.java:388)
      	at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:133)
      	at org.richfaces.cdk.apt.AptBuilder.build(AptBuilder.java:47)
      	at org.richfaces.cdk.Generator.execute(Generator.java:155)
      	at org.richfaces.builder.mojo.GenerateMojo.execute(GenerateMojo.java:221)
      	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
      	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
      	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
      	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
      	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
      	at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:622)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      Caused by: java.lang.UnsupportedClassVersionError: javax/el/ELException : Unsupported major.minor version 51.0
      	at java.lang.ClassLoader.defineClass1(Native Method)
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
      	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      	at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
      	at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
      	at java.lang.Class.getDeclaredMethods0(Native Method)
      	at java.lang.Class.privateGetDeclaredMethods(Class.java:2575)
      	at java.lang.Class.privateGetPublicMethods(Class.java:2693)
      	at java.lang.Class.getMethods(Class.java:1469)
      	at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1303)
      	at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1177)
      	at java.beans.Introspector.getBeanInfo(Introspector.java:409)
      	at java.beans.Introspector.getBeanInfo(Introspector.java:175)
      	at org.richfaces.cdk.templatecompiler.el.types.TypesFactoryImpl.getPropertyDescriptors(TypesFactoryImpl.java:536)
      	at org.richfaces.cdk.templatecompiler.el.types.TypesFactoryImpl.access$000(TypesFactoryImpl.java:74)
      	at org.richfaces.cdk.templatecompiler.el.types.TypesFactoryImpl$ClassDataHolder.visit(TypesFactoryImpl.java:393)
      	... 62 more
      [ERROR] Error rendering template
      
      Expression value is undefined on line 1, column 6 in write-attribute.ftl.
      The problematic instruction:
      ----------
      ==> if-else  [on line 1, column 1 in write-attribute.ftl]
      ----------
      
      Java backtrace for programmers:
      ----------
      freemarker.core.InvalidReferenceException: Expression value is undefined on line 1, column 6 in write-attribute.ftl.
      	at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
      	at freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:134)
      	at freemarker.core.Dot._getAsTemplateModel(Dot.java:78)
      	at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
      	at freemarker.core.Expression.isTrue(Expression.java:138)
      	at freemarker.core.IfBlock.accept(IfBlock.java:80)
      	at freemarker.core.Environment.visit(Environment.java:196)
      	at freemarker.core.Environment.process(Environment.java:176)
      	at freemarker.template.Template.process(Template.java:232)
      	at org.richfaces.cdk.generate.freemarker.CdkConfiguration.writeTemplate(CdkConfiguration.java:83)
      	at org.richfaces.cdk.generate.freemarker.CdkConfiguration.renderTemplate(CdkConfiguration.java:95)
      	at org.richfaces.cdk.templatecompiler.statements.FreeMarkerTemplateStatementBase.parse(FreeMarkerTemplateStatementBase.java:68)
      	at org.richfaces.cdk.templatecompiler.statements.FreeMarkerTemplateStatementBase.getRequiredMethods(FreeMarkerTemplateStatementBase.java:98)
      	at org.richfaces.cdk.templatecompiler.statements.StatementsContainer$3.apply(StatementsContainer.java:56)
      	at org.richfaces.cdk.templatecompiler.statements.StatementsContainer$3.apply(StatementsContainer.java:53)
      	at com.google.common.collect.Iterators$8.next(Iterators.java:812)
      	at com.google.common.collect.Iterables$3.next(Iterables.java:508)
      	at com.google.common.collect.Iterables$3.next(Iterables.java:501)
      	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:544)
      	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:543)
      	at org.richfaces.cdk.templatecompiler.RendererClassVisitor.addHelperMethods(RendererClassVisitor.java:271)
      	at org.richfaces.cdk.templatecompiler.RendererClassVisitor.flushToMethod(RendererClassVisitor.java:337)
      	at org.richfaces.cdk.templatecompiler.RendererClassVisitor.flushToEncodeMethod(RendererClassVisitor.java:346)
      	at org.richfaces.cdk.templatecompiler.RendererClassVisitor.postProcess(RendererClassVisitor.java:720)
      	at org.richfaces.cdk.templatecompiler.model.CompositeImplementation.afterVisit(CompositeImplementation.java:48)
      	at org.richfaces.cdk.templatecompiler.RendererClassGenerator.render(RendererClassGenerator.java:123)
      	at org.richfaces.cdk.apt.DefaultLibraryGenerator.generate(DefaultLibraryGenerator.java:28)
      	at org.richfaces.cdk.apt.CdkProcessorImpl.generate(CdkProcessorImpl.java:157)
      	at org.richfaces.cdk.apt.CdkProcessorImpl.continueAfterJavaSourceProcessing(CdkProcessorImpl.java:133)
      	at org.richfaces.cdk.apt.CdkProcessorImpl.process(CdkProcessorImpl.java:106)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:735)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$100(JavacProcessingEnvironment.java:82)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment$DiscoveredProcessors$ProcessorStateIterator.runContributingProcs(JavacProcessingEnvironment.java:595)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment.runLastRound(JavacProcessingEnvironment.java:962)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:872)
      	at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1061)
      	at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:796)
      	at com.sun.tools.javac.main.Main.compile(Main.java:388)
      	at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:133)
      	at org.richfaces.cdk.apt.AptBuilder.build(AptBuilder.java:47)
      	at org.richfaces.cdk.Generator.execute(Generator.java:155)
      	at org.richfaces.builder.mojo.GenerateMojo.execute(GenerateMojo.java:221)
      	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
      	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
      	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
      	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
      	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
      	at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:622)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      [ERROR] Error parse initialization expression for variable attributes
      org.richfaces.cdk.templatecompiler.el.ParsingException: javax/el/ELException : Unsupported major.minor version 51.0
      	at org.richfaces.cdk.templatecompiler.el.types.TypesFactoryImpl$ClassDataHolder.visit(TypesFactoryImpl.java:396)
      	at org.richfaces.cdk.templatecompiler.el.types.TypesFactoryImpl$ClassWalkingLogic.walk(TypesFactoryImpl.java:440)
      	at org.richfaces.cdk.templatecompiler.el.types.TypesFactoryImpl.resolveClassPropertiesAndMethods(TypesFactoryImpl.java:476)
      	at org.richfaces.cdk.templatecompiler.el.types.TypesFactoryImpl.getPropertyDescriptor(TypesFactoryImpl.java:497)
      	at org.richfaces.cdk.templatecompiler.el.ELVisitor.getPropertyDescriptor(ELVisitor.java:266)
      	at org.richfaces.cdk.templatecompiler.el.node.AstPropertySuffixTreeNode.visit(AstPropertySuffixTreeNode.java:46)
      	at org.richfaces.cdk.templatecompiler.el.node.AbstractTreeNode.getChildOutput(AbstractTreeNode.java:53)
      	at org.richfaces.cdk.templatecompiler.el.node.AstValueTreeNode.visit(AstValueTreeNode.java:41)
      	at org.richfaces.cdk.templatecompiler.el.node.AstDeferredOrDynamicExpressionTreeNode.visit(AstDeferredOrDynamicExpressionTreeNode.java:51)
      	at org.richfaces.cdk.templatecompiler.el.ELVisitor.visit(ELVisitor.java:223)
      	at org.richfaces.cdk.templatecompiler.el.ELVisitor.parse(ELVisitor.java:189)
      	at org.richfaces.cdk.templatecompiler.el.ELParserImpl.parse(ELParserImpl.java:39)
      	at org.richfaces.cdk.templatecompiler.statements.DefineObjectStatement.setObject(DefineObjectStatement.java:71)
      	at org.richfaces.cdk.templatecompiler.RendererClassVisitor.visitElement(RendererClassVisitor.java:618)
      	at org.richfaces.cdk.templatecompiler.model.CdkObjectElement.visit(CdkObjectElement.java:123)
      	at org.richfaces.cdk.templatecompiler.model.ModelFragment.visitChildren(ModelFragment.java:56)
      	at org.richfaces.cdk.templatecompiler.RendererClassGenerator.render(RendererClassGenerator.java:122)
      	at org.richfaces.cdk.apt.DefaultLibraryGenerator.generate(DefaultLibraryGenerator.java:28)
      	at org.richfaces.cdk.apt.CdkProcessorImpl.generate(CdkProcessorImpl.java:157)
      	at org.richfaces.cdk.apt.CdkProcessorImpl.continueAfterJavaSourceProcessing(CdkProcessorImpl.java:133)
      	at org.richfaces.cdk.apt.CdkProcessorImpl.process(CdkProcessorImpl.java:106)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:735)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$100(JavacProcessingEnvironment.java:82)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment$DiscoveredProcessors$ProcessorStateIterator.runContributingProcs(JavacProcessingEnvironment.java:595)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment.runLastRound(JavacProcessingEnvironment.java:962)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:872)
      	at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1061)
      	at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:796)
      	at com.sun.tools.javac.main.Main.compile(Main.java:388)
      	at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:133)
      	at org.richfaces.cdk.apt.AptBuilder.build(AptBuilder.java:47)
      	at org.richfaces.cdk.Generator.execute(Generator.java:155)
      	at org.richfaces.builder.mojo.GenerateMojo.execute(GenerateMojo.java:221)
      	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
      	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
      	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
      	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
      	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
      	at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:622)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      Caused by: java.lang.UnsupportedClassVersionError: javax/el/ELException : Unsupported major.minor version 51.0
      	at java.lang.ClassLoader.defineClass1(Native Method)
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
      	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      	at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
      	at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
      	at java.lang.Class.getDeclaredMethods0(Native Method)
      	at java.lang.Class.privateGetDeclaredMethods(Class.java:2575)
      	at java.lang.Class.privateGetPublicMethods(Class.java:2693)
      	at java.lang.Class.getMethods(Class.java:1469)
      	at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1303)
      	at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1177)
      	at java.beans.Introspector.getBeanInfo(Introspector.java:409)
      	at java.beans.Introspector.getBeanInfo(Introspector.java:175)
      	at org.richfaces.cdk.templatecompiler.el.types.TypesFactoryImpl.getPropertyDescriptors(TypesFactoryImpl.java:536)
      	at org.richfaces.cdk.templatecompiler.el.types.TypesFactoryImpl.access$000(TypesFactoryImpl.java:74)
      	at org.richfaces.cdk.templatecompiler.el.types.TypesFactoryImpl$ClassDataHolder.visit(TypesFactoryImpl.java:393)
      	... 53 more
      
      
      An annotation processor threw an uncaught exception.
      Consult the following stack trace for details.
      java.lang.NullPointerException
      	at org.richfaces.cdk.templatecompiler.el.node.AstBracketSuffixTreeNode.visit(AstBracketSuffixTreeNode.java:45)
      	at org.richfaces.cdk.templatecompiler.el.node.AbstractTreeNode.getChildOutput(AbstractTreeNode.java:53)
      	at org.richfaces.cdk.templatecompiler.el.node.AstValueTreeNode.visit(AstValueTreeNode.java:41)
      	at org.richfaces.cdk.templatecompiler.el.node.AstDeferredOrDynamicExpressionTreeNode.visit(AstDeferredOrDynamicExpressionTreeNode.java:51)
      	at org.richfaces.cdk.templatecompiler.el.ELVisitor.visit(ELVisitor.java:223)
      	at org.richfaces.cdk.templatecompiler.el.ELVisitor.parse(ELVisitor.java:189)
      	at org.richfaces.cdk.templatecompiler.el.ELParserImpl.parse(ELParserImpl.java:39)
      	at org.richfaces.cdk.templatecompiler.statements.DefineObjectStatement.setObject(DefineObjectStatement.java:71)
      	at org.richfaces.cdk.templatecompiler.RendererClassVisitor.visitElement(RendererClassVisitor.java:618)
      	at org.richfaces.cdk.templatecompiler.model.CdkObjectElement.visit(CdkObjectElement.java:123)
      	at org.richfaces.cdk.templatecompiler.model.ModelFragment.visitChildren(ModelFragment.java:56)
      	at org.richfaces.cdk.templatecompiler.RendererClassGenerator.render(RendererClassGenerator.java:122)
      	at org.richfaces.cdk.apt.DefaultLibraryGenerator.generate(DefaultLibraryGenerator.java:28)
      	at org.richfaces.cdk.apt.CdkProcessorImpl.generate(CdkProcessorImpl.java:157)
      	at org.richfaces.cdk.apt.CdkProcessorImpl.continueAfterJavaSourceProcessing(CdkProcessorImpl.java:133)
      	at org.richfaces.cdk.apt.CdkProcessorImpl.process(CdkProcessorImpl.java:106)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:735)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$100(JavacProcessingEnvironment.java:82)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment$DiscoveredProcessors$ProcessorStateIterator.runContributingProcs(JavacProcessingEnvironment.java:595)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment.runLastRound(JavacProcessingEnvironment.java:962)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:872)
      	at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1061)
      	at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:796)
      	at com.sun.tools.javac.main.Main.compile(Main.java:388)
      	at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:133)
      	at org.richfaces.cdk.apt.AptBuilder.build(AptBuilder.java:47)
      	at org.richfaces.cdk.Generator.execute(Generator.java:155)
      	at org.richfaces.builder.mojo.GenerateMojo.execute(GenerateMojo.java:221)
      	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
      	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
      	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
      	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
      	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
      	at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:622)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      

      And before that, there are some useful warnings:

      [INFO] --- richfaces-cdk-maven-plugin:4.5.0.Final:generate (cdk-generate-sources) @ richfaces ---
      [INFO] [module instantiation started]
      [INFO] [module instantiation completed: 68 ms]
      [INFO] [loading cache started: java]
      [INFO] [loading cache completed: 23 ms]
      [WARNING] ... .repository/org/jboss/spec/javax/el/jboss-el-api_3.0_spec/1.0.4.Final/jboss-el-api_3.0_spec-1.0.4.Final.jar(javax/el/ELContext.class): major version 51 is newer than 50, the highest major version supported by this compiler.
      It is recommended that the compiler be upgraded., in the file:... /richfaces/components/rich/src/main/java/org/richfaces/renderkit/SortingFilteringRowsRenderer.java at line -1 in column -1
      ...
      

      Changing the version of org.jboss.spec.javax.el:jboss-el-api_3.0_spec to 1.0.1.Final (the highest version supporting jdk 6) will fix the compilation problem.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                michpetrov Michal Petrov
                Reporter:
                jstefek Jiří Štefek
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: