4 Replies Latest reply on Mar 18, 2009 9:42 AM by Carlos Oliva

    JBoss5.0.1.GA and JAI (Java Advanced Imaging)

    Carlos Oliva Novice

      Has somebody run the JAI in JBoss5.0.1.GA (the latest release)? I have been running the JAI in JBoss 4.x.GA (several versions) in Linux RedHat for several years and I am testing JBoss5.0.1.GA. Code that runs fine in JBoss4.2..GA fails in JBoss5.0.0.GA. In the line of code, javax.media.jai.PlanarImage tmp = javax.media.jai.JAI.create("stream", bass), JBoss is throwing the following error:
      2009-03-15 05:45:55,061 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/carlosv25].[invoker]] (http-0.0.0.0-8080-1) Servlet.service() for servlet invoker threw exception
      javax.servlet.ServletException: java.lang.ExceptionInInitializerError

      I am not quite sure what could be causing this error. I have been running JBoss4.2.* headles and I ahve tried to run the code in JBoss5.0.1.GA either headless or "headfull" but the code fails in the same place everytime.

        • 1. Re: JBoss5.0.1.GA and JAI (Java Advanced Imaging)
          jaikiran pai Master

          Please post the entire exception stacktrace and the relevant piece of code.

          While posting logs or xml content or code, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted.

          • 2. Re: JBoss5.0.1.GA and JAI (Java Advanced Imaging)
            Carlos Oliva Novice

            Posted: Sun Mar 15, 2009 14:14 PM Post subject: JBoss5.0.1.GA and JAI (Java Advanced Imaging)

            --------------------------------------------------------------------------------

            Has somebody run the JAI in JBoss5.0.1.GA (the latest release)? I have been running the JAI in JBoss 4.x.GA (several versions) in Linux RedHat for several years and I am testing JBoss5.0.1.GA. Code that runs fine in JBoss4.2..GA fails in JBoss5.0.0.GA. In the line of code,

            javax.media.jai.PlanarImage tmp = javax.media.jai.JAI.create("stream", bass)
            , JBoss is throwing the following error:
            2009-03-15 05:45:55,061 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/carlosv25].[invoker]] (http-0.0.0.0-8080-1) Servlet.service() for servlet invoker threw exception
            javax.servlet.ServletException: java.lang.ExceptionInInitializerError


            I am not quite sure what could be causing this error. I have been running JBoss4.2.* headles and I ahve tried to run the code in JBoss5.0.1.GA either headless or "headfull" but the code fails in the same place everytime.

            • 3. Re: JBoss5.0.1.GA and JAI (Java Advanced Imaging)
              Carlos Oliva Novice

              The problem seems to be that JBoss5.0.1.GA precludes the use of libraries loaded in $JAVA_HOME/jre/lib/ext folder. I just discovered that in JBoss5.0.1.GA, I can get eh code to work by uploading the JAI libraries (jai_codec.jar and jai_core.jar) in the lib folder of the war deployment. JBoss4.x uses the libraries loaded in the ext folder seamlessly so the JAI libraries uploade in the ext folder are available to any war deployment. Is there a configuration setting that would allow using the ext folder in JBoss5.0.1.GA?

              • 4. Re: JBoss5.0.1.GA and JAI (Java Advanced Imaging)
                Carlos Oliva Novice

                I forgot to post the entire error log but here it goes:

                2009-03-18 09:38:05,595 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/carlosv25].[invoker]] (http-0.0.0.0-8080-1) Servlet.service() for servlet invoker threw exception
                javax.servlet.ServletException: java.lang.ExceptionInInitializerError
                 at mymrs.pbapi005a.execute_int(pbapi005a.java)
                 at mymrs.pbapi005a.execute(pbapi005a.java)
                 at mymrs.rmr0117pn.execute_int(rmr0117pn.java)
                 at mymrs.rmr0117pn.execute(rmr0117pn.java)
                 at mymrs.rmr0117p.execute_int(rmr0117p.java)
                 at mymrs.rmr0117p.execute(rmr0117p.java)
                 at mymrs.rvsi7000bba.execute_int(rvsi7000bba.java)
                 at mymrs.rvsi7000bba.execute(rvsi7000bba.java)
                 at mymrs.rvsi7000baa.execute_int(rvsi7000baa.java)
                 at mymrs.rvsi7000baa.execute(rvsi7000baa.java)
                 at mymrs.aser5035_impl.webExecute(aser5035_impl.java)
                 at com.genexus.webpanels.GXWebObjectBase.doExecute(Unknown Source)
                 at mymrs.aser5035.doExecute(aser5035.java)
                 at com.genexus.webpanels.GXWebObjectStub.callExecute(Unknown Source)
                 at com.genexus.webpanels.GXWebObjectStub.doPost(Unknown Source)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                 at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:402)
                 at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:170)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
                 at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
                 at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                 at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                 at com.jamonapi.http.JAMonTomcatValve.invoke(JAMonTomcatValve.java:72)
                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
                 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
                 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
                 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                 at java.lang.Thread.run(Thread.java:595)
                Caused by: java.lang.ClassCastException: javax.media.jai.operator.AbsoluteDescriptor
                 at javax.media.jai.RegistryFileParser.registerDescriptor(RegistryFileParser.java:360)
                 at javax.media.jai.RegistryFileParser.parseFile(RegistryFileParser.java:295)
                 at javax.media.jai.RegistryFileParser.loadOperationRegistry(RegistryFileParser.java:55)
                 at javax.media.jai.OperationRegistry.initializeRegistry(OperationRegistry.java:369)
                 at javax.media.jai.JAI.<clinit>(JAI.java:382)
                 ... 42 more
                
                 at com.genexus.webpanels.GXWebObjectStub.callExecute(Unknown Source)
                 at com.genexus.webpanels.GXWebObjectStub.doPost(Unknown Source)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                 at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:402)
                 at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:170)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
                 at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
                 at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                 at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                 at com.jamonapi.http.JAMonTomcatValve.invoke(JAMonTomcatValve.java:72)
                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
                 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
                 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
                 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                 at java.lang.Thread.run(Thread.java:595)