9.0.3.3: NPE in ViewDefImpl

We're testing 9.0.3.3 right now.
When we create a new row:
  public void addToAssigned( Row[] rows ) {
    //passed rows must come from availableVO, otherwise that won't work correctly
    BaseViewObject availableVO = (BaseViewObject)binding.getApplicationModule(  )
                                                            .findViewObject( availableView );
    BaseViewObject assignedVO = (BaseViewObject)binding.getApplicationModule(  )
                                                           .findViewObject( assignedView );
    AttributeDef keyAvailableAttributeDef = availableVO.findAttributeDef( keyAvailableAttributeName );
    for( int i = 0; i < rows.length; i++ ) {
      String keyName = keyAvailableAttributeDef.getName(  );
      Object value = rows[ i ].getAttribute( keyName );
      Row row = assignedVO.createRow(  );
      row.setAttribute( keyAssignedAttributeName, value );
      assignedVO.insertRow( row );
    binding.getApplicationModule(  ).getTransaction(  ).postChanges(  );
    assignedVO.executeQuery(  );
  }This causes a:
2003-10-23 17:37:12,315 [AWT-EventQueue-0] ERROR com.ge.med.bone.exception -
java.lang.NullPointerException
     at oracle.jbo.server.ViewDefImpl.processEntityAssociations(ViewDefImpl.java:3268)
     at oracle.jbo.server.ViewAttributeDefImpl.getEntityAssociationReferences(ViewAttributeDefImpl.java:566)
     at oracle.jbo.server.ViewObjectImpl.associatedReferenceEntities(ViewObjectImpl.java:7697)
     at oracle.jbo.server.ViewRowSetImpl.initForeignKeyValues(ViewRowSetImpl.java:3206)
     at oracle.jbo.server.ViewRowSetImpl.initForeignKeyValues(ViewRowSetImpl.java:3166)
     at oracle.jbo.server.ViewObjectImpl.createInstance(ViewObjectImpl.java:2104)
     at oracle.jbo.server.QueryCollection.createRowWithEntities(QueryCollection.java:771)
     at oracle.jbo.server.ViewRowSetImpl.createRowWithEntities(ViewRowSetImpl.java:1438)
     at oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:1476)
     at oracle.jbo.server.ViewRowSetImpl.createRow(ViewRowSetImpl.java:1460)
     at oracle.jbo.server.ViewObjectImpl.createRow(ViewObjectImpl.java:5400)
     at com.ge.med.bone.ui.base.MappingPanel.addToAssigned(MappingPanel.java:273)
     at com.ge.med.bone.ui.base.MappingPanel$1.actionPerformed(MappingPanel.java:192)
     at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
     at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
     at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
     at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
     at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
     at java.awt.Component.processMouseEvent(Component.java:5100)
     at java.awt.Component.processEvent(Component.java:4897)
     at java.awt.Container.processEvent(Container.java:1569)
     at java.awt.Component.dispatchEventImpl(Component.java:3615)
     at java.awt.Container.dispatchEventImpl(Container.java:1627)
     at java.awt.Component.dispatchEvent(Component.java:3477)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
     at java.awt.Container.dispatchEventImpl(Container.java:1613)
     at java.awt.Window.dispatchEventImpl(Window.java:1606)
     at java.awt.Component.dispatchEvent(Component.java:3477)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)What could cause that exception? In 9.0.3.2 the code worked just fine. What's happening at line 3268 in ViewDefImpl?
Regards,
Sascha

I don't know. We have extended entities of course. But I don't think that this is related to the problem.
The editor takes always long to come up. Haven't seen an association yet, where it comes up quickly. Even if no extended entities are shown in the trees it takes long. This is at least my impression.
And this is really bad, because due to a new BC4J bug (??) we have to change lots of associations.
Sascha

Similar Messages

  • Mixing static and dynamic content in a single outputText value causes NPEs

    Hi,
    I am having a problem and I'm wondering if it is a result of my error or if this is a bug.
    I am mixing dynamic and static content in the value attribute of tags (e.g., outputText). On initial page load, everything works fine. However, if the same view is reloaded (e.g., after a failed validation) I get an NPE from JSF:
    [#|2006-10-24T08:49:03.756-0500|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=12;|StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception
    java.lang.NullPointerException
            at com.sun.faces.el.MixedELValueParser.getNextToken(MixedELValueParser.java:140)
            at com.sun.faces.el.MixedELValueParser.parse(MixedELValueParser.java:123)
            at com.sun.faces.el.MixedELValueBinding.getValue(MixedELValueBinding.java:60)
            at javax.faces.component.UIOutput.getValue(UIOutput.java:147)
            at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:82)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:201)
            at com.sun.faces.renderkit.html_basic.LabelRenderer.encodeBegin(LabelRenderer.java:128)
            at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:683)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:443)
            at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:445)
            at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:130)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:445)
            at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:445)
            at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:130)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:445)
            at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
            at javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:609)
            at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:546)
            at com.sun.faces.taglib.html_basic.PanelGridTag.doEndTag(PanelGridTag.java:460)
            at org.apache.jsp.registration_jsp._jspx_meth_h_panelGrid_0(registration_jsp.java:324)
            at org.apache.jsp.registration_jsp._jspx_meth_h_form_0(registration_jsp.java:223)
            at org.apache.jsp.registration_jsp._jspx_meth_f_view_0(registration_jsp.java:157)
            at org.apache.jsp.registration_jsp._jspService(registration_jsp.java:118)
            at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
            at sun.reflect.GeneratedMethodAccessor188.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
            at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
            at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
            at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
            at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
            at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723)
            at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:482)
            at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:417)
            at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:80)
            at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:95)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:313)
            at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:326)
            at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:132)
            at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
            at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
            at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:194)
            at sun.reflect.GeneratedMethodAccessor202.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
            at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
            at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
            at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
            at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
            at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)My code looks like this:
    <h:outputText escape="false"
              value='<link href="#{myBean.styleSheet}" rel="stylesheet" type="text/css"  />' />If I replace this with a much more convoluted set of tags, it works:
    <h:outputText escape="false"
              value='<link href="' /><h:outputText escape="false" value="#{myBean.styleSheet}"
              /><h:outputText escape="false" value='" rel="stylesheet" type="text/css" />' />So is the problem that I am mixing dynamic and static content with a single value? If so, why does it work on the first view, and not after?
    If it matters, I'm using the reference implementation version 1.1 (as included with NetBeans 5.5RC2) on SuSE 10.0 w/ JDK 1.5_09.
    Thanks,
    Bill

    Yes, that's how I originally had it, but then changed it to the outputText approach since a single tag could do what I wanted, as long as I was allowed to mix static and dynamic content within a single value.
    I think this is a bug in JSF 1.1, since if what I am doing is illegal, it should throw an exception on the first page view, not work on first view and throw an exception on subsequent views. I'm guessing that this has something to do with the fact that on first page view it only runs the restore view and render response JSF phases, while on subsequent requests all of the phases will be run, and it's in one of those other phases that the exception is thrown.
    For now, multiple tags is the work-around, I guess.
    Thanks,
    Bill

  • NPE 10.1.3.1 - Can you solve it?

    I get an NPE in OC4J 10.1.3.1 that I did not get in OC4J 9.0.4.
    The easisest way to explain it that it seems that a ResultSet that is populated in a bean, via JSP javascript invocation, is "lost" once that same JSP attempts to access it for display.
    You will see by my debug statements that ResultSet is populated (in SQLDataSource.java) with 1902 rows. I have commented out debug statements that I previoulsy executed to access the ResultSetMetaData and that is all in tact. Further, I even debugged the getString in the that same code and found it to be in tact.
    First I'll give you the trace and then I'll provide the JSPs java file where the error is on line 66 as:
    out.print( detail.getString("ACCT") );
    All of this is followed by links to view all pertinent code:
    TRACE
    =====
    07/04/27 10:42:57 Oracle Containers for J2EE 10g (10.1.3.1.0) initialized
    07/04/27 10:43:10 [DEBUG]: Using old session!
    07/04/27 10:43:12 [DEBUG]: User is not Inactive.
    07/04/27 10:43:12 [DEBUG]: defaultTemplate in ServletAdapter is /myinetmrp/my.jsp
    07/04/27 10:43:17 [DEBUG]: ReportWriter.service()
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[null]: SQLDataSource(AcctList_Count)
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[AcctList_Count]: End FileDataSource. Setting this.queryFile
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[null]: SQLDataSource(AcctList)
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[AcctList]: End FileDataSource. Setting this.queryFile
    07/04/27 10:43:17 [DEBUG]: The method is defaultMethod
    07/04/27 10:43:17 [DEBUG]: ReportWriter.defaultMethod
    07/04/27 10:43:17 [DEBUG]: refresh(req, res)
    07/04/27 10:43:17 [DEBUG]: Setting first = 1, last = 20 and ServeletEventFetchSize = 20
    07/04/27 10:43:17 [DEBUG]: defaultTemplate in ServletAdapter is /apps/AcctList.jsp
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[AcctList]: execute()
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[AcctList]: Loading query from FileDataSource file C:\OC4J_10131\j2ee\home\applications\intemrp\intemrp\apps\AcctList.sql
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[AcctList]: command:
    select ACCT
    ,VDESC
    ,TYPE
    ,MISC_TAX_CODE
    from GL
    where ACCT <> ' '
    and 1=1
    order by ACCT
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[AcctList]: total Rows in resultSet = 1902
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[AcctList]: execute() in finally.
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[AcctList]: getString string(ACCT)
    07/04/27 10:43:17 java.lang.NullPointerException
    07/04/27 10:43:17 at oracle.jdbc.driver.ScrollableResultSet.findColumn(ScrollableResultSet.java:1308)
    07/04/27 10:43:17 at oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:1572)
    07/04/27 10:43:17 at com.sage.servlet.SQLDataSource.getString(SQLDataSource.java:432)
    07/04/27 10:43:17 at apps.AcctList._jspService(_AcctList.java:66)
    07/04/27 10:43:17 at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    07/04/27 10:43:17 at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
    07/04/27 10:43:17 at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
    07/04/27 10:43:17 at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
    07/04/27 10:43:17 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    07/04/27 10:43:17 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
    07/04/27 10:43:17 at com.evermind.server.http.ServletRequestDispatcher.unprivileged_include(ServletRequestDispatcher.java:160)
    07/04/27 10:43:17 at com.evermind.server.http.ServletRequestDispatcher.access$000(ServletRequestDispatcher.java:50)
    07/04/27 10:43:17 at com.evermind.server.http.ServletRequestDispatcher$1.oc4jRun(ServletRequestDispatcher.java:97)
    07/04/27 10:43:17 at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
    07/04/27 10:43:17 at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:102)
    07/04/27 10:43:17 at com.sage.servlet.ServletAdaptor.includeJSP(ServletAdaptor.java:124)
    07/04/27 10:43:17 at com.sage.servlet.ServletAdaptor.includeDefaultJSP(ServletAdaptor.java:96)
    07/04/27 10:43:17 at com.sage.servlet.ReportWriter.service(ReportWriter.java:79)
    07/04/27 10:43:17 at inetmrp.servlet.HttpsReportWriter.service(HttpsReportWriter.java:91)
    07/04/27 10:43:17 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    07/04/27 10:43:17 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
    07/04/27 10:43:17 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    07/04/27 10:43:17 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    07/04/27 10:43:17 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    07/04/27 10:43:17 at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    07/04/27 10:43:17 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    07/04/27 10:43:17 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    07/04/27 10:43:17 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    07/04/27 10:43:17 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    07/04/27 10:43:17 at java.lang.Thread.run(Thread.java:595)
    Here is the _AcctList.java
    ===================
    package _apps;
    import oracle.jsp.runtime.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.jsp.*;
    public class _AcctList extends com.orionserver.http.OrionHttpJspPage {
    // ** Begin Declarations
    // ** End Declarations
    public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {
    response.setContentType( "text/html;charset=iso-8859-1");
    /* set up the intrinsic variables using the pageContext goober:
    ** session = HttpSession
    ** application = ServletContext
    ** out = JspWriter
    ** page = this
    ** config = ServletConfig
    ** all session/app beans declared in globals.jsa
    PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, "/JspError.jsp", true, JspWriter.DEFAULT_BUFFER, true);
    // Note: this is not emitted if the session directive == false
    HttpSession session = pageContext.getSession();
    int __jsp_tag_starteval;
    ServletContext application = pageContext.getServletContext();
    JspWriter out = pageContext.getOut();
    _AcctList page = this;
    ServletConfig config = pageContext.getServletConfig();
    com.evermind.server.http.JspCommonExtraWriter __ojsp_s_out = (com.evermind.server.http.JspCommonExtraWriter) out;
    try {
    __ojsp_s_out.write(__oracle_jsp_text[0]);
    __ojsp_s_out.write(__oracle_jsp_text[1]);
    com.inetmrp.beans.WebUserSession webUserSession;
    synchronized (session) {
    if ((webUserSession = (com.inetmrp.beans.WebUserSession) pageContext.getAttribute( "webUserSession", PageContext.SESSION_SCOPE)) == null) {
    webUserSession = (com.inetmrp.beans.WebUserSession) new com.inetmrp.beans.WebUserSession();
    pageContext.setAttribute( "webUserSession", webUserSession, PageContext.SESSION_SCOPE);
    __ojsp_s_out.write(__oracle_jsp_text[2]);
    com.sage.servlet.SQLDataSource detail = ((com.sage.servlet.SQLDataSource)request.getAttribute( "AcctList" ));
    // Utility variables:
    int firstRow = Integer.parseInt( (String)request.getAttribute( "firstRow" ) );
    int lastRow = Integer.parseInt( (String)request.getAttribute( "lastRow" ) );
    int fetchSize = Integer.parseInt( (String)request.getAttribute( "ServletEventFetchSize" ) );
    int fetchRow = 0;
    boolean isFirstPage = (firstRow==1?true:false);
    boolean isLastPage = false;
    __ojsp_s_out.write(__oracle_jsp_text[3]);
    while ( !(isLastPage = !detail.next()) && (detail.getRow() <= lastRow) ) {
    fetchRow = detail.getRow();
    __ojsp_s_out.write(__oracle_jsp_text[4]);
    out.print( detail.getString("ACCT") );
    __ojsp_s_out.write(__oracle_jsp_text[5]);
    out.print( detail.getString("ACCT"));
    __ojsp_s_out.write(__oracle_jsp_text[6]);
    out.print( detail.getString("ACCT") );
    __ojsp_s_out.write(__oracle_jsp_text[7]);
    out.print( detail.getString("ACCT"));
    __ojsp_s_out.write(__oracle_jsp_text[8]);
    out.print( detail.getString("VDESC") );
    __ojsp_s_out.write(__oracle_jsp_text[9]);
    __ojsp_s_out.write(__oracle_jsp_text[10]);
    out.print( request.getParameter( "SELECT1" ) );
    __ojsp_s_out.write(__oracle_jsp_text[11]);
    out.print( request.getParameter("COMPARE1") );
    __ojsp_s_out.write(__oracle_jsp_text[12]);
    out.print( request.getParameter("TEXT1") );
    __ojsp_s_out.write(__oracle_jsp_text[13]);
    out.print( request.getParameter( "SELECT2" ) );
    __ojsp_s_out.write(__oracle_jsp_text[14]);
    out.print( request.getParameter("COMPARE2") );
    __ojsp_s_out.write(__oracle_jsp_text[15]);
    out.print( request.getParameter("TEXT2") );
    __ojsp_s_out.write(__oracle_jsp_text[16]);
    out.print( fetchSize );
    __ojsp_s_out.write(__oracle_jsp_text[17]);
    out.print( fetchRow );
    __ojsp_s_out.write(__oracle_jsp_text[18]);
    if ( !isFirstPage ) {
    __ojsp_s_out.write(__oracle_jsp_text[19]);
    __ojsp_s_out.write(__oracle_jsp_text[20]);
    if ( !isLastPage ) {
    __ojsp_s_out.write(__oracle_jsp_text[21]);
    __ojsp_s_out.write(__oracle_jsp_text[22]);
    catch (Throwable e) {
    if (!(e instanceof javax.servlet.jsp.SkipPageException)){
    try {
    if (out != null) out.clear();
    catch (Exception clearException) {
    pageContext.handlePageException(e);
    finally {
    OracleJspRuntime.extraHandlePCFinally(pageContext, true);
    JspFactory.getDefaultFactory().releasePageContext(pageContext);
    private static final byte __oracle_jsp_text[][]=new byte[23][];
    static {
    try {
    __oracle_jsp_text[0] =
    "\r\n".getBytes("ISO8859_1");
    __oracle_jsp_text[1] =
    "\r\n".getBytes("ISO8859_1");
    __oracle_jsp_text[2] =
    "\r\n".getBytes("ISO8859_1");
    __oracle_jsp_text[3] = (etc....)
    catch (Throwable th) {
    System.err.println(th);
    And now the links to view all pertinent code:
    http://www.sagesoftwaresystems.com/inetmrp/AppsMenu.jsp
    http://www.sagesoftwaresystems.com/inetmrp/AcctSearch.jsp
    http://www.sagesoftwaresystems.com/inetmrp/AcctList.java
    http://www.sagesoftwaresystems.com/inetmrp/AcctList.jsp
    http://www.sagesoftwaresystems.com/inetmrp/AcctList.sql
    http://www.sagesoftwaresystems.com/inetmrp/AcctList_Count.sql
    http://www.sagesoftwaresystems.com/inetmrp/FileDataSource.java
    http://www.sagesoftwaresystems.com/inetmrp/SQLDataSource.java
    http://www.sagesoftwaresystems.com/inetmrp/ReportWriter.java
    http://www.sagesoftwaresystems.com/inetmrp/HttpsReportWriter.java
    http://www.sagesoftwaresystems.com/inetmrp/HttpsServletAdapter.java
    http://www.sagesoftwaresystems.com/inetmrp/ServletAdapter_inetmrp.java
    http://www.sagesoftwaresystems.com/inetmrp/ServletAdapter_sage.java
    TIA for the answer to this seemingly unsolvable probelm,
    Ed.

    Sorry, mis-spelled the following file names.
    http://www.sagesoftwaresystems.com/inetmrp/HttpsServletAdaptor.java
    http://www.sagesoftwaresystems.com/inetmrp/ServletAdaptor_inetmrp.java
    http://www.sagesoftwaresystems.com/inetmrp/ServletAdaptor_sage.java

  • NPE in ADTOutputStream.addApplicationDescriptor() line 330 when migrating from AIR 2.6 to AIR 3.5

    I have a working maven pom which builds my AIR app using AIR 2.6 and I am trying to migrate it to use the new AIR 3.5 SDK.  According to the official release notes here : http://helpx.adobe.com/en/flash-player/release-note/fp_115_air_35_release_notes.html I need to firstly need to point to the new 3.5 schema in my air-app.xml file as follows: <application xmlns="http://ns.adobe.com/air/application/3.5"> 
    I also change my swfVersion and targetPlayer attributes as follows:
    <swfVersion>18</swfVersion>
    <targetPlayer>11.5</targetPlayer>
    I also changed the system Path environment variable on my machine to point the to the bin directory of the new AIR 3.5 sdk, so that when I type adl on the command line it reports back:
    Adobe (R) AIR (R) Developer Tool (ADT)
    Version 3.5.0.1060
    So when flexmojos launches ADL, it is launching the correct version.
    However I don't change my flex version which is set to <flex.version>4.5.1.21328</flex.version>, and my flexmojos version which is 4.2-beta.
    When I then try and build my project I get the following error:
    [ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.2-beta:sign-air (default-sign-air) on pro
    ject indigo-air: Error invoking AIR api: NullPointerException -> [Help 1]
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-pl
    ugin:4.2-beta:sign-air (default-sign-air) on project indigo-air: Error invoking AIR api
            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
            at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBu ilder.java:84)
            at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBu ilder.java:59)
            at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter .java:183)
            at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
            at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
            at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
            at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
            at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
            at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
            at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
            at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
            at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
    Caused by: org.apache.maven.plugin.MojoExecutionException: Error invoking AIR api
            at org.sonatype.flexmojos.plugin.air.SignAirMojo.doPackage(SignAirMojo.java:337)
            at org.sonatype.flexmojos.plugin.air.SignAirMojo.execute_aroundBody0(SignAirMojo.java:348)
            at org.sonatype.flexmojos.plugin.air.SignAirMojo.execute_aroundBody1$advice(SignAirMojo.java :24)
            at org.sonatype.flexmojos.plugin.air.SignAirMojo.execute_aroundBody2(SignAirMojo.java:348)
            at org.sonatype.flexmojos.plugin.air.SignAirMojo.execute_aroundBody3$advice(SignAirMojo.java :17)
            at org.sonatype.flexmojos.plugin.air.SignAirMojo.execute(SignAirMojo.java:1)
            at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.j ava:101)
            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
            ... 19 more
    Caused by: java.lang.NullPointerException
            at com.adobe.air.ADTOutputStream.addApplicationDescriptor(ADTOutputStream.java:330)
            at com.adobe.air.AIROutputStream.addApplicationDescriptor(AIROutputStream.java:63)
            at com.adobe.air.ApplicationPackager.addSpecialFiles(ApplicationPackager.java:242)
            at com.adobe.air.AIRPackager.addSpecialFiles(AIRPackager.java:172)
            at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:63)
            at org.sonatype.flexmojos.plugin.air.packager.FlexmojosAIRPackager.createPackage(FlexmojosAI RPackager.java:42)
            at org.sonatype.flexmojos.plugin.air.SignAirMojo.doPackage(SignAirMojo.java:310)
            ... 26 more
    If I try adding explicitly adding the AIR dependencies as follows:
             <dependency>
                <groupId>${flex.groupId}.framework</groupId>
                <artifactId>airframework</artifactId>
                <version>${flex.version}</version>
                <type>pom</type>
            </dependency>
            <dependency>
                <groupId>${flex.groupId}.compiler</groupId>
                <artifactId>adt</artifactId>
                <version>${flex.version}</version>
                <scope>compile</scope>
            </dependency>
    this has no effect and I still get the NPE error.
    Here's the relevant fragment from my pom.xml which configures the flexmojos plugin to build the AIR app:
    <plugin>
         <groupId>${flexmojos.groupId}</groupId>
        <artifactId>flexmojos-maven-plugin</artifactId>
        <version>${flexmojos.version}</version>
        <extensions>true</extensions>
        <configuration>
         <testTimeout>100000</testTimeout>
         <fonts>
          <managers>
           <manager>flash.fonts.JREFontManager</manager>
           <manager>flash.fonts.AFEFontManager</manager>
           <manager>flash.fonts.CFFFontManager</manager>
          </managers>
         </fonts>
         <sourceFile>IndigoAir.mxml</sourceFile>
         <flexBuilderCompatibility>true</flexBuilderCompatibility>
         <keystore>${basedir}/src/sign.p12</keystore>
         <storepass>flexmojos</storepass>
         <descriptorTemplate>${basedir}/src/IndigoAir-app.xml</descriptorTemplate>
         <ignoreVersionIssues>false</ignoreVersionIssues>
         <coverage>true</coverage>
         <coverageProvider>cobertura</coverageProvider>
         <coverageReportFormat>
          <format>xml</format>
          <format>html</format>
         </coverageReportFormat>
         <useNetwork>true</useNetwork>
         <themes>
          <theme>${project.build.directory}/themes/spark.swc</theme>
         </themes>
         <includeTypes>swc,css</includeTypes>
         <overWriteIfNewer>true</overWriteIfNewer>
         <targetJdk>1.6</targetJdk>
         <timestampURL>none</timestampURL>
         <optimize>true</optimize>
         <framework>spark</framework>
         <dumpConfigAttach>true</dumpConfigAttach>
         <keepGeneratedActionscript>false</keepGeneratedActionscript>
         <keepAs3Metadatas append="true">
          <keepAs3Metadata>Mock</keepAs3Metadata>
          <keepAs3Metadata>BeforeClass</keepAs3Metadata>
          <keepAs3Metadata>AfterClass</keepAs3Metadata>
          <keepAs3Metadata>Before</keepAs3Metadata>
          <keepAs3Metadata>After</keepAs3Metadata>
          <keepAs3Metadata>Rule</keepAs3Metadata>
          <keepAs3Metadata>Suite</keepAs3Metadata>
          <keepAs3Metadata>RunWith</keepAs3Metadata>
          <keepAs3Metadata>Ignore</keepAs3Metadata>
          <keepAs3Metadata>Test</keepAs3Metadata>
          <keepAs3Metadata>DataPoint</keepAs3Metadata>
          <keepAs3Metadata>DataPoints</keepAs3Metadata>
          <keepAs3Metadata>Parameters</keepAs3Metadata>
          <keepAs3Metadata>Theory</keepAs3Metadata>
          <keepAs3Metadata>ArrayElementType</keepAs3Metadata>
          <keepAs3Metadata>Log</keepAs3Metadata>
          <keepAs3Metadata>Transient</keepAs3Metadata>
          <keepAs3Metadata>Inject</keepAs3Metadata>
          <keepAs3Metadata>EventHandler</keepAs3Metadata>
          <keepAs3Metadata>ManagedEvent</keepAs3Metadata>
          <keepAs3Metadata>Dispatcher</keepAs3Metadata>
          <keepAs3Metadata>PostConstruct</keepAs3Metadata>
          <keepAs3Metadata>Mediate</keepAs3Metadata>
          <keepAs3Metadata>Autowire</keepAs3Metadata>
          <keepAs3Metadata>PreDestroy</keepAs3Metadata>
          <keepAs3Metadata>ViewAdded</keepAs3Metadata>
          <keepAs3Metadata>ViewRemoved</keepAs3Metadata>
          <keepAs3Metadata>ViewNavigator</keepAs3Metadata>
         </keepAs3Metadatas>
        </configuration>
       </plugin>
    Can anyone tell me what I'm doing wrong?  What is happening at line 330 in ADTOutputStream.addApplicationDescriptor()? This code isn't open sourced so the error message is plain unhelpful! If I use the same AIR sdk but back out the changes for 3.5, then it builds fine with the 2.6 schema. Thanks in advance!

    Hi,
    I'm kind of replying to my own post here. I have been doing some further development with iOS on AIR 2.6 and I think that unfortunately the new GPU rendering IS actually just a lot slower than it was on the Packager for iPhone.
    I know that a lot of people say that Air 2.6 has made their app run 2x faster and a lot of people say the opposite - that moving to 2.6 has made it run 2x slower- I think the difference there is probably that if you had your code properly optimized for GPU under PFI (which took a lot of work) then you will notice a big slowdown.
    For example, under PFI, on the iPad at 1024x768 I could have at least 50 large moving sprites on the screen at once running at full 60fps - I dont think that Air 2.6 could even manage that at 30fps (I have taken to lowering my fps to 30 in Air 2.6).
    Saying that Air 2.6 does make it a lot easier to port, especially if you are just using bitmaps as dont really have to do anything (unless they scale/rotate), it's more likely to "just work". Also, PFI had a lot of little bugs in it, like certain blending modes only working half the time, and sometimes the framerate would just bomb if you used too much memory.
    So I guess bottom line is that Air 2.6 feels a lot more stable and is easier to use, however if you are just purely using the GPU it will be less than half the speed of the old PFI, which is a massive shame.
    However I could be missing something here?

  • Getting a NPE when calling the getContent of a multipart message

    Hi,
    I get a NPE when I try to get the body of a multipart MIME message. The BODYSTRUCTURE returns the number of bytes of a bodypart before any decoding is done, the getContent then expects server to return that many bytes when it does something like "aa fetch 1 BODY[0]<0.16384>", when the server does not return anything a NPE is thrown. The exception is as follows
    java.lang.NullPointerException
         at com.sun.mail.iap.Response.parse(Response.java:64)
         at com.sun.mail.iap.Response.<init>(Response.java:32)
         at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:24)
         at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:99)
         at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:112)
         at com.sun.mail.iap.Protocol.command(Protocol.java:167)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:646)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:637)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:474)
         at com.sun.mail.imap.IMAPInputStream.fill(IMAPInputStream.java:52)
         at com.sun.mail.imap.IMAPInputStream.read(IMAPInputStream.java:80)
         at java.io.FilterInputStream.read(FilterInputStream.java:66)
         at java.io.PushbackInputStream.read(PushbackInputStream.java:120)
         at com.sun.mail.util.QPDecoderStream.read(QPDecoderStream.java:33)
         at com.sun.mail.util.QPDecoderStream.read(QPDecoderStream.java:86)
         at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:404)
         at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:442)
         at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:179)
         at java.io.InputStreamReader.read(InputStreamReader.java:167)
         at com.sun.mail.handlers.text_plain.getContent(text_plain.java:63)
         at javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:755)
         at javax.activation.DataHandler.getContent(DataHandler.java:511)
         at javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:231)
    Did anybody see this exception ?
    Thanks
    Nina

    I get this error too when:
    Part part = message;      
    while(i < path.length && part != null) {
    MimeMultipart multipart = getMultipart(part);
    if (multipart == null)
         throw new IOException("not multipart.");
    part = findPart(multipart, path);     
    i++;     
    if (part == null)
    throw new IOException("not a part of message.");
    InputStream in = part.getInputStream();
    int b = 0;
    while((b = in.read()) != -1)
    out.write(b);
    at part.getInputStream() i get:
    java.lang.NullPointerException
    at com.sun.mail.iap.Response.parse(Response.java:99)
    at com.sun.mail.iap.Response.<init>(Response.java:68)
    at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:31)
    at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:105)
    at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:153)
    at com.sun.mail.iap.Protocol.command(Protocol.java:215)
    at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:882)
    at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:874)
    at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:677)
    at com.sun.mail.imap.IMAPInputStream.fill(IMAPInputStream.java:74)
    at com.sun.mail.imap.IMAPInputStream.read(IMAPInputStream.java:131)
    at com.sun.mail.util.BASE64DecoderStream.decode(BASE64DecoderStream.java:156)
    at com.sun.mail.util.BASE64DecoderStream.read(BASE64DecoderStream.java:54)
    at se.illuminet.httpd.mail.MailXMLService.serviceXml(MailXMLService.java:354)
    Any resolution to this yet?
    It worked up until I changed to an SSL connection to IMAP.
    Could this affect at this level?
    Help appriciated.
    best
    Jonas

  • DefaultDesktopManager.activateFrame throws NPE on Mac OS X (Leopard)

    We have a Swing app deployed via JNLP. The JNLP file specifies JRE 1.5+.
    There is an error that occurs ONLY on Mac OSX desktops. When the user clicks in the open area of a frame, they get a NullPointerException. Stack looks like:
    javax.swing.DefaultDesktopManager.activateFrame(DefaultDesktopManager.java:233)
    apple.laf.CUIAquaInternalFramePane.mousePressed(CUIAquaInternalFramePane.java:203)
    java.awt.Component.processMouseEvent(Component.java:5599)
    javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
    java.awt.Component.processEvent(Component.java:5367)
    java.awt.Container.processEvent(Container.java:2010)
    java.awt.Component.dispatchEventImpl(Component.java:4068)
    java.awt.Container.dispatchEventImpl(Container.java:2068)
    java.awt.Component.dispatchEvent(Component.java:3903)
    java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
    java.awt.LightweightDispatcher.processMouseEvent(Container.java:3933)
    java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
    java.awt.Container.dispatchEventImpl(Container.java:2054)
    java.awt.Window.dispatchEventImpl(Window.java:1791)
    java.awt.Component.dispatchEvent(Component.java:3903)
    java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
    java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
    java.awt.EventDispatchThread.run(EventDispatchThread.java:110)I've been able to gather very little from the web on this, other than a recognition of the bug, with a partially-described solution that I don't understand.
    If anyone has seen this problem, or has any helpful information, it would be greatly appreciated.
    Pete

    If the exception is otherwise harmless, you could "mask" it by simply using a custom DesktopManager that usually simply delegates to the default one. Untested code:
    // Make your desktop pane use your new DesktopManager
    JDesktopPane dp = new JDesktopPane();
    DesktopManager newManager = new MyDesktopManager(dp.getDesktopManager());
    dp.setDesktopManager(newManager);
    class MyDesktopManager implements DesktopManager {
       private DesktopManager delegate;
       public MyDesktopManager(DesktopManager delegate) {
          this.delegate = delegate;
       public void activateFrame(JInternalFrame f) {
          try {
             delegate.activateFrame(f);
          } catch (NullPointerException npe) {
             // Swallow, log, or whatever you want
       // All other methods, simply delegate
    }

  • Essbase JAPI maxl session gives NPE with import statement

    Anybody know why I get a NPE from the Java API when trying to use the IEssMaxlSession to do an import? Here's my code snippet. I've verified the session work using the simpler maxl command commented out below. I also know the import syntax is OK at the maxl prompt. Essbase Error(0) isn't the most helpful diagnostic I've come across.
    Thanks
    IEssMaxlSession maxlSess = null;
    try {
         maxlSess = olapSvr.openMaxlSession("Maxl Test");
                   try {
                        String maxl;
    //                    maxl = "display database \"184_r\".rep";
                        maxl = "import database \"184_a\".agg dimensions connect as \"admin\" identified by \"password\" using server rules_file '/TmpltRFs/RFs/Plan.rul' on error write to \"errlog.log\"";
                        logger.debug(maxl);
         maxlSess.execute(maxl);
         printMessages(maxlSess.getMessages());
                   } catch (EssException e) {
                        printMessages(maxlSess.getMessages());
                        logger.debug(e.getMessage());
                        e.printStackTrace();
    } catch (EssException e){
         logger.debug(e.getMessage());
    14:47:40 DEBUG (essbase.RunMaxl 109): Cannot execute maxl statement. Essbase Error(0): java.lang.NullPointerException
    com.essbase.api.base.EssException: Cannot execute maxl statement. Essbase Error(0): java.lang.NullPointerException
         at com.essbase.server.framework.EssOrbPluginDirect.ex_olap(Unknown Source)
         at com.essbase.server.framework.EssOrbPluginDirect.executeMaxlStatement(Unknown Source)
         at com.essbase.api.session.EssOrbPlugin._invokeMaxlMethod(Unknown Source)
         at com.essbase.api.session.EssOrbPlugin._invokeMethod2(Unknown Source)
         at com.essbase.api.session.EssOrbPlugin._invokeMethod(Unknown Source)

    This is due to the unpublished Bug 12661416: MAXL STATEMENT IMPORT DB DIMENSIONS FROM RELATIONAL DATABASE FAILS WITH JAPI. This error is not fixed in next release.
    However, there is one workaround.
    "As a workaround we installed Essbase client 9.3.1 on the epm11 test box, copied native libraries from 9.3.1 admin server and connected to maxl shell from the v 9.3.1 maxljni interface. This seems to work fine."
    Edited by: Karthik_P on Apr 9, 2012 1:12 PM

  • NPE in stopWeblogic.cmd with Server Logging Bridge

    I'm migrating an EAR that depends on JDK logging to WLS 10.3.3. To activate the JDK logging in my domain logs I followed [url http://download.oracle.com/docs/cd/E14571_01/web.1111/e13739/logging_services.htm#WLLOG199]the instructions given in the WLS manual. The logging part works as expected now. However, my stopWeblogic.cmd fails with the following NPE:
    Stopping Weblogic Server...
    Initializing WebLogic Scripting Tool (WLST) ...
    Welcome to WebLogic Server Administration Scripting Shell
    Type help() for help on available commands
    Connecting to t3://DT04748:7001 with userid weblogic ...
    WLST detected that the RuntimeMBeanServer is not enabled. This
    might happen if the RuntimeMBeanServer is disabled via the JMXMBean.
    Please ensure that this MBeanServer is enabled. Online WLST cannot
    function without this MBeanServer.
    This Exception occurred at Thu Jan 06 13:20:24 CET 2011.
    java.lang.NullPointerException
            at weblogic.logging.ServerLoggingHandler.publish(ServerLoggingHandler.java:24)
            at java.util.logging.Logger.log(Logger.java:481)
            at java.util.logging.Logger.doLog(Logger.java:503)
            at java.util.logging.Logger.logp(Logger.java:619)
            at com.sun.jmx.remote.util.ClassLogger.finer(ClassLogger.java:130)
            at com.sun.jmx.remote.util.ClassLogger.trace(ClassLogger.java:88)
            at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:333)
            at weblogic.management.remote.common.WLSRMIConnector.doConnect(WLSRMIConnector.java:150)
            at weblogic.management.remote.common.WLSRMIConnector.access$100(WLSRMIConnector.java:27)
            at weblogic.management.remote.common.WLSRMIConnector$2.run(WLSRMIConnector.java:138)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
            at weblogic.security.Security.runAs(Security.java:61)
            at weblogic.management.remote.common.WLSRMIConnector.connect(WLSRMIConnector.java:136)
            at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
            at weblogic.management.scripting.WLSTHelper.lookupMBeanServerConnection(WLSTHelper.java:678)
            at weblogic.management.scripting.WLSTHelper.initRuntimeServerConnection(WLSTHelper.java:398)
            at weblogic.management.scripting.WLSTHelper.initConnections(WLSTHelper.java:315)
            at weblogic.management.scripting.WLSTHelper.connect(WLSTHelper.java:203)
            at weblogic.management.scripting.WLScriptContext.connect(WLScriptContext.java:61)
            at weblogic.management.scripting.utils.WLSTUtil.initializeOnlineWLST(WLSTUtil.java:147)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.python.core.PyReflectedFunction.__call__(Unknown Source)
            at org.python.core.PyMethod.__call__(Unknown Source)
            at org.python.core.PyObject.__call__(Unknown Source)
            at org.python.core.PyObject.invoke(Unknown Source)
            at org.python.pycode._pyx4.connect$1(<iostream>:16)
            at org.python.pycode._pyx4.call_function(<iostream>)
            at org.python.core.PyTableCode.call(Unknown Source)
            at org.python.core.PyTableCode.call(Unknown Source)
            at org.python.core.PyFunction.__call__(Unknown Source)
            at org.python.pycode._pyx15.f$0(D:\Oracle\Middleware\user_projects\domains\FLUX\shutdown.py:6)
            at org.python.pycode._pyx15.call_function(D:\Oracle\Middleware\user_projects\domains\FLUX\shutdown.py)
            at org.python.core.PyTableCode.call(Unknown Source)
            at org.python.core.PyCode.call(Unknown Source)
            at org.python.core.Py.runCode(Unknown Source)
            at org.python.util.PythonInterpreter.execfile(Unknown Source)
            at weblogic.management.scripting.WLST.main(WLST.java:131)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at weblogic.WLST.main(WLST.java:29)
    Problem invoking WLST - Traceback (innermost last):
      File "D:\Oracle\Middleware\user_projects\domains\FLUX\shutdown.py", line 6, in ?
      File "<iostream>", line 22, in connect
      File "<iostream>", line 646, in raiseWLSTException
    WLSTException: Error occured while performing connect : "Cannot connect to WLST."
    Use dumpStack() to view the full stacktrace
    Done
    Stopping Derby Server...
    Steps to reproduce
    1. Create a logging.properties file with the following contents:
    # Specify the handlers to create in the root logger
    handlers = weblogic.logging.ServerLoggingHandler
    # Register handlers for my.app and their child loggers
    my.app.handlers = java.util.logging.ConsoleHandler, weblogic.logging.ServerLoggingHandler
    # Do not send the my.app log messages to the root handler
    my.app.useParentHandlers = false
    # Set the default logging level for the root logger
    .level = ALL
    # Set the default logging level for new ConsoleHandler instances
    java.util.logging.ConsoleHandler.level = INFO
    # Set the default logging level for new FileHandler instances
    weblogic.logging.ServerLoggingHandler.level = ALL2. Add the following directive in the setDomainEnv.cmd:
    set JAVA_OPTIONS=%JAVA_OPTIONS% -Djava.util.logging.config.file=path/to/logging.properties3. Start-stop the domain and the above NPE occurs while WLS keeps running. Remove the directive from step 2 and the start-stop sequence goes back to normal.
    Environment
    Oracle JDK:
    java version "1.6.0_23"
    Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
    Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)OS: Windows XP Pro SP3
    Your help would be very much appreciated! Please let me know if you need any additional info.
    Thanks,
    Bas

    Hi Sandeep,
    Thanks a lot for your quick reply! You were right, the logging directive was used both client and server side. I moved
    -Djava.util.logging.config.file=path/to/logging.propertiesfrom setDomainEnv.cmd to startWeblogic.cmd and WLS can be stopped correctly now.
    Regards,
    Bas

  • [svn] 1625: Avoiding an NPE instead of blindly instantiating a new localization manager here when encoding the compilation result of a CSS file to a SWF to unblock QE .

    Revision: 1625
    Author: [email protected]
    Date: 2008-05-08 13:53:33 -0700 (Thu, 08 May 2008)
    Log Message:
    Avoiding an NPE instead of blindly instantiating a new localization manager here when encoding the compilation result of a CSS file to a SWF to unblock QE.
    Doc: No
    QE: Yes
    Bugs: SDK-15490 - Compiler gives nullpointer in encode of incremental compile if benchmark is set to true
    Reviewer: Paul
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-15490
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java

    Hi, thank you for your replies, I found out few things about my servlet, and its portability
    and i have few questions, although i marked this topic as answered i guess its ok to post
    I am using javax.servlet.context.tempdir to store my files in that servletcontext temporary directory. But i dont know how to give hyperlink
    of the modified files to the user for them to download the modified files.
    What i am using to get the tempdir i will paste
    File baseurl = (File)this.getServletContext().getAttribute("javax.servlet.context.tempdir");
    System.out.println(baseurl);
    baseurl = new File(baseurl.getAbsolutePath()+File.separator+"temp"+File.separator+"files");
    baseurl.mkdirs();so i am storing my files in that temp/files folder and the servlet processes them and modifies them, then how to present them as
    links to the user for download ?
    and as the servlet is multithreaded by nature, if my servlet gets 2 different requests with same file names, i guess one of them will be overwritten
    And i want to create unique directory for each request made to the servlet , so file names dont clash.
    one another thing is that i want my servlet to be executed by my <form action> only, I dont want the user to simply type url and trigger the servlet
    Reply A.S.A.P. please..
    Thanks and regards,
    Mihir Pandya

  • AdvanceCache throwing NPE in headless mode

    Using jCharts (cross-posted there too), axisChart.render() is throwing this NullPointerException, but only some of the time. Looks like about half the time, the other half everything works great. I'm at a loss. It's a servlet that generates a JPEG chart, running in Caucho's Resin engine, 1.4 jdk running in headless mode, on a Linux box. Any ideas are appreciated...
    dataSeries.addIAxisChartDataSet( new AxisChartDataSet( data, legendLabels, paints, ChartType.BAR, barChartProperties ) );
    AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, width, height );
    BufferedImage awtImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
    axisChart.setGraphics2D(awtImage.createGraphics());
    axisChart.render();
    try {
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(response.getOutputStream());
    encoder.encode(awtImage);
    } catch (Exception e) {
    System.out.println(e);
    java.lang.NullPointerException
    at sun.awt.font.AdvanceCache.get(AdvanceCache.java:125)
    at java.awt.font.TextLayout$OptInfo.handleGetVisualBounds(TextLayout.java:280)
    at sun.awt.font.Decoration.getVisualBounds(Decoration.java:105)
    at java.awt.font.TextLayout$OptInfo.getVisualBounds(TextLayout.java:309)
    at java.awt.font.TextLayout.getBounds(TextLayout.java:1109)
    at org.jCharts.Chart.renderChartTitle(Unknown Source)
    at org.jCharts.axisChart.AxisChart.renderChart(Unknown Source)
    at org.jCharts.Chart.render(Unknown Source)
    at ChartGen.doGet(ChartGen.java:76)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:126)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
    at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96)
    at com.caucho.server.http.Invocation.service(Invocation.java:311)
    at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:342)
    at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:272)
    at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
    at java.lang.Thread.run(Thread.java:536)

    I'm also running into this. It seems after having Tomcat running for a while (days) it suddenly starts happening. It's as if it caches something that is then forgotten (or closed), and when called, it throws NPE. I'd love to know if this turns out to be a JDK bug or if there's a logical explanation.

  • JPQL LEFT JOIN FETCH Results in NPE when DescriptorCustomizer in Place

    I have a unidirectional one-to-many mapping between the following two entities:
    @Entity
    @Table(name="INVC_CNTRL")
    public class InvoiceControl implements Serializable {
        @Id
        @Column(name="INVC_CNTRL_ID")
        private Long invoiceControlId = null;
        @OneToMany(fetch = FetchType.LAZY)
        private List userDefineds;
    @Entity
    @Table(name="USER_DEFINED")
    public class UserDefined implements Serializable {
        @Column(name="USER_DEFINED_TABLE")
        private java.lang.String userDefinedTable;
        @Column(name="USER_DEFINED_FK")
        private long userDefinedForeignKey;
    I wrote the following DescriptorCustomizer to address a constant JoinColumn value:
            ManyToManyMapping mapping = (ManyToManyMapping) descriptor.getMappingForAttributeName("userDefineds");
            if (null != mapping) {
                String tableName = descriptor.getTableName();
                String primaryKey = descriptor.getPrimaryKeyFields().get(0).getName();
                ExpressionBuilder builder = new ExpressionBuilder(mapping.getReferenceClass());
                mapping.setSelectionCriteria(builder.getField("USER_DEFINED_FK").equal(builder.getParameter(primaryKey))
                    .and(builder.getField("USER_DEFINED_TABLE").equal(tableName)));
    This works as expected with JPQL "select a from InvoiceControl a join fetch a.userDefineds" but when I change the "join fetch" to "left join fetch", I get the following NPE:
    Caused by: java.lang.NullPointerException
         at org.eclipse.persistence.internal.expressions.SQLSelectStatement.appendFromClauseForOuterJoin(SQLSelectStatement.java:403)
         at org.eclipse.persistence.internal.expressions.SQLSelectStatement.appendFromClauseToWriter(SQLSelectStatement.java:521)
         at org.eclipse.persistence.internal.expressions.SQLSelectStatement.printSQL(SQLSelectStatement.java:1679)
         at org.eclipse.persistence.internal.databaseaccess.DatabasePlatform.printSQLSelectStatement(DatabasePlatform.java:3178)
         at org.eclipse.persistence.platform.database.OraclePlatform.printSQLSelectStatement(OraclePlatform.java:932)
         at org.eclipse.persistence.internal.expressions.SQLSelectStatement.buildCall(SQLSelectStatement.java:782)
         at org.eclipse.persistence.internal.expressions.SQLSelectStatement.buildCall(SQLSelectStatement.java:792)
         at org.eclipse.persistence.descriptors.ClassDescriptor.buildCallFromStatement(ClassDescriptor.java:813)
         at org.eclipse.persistence.internal.queries.StatementQueryMechanism.setCallFromStatement(StatementQueryMechanism.java:390)
         at org.eclipse.persistence.internal.queries.StatementQueryMechanism.prepareSelectAllRows(StatementQueryMechanism.java:315)
         at org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.prepareSelectAllRows(ExpressionQueryMechanism.java:1721)
         at org.eclipse.persistence.queries.ReadAllQuery.prepareSelectAllRows(ReadAllQuery.java:813)
         at org.eclipse.persistence.queries.ReadAllQuery.prepare(ReadAllQuery.java:744)
         at org.eclipse.persistence.queries.DatabaseQuery.checkPrepare(DatabaseQuery.java:661)
         ... 8 more
    Inspecting the 2.5.1 source, this suggests relationAlias is null.
    I've tried a number of things to no avail. If I disable the DescriptorCustomizor and instead add a @JoinColumn on the OneToMany defining half of the join, it works. Of course the result is incorrect because it's failing to discriminate by the table name.
    Is this a bug or am I making another JPA noob mistake?
    Thanks.

    I was able to get similar behaviour doing similar JPQL. I have entered a bug in TopLink Essentials. 2465.
    I did note that having the objects in memory made a significant difference (< .5 seconds for 1000 objects, each with 2 in the 1:M).

  • JSF calls DAO layer based on  JPA/Hibernate throws NPE

    I'm new in JSF and Hibernate;
    I'm using Hibernate as JPA provider, the dataaccess is tied to DAO layer; when my JSF controller(UserController) calls the getUsers() of my DAO layer
    (Glassfish is the app Server I use)
    NullpointerException is thrown, I assume it's because instance of BasicDAO is initialized, where do I have to instantiate BasicDAO
    here is my code :
    public class BasicDAO {      
    @PersistenceUnit(unitName = "test5PU")
    private EntityManager entityManager;
    public void setEntityManager(EntityManager entityManager)
    {        this.entityManager = entityManager;    }
    public List getUsers() {       
    Query query = entityManager.createNamedQuery("User.findAllUsers");
    return query.getResultList();
    public User findUser(String id) {       
    try{
    Query q = entityManager.createNamedQuery("User.findByIdUser");
    User o = (User)q.getSingleResult();
    return o;
    } finally {
    entityManager.close();
    public class UserController {
    /** Creates a new instance of UserController */
    public UserController() {      
    private DataModel model;
    private BasicDAO basicDAO;
    public DataModel getUsers() {            
    return new ListDataModel(basicDAO.getUsers());
    public void setBasicDAO(BasicDAO basicDAO) {     
    this.basicDAO = basicDAO;
    public BasicDAO getBasicDAO() {           
    return this.basicDAO;
    public User findUser(String id) {
    return basicDAO.findUser(id);
    List.jsp :
    <h:dataTable value='#{user.users}' var='item' border="1" cellpadding="2" cellspacing="0">
    <h:column>
    <f:facet name="header">
    <h:outputText value="IdUser"/>
    </f:facet>
    <h:outputText value="#{item.idUser}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Password"/>
    </f:facet>
    <h:outputText value="#{item.password}"/>
    </h:column>
    </h:dataTable>

    in fact, i did some tests, and the reason why the NPE happens revealed to be caused by the call to
    this.emf = Persistence.createEntityManagerFactory(persistenceUnitName, emfProperties);
    which returns NULL value, and later when emf is accessed to create entitymanager NullPointerException is thrown.
    I think there is a configuration probem some where, except in persistence.xml file. my persistence.xml content is :
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
    <persistence-unit name="test9PU" transaction-type="JTA">
    <provider>org.hibernate.ejb.HibernatePersistence</provider>
    <jta-data-source>JeeCertDB</jta-data-source>
    <class>persistence.user.User</class>
    <properties>
    <property name="hibernate.jdbc.driver"
    value="com.mysql.jdbc.Driver" />
    <property name="hibernate.jdbc.url"
    value="jdbc:mysql://localhost:3306/JeeCertDB" />
    <property name="hibernate.jdbc.user" value="root" />
    <property name="hibernate.jdbc.password" value="belly" />
    <property name="hibernate.logging.level" value="INFO" />
    </properties>
    </persistence-unit>
    </persistence>
    Message was edited by:
    S_screen

  • NPE error when navigating to next page based on lov selection

    hi there am having problem whn navigating to next page based on lov selection,when i select value and click the button to navigate am geting NPE ERROR
    {code}
    <DCUtil> <findSpelObject> [598] DCUtil, returning:oracle.jbo.uicli.binding.JUFormBinding, for uam_view_pageDefs_SelectOrgPageDef_WEB_INF_Updatetaskflow_definition_xml_Updatetaskflow_definition
    <DCIteratorBinding> <releaseDataInternal> [599] Releasing iterator binding:variables
    <DCIteratorBinding> <releaseDataInternal> [600] Releasing iterator binding:UpdUamOrganisationLovIterator
    <DCIteratorBinding> <releaseDataInternal> [601] Releasing iterator binding:UpdUamOrganisation1Iterator
    <DCIteratorBinding> <releaseDataInternal> [602] Releasing iterator binding:UamUserdetailsViewVo1Iterator
    <XmlErrorHandler> <handleError> ADF_FACES-60096:Server Exception during PPR, #1
    javax.servlet.ServletException: java.lang.NullPointerException
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
        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:205)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
        at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
        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:179)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
        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:442)
        at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
        at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
        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:139)
        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)
    Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException
        at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
        at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
        at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
        at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1018)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:386)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
        ... 38 more
    Caused by: java.lang.NullPointerException
        at showSelectedOrg(OrgDetails.java:2455)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.el.parser.AstValue.invoke(Unknown Source)
        at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
        at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
        ... 45 more
    THIS IS THE LINE AM GETING THE ERROR
    method.getParamsMap().put("rowKey", newVal);
    <af:selectOneChoice value="#{bindings.Orgid1.inputValue}"
                                  required="true"
                                  id="soc1" autoSubmit="true" valuePassThru="true"
                                  contentStyle="width:145px">
                <f:selectItems value="#{bindings.Organisationid.items}" id="si1"/>
              </af:selectOneChoice>
    <af:commandButton text="UpdateOrganisation"
                                id="cb1"
                                action="#{pageFlowScope.addMember.showSelectedOrg}"/>
    public String showSelectedOrg() {
    /* if(getorgids() == null ||getorgids().equals(null)){
    JSFUtils.addFacesErrorMessage("Select Atleast One Organisation");
    JSFUtils.showFacesErrorMessage("Select Atleast One Organisation");
    BindingContext lBindingContext = BindingContext.getCurrent();
    BindingContainer bindings = lBindingContext.getCurrentBindingsEntry();
    // get the list binding for the Organisation lov
    JUCtrlListBinding list = (JUCtrlListBinding)bindings.get("Organisationid");
    // get the selected index from the list which is stored in the Orgidd1 attribute
    AttributeBinding attr = (AttributeBinding)bindings.getControlBinding("Orgid1");
    Integer selid = (Integer)attr.getInputValue();
    // load the listdata
    Object row = list.getDisplayData();
    // get the selected row from the list
    Row lFromList = (Row)list.getValueFromList(selid);
    // from the row we get the PK the orgnasationId
    Object lAttribute = lFromList.getAttribute("Organisationid");
    Object orgname = lFromList.getAttribute("Organisationname");
    Number newVal = (Number)lAttribute;
    String neworg = (String)orgname;
    _logger.info("Information: selected Organisation = " + newVal);
    System.out.println("neworg " + newVal);
    System.out.println("testorg " + neworg);
    selectedState = neworg;
    // get the MethodAction for setCurrentRowWithKeyValue
    OperationBinding method = bindings.getOperationBinding("setCurrentRowWithKeyValue");
    // set hte needed parameter as the organisation id
    method.getParamsMap().put("rowKey", newVal);
    method.execute();
    // after execution check for errors
    List errors = method.getErrors();
    Exception ex = (Exception)errors.get(0);
    FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, ex.getMessage(), "Select Atleast One Organisationtest");
    FacesContext.getCurrentInstance().addMessage(null, msg);
    // keep on page in case of an error
    // navigate to the next page
    return "show";
    {code}
    am in jdeveloper 11.1.1.6.0

    adf009, please read the post I posted the link to in my previous replay. The old code format tag don't work in the new forum!
    Still the same error. The stack trace still points to it, you only need to read it carefulle
    javax.faces.el.EvaluationException: java.lang.NullPointerException
        at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
    Caused by: java.lang.NullPointerException
        OrgDetails.showSelectedOrg(OrgDetails.java:2456)
    The origin is
    method.execute();
    and the real reason is
    MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51);
    What does it tell you?
    Timo

  • Npe when using popup inside adf table column

    hi i have a popup witch is inside adf column table but when i click the button i get this npe error
    <af:column id="c7" headerText="Action">
                  <af:commandButton text="Add" id="cb2">
                    <af:showPopupBehavior popupId="p1" triggerType="click"/>
                  </af:commandButton>
                  <af:panelGroupLayout id="pgl2" inlineStyle="width:1042px;"
                                       layout="horizontal" valign="middle"
                                       halign="right">
                    <af:popup id="p1" contentDelivery="lazyUncached">
                      <af:dialog id="d1" type="cancel">
                        <af:region value="#{bindings.usrtaskflowdefinition1.regionModel}"
                                   id="r1"/>
                      </af:dialog>
                    </af:popup>
                    <af:commandButton text="Cancel" id="cb1" rendered="false"/>
                    <af:commandButton text="Remove" id="cb3" visible="false"/>
                  </af:panelGroupLayout>
                </af:column>
    am geting this NPE ERROR
    <FacesCtrlSearchBinding> <release> ADFv: release():: Release all resources.
    <ADFLogger> <end> ADF web request
    <XmlErrorHandler> <handleError> ADF_FACES-60096:Server Exception during PPR, #1
    javax.el.ELException: java.lang.NullPointerException
        at javax.el.BeanELResolver.getValue(BeanELResolver.java:266)
        at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)
        at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)
        at com.sun.el.parser.AstValue.getValue(Unknown Source)
        at com.sun.el.parser.AstEqual.getValue(Unknown Source)
        at com.sun.el.parser.AstOr.getValue(Unknown Source)
        at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
        at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:68)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.getBooleanProperty(UIXComponentBase.java:1204)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.isRendered(UIXComponentBase.java:423)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:810)
        at org.apache.myfaces.trinidad.component.UIXEditableValue.processValidators(UIXEditableValue.java:263)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
        at oracle.adf.view.rich.component.fragment.UIXRegion.validateChildrenImpl(UIXRegion.java:634)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ProcessValidationsCallback.invokeContextCallback(LifecycleImpl.java:1422)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnNamingContainerComponent(UIXComponentBase.java:1358)
        at oracle.adf.view.rich.component.fragment.UIXRegion.invokeOnComponent(UIXRegion.java:555)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
        at oracle.adf.view.rich.component.rich.RichDocument.invokeOnComponent(RichDocument.java:168)
        at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
        at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:678)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:407)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
        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:205)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
        at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
        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:179)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
        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:442)
        at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
        at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
        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:139)
        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)
    Caused by: java.lang.NullPointerException
        at oracle.adf.model.binding.DCControlBinding.reportException(DCControlBinding.java:201)
        at oracle.jbo.uicli.binding.JUCtrlValueBinding.findAttributeDef(JUCtrlValueBinding.java:632)
        at oracle.jbo.uicli.binding.JUCtrlValueBinding.findAttributeDef(JUCtrlValueBinding.java:597)
        at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttribute(JUCtrlValueBinding.java:1341)
        at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$AdfAttributeCriterion.getOperator(FacesCtrlSearchBinding.java:2240)
        at sun.reflect.GeneratedMethodAccessor357.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at javax.el.BeanELResolver.getValue(BeanELResolver.java:261)
        ... 87 more
    <QueryCollection> <finalize> [4342] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4343] ##### QueryCollection.finl oracle.jbo.Key[Surname 0 0 ]
    <QueryCollection> <finalize> [4344] ##### QueryCollection.finl oracle.jbo.Key[Firstname 0 0 ]
    <ControllerState> <finalizeRequest> ADFc: Request number [9] for session [14gycvxp1h_] has been finalized.
    <QueryCollection> <finalize> [4345] ##### QueryCollection.finl oracle.jbo.Key[Username 0 0 ]
    <RootViewPortContextImpl> <unlockViewPortRequestLock> ADFc: Attempting to release RootViewPort request lock on 14gycvxp1h_0
    <QueryCollection> <finalize> [4346] ##### QueryCollection.finl oracle.jbo.Key[Organisationname 0 0 ]
    <QueryCollection> <finalize> [4347] ##### QueryCollection.finl oracle.jbo.Key[Surname 0 0 ]
    <RootViewPortContextImpl> <unlockViewPortRequestLock> ADFc: Successfully released RootViewPort request lock on 14gycvxp1h_0
    <QueryCollection> <finalize> [4348] ##### QueryCollection.finl oracle.jbo.Key[Firstname 0 0 ]
    <QueryCollection> <finalize> [4349] ##### QueryCollection.finl oracle.jbo.Key[Username 0 0 ]
    <Auditor> <isEnabled> IAU:Event Enabled : false, Event Type : CheckPermission, Event Status : true, Properties : null
    <QueryCollection> <finalize> [4350] ##### QueryCollection.finl oracle.jbo.Key[Organisationname 0 0 ]
    <QueryCollection> <finalize> [4351] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4352] ##### QueryCollection.finl no RowFilter
    <Auditor> <isEnabled> IAU:Event Enabled : false, Event Type : CheckPermission, Event Status : true, Properties : null
    <QueryCollection> <finalize> [4353] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4354] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4355] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4356] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4357] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4358] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4359] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4360] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4361] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4362] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4363] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4364] ##### QueryCollection.finl no RowFilter
    <AbstractExecutionContext> <getECForJDBC> adding new ECForJDBC null to set of listeners for this context
    <WatchingDocumentChangeNotifier> <run> decide if checkUsingListeners should run. loopCnt: 0 changeInterval: 60000 originalChangeInterval: 60000 forceCheckForUpdate: false notifier instance: oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifier@ca7192
    <WatchingDocumentChangeNotifier> <checkUsingListeners> BEGIN checkUsingListeners for notifier instance: oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifier@ca7192
    <WatchingDocumentChangeNotifier> <checkUsingListeners> notifier processing file: C:\Users\10017134\App

    Caused by: java.lang.NullPointerException
        at oracle.adf.model.binding.DCControlBinding.reportException(DCControlBinding.java:201)
        at oracle.jbo.uicli.binding.JUCtrlValueBinding.findAttributeDef(JUCtrlValueBinding.java:632)
        at oracle.jbo.uicli.binding.JUCtrlValueBinding.findAttributeDef(JUCtrlValueBinding.java:597)
        at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttribute(JUCtrlValueBinding.java:1341)
        at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$AdfAttributeCriterion.getOperator(FacesCtrlSearchBinding.java:2240)
    It seems that problem is caused by af:query or quickquery component(or underlying view object or view criteria).
    Maybe you can drop BTF as static region directly to your page and see if this will run correctly?
    YES i have try stll does not work
    So then this is not related with "npe when using popup inside adf table column"  
    Dario

  • NPE exception during Coherence start-up

    Hi
    When I set an Exception breakpoint in IDEA for all NullPointerExceptions, then start-up any application that uses Coherence in debug mode from IDEA, I get a NPE in:
    public com.tangosol.net.Member getOldestMember() { /* compiled code */ }
    Is this the normal behavior?

    Hi dna,
    Yes, there is a an intentional "catch (NullPointerException e)" on one of the rare path in SafeCluster class. This has absolutely no impact on the common execution logic.
    Regards,
    gene

Maybe you are looking for

  • 2008 event equivalent of 2003 Netlogon 5807 event

    I have a custom Opsmgr rule that alerts me when our Network team has made a new subnet and not told us about it. I am upgrading all my DC's to 2008 and need to find the equivalent event to update this rule. I have a 2008 DC with missing subnets and c

  • Cannot navigate ipod

    My son mistakenly changed his ipod settings to where he needs to tap three times to choose anything. Once to "highlight" the item, then doubletap to choose it. Also, we cannot scroll, or swipe!!! Help! Because of this, I am unable to "scroll" down to

  • Minimum value

    Hi, I tried many ways could not get solution . i need to find the minmum value from CKF.i gone throgh exception aggregation but got some value its not exact requirement is not getting. Infoobject rows:Inspection Lot Date,Heat Number,Batch,Grade,Mater

  • Yet Another Syncing Complaint (when are you going to get it right, Apple?)

    I have to say, syncing my phone with itunes is the most miserably frustrating techno-process in my life at the moment. About to step out for lunch, I thought it'd be nice to grab a new audio book to accompany my sandwich and I to the park. I found a

  • What are the best tools for converting .shg files to HTML image maps?

    After trying several different ways to import our WinHelp project into RH HTML, I'm left with recreating the project in HTML. There are over 200 .shg files. What's the best tool for converting them? Is there a free program that converts them? Or is t