6 Replies Latest reply on Jul 21, 2015 3:57 PM by AlfreNet

    showPrintablePageBehavior Error 500--Internal Server Error

    AlfreNet

      Hi guys,

       

      I'm doing a application in ADF 12.1.3.0.0. I've a page and I added a link with showPrintablePageBehavior tag. In local work fine but later I deploy in server and I test and doesn't work. The page show a Error 500--Internal Server Error:

       

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

      java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment

      at java.lang.Class.forName0(Native Method)

      at java.lang.Class.forName(Class.java:191)

      at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:102)

      at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:81)

      at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1182)

      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:606)

      at sun.org.mozilla.javascript.internal.MemberBox.invoke(MemberBox.java:167)

      at sun.org.mozilla.javascript.internal.NativeJavaMethod.call(NativeJavaMethod.java:245)

      at sun.org.mozilla.javascript.internal.Interpreter.interpretLoop(Interpreter.java:1706)

      at sun.org.mozilla.javascript.internal.Interpreter.interpret(Interpreter.java:849)

      at sun.org.mozilla.javascript.internal.InterpretedFunction.call(InterpretedFunction.java:162)

      at sun.org.mozilla.javascript.internal.ContextFactory.doTopCall(ContextFactory.java:430)

      at com.sun.script.javascript.RhinoScriptEngine$1.superDoTopCall(RhinoScriptEngine.java:116)

      at com.sun.script.javascript.RhinoScriptEngine$1.doTopCall(RhinoScriptEngine.java:109)

      at sun.org.mozilla.javascript.internal.ScriptRuntime.doTopCall(ScriptRuntime.java:3160)

      at sun.org.mozilla.javascript.internal.InterpretedFunction.exec(InterpretedFunction.java:173)

      at sun.org.mozilla.javascript.internal.Context.evaluateReader(Context.java:1169)

      at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:214)

      at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:240)

      at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)

      at oracle.adfinternal.view.faces.bi.renderkit.common.BaseImageConverterUtils$JDKScriptHelper.evaluate(BaseImageConverterUtils.java:287)

      at oracle.adfinternal.view.faces.bi.renderkit.common.BaseImageConverterUtils$ScriptHelper.evaluateSvg(BaseImageConverterUtils.java:243)

      at oracle.adfinternal.view.faces.bi.renderkit.common.ImageConverterUtils$AdfScriptHelper.evaluateSvg(ImageConverterUtils.java:158)

      at oracle.adfinternal.view.faces.bi.renderkit.common.BaseImageConverterUtils$ScriptHelper.getSVG(BaseImageConverterUtils.java:140)

      at oracle.adfinternal.view.faces.bi.renderkit.common.ImageConverterUtils.getSVG(ImageConverterUtils.java:50)

      at oracle.adfinternal.view.faces.bi.renderkit.common.RichDVTRenderer$RichDvtImageWriter.writeToStream(RichDVTRenderer.java:1559)

      at oracle.adfinternal.view.faces.bi.renderkit.common.image.ImageRendererUtils.saveAndRenderImageForRuntime(ImageRendererUtils.java:180)

      at oracle.adfinternal.view.faces.bi.renderkit.common.image.ImageRendererUtils.saveAndRenderImage(ImageRendererUtils.java:157)

      at oracle.adfinternal.view.faces.bi.renderkit.common.RichDVTRenderer.renderImage(RichDVTRenderer.java:1473)

      at oracle.adfinternal.view.faces.bi.renderkit.common.RichDVTRenderer.encodeImageContent(RichDVTRenderer.java:745)

      at oracle.adfinternal.view.faces.bi.renderkit.common.RichDVTRenderer.encodeContent(RichDVTRenderer.java:404)

      at oracle.adfinternal.view.faces.bi.renderkit.common.RichDVTRenderer.encodeContentDivs(RichDVTRenderer.java:190)

      at oracle.adfinternal.view.faces.bi.renderkit.common.RichToolkitRenderer.encodeAll(RichToolkitRenderer.java:162)

      at oracle.adfinternal.view.faces.bi.renderkit.gauge.AbstractGaugeRenderer.encodeAll(AbstractGaugeRenderer.java:85)

      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1600)

      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:525)

      at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1217)

      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)

      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:647)

      at oracle.adfinternal.view.faces.renderkit.rich.PanelGridLayoutRenderer.encodeCellComponent(PanelGridLayoutRenderer.java:1228)

      at oracle.adfinternal.view.faces.renderkit.rich.grid.CellChildrenEncoderCallback.processComponent(CellChildrenEncoderCallback.java:38)

      at oracle.adfinternal.view.faces.renderkit.rich.grid.CellChildrenEncoderCallback.processComponent(CellChildrenEncoderCallback.java:20)

      at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:198)

      at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:330)

      at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:249)

      at oracle.adfinternal.view.faces.renderkit.rich.grid.CellEncoderCallback.processComponent(CellEncoderCallback.java:271)

      at oracle.adfinternal.view.faces.renderkit.rich.grid.CellEncoderCallback.processComponent(CellEncoderCallback.java:24)

      at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:198)

      at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:330)

      at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:249)

      at oracle.adfinternal.view.faces.renderkit.rich.grid.RowEncoderCallback.processComponent(RowEncoderCallback.java:74)

      at oracle.adfinternal.view.faces.renderkit.rich.grid.RowEncoderCallback.processComponent(RowEncoderCallback.java:22)

      at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:198)

      at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:330)

      at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:295)

      at oracle.adfinternal.view.faces.renderkit.rich.PanelGridLayoutRenderer._encodeAllOrVisitChildrenForEncodingImpl(PanelGridLayoutRenderer.java:1042)

      at oracle.adfinternal.view.faces.renderkit.rich.PanelGridLayoutRenderer.encodeAll(PanelGridLayoutRenderer.java:314)

      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1600)

      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:525)

      at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1217)

      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)

      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:647)

      at oracle.adfinternal.view.faces.renderkit.rich.PanelBorderLayoutRenderer._encodeAllInDiv(PanelBorderLayoutRenderer.java:274)

      at oracle.adfinternal.view.faces.renderkit.rich.PanelBorderLayoutRenderer.encodeAll(PanelBorderLayoutRenderer.java:88)

      at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeAll(PanelStretchLayoutRenderer.java:126)

      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1600)

      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:525)

      at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1217)

      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)

      at oracle.adfinternal.view.faces.taglib.region.IncludeTag$FacetWrapper.encodeAll(IncludeTag.java:568)

      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:647)

      at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer$UnstretchedLayout.encodeAllChildren(PanelStretchLayoutRenderer.java:1724)

      at oracle.adfinternal.view.faces.renderkit.rich.PanelBorderLayoutRenderer._encodeAllInDiv(PanelBorderLayoutRenderer.java:286)

      at oracle.adfinternal.view.faces.renderkit.rich.PanelBorderLayoutRenderer.encodeAll(PanelBorderLayoutRenderer.java:88)

      at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeAll(PanelStretchLayoutRenderer.java:126)

      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1600)

      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:525)

      at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1217)

      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)

      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:647)

      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:664)

      at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3234)

      at oracle.adfinternal.view.faces.renderkit.rich.PageTemplateRenderer.encodeAll(PageTemplateRenderer.java:68)

      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1600)

      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:525)

      at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1217)

      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)

      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:647)

      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:664)

      at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3234)

      at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:275)

      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1600)

      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:525)

      at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1217)

      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)

      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:647)

      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:664)

      at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3234)

      at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1507)

      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1600)

      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:525)

      at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1217)

      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)

      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)

      at oracle.adfinternal.view.faces.component.AdfViewRoot.encodeAll(AdfViewRoot.java:102)

      at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:402)

      at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)

      at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)

      at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.renderView(ViewDeclarationLanguageFactoryImpl.java:338)

      at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)

      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)

      at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:170)

      at oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager.runRenderView(ResponseRenderManager.java:52)

      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1095)

      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:389)

      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:255)

      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)

      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)

      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)

      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)

      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)

      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)

      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)

      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

      at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:105)

      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:502)

      at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:502)

      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:327)

      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:229)

      at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

      at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:202)

      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:137)

      at java.security.AccessController.doPrivileged(Native Method)

      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)

      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)

      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)

      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)

      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3436)

      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3402)

      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

      at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)

      at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)

      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)

      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)

      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)

      at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:255)

      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)

      at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)

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

       

      What's happen? What can be the problem?

       

      The code for this link is:

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

                                              <af:link id="l3" binding="#{backingBeanScope.backing_ConfirmCart.l3}"

                                                       icon="/images/icons/print.png" rendered="true" partialSubmit="true"

                                                       immediate="true" inlineStyle="margin-top:5px; padding-top:5px;">

                                                  <af:showPrintablePageBehavior/>

                                              </af:link>

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

       

      Thanks! Regards