9 Replies Latest reply on Jan 6, 2014 1:04 AM by mothukuri vijay

    java.lang.UnsatisfiedLinkError: Native Library <JAVA_HOME>\jdk1.6.0_43\jre\bin\jpeg.dll already loaded in another classloader

    mothukuri vijay Newbie

      Hi all,

       

      i am trying upload a photo in site which we developed.

       

      in my custom module.xml, i added

       

          <resource-root path="jai_codec.jar"/>
         <resource-root path="jai_core.jar"/>

       

       

      during run time we are getting the below error.

       

      We are getting classsloader issue.

       

      Thanks,

      Vijay

       

       

      10:23:04,596 ERROR [com.vignette.community.applications.util.ImageUtil] (http--127.0.0.1-8888-1) Error generating thumbnail for file Hydrangeas.jpg:

      java.lang.UnsatisfiedLinkError: Native Library C:\JavaInstallation\Java\jdk1.6.0_43\jre\bin\jpeg.dll already loaded in another classloader

              at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1772) [rt.jar:1.6.0_43]

              at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1724) [rt.jar:1.6.0_43]

              at java.lang.Runtime.loadLibrary0(Runtime.java:823) [rt.jar:1.6.0_43]

              at java.lang.System.loadLibrary(System.java:1028) [rt.jar:1.6.0_43]

              at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50) [rt.jar:1.6.0_43]

              at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_43]

              at com.sun.imageio.plugins.jpeg.JPEGImageWriter.<clinit>(JPEGImageWriter.java:161) [rt.jar:1.6.0_43]

              at com.sun.imageio.plugins.jpeg.JPEGImageWriterSpi.createWriterInstance(JPEGImageWriterSpi.java:78) [rt.jar:1.6.0_43]

              at javax.imageio.spi.ImageWriterSpi.createWriterInstance(ImageWriterSpi.java:331) [rt.jar:1.6.0_43]

              at javax.imageio.ImageIO$ImageWriterIterator.next(ImageIO.java:817) [rt.jar:1.6.0_43]

              at javax.imageio.ImageIO$ImageWriterIterator.next(ImageIO.java:801) [rt.jar:1.6.0_43]

              at com.vignette.community.applications.util.ImageUtil.createThumbnail(ImageUtil.java:520) [vgn-community-applications-portlets.jar:]

              at com.vignette.community.applications.util.ImageUtil.genThumbnails(ImageUtil.java:391) [vgn-community-applications-portlets.jar:]

              at com.vignette.community.api.ApiUpload.processRequest(ApiUpload.java:101) [vgn-community-applications-portlets.jar:]

              at com.vignette.community.api.ApiServlet.service(ApiServlet.java:77) [vgn-community-applications-portlets.jar:]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:840) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:622) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:560) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:488) [jbossweb-7.0.13.Final.jar:]

              at com.vignette.community.applications.resolvers.apiproxy.ApiProxyServlet.service(ApiProxyServlet.java:77)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

              at com.epicentric.servlets.stackable.ServletDispatcherServlet.service(ServletDispatcherServlet.java:234)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

              at com.vignette.portal.website.internal.StartupProtectionFilter.doFilterSingleInvocation(StartupProtectionFilter.java:102)

              at com.vignette.portal.website.internal.SingleInvocationFilter.doFilter(SingleInvocationFilter.java:52)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

              at com.vignette.portal.website.internal.EnvironmentalWrapperFilter.doFilterSingleInvocation(EnvironmentalWrapperFilter.java:56)

              at com.vignette.portal.website.internal.SingleInvocationFilter.doFilter(SingleInvocationFilter.java:52)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

              at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.

      1.1.Final]

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_43]

       

      10:23:04,636 ERROR [com.vignette.community.applications.util.ImageUtil] (http--127.0.0.1-8888-1) Error generating thumbnail for file Hydrangeas.jpg: j

      ava.lang.NoClassDefFoundError: Could not initialize class com.sun.imageio.plugins.jpeg.JPEGImageWriter

              at com.sun.imageio.plugins.jpeg.JPEGImageWriterSpi.createWriterInstance(JPEGImageWriterSpi.java:78) [rt.jar:1.6.0_43]

              at javax.imageio.spi.ImageWriterSpi.createWriterInstance(ImageWriterSpi.java:331) [rt.jar:1.6.0_43]

              at javax.imageio.ImageIO$ImageWriterIterator.next(ImageIO.java:817) [rt.jar:1.6.0_43]

              at javax.imageio.ImageIO$ImageWriterIterator.next(ImageIO.java:801) [rt.jar:1.6.0_43]

              at com.vignette.community.applications.util.ImageUtil.createThumbnail(ImageUtil.java:520) [vgn-community-applications-portlets.jar:]

              at com.vignette.community.applications.util.ImageUtil.genThumbnails(ImageUtil.java:391) [vgn-community-applications-portlets.jar:]

              at com.vignette.community.api.ApiUpload.processRequest(ApiUpload.java:101) [vgn-community-applications-portlets.jar:]

              at com.vignette.community.api.ApiServlet.service(ApiServlet.java:77) [vgn-community-applications-portlets.jar:]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:840) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:622) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:560) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:488) [jbossweb-7.0.13.Final.jar:]

              at com.vignette.community.applications.resolvers.apiproxy.ApiProxyServlet.service(ApiProxyServlet.java:77)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

              at com.epicentric.servlets.stackable.ServletDispatcherServlet.service(ServletDispatcherServlet.java:234)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

              at com.vignette.portal.website.internal.StartupProtectionFilter.doFilterSingleInvocation(StartupProtectionFilter.java:102)

              at com.vignette.portal.website.internal.SingleInvocationFilter.doFilter(SingleInvocationFilter.java:52)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

              at com.vignette.portal.website.internal.EnvironmentalWrapperFilter.doFilterSingleInvocation(EnvironmentalWrapperFilter.java:56)

              at com.vignette.portal.website.internal.SingleInvocationFilter.doFilter(SingleInvocationFilter.java:52)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

              at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.

      1.1.Final]

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_43]

       

      10:23:04,671 ERROR [com.vignette.community.applications.util.ImageUtil] (http--127.0.0.1-8888-1) Error generating thumbnail for file Hydrangeas.jpg: j

      ava.lang.NoClassDefFoundError: Could not initialize class com.sun.imageio.plugins.jpeg.JPEGImageWriter

              at com.sun.imageio.plugins.jpeg.JPEGImageWriterSpi.createWriterInstance(JPEGImageWriterSpi.java:78) [rt.jar:1.6.0_43]

              at javax.imageio.spi.ImageWriterSpi.createWriterInstance(ImageWriterSpi.java:331) [rt.jar:1.6.0_43]

              at javax.imageio.ImageIO$ImageWriterIterator.next(ImageIO.java:817) [rt.jar:1.6.0_43]

              at javax.imageio.ImageIO$ImageWriterIterator.next(ImageIO.java:801) [rt.jar:1.6.0_43]

              at com.vignette.community.applications.util.ImageUtil.createThumbnail(ImageUtil.java:520) [vgn-community-applications-portlets.jar:]

              at com.vignette.community.applications.util.ImageUtil.genThumbnails(ImageUtil.java:391) [vgn-community-applications-portlets.jar:]

              at com.vignette.community.api.ApiUpload.processRequest(ApiUpload.java:101) [vgn-community-applications-portlets.jar:]

              at com.vignette.community.api.ApiServlet.service(ApiServlet.java:77) [vgn-community-applications-portlets.jar:]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:840) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:622) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:560) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:488) [jbossweb-7.0.13.Final.jar:]

              at com.vignette.community.applications.resolvers.apiproxy.ApiProxyServlet.service(ApiProxyServlet.java:77)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

              at com.epicentric.servlets.stackable.ServletDispatcherServlet.service(ServletDispatcherServlet.java:234)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

              at com.vignette.portal.website.internal.StartupProtectionFilter.doFilterSingleInvocation(StartupProtectionFilter.java:102)

              at com.vignette.portal.website.internal.SingleInvocationFilter.doFilter(SingleInvocationFilter.java:52)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

              at com.vignette.portal.website.internal.EnvironmentalWrapperFilter.doFilterSingleInvocation(EnvironmentalWrapperFilter.java:56)

              at com.vignette.portal.website.internal.SingleInvocationFilter.doFilter(SingleInvocationFilter.java:52)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

              at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.

      1.1.Final]

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_43]

       

      10:27:26,611 ERROR [com.vignette.community.client.services.dataservice.streaming.CommunityRequestBroker] (Thread-84) Unable to parse returned data.. :

      com.vignette.community.client.services.dataservice.streaming.CommunityRequestBroker$ProtocolException: no data to read

              at com.vignette.community.client.services.dataservice.streaming.CommunityRequestBroker$Receiver.getPayloadLength(CommunityRequestBroker.java:3

      15) [vgn-community-core.jar:]

              at com.vignette.community.client.services.dataservice.streaming.CommunityRequestBroker$Receiver.run(CommunityRequestBroker.java:229) [vgn-comm

      unity-core.jar:]

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_43]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_43]

              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_43]

       

      10:27:26,619 INFO  [com.vignette.community.client.services.dataservice.internal.CommunityClientService] (Thread-84) CommunityClientService initialized

      to use the following community system config: CommunitySystemConfiguration(friendlyName = -friendlyName-,systemType = community,systemId = 1,hostname

      = 10.96.11.133,port = 9898,getPrefix = /xapi/,postPrefix = /xapi/,securityStrategyClass = com.vignette.community.client.services.security.VssSecurity

      Handler,vssKey=changeme,)

       

      10:27:26,623 INFO  [com.vignette.community.client.services.dataservice.internal.CommunityClientService] (Thread-84) file Get collab url is /pushnotifi

      cations/getnotifications?vign-security-hash=3jeOIU4OTVSOIeSPhOm1fVk%2FDVI%3D&vign-security-timestance=2013-12-20T04%3A57%3A26Z&vign-security-algorithm

      =SHA-1&vign-security-nonce=KkRRyfF%2FiyVg0BBXx1Ko7Q%3D%3D&vign-security-username=admin

      10:28:34,726 INFO  [com.vignette.community.client.services.dataservice.internal.CommunityClientService] (Thread-84) response code = 200