EvermindBodyContent.setCharacter() throws exception when a tag is executed

Hello!
I have a servlet working as a dispatcher for JSP-presentations. An exception is thrown by the OC4J when a JSP-tag is executed. The exception is not thrown by the tag, it's thrown by the method EvermindBodyContent.setCharacterEncoding() after the doStartTag() method but before the doEndTag() method.
The applications running without problems on the Orion application server (2.0.2), but not on OC4J (9.0.4.0.0).
Anyone having a clue?
Here is the complete stack trace.
com.evermind.server.http.EvermindBodyContent.setCharacterEncoding(EvermindBodyContent.java:458)
com.evermind.server.http.EvermindPageContext.pushBody(EvermindPageContext.java:630)
oracle.jsp.runtime.OracleJspRuntime.pushBodyIfNeeded(OracleJspRuntime.java:1385)
web2d_inf._flows._salestoday._overview._jspService(_overview.java:109)
com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:567)
oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)
oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:121)
se.abalon.usecase.InteractiveUsecaseServlet.doGetAndPost(InteractiveUsecaseServlet.java:337)
se.abalon.usecase.InteractiveUsecaseServlet.doPost(InteractiveUsecaseServlet.java:170)
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
java.lang.Thread.run(Thread.java:536)
Regards Fredrik Hed

Thanks Javier,
But it could not help me to fix the issue, the problem occurs to only one user, when she selects Functional Location variable (Hierarchy Infoobject) in Portal. For me and others we do not have problem, but when i copy replica that user id with problem, and execute at my side i too see the same problem, any idea why?
Do we need to do any user specific configuration at portal side, for case of Hier Infoobject variables incase?.
Any help on this would be appreciated.
Thanks a lot.
Raghu

Similar Messages

  • ADF application on cluster throw exception when using chrome

    I deploy my ADF application to cluster with one proxy server (myip:7003) and two application server(myip:7004 myip:7005) ( http://docs.oracle.com/cd/E15051_01/wls/docs103/cluster/setup.html )
    It works fine when using firefox and IE8, but throw exception when using chrome
    ####<Mar 1, 2013 3:18:30 PM CST> <Notice> <Diagnostics> <XXX.XXX.com> <server02> <[STANDBY] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1362122310439> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'server02' has triggered at Mar 1, 2013 3:18:30 PM CST. Notification details:
    WatchRuleType: Log
    WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'WL-101020') OR (MSGID = 'WL-101017') OR (MSGID = 'WL-000802') OR (MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
    WatchData: DATE = Mar 1, 2013 3:18:30 PM CST SERVER = server02 MESSAGE = [ServletContext@710669610[app:Project1 module:XXX path:/XXX spec-version:2.5]] Servlet failed with Exception
    java.lang.NullPointerException
    at org.apache.myfaces.trinidad.model.BaseMenuModel.setRowKey(BaseMenuModel.java:120)
    at org.apache.myfaces.trinidad.component.UIXTree.createCollectionModel(UIXTree.java:274)
    at org.apache.myfaces.trinidad.component.UIXCollection.getCollectionModel(UIXCollection.java:1513)
    at org.apache.myfaces.trinidad.component.UIXCollection.getCollectionModel(UIXCollection.java:1115)
    at org.apache.myfaces.trinidad.component.UIXTree$RowKeyFacesBeanWrapper.getProperty(UIXTree.java:423)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.getProperty(UIXComponentBase.java:1485)
    at org.apache.myfaces.trinidad.component.UIXTree.getDisclosedRowKeys(UIXTree.java:626)
    at org.apache.myfaces.trinidad.component.UIXTree.__init(UIXTree.java:325)
    at org.apache.myfaces.trinidad.component.UIXCollection._init(UIXCollection.java:1778)
    at org.apache.myfaces.trinidad.component.UIXCollection.encodeBegin(UIXCollection.java:589)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
    at oracle.adfinternal.view.faces.renderkit.rich.DecorativeBoxRenderer.encodeFacet(DecorativeBoxRenderer.java:440)
    at oracle.adfinternal.view.faces.renderkit.rich.DecorativeBoxRenderer._encodeCenterPane(DecorativeBoxRenderer.java:704)
    at oracle.adfinternal.view.faces.renderkit.rich.DecorativeBoxRenderer.encodeAll(DecorativeBoxRenderer.java:380)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeCenterFacet(PanelStretchLayoutRenderer.java:879)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeCenterPane(PanelStretchLayoutRenderer.java:1294)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeMiddlePanes(PanelStretchLayoutRenderer.java:351)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeAll(PanelStretchLayoutRenderer.java:316)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
    at oracle.adf.view.rich.render.RichRenderer.encodeStretchedChild(RichRenderer.java:2194)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer._renderPane(PanelSplitterRenderer.java:1593)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer.encodeAll(PanelSplitterRenderer.java:263)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
    at oracle.adf.view.rich.render.RichRenderer.encodeStretchedChild(RichRenderer.java:2194)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer._renderPane(PanelSplitterRenderer.java:1593)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer.encodeAll(PanelSplitterRenderer.java:263)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeCenterFacet(PanelStretchLayoutRenderer.java:879)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeCenterPane(PanelStretchLayoutRenderer.java:1294)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeMiddlePanes(PanelStretchLayoutRenderer.java:351)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeAll(PanelStretchLayoutRenderer.java:316)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
    at oracle.adf.view.rich.render.RichRenderer.encodeStretchedChild(RichRenderer.java:2194)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer._renderPane(PanelSplitterRenderer.java:1593)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer.encodeAll(PanelSplitterRenderer.java:279)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeCenterFacet(PanelStretchLayoutRenderer.java:879)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeCenterPane(PanelStretchLayoutRenderer.java:1294)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeMiddlePanes(PanelStretchLayoutRenderer.java:351)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeAll(PanelStretchLayoutRenderer.java:316)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
    at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3062)
    at oracle.adfinternal.view.faces.renderkit.rich.PageTemplateRenderer.encodeAll(PageTemplateRenderer.java:68)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
    at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3062)
    at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:274)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
    at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3062)
    at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1277)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1655)
    at oracle.adfinternal.view.faces.component.AdfViewRoot.encodeAll(AdfViewRoot.java:91)
    at com.sun.faces.application.view.JspViewHandlingStrategy.doRenderView(JspViewHandlingStrategy.java:431)
    at com.sun.faces.application.view.JspViewHandlingStrategy.renderView(JspViewHandlingStrategy.java:233)
    at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.renderView(ViewDeclarationLanguageFactoryImpl.java:350)
    at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273)
    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:165)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1027)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:334)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:232)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:122)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101020 MACHINE = XXX.XXX.com TXID = CONTEXTID = TIMESTAMP = 1362122310438
    WatchAlarmType: AutomaticReset
    WatchAlarmResetPeriod: 30000 Jdeveloper 11.1.2.1.0
    webloigc 10.3
    Please help me , thank you
    Edited by: Rocky.c.Xu on 2013-3-1 上午2:52

    Solved it on my own.
    The sso from Java->ABAP was OK
    I reconfigured the sso from ABAP->JAVA by creating new ABAP certificate and import it to the J2EE.
    Omri

  • WPF report viewer throws exception when print button clicked when hosted on winform

    When hosted in a winform app the wpf report viewer control throws an exception when the print button is clicked.
    All the other buttons appear to work, any ideas on a work round?
    I have created a sample VS 2013 solution that shows this issue
    As I can't even attach a renamed zip file it can be downloaded directly from here: http://1drv.ms/QxUrZo
    The reason I am attempting to use this control is that the standard reportviewer causes occasional errors in citrix enviroments causing the citrix session to lock up.  This appears to be a relatively common issue and the usual issue of both sides (citrix & crystal) blaming the other for the cause and me the developer needs to find a work round.
    I've 'bodged' in an additional button on our app to export a loaded report to file as pdf then print it but this should not be the permanent resolution.
    BTW glad to see the x64 dynamic parameter issue has been fixed at last, think I reported this over two years ago and again ended up having to work round it.

    Hi Ludek
    A sample project that loads a simple report is available from here: http://1drv.ms/QxUrZo
    The project is called WPFReportHost
    This loads a simple report when run then you can test the basic functionality of the viewer and all will work until you press the print button and then you get the application crash.
    Have to improve my search technique when I googled for other people having this issue I didnt' find the link.
    We've noticed the WPF viewer loads considerably faster and has better functionality than the winform viewer and hope that it might solve the citrix preview issue (yet to be tested).
    So as a work round we've hidden the default print button added our own and call the report print directly as per below:
    using (PrintDialog dialog = new PrintDialog())           
         dialog.AllowCurrentPage = true;
         dialog.AllowSelection = true;    
         dialog.AllowSomePages = true;
         dialog.AllowPrintToFile = true;
         if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)                     {
              reportDocument.PrintToPrinter(                         
                   dialog.PrinterSettings,                         
                   new System.Drawing.Printing.PageSettings(dialog.PrinterSettings);
                    false);                   
    Would be nice to have a fix

  • Throws Exception when jdbc connect to Oracle

    Hi! I'm waiting for your answers.
    When i use jdbc to connect Oracle,system throws exceptions as follows:
    java.lang.ClassCastException: oracle.sql.converter.CharacterConverter12Byte
    oracle.sql.CharacterSet1Byte oracle.sql.CharacterSet1Byte.getInstance (int,racle.sql.converter.CharacterConverter)
              CharacterSet1Byte.java:82
         oracle.sql.CharacterSet oracle.sql.CharacterSetWithConverter.getInstance(int)     CharacterSetWithConverter.java:85
    I code in Oracle9i Jdeveloper 9.0.2. The Oracle version is 9.0.2.
    My code example is as follows:
    package mypackage2;
    import java.sql.*;
    import oracle.jdbc.driver.*;
    public class Class1
    public Class1()
    public static void main(String[] args)
    Class1 class1 = new Class1();
    Connection conn = null;
    try
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    //exception throws in getConnection()
    conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@localhost:1521:CR","system","CR2001");
    catch (Exception e)
    e.printStackTrace();

    import java.io.*;
    import java.sql.*;
    import java.text.*;
    import oracle.jdbc.driver.*;
    public class viewtable
         Connection con;
         Statement st;
         public viewtable (String args[]) throws ClassNotFoundException,FileNotFoundException,IOException,SQLException
         url="jdbc:oracle:thin:system/manager@IP:1521:SID";
         Class.forName ("oracle.jdbc.driver.OracleDriver");
         try
         con=DriverManager.getConnection(url);
              st = con.createStatement ();
              doexample ();
              st.close ();
              con.close ();
         }catch(SQLException e)
              System.err.println(e.getMessage());
         public void doexample () throws SQLException
         ResultSet rs = st.executeQuery("select * from sales");
              if(rs!=null) {
              while(rs.next())
                   int a = rs.getInt("no");                    System.out.println("NO = "+a);
              rs.close();
         public static void main (String args[])
              System.out.println ("Oracle Exercise 1 \n");
              try
                   viewtable test = new viewtable(args);
              } catch (Exception ex)
                   System.err.println ("Exception caught.\n"+ex);
                   ex.printStackTrace ();
    the above is the full code, please check the problem....many thanks

  • Java Does Not Throw Exception When Writing To Read-Only Files

    I have noticed that when I try to write to a read-only file in a window environment, Java does not throw an IOExcpetion, it just dosn't write to the file.
    I am writing an FTP server and here is the code:
         public static long copyStream(InputStream in, OutputStream out)throws IOException
              IOException exception = null;
              long copied = 0;
              try
                   byte buffer[] = new byte[1024];
                   int read;
                   while((read = in.read(buffer)) != -1)
                        out.write(buffer, 0, read);
                        copied += read;
              catch(IOException e)
                   //ensures that the streams are closed.
                   exception = e;
              try
                   in.close();//ensures output stream gets closed, even if there is an
                   //excption here.
              catch(IOException e){exception = e;}
              out.close();//try to close output.
              if(exception != null)
                   //exception is not null, an exception has occured.
                   //rethrow exception.
                   throw exception;
              return copied;//all ok, return bytes copied.
         }Is this a bug in JAVA VM? Is so, how should I report it?

    I have noticed that when I try to write to a read-only file in a window environment,
    Java does not throw an IOExcpetion, it just dosn't write to the file.C:\source\java\Markov>attrib readonly.out
    A R C:\source\java\Markov\readonly.out
    �C:\source\java\Markov>java b
    java.io.FileNotFoundException: readonly.out (Access is denied)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at b.main(b.java:5)
    import java.io.*;
    public class b {
        public static void main(String[] args) {
         try     {
              OutputStream os = new FileOutputStream ( "readonly.out");
         catch (Exception e) {
              e.printStackTrace();
    }

  • Syn read file adapter throwing exception when file is not present directory

    Hi Team,
    Requirment is to check for a file is present in a soa directory .If present delete the existing and write a new one.
    Syn read file adapter is throwing errors when file is not present in the directory soa local.
    Any paramter we can add to skip this exception.
    any help is appreciated.
    Thanks all
    Swetha H.

    Hi:
    An alternative is that , before u try to read it, u make a list directory, and search for ur file, if it is not in the list, then u don't read; otherwise, u do.
    The list operation is part of the file adapter.
    hope this helps
    best

  • XCode 3.0 cocoa-python app throws exception when importing objc

    I have created the default cocoa-python application in xcode. I then try and run it and it says that an exception was thrown. I search back through the console and apparently it could not find the module objc.
    After searching for reasons it is apparently because there are two Python frameworks installed. One in /System/Library/Frameworks and the other in /Library/Frameworks. The one in /Library/Frameworks does not have PyObjC installed for it.
    However, in my xcode proj under linked Frameworks, it points to the python framework in /System/Library/Frameworks which has objc installed. Is there any reason. So apparently when it is running it, it decides not to used that linked framework but the other one without objc instead.
    Would the best thing to do be, to delete the alternative python framework in /Library/Frameworks, or is there a better solution.

    keeler1 wrote:
    Are there any good PyObjC tutorials, preferably ones that do not use xcode.
    I don't have any recommendations to hand, but I imagine a web search should turn up something. I know the Prags have a book on RubyCocoa coming out, but I doubt that'll be much interest if Python's your thing. Personally, I learnt PyObjC by reading up on ObjC basics so I could follow the Cocoa documentation, then playing around with the sample projects included with PyObjC. PyObjC development is pretty much just regular Cocoa development with a thin glue layer on top. There's py2app documentation online if you need it, and again the easiest thing is just to start with the existing examples and modify to suit.

  • OSB Console is throwing exception, when i click on Project Explorer

    Hi,
    From OSB Console, if i click on the Project Explorer iam getting the below exception.
    Console Exception:*
    Message The server encountered an unexpected condition which prevented it from fulfilling the request.*
    The same exception is arising again when i click on messages button as well.
    Thanks,
    Vijay

    Please ensure that you osb manager server is up and running properly.
    Sometimes it is a temporary issue and can be resolved by just closing the window ,clearing the cache and re opening the page.

  • JavaMail hangs up does not send mail nor throws exception when sending with attachment.

    So basically i have a problem that has been reported, but none of the answers solved in my case.
    I'm trying to send a mail with attachment using java mail, and it hangs in the transport.Send without sending an exception.
    I've put the debug to true to try to understand what's going on and the result that i get is this:
    DEBUG: not loading system providers in <java.home>/lib
    DEBUG: not loading optional custom providers file: /META-INF/javamail.providers
    DEBUG: successfully loaded default providers
    DEBUG: Tables of loaded providers
    DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.S  MTPSSLTransport,Sun Microsystems, Inc],  com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.
    SMTPTransport,Sun Microsystems, Inc],  com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLSto  re,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLSto re,Sun M
    icrosystems, Inc],  com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun   Microsystems, Inc],  com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun   Microsystems, Inc]}
    DEBUG: Providers Listed By Protocol:   {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems,   Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems,   Inc], smtps=javax.mail.Provider[TRANSPORT,
    smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc],  pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc],  pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems,   Inc], smtp=java
    x.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
    DEBUG: not loading optional address map file: /META-INF/javamail.address.map
    i've tried set the both connection timeout proprieties to 5000 but it stil does nott generate an exception. i've tried to chage the try catch block to catch Exception rather than MessagingException but it still does not generate an exception.
    So i have another environment where using the same mail server and code it is working and i.ve generated the debug message and the next message is
    DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
    I don't understand why it blocks here and why this message is not shown. i don't think its a connection problem. maybe a configuration issue, so i'm triyng to understand whats going wrong.
    Any help would be appreciated. Thanks.

    Based on the debug output, you're using a very old version of JavaMail.  You should consider upgrading.
    The debug output shows no attempt to connect to any server, so it appears that something is going wrong even before then.
    If the program is really blocked, try to get a stack trace showing where it's blocked.
    Also, try catching Throwable to make sure you're not missing some kind of unexpected failure.
    Do you have a standalone application, or is it running in some sort of application server?
    What version of the JDK are you using?

  • Why throw exception when input Chinese in JTextField for Applet

    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at java.util.Hashtable.get(Unknown Source)
    at javax.swing.KeyboardManager.registerMenuBar(Unknown Source)
    at javax.swing.JMenuBar.addNotify(Unknown Source)
    at java.awt.Container.addNotify(Unknown Source)
    at javax.swing.JComponent.addNotify(Unknown Source)
    at javax.swing.plaf.metal.MetalTitlePane.addNotify(Unknown Source)
    at java.awt.Container.addNotify(Unknown Source)
    at javax.swing.JComponent.addNotify(Unknown Source)
    at java.awt.Container.addNotify(Unknown Source)
    at javax.swing.JComponent.addNotify(Unknown Source)
    at javax.swing.JRootPane.addNotify(Unknown Source)
    at java.awt.Container.addNotify(Unknown Source)
    at java.awt.Window.addNotify(Unknown Source)
    at java.awt.Frame.addNotify(Unknown Source)
    at java.awt.Window.pack(Unknown Source)
    at sun.awt.im.CompositionArea.<init>(Unknown Source)
    at sun.awt.im.CompositionAreaHandler.createCompositionArea(Unknown Source)
    at sun.awt.im.CompositionAreaHandler.inputMethodTextChanged(Unknown Source)
    at sun.awt.im.CompositionAreaHandler.processInputMethodEvent(Unknown Source)
    at sun.awt.im.InputMethodContext.dispatchEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

    post the code that leads to it. Cuz it can't be just Chinese text causing it.

  • URL stream throws exception when trying to read from input stream

    Hi guys,
    I tried reading from an input stream which returned a 401. Actually, the server side returns 401 whenever the application server cannot fulfill the client's request, however the 401 contains a message which I will like to read.
    I have tried this with mozilla and the return message is properly displayed even at 401. How can I read this message?

    Oracle home is pointing to wrong location.When we made the change to corrent location.Then we rebuilt the jar file started the managed server it is working fine.

  • How does it work : String MethdName (argument) throws Exception {}

    HI,
    I am very new to Java. I was looking through some code written by some other developer.
    the code looks like
    String MethdName (argument) throws Exception {
    // some code here
    What it exactly means? Are we forcing this method to always throw an exception? or only if some exception occurs then it will throw the exception?
    Regards,
    Lucky

    It doesnt throw exceptions always.
    What this means is that if you code inside the method does use some API or function that throws exceptions when a particular condition is not met, you method would throw the same exception to it's caller. If you didn't add the throw exception clause in your method, you would have to try/catch the exception that would be thrown in your code.
    Or else, your code won't compile.
    Summary:
    A method that throws an uncaught, checked exception must include a throws clause in its declaration.
    Read this for some additional info:
    [Java Exception Handling|http://ajaxweb.wikidot.com/java-exception-handling]
    [Sun Java Tutorial - Exceptions|http://java.sun.com/docs/books/tutorial/essential/exceptions/index.html]

  • OIM11g: The Message-Driven EJB: oimKernelQueueMDB is throwing exception

    Hi All,
    I am getting the following error always and providing trobule to run schedule job "Issue Aduit Message Task"
    ####<Feb 25, 2013 11:40:21 PM EST> <Warning> <EJB> <oimhp02> <prod-oim_oim_server02> <[ACTIVE] ExecuteThread: '17' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <347b29a9270cc81f:-72dc63f2:13d10f9b16f:-8000-000000000001790a> <1361853621251> <BEA-010216> <The Message-Driven EJB: oimKernelQueueMDB is throwing exception when processing the messages. Delivery failed after *2,033 attempts*. The EJB container will suspend the message delivery for 60 seconds before retry.>
    see now the attempt is 2033, its incresing ....
    Env Detais:
    OIM11g 11.3.3.6
    Weblogic 10.3.3
    DB Oracle 11.2
    platform: linx redhat 5
    Can you please help me to solve this issue? Thank you.

    Check MOS Article: 1369008.1
    -Bikash

  • Exception when remotely executing Export-CsArchivingData cmdlet from C# managed code

    Hi,
    Hopefully this is the right forum.
    The issue is specifically about remotely executing Export-CsArchivingData cmdlet from C# managed code.
    I use RunspacePool to connect to remote Lync server as described here:
    http://msdn.microsoft.com/en-us/library/ee706598(v=vs.85).aspx
    I can connect to remote Lync server and execute many Lync cmdlets (e.g. Get-CsUser, Get-CsSite, Get-CsPool, etc) and get the results just fine.
    However, when it tries to execute Export-CsArchivingData cmdlet remotely, it throws the following exception:
    System.AggregateException: One or more errors occurred. ---> System.Management.Automation.RemoteException: The term 'Export-CsArchivingData' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
    name, or if a path was included, verify that the path is correct and try again.
       at System.Management.Automation.Runspaces.AsyncResult.EndInvoke()
       at System.Management.Automation.PowerShell.EndInvoke(IAsyncResult asyncResult)
    Additional info:
    1. I created a custom RBAC role and added Export-CsArchivingData to it. Then, assign this new role to the account that runs the application.
    2. Using regular powershell (not Lync powershell) from the machine (that I run my app from) with Lync admin tool installed and ran with the account that has the custom RBAC role assigned, I can connect to remote Lync server and execute Export-CsArchivingData
    just fine.
    3. Execute the app using the same above account (that has custom RBAC role) on two machines (one with Lync admin tool installed, one without) and connect to remote Lync server.
       Same behavior on both machine, I got the above the exception when executing Export-CsArchivingData and no problem when executing other Lync cmdlets mentioned above.
       Yes, even from a machine without Lync admin tool installed, I can execute other Lync cmdlets mentioned above.
    At this point, I am not sure why I get the above exception when Export-CsArchivingData is executed from my app while I can connect to remote Lync server and call Export-CsArchivingData just fine via regular Powershell, both on the same machine.
    Note: I do not call Import-Module Lync in C# managed code since it is not necessary so far for executing other Lync cmdlets remotely.
    Any idea on what to look for?
    Thanks in advance.

    I would recommend you call Import-Module Lync first, the command is not recognized.
    Lisa Zheng
    TechNet Community Support

  • Exception when unshelve certain shelvesets

    We have been using VSO for more than a year without any problems. Since last Friday, we notice 2 things (so far) that has changed.
    1) VersionControlServer.ServerItemExists method seems to throw exception, when a path could not be resolved to a specific TFS project. $/KnownProject/UnknowFile returns false, but $/UnknownProject/UnknownFile throws IllegalServerItemException. It did not before
    and returned false.This broke our tools, but we could fix this easily,
    2) We have an in-house build server with many workers that build our solutions. Since last Friday, the workers are unable to unshelve certain shelvesets, I could not find any pattern in the shelvesets that fail to unshelve.
    The exception we saw in the log files is
    Data is Null. This method or property cannot be called on Null values. ----> Microsoft.TeamFoundation.VersionControl.Client.VersionControlException: Data is Null. This method or property cannot be called on Null values. ----> System.Web.Services.Protocols.SoapException:
    Data is Null. This method or property cannot be called on Null values.
       --- End of inner ExceptionDetail stack trace ---
       at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.HandleReply(TfsClientOperation operation, TfsMessage message, Object[]& outputs)
       at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.Invoke(TfsClientOperation operation, Object[] parameters, TimeSpan timeout, Object[]& outputs)
       at Microsoft.TeamFoundation.VersionControl.Client.Repository5.Unshelve(String ...).
    I tried recreating the shelvesets from scratch, refresh workspaces, force get files, and also disabling TFS proxy. Nothing seems to make a difference.
    I already created a connect
    ticket and in the process of getting a technical support incident for this, but it's taking too long.   This issue is blocking our developers, any help/advice/suggestion would be much appreciated.

    It turned out to be a bug in the patch that rolled out last week. Created a support incident, a fix was rolled out yesterday. Confirmed this issue is now fixed.
    S_G

Maybe you are looking for

  • Question for Jari

    Jari, Do your instructions Re: Need help with APEX_Collection still apply in version 4.0.2.00.06 or is there a different method? Thanks, Joe Edited by: Joe R on Jun 3, 2011 3:41 PM Fixed link

  • Generate/Read ATML TestResults Files using LabVIEW

    I've become very interested recently in saving all my test results into XML files.  Seems like the wise way to go about this would be to use the ATML standard (http://grouper.ieee.org/groups/scc20/tii/IEEE1636-1TestResults/TestResults.html#complexTyp

  • What are Info objects and Info package

    Hey guys can anybody tell me What are Info objects and Info package thanx saif

  • Showing short , medium and long texts together

    Hi, I have 0material and have navigational attribute -subdivision. I need subdivision to be seen in the report as following <b>KEY | TEXT SHORT | TEXT LONG</b> is there a way to show those together in Reporting? I know i can show KEY- SHORT TEXT or K

  • SAP ERP (Logistics) IT Process monitoring KPI's

    Dear all, I have to come up with the KPI's to monitor SAP Processes (Especially logistic processes) from IT perspective. I present you with two possible scenarios for  a more clear picture. One is that an ERP system is launched at a new location (Her