NPE on query

I'm getting the follwing NPE:
kodo.jdbc.meta.AbstractClassMapping.getObjectId(AbstractClassMapping.java:228)
kodo.jdbc.runtime.JDBCStoreManager.loadMappings(JDBCStoreManager.java:907)
kodo.jdbc.sql.AbstractResult.load(AbstractResult.java:184)
kodo.jdbc.sql.Select$SelectResult.load(Select.java:2168)
kodo.jdbc.sql.AbstractResult.load(AbstractResult.java:176)
kodo.jdbc.runtime.InstanceResultObjectProvider.getResultObject(InstanceResultObjectProvider.java:41)
com.solarmetric.rop.EagerResultList.<init>(EagerResultList.java:24)
kodo.query.AbstractQuery.execute(AbstractQuery.java:1052)
kodo.query.AbstractQuery.executeWithArray(AbstractQuery.java:836)
kodo.query.AbstractQuery.execute(AbstractQuery.java:793)
ui.HomePage.create(HomePage.java:32)
My code looks like:
PersistenceManager pm = ApplicationServlet.getAS400PM();
Query q = pm.newQuery(Idse42Model.class);
Collection c = (Collection)q.execute(); // line 32
My package.jdo is:
<jdo>
<package name="au.com.ids.idse42.dm">
     <class name="Idse42Model" identity-type="nondurable">
     </class>
</package>
</jdo>
And my mapping file is:
<mapping>
     <package name="au.com.ids.idse42.dm">
          <class name="Idse42Model">
               <jdbc-class-map type="base" table="INFP25"/>
               <field name="MODLIP">
                    <jdbc-field-map type="value" column="MODLIP"/>
               </field>
               <field name="DESCIP">
                    <jdbc-field-map type="value" column="DESCIP"/>
               </field>
               <field name="DTY1V0">
                    <jdbc-field-map type="value" table="VTFP00" column="DTY1V0"
ref-column.MODLIP="MODLV0"/>
               </field>
               <field name="DTM1V0">
                    <jdbc-field-map type="value" table="VTFP00" column="DTM1V0"
ref-column.MODLIP="MODLV0"/>
               </field>
               <field name="DTD1V0">
                    <jdbc-field-map type="value" table="VTFP00" column="DTD1V0"
ref-column.MODLIP="MODLV0"/>
               </field>
               <field name="DTY2V0">
                    <jdbc-field-map type="value" table="VTFP00" column="DTY2V0"
ref-column.MODLIP="MODLV0"/>
               </field>
               <field name="DTM2V0">
                    <jdbc-field-map type="value" table="VTFP00" column="DTM2V0"
ref-column.MODLIP="MODLV0"/>
               </field>
               <field name="DTD2V0">
                    <jdbc-field-map type="value" table="VTFP00" column="DTD2V0"
ref-column.MODLIP="MODLV0"/>
               </field>
          </class>
     </package>
</mapping>
I'm not sure if I'm doing the join properly in the mapping, but I would
like a better error message :-)
Thanks,
Tom

Tom,
We don't support non-durable identity. I would recommend
appid/datastore id.
Tom Davies wrote:
I'm getting the follwing NPE:
kodo.jdbc.meta.AbstractClassMapping.getObjectId(AbstractClassMapping.java:228)
kodo.jdbc.runtime.JDBCStoreManager.loadMappings(JDBCStoreManager.java:907)
kodo.jdbc.sql.AbstractResult.load(AbstractResult.java:184)
kodo.jdbc.sql.Select$SelectResult.load(Select.java:2168)
kodo.jdbc.sql.AbstractResult.load(AbstractResult.java:176)
kodo.jdbc.runtime.InstanceResultObjectProvider.getResultObject(InstanceResultObjectProvider.java:41)
com.solarmetric.rop.EagerResultList.<init>(EagerResultList.java:24)
kodo.query.AbstractQuery.execute(AbstractQuery.java:1052)
kodo.query.AbstractQuery.executeWithArray(AbstractQuery.java:836)
kodo.query.AbstractQuery.execute(AbstractQuery.java:793)
ui.HomePage.create(HomePage.java:32)
My code looks like:
PersistenceManager pm = ApplicationServlet.getAS400PM();
Query q = pm.newQuery(Idse42Model.class);
Collection c = (Collection)q.execute(); // line 32
My package.jdo is:
<jdo>
<package name="au.com.ids.idse42.dm">
     <class name="Idse42Model" identity-type="nondurable">
     </class>
</package>
</jdo>
And my mapping file is:
<mapping>
     <package name="au.com.ids.idse42.dm">
          <class name="Idse42Model">
               <jdbc-class-map type="base" table="INFP25"/>
               <field name="MODLIP">
                    <jdbc-field-map type="value" column="MODLIP"/>
               </field>
               <field name="DESCIP">
                    <jdbc-field-map type="value" column="DESCIP"/>
               </field>
               <field name="DTY1V0">
                    <jdbc-field-map type="value" table="VTFP00" column="DTY1V0"
ref-column.MODLIP="MODLV0"/>
               </field>
               <field name="DTM1V0">
                    <jdbc-field-map type="value" table="VTFP00" column="DTM1V0"
ref-column.MODLIP="MODLV0"/>
               </field>
               <field name="DTD1V0">
                    <jdbc-field-map type="value" table="VTFP00" column="DTD1V0"
ref-column.MODLIP="MODLV0"/>
               </field>
               <field name="DTY2V0">
                    <jdbc-field-map type="value" table="VTFP00" column="DTY2V0"
ref-column.MODLIP="MODLV0"/>
               </field>
               <field name="DTM2V0">
                    <jdbc-field-map type="value" table="VTFP00" column="DTM2V0"
ref-column.MODLIP="MODLV0"/>
               </field>
               <field name="DTD2V0">
                    <jdbc-field-map type="value" table="VTFP00" column="DTD2V0"
ref-column.MODLIP="MODLV0"/>
               </field>
          </class>
     </package>
</mapping>
I'm not sure if I'm doing the join properly in the mapping, but I would
like a better error message :-)
Thanks,
Tom
Steve Kim
[email protected]
SolarMetric Inc.
http://www.solarmetric.com

Similar Messages

  • Need help on retrieving query result - NPE

    Hi, I could get results with the native query in my TOAD, but I can't get it working in my session EJB. I tried both native query and EJB ql. The query created fine, as soon as I try to retrieve results, it gets stuck.
    My native query looks like this:
    Query query = em.createNativeQuery("select sum(o.amount_reimbursed) from t_expenses o where o.employee_id = '999999911' " +
    "and o.EXPENSE_ID in (select p.expense_id from T_Per_Diem_Xref p where p.expense_Type_Xref_Id=22 " +
    "and p.expense_Id in (select e.expense_Id from T_Expenses e where e.employee_Id='999999911' " +
    "and e.expense_date > to_date('01/01/2011', 'mm/dd/yyyy') and e.expense_date < to_date('12/31/2011', 'mm/dd/yyyy')))") ;
    My EJB query looks like this:
    Query query = em.createQuery("select sum(o.amountReimbursed) from TExpenses o where o.employeeId = ?1 " +
    "and o.expenseId in (select p.expenseId from TPerDiemXref p where p.expenseTypeXrefId=?2 " +
    "and p.expenseId in (select e.expenseId from TExpenses e where e.employeeId=?1 and e.expenseDate>=?3 and e.expenseDate<=?4))");
    query.setParameter(1, employeeId);
    query.setParameter(2, expenseType);
    query.setParameter(3, fDay, TemporalType.TIMESTAMP);
    query.setParameter(4, lDay, TemporalType.TIMESTAMP);
    Either one, I get NPE at the line retrieve result.
    // sumAmt = (Double)query.getSingleResult();
    List list = query.getResultList();
    if (list != null) {
    long longAmt = (Long)list.get(0);
    sumAmt = (Double)list.get(0);
    As you can see, I tried to getSingleResult, or getResultList. also tried to convert the result to Double or Long. None worked.
    Please help and thank you for your time.
    Sophia

    Frank, thank you for your reply. I have this code in my session Facade EJB, and I get the NPE in my backing bean which calls this method. When I debug the code, it appears what really cuases the problem is in this code on the line I try to assign the query result to my variable 'sumAmt = (Double)query.getSingleResult();'. In the debug, when it reaches this line, it starts to give me all kinds of pop-up windows saying couldn't find this file or that file or packages. If I get a stack trace later, I will post it. Right now I am trying to fix something else.
    Thanks, Sophia

  • 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

  • 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

  • Templates query have no children elements

    same query for meetings returns correctly number of childer,
    but for templates I get xml that only have
    <node href="/accounts/bkf/my-account-id/templates"
    type="cr:folder">
    <name>templates</name>
    <properties>
    <property name="cr:owner" type="string">
    <value>...</value>
    </property>
    <property name="jcr:created" type="date">
    <value>2009-02-17T23:33:22.804-05:00</value>
    </property>
    </properties>
    </node>
    url:
    https://na2.connectnow.acrobat.com//app/content/accounts/bkf/my-account-id/templates/?gak= lalala
    but same url for meetings:
    https://na2.connectnow.acrobat.com//app/content/accounts/bkf/my-account-id/meetings/?gak=l alala
    returns all children along with container folder metadata
    etc ..
    so Java code throws NPE when trying to iterate through
    templates :
    Element children = (Element)
    repository.getElementsByTagName("children").item(0);
    //children is null
    NodeList nodes = children.getElementsByTagName("node");
    error:
    error listing templates
    java.lang.NullPointerException
    at AFCS$AccountManager.listItems(AFCS.java:290)
    at AFCS$AccountManager.listTemplates(AFCS.java:343)
    at AFCS.main(AFCS.java:668)

    you are correct.
    all the other scripts are fine when no <children> tag
    is present, but the Java version chokes. I'll fix it for next
    version (and I wish I used XPath or a better XML parser for this
    but I tried to limit the dependencies from external jars where
    possible)
    thanks for reporting the problem.

  • 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 after session.getIdentityMapAccessor().removeFromIdentityMap(Object)

    We have a need to be able to explicilty reset the TopLink global cache from time to time. We have a signficant number of ReadOnly (lookup & metadata) objects that we want to retain in cache and so want to avoid using the session.getIdentityMapAccessor.initializeAllIdentityMaps() api.
    Some of our descriptors use inheritance policies and there are both ReadOnly and Updateable child descriptors involved in these hierarchies, so we cannot make use of the session.getIdentityMapAccessor.initializeIdentityMap(Class) api.
    For Non-ReadOnly child descriptors (involving inheritance) our only option is to explicitly remove (or possibly invalidate) the object in the global cache. We chose the remove approach using the session.getIdentityMapAccessor().removeFromIdentityMap(object) api. We first query for all objects (readAllQuery - check cache only) for a specific Class and then iterate over the results calling removeFromIdentityMap(object) to evict the objects of that class from the cache.
    This approach should be safe as none of our ReadOnly ojbects would ever reference a Non-ReadOnly object. We also are aware of the issues involving inflight transactions and non-deterministic results in those cases. We will be resetting the cache only under special circumstances and under controlled conditions.
    After using the above approach, we are now encountering a NPE whenever we query for objects that involve inheritance. We see a database query get executed against the DB to retrieve the target object from the database, but when TopLink goes to query for a referenced object that involves inheritance the NPE occurs.
    Here's the stack trace:
    [container]--nulljava.lang.NullPointerException
         at oracle.toplink.publicinterface.DatabaseRow.getIndicatingNoEntry(DatabaseRow.java:269)
         at oracle.toplink.publicinterface.DatabaseRow.get(DatabaseRow.java:244)
         at oracle.toplink.publicinterface.InheritancePolicy.classFromRow(InheritancePolicy.java:260)
         at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:363)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.buildObject(ObjectLevelReadQuery.java:455)
         at oracle.toplink.queryframework.ReadObjectQuery.executeObjectLevelReadQuery(ReadObjectQuery.java:424)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:811)
         at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:620)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:779)
         at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadObjectQuery.java:388)
         at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:2073)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:988)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:960)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:873)
    We understand that objects involved in descriptor inheritance hierarchies all reside in the parent (root) identityMap.
    We've verified our cache reset logic and verified that the cache appears to be reset properly (ReadOnly objects are still in cache, NonReadOnly objects have been successfully evicted from cache).
    Any ideas on why this might be happening? Are there any special caveats with calling the removeFromIdentityMap(object) api when inheritance is involved?
    Any other steps need to be taken?
    Thanks in advance.
    ...Steve

    Any takers on this? I'm still hoping to get some feedback/suggestions on solving this issue.
    I did some further follow-up investigation. I get the exact same NullPointerException when I invalidate objects in cache instead of explicitly removing them using the session.getIdentityMapAccessor().removeFromIdentityMap(Object) api.
    After doing the reset of the cache, (per the approach outlined above), as a test, I cycled through all of the descriptors, created a ReadAllQuery for each one and executed it within a try/catch block to catch and report the NPE. It seems only some of the Descriptors that had all objects in their identityMap invalidated throw the NPE. There does not appear to be an obvious pattern or reason for the NPE. Some of the descriptors are dead simple and only involve simple directToField mappings!
    TopLink source code is not available for all of the components reported in the stack trace, so I can't identify the reason or logic behind what might be causing the NPE. I don't understand what the DatabaseRow.getIndicatingNoEntry(DatabaseRow) is doing nor why the InheritancePolicy is involved. The Descriptors don't involve inheritance!
    Are there any guidelines or caveats regarding invalidating all objects in an IdentityMap? Is there any other cache life-cycle/re-iniitalization that needs to be considered? Or is it simply not possible to partially re-initialize/reset the IdentityMaps in a Database/Server Session?
    Thanks for any help/advice offered.
    ...Steve

  • Named Native Query Problem

    I am running JDev 11g patch 2 (11...3) on a windows 7 machine. JDK 1.6_18
    @NamedNativeQueries({
    @NamedNativeQuery(name = "MenuFolders.findFolderByUser",
    query = "SELECT * FROM menu_folders where mf_id is null and id in (select mf_id from userfoldervw where UPPER(user_name) = :p_user) order by display_order",
    resultClass = MenuFolders.class)
    I have entered the above code in to a entity bean - but all I get back when I run is invalid SQL statement - it works fine in a sql window.
    I tried to use just "SELECT * FROM menu_folders " and get the same problem. Many of the examples show the same format as in the namedQuery ("select o from menuFolders o") but I thought the principle of native querys was to use standard SQL - just for this reason - not everything can be done in sql expression language.
    Two things 1) mf_id is self referencing and there is no definition for the column in the regular EJB code. 2) userfoldervw is outside the bean (and yes it is a view)
    There is a secondary issue - this is a master for another table which holds the actual items (forms).
    I want to build a menu tree - normally I would do this in a backing bean and problematically build the tree menu - however - with JDeveloper this does not appear to be an option.
    I have the system working fine in the Netbeans IDE using the backing bean.
    I was looking for the adfMenuTree (the adfTree does not have the folder/node concept. I cannot find sufficient info on the adfTree to understand how it manages levels to make any sense out of it.)
    Can someone give me a hand on this (either a backing bean solution with the adfTree or a view object - or just the sql)?

    I have been developing with NetBeans and find it a much simpler IDE to work with but it is not time to move on.
    The project I have been working on has a basic splash screen -> Login -> Menu structure.
    The menu is based on a workflow and role concept. In the login I capture the users roles and the location code. These are stored in a session bean.
    The username and the location code then govern the items in the menu and a to do list that is in a split panel (menu on left and to dos on the right with a button that takes them to the appropriate page based on workflow)
    The issue I had with ADF was the lack of a data control in the page - I was using pure JSF. When I looked at the backing bean in the debugger - the input text was not being passed to the backing bean.
    I was able to solve this by a bit of editing in the jsp and some movement in the locations. What I found interesting was that the methods in the backing bean worked fine (with the NPE due to the lack of the binding of the input text to the backing bean).
    I am trying to move my skills into ADF/JDeveloper - and finding that it is a very obtuse IDE. The focus seems to be on technology rather than application development.
    I came from the Oracle Forms/Reports environment and used the Designer2000 extensively - the focus was only on the business logic - the rest was generated for you.
    With NetBeans - I found a similar focus. JDeveloper however is a different animal - I have spent hours and read tons of material - and still cannot find answers to very simple things.
    I have a good example - I have a view object that takes a parameter - it looks to me like I will have to write over 100 lines of code to get this to work and I an still not sure how I will manage it in a backing bean.
    I have no control - other than a button to execute a method (Netbeans had an abstract page bean that exposed parts of the life cycle (init, prerender, etc ...) that allowed me to execute code at specific life cycle stages - I have not found anything at all in the ADF that would guide me in doing the same.
    According to all the documentation I have read (considerable) I will have to defeat ADF and do everything programatically - what a waste of good technology and my time.
    I may be wrong - I hope I am - maybe some one can point me into a direction that can help me with this (everything in the tutorials misses these simple issues that we use every day).

  • ADF inputComboboxListOfValues 11.1.1.4 NPE issue

    Hi,
    I am using JDeveloper 11.1.1.4 (Build JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923), and I am having a bit of a problem with my LOVs when used as a comboboxListOfValues. I am not sure if my expectations are not correct, or I am doing something wrong, here is a use case I have created using the HR schema, please let me know if you want me to share the code with you (I am not really sure how I can do that in the forum).
    1. Create an entity based on the EMPLOYEES table.
    2. Create EmployeeView View Object which is entity backed (EMPLOYEES).
    3. Create a SQL based View Object based on the JOB table, the name of it is JobsView.
    4. Create a view criteria on the JobsView, the criteria is going to check the JobId & JobTitle values using a bindVariable, and the operator for both will be a "CONTAIN".
    5. In the EmployeeView, add LOV to the JobId attribute, match the JobId from the JobsView, and in the UIHint, specifiy the following:
    - Default List Type: Combo Box with List of Value.
    - Display Attributes : selected : JobId
    - List Search: Include Search Region: use JobsViewCriteria
    - Leave the rest as default.
    6. Create an application module exposing the EmployeeView only.
    7. Create a jspx page, drag the view instance from the data control and create a form, ensure that the JobId is defined as Combo List with LOV.
    8. Run the application, bring up the LOV , and select search in the bottom of the LOV , press the search button on the popup and select another JobId.
    9. Open search again from the Lov, and you will get a NPE as follows:
    Target URL -- http://127.0.0.1:7101/LovProblem-ViewController-context-root/faces/employeeTest.jspx
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
    java.lang.NullPointerException
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$AdfCriterionValues.<init>(FacesCtrlSearchBinding.java:3388)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$AdfAttributeCriterion.<init>(FacesCtrlSearchBinding.java:2067)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$AdfConjunctionCriterion._loadCriterionList(FacesCtrlSearchBinding.java:3329)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$AdfConjunctionCriterion._loadCriterionList(FacesCtrlSearchBinding.java:3279)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$AdfConjunctionCriterion.getCriterionList(FacesCtrlSearchBinding.java:3178)
         at oracle.adfinternal.view.faces.renderkit.rich.query.QueryBehavior.shouldShowInstructionText(QueryBehavior.java:58)
         at oracle.adfinternal.view.faces.renderkit.rich.query.QueryBehavior.refreshInfoFacet(QueryBehavior.java:37)
         at oracle.adfinternal.view.faces.renderkit.rich.QueryRenderer.renderContentRow(QueryRenderer.java:702)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelHeaderRenderer.encodeAll(PanelHeaderRenderer.java:217)
         at oracle.adfinternal.view.faces.renderkit.rich.QueryRenderer.encodeAll(QueryRenderer.java:422)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:415)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelHeaderRenderer.renderChildrenAfterHelpAndInfo(PanelHeaderRenderer.java:508)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelHeaderRenderer._renderContentCell(PanelHeaderRenderer.java:1032)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelHeaderRenderer.renderContentRow(PanelHeaderRenderer.java:456)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelHeaderRenderer.encodeAll(PanelHeaderRenderer.java:217)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:405)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$300(PanelGroupLayoutRenderer.java:30)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:654)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:573)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:170)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)
         at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:255)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:330)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:415)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelWindowRenderer.encodeContent(PanelWindowRenderer.java:608)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelWindowRenderer.encodeAll(PanelWindowRenderer.java:457)
         at oracle.adfinternal.view.faces.renderkit.rich.DialogRenderer.encodeAll(DialogRenderer.java:143)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:415)
         at oracle.adfinternal.view.faces.renderkit.rich.PopupRenderer.encodeAll(PopupRenderer.java:776)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputListOfValuesRendererBase._renderPopup(SimpleInputListOfValuesRendererBase.java:859)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputListOfValuesRendererBase.renderElementContent(SimpleInputListOfValuesRendererBase.java:448)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputComboboxListOfValuesRenderer.renderElementContent(SimpleInputComboboxListOfValuesRenderer.java:264)
         at oracle.adfinternal.view.faces.renderkit.rich.FormInputRenderer.encodeAllAsElement(FormInputRenderer.java:150)
         at oracle.adfinternal.view.faces.renderkit.rich.FormElementRenderer.encodeAll(FormElementRenderer.java:138)
         at oracle.adf.view.rich.render.RichRenderer.delegateRenderer(RichRenderer.java:1627)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.renderFieldCellContents(LabeledInputRenderer.java:205)
         at oracle.adfinternal.view.faces.renderkit.rich.LabelLayoutRenderer.renderFieldCell(LabelLayoutRenderer.java:528)
         at oracle.adfinternal.view.faces.renderkit.rich.LabelLayoutRenderer.encodeAll(LabelLayoutRenderer.java:305)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.encodeAll(LabeledInputRenderer.java:192)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer._encodeFormItem(PanelFormLayoutRenderer.java:1015)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer.access$100(PanelFormLayoutRenderer.java:46)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer$FormColumnEncoder.processComponent(PanelFormLayoutRenderer.java:1491)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer$FormColumnEncoder.processComponent(PanelFormLayoutRenderer.java:1410)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:170)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)
         at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:255)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer._encodeChildren(PanelFormLayoutRenderer.java:352)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer.encodeAll(PanelFormLayoutRenderer.java:187)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:415)
         at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:220)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:415)
         at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1181)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
         at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
         at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:777)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:293)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:213)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         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.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    {code}
    You assistance would be much appreciated in pointing what I am doing wrong.
    Regards.
    Edited by: Younis on 15/04/2011 08:38                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          

    This seems to be a bug, there is a bug in metalink recorded for that, 11798139.
    Regards

  • NPE Exception while getting mutable object

    I have an application (Model + ViewController). The ViewController is deployed as a jar file. The other application depends on the first project jar. The second application is a simple web application that responds to REST query. The first call is working fine. The second call throws an exception (NPE), and all following calls are working fine. I don't really understand the exception, what should I look for?
    SEVERE: Exception while getting mutable object
    java.lang.NullPointerException
            at oracle.mds.internal.persistence.NamespaceRulesImpl.<init>(NamespaceRulesImpl.java:123)
            at oracle.mds.internal.persistence.NamespaceRules.getNamespaceRulesObj(NamespaceRules.java:72)
            at oracle.mds.internal.util.ChangeUtil.convertToMOEvents(ChangeUtil.java:134)
            at oracle.mds.internal.notifications.EventNotificationManager.handleChanges(EventNotificationManager.java:354)
            at oracle.mds.internal.notifications.EventNotificationManager.handlePChanges(EventNotificationManager.java:251)
            at oracle.mds.core.MOState.signalStale(MOState.java:1185)
            at oracle.mds.core.MOState.signalStale(MOState.java:644)
            at oracle.mds.core.MOState.checkStalenessDocFromBuilder(MOState.java:739)
            at oracle.mds.core.MOState.getIsStaleLastModified(MOState.java:559)
            at oracle.mds.core.MOContent.getIsStaleLastModified(MOContent.java:277)
            at oracle.mds.core.ChainedMOContent.getIsStaleLastModified(ChainedMOContent.java:142)
            at oracle.mds.core.MetadataObject.isStale(MetadataObject.java:818)
            at oracle.adf.share.jndi.MDSBackingStore.obtainMetadataObject(MDSBackingStore.java:517)
            at oracle.adf.share.jndi.MDSBackingStore.getMOBean(MDSBackingStore.java:572)
            at oracle.bc4j.mbean.RuntimeMXBeanImpl.init(RuntimeMXBeanImpl.java:128)
            at oracle.bc4j.mbean.RuntimeMXBeanImpl.<init>(RuntimeMXBeanImpl.java:118)
            at oracle.bc4j.mbean.RuntimeMXBeanImpl.<init>(RuntimeMXBeanImpl.java:109)
            at oracle.bc4j.mbean.BC4JConfigLifeCycleCallBack.contextInitialized(BC4JConfigLifeCycleCallBack.java:160)
            at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
            at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
            at weblogic.servlet.internal.WebAppServletContext.reloadServletClassLoader(WebAppServletContext.java:3106)
            at weblogic.servlet.internal.FilterWrapper.reloadFilter(FilterWrapper.java:63)
            at weblogic.servlet.internal.FilterWrapper.checkForReload(FilterWrapper.java:104)
            at weblogic.servlet.internal.FilterWrapper.getFilter(FilterWrapper.java:41)
            at weblogic.servlet.internal.FilterChainImpl.add(FilterChainImpl.java:35)
            at weblogic.servlet.internal.FilterManager.getFilterChain(FilterManager.java:232)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3727)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
            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:2273)
            at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
            at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Nov 25, 2013 1:44:58 PM oracle.bc4j.mbean.BC4JConfigLifeCycleCallBack contextInitialized
    WARNING: com/example/model/module/common/bc4j.xcfg: java.lang.NullPointerException

    The applications already existed when I started working on them, but I don't think the model projects were renamed or moved. I changed the original warning message "com/example/model/module/common/bc4j.xcfg". The warning message points to the correct bc4j.xml files.

  • DataCache NPE with generation strategy=IDENTITY

    When I try to persist an entity whose ID is generated with the JPA IDENTITY strategy, everything works fine except a NPE is thrown when trying to cache the newly persisted entity. Disabling the DataCache fixes the problem.
    java.lang.NullPointerException: null keys not allowed
    at com.solarmetric.apache.commons.collections.map.AbstractReferenceMap.put(AbstractReferenceMap.java:248)
    at com.solarmetric.util.EfficientEmptyReferenceMap.put(EfficientEmptyReferenceMap.java:43)
    at com.solarmetric.apache.commons.collections.set.MapBackedSet.add(MapBackedSet.java:110)
    at com.solarmetric.util.ReferenceSet.add(ReferenceSet.java:59)
    at kodo.datacache.ClassRefCacheMap.entryAdded(ClassRefCacheMap.java:136)
    at kodo.util.CacheMap.put(CacheMap.java:402)
    at kodo.datacache.DataCacheImpl.putInternal(DataCacheImpl.java:109)
    at kodo.datacache.AbstractDataCache.putAllInternal(AbstractDataCache.java:420)
    at kodo.datacache.AbstractDataCache.commit(AbstractDataCache.java:98)
    at kodo.datacache.DataCacheStoreManager.updateCaches(DataCacheStoreManager.java:222)
    at kodo.datacache.DataCacheStoreManager.commit(DataCacheStoreManager.java:66)
    at kodo.kernel.DelegatingStoreManager.commit(DelegatingStoreManager.java:98)
    at kodo.kernel.BrokerImpl.endStoreManagerTransaction(BrokerImpl.java:1484)
    at kodo.kernel.BrokerImpl.endTransaction(BrokerImpl.java:2536)
    at kodo.kernel.BrokerImpl.afterCompletion(BrokerImpl.java:2182)
    at kodo.kernel.LocalManagedRuntime.commit(LocalManagedRuntime.java:85)
    at kodo.kernel.BrokerImpl.commit(BrokerImpl.java:1546)
    at kodo.kernel.DelegatingBroker.commit(DelegatingBroker.java:1250)
    at kodo.persistence.EntityManagerImpl.commit(EntityManagerImpl.java:451)
    at figbird.cms.application.DAO.getRootItem(DAO.java:160)
    The stack trace shows that the entity is INSERTed and it's id fetched, but it seems that somehow this identity is not being set property:
    FINEST: <t 2791549, conn 26179329> [2 ms] executing prepstmnt 10891966 INSERT INTO FB_PRIVILEGES (comment, inheritable, level, role, type, username, item_uuid) VALUES (?, ?, ?, ?, ?, ?, ?) [params=(null) null, (boolean) true, (int) 200, (String) *, (String) *, (String) *, (long) 1] [reused=2]
    Jun 30, 2006 11:38:48 AM com.solarmetric.log.CommonsLogFactory$LogAdapter trace
    FINEST: <t 2791549, conn 26179329> [47 ms] executing prepstmnt 21849501 SELECT CURRVAL('FB_PRIVILEGES_id_SEQ') [reused=2]
    Ninth Avenue Software
    http://www.ninthavenue.com.au

    I can reproduce this behaviour with application-identity and autoassign value-strategy. Disabling the DataCache fixes the problem here, too.
    however, calling the getter of a newly persisted Objekt's id, or doing a query, both BEFORE i commit the transaction, fixes the problem also.
    This happens both for kodo 4.0.0 and 4.0.1

  • NPE while performing getColumnCount()

    Hi all,
    I'm getting a weird error: a NPE while I'm performing a getColumnCount(). Has anybody ever seen this before?
    Any hints are appreciated.
    It goes like this:
    java.lang.NullPointerException^M
    at oracle.jdbc.driver.OracleStatement.describe(OracleStatement.java:4585)^M
    ssfully at oracle.jdbc.driver.OracleStatement.getDBDescription(OracleStatement.java:755)^M
    @ at oracle.jdbc.driver.OracleResultSetMetaData.getColumnCount(OracleResultSetMetaData.java:97)^M
    at org.apache.cocoon.transformation.SQLTransformer$Query.serializeRow(SQLTransformer.java:978)^M
    at org.apache.cocoon.transformation.SQLTransformer.executeQuery(SQLTransformer.java:263)^M
    at org.apache.cocoon.transformation.SQLTransformer.endExecuteQueryElement(SQLTransformer.java:379)^M
    at org.apache.cocoon.transformation.SQLTransformer.endElement(SQLTransformer.java:581)^M
    at org.apache.cocoon.components.sax.XMLByteStreamInterpreter.parse(XMLByteStreamInterpreter.java:85)^M
    at org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserialize(XMLByteStreamInterpreter.java:58)^M
    at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:187)^M
    at org.apache.cocoon.components.source.SitemapSource.stream(SitemapSource.java:318)^M
    at org.apache.cocoon.sitemap.ContentAggregator.generate(ContentAggregator.java:147)^M
    at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:219)^M
    at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:363)^M
    at org.apache.cocoon.www.file_.C_.tomcat.webapps.scootbe.sitemap_xmap.wildcardMatchN18F(sitemap_xmap.java:1986)^
    M
    tomK
    null

    Maybe,
    - if when you connect the iPod to your computer you can make a backup? If yes yo can restore from that backup
    iOS: How to back up and restore your content
    - Go to iTunes>Preferences>Devices and see if there is a backup dated when you started the update. the first stiep of an update is iTunes making a backup.
    - If you used PhotoStream then try getting them from your PhotoStream. See that topic of:
      iOS: Importing personal photos and videos from iOS devices to your computer

  • NPE - $Proxy0.isChallengeQuestionsSetForSelf.  Trying to instantiate tcUtil

    Trying to instantiate a tcUtilityFactory and getting a NPE. I thought I had everything setup as var env vars and I can see that it got all the xlconfig.xml props. It's got to be something simple I'm missing here. I'm point to all the jars & dirs from my DC. I know that the username & password is right too. Any help is appreciated.
    at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
         at $Proxy0.isChallengeQuestionsSetForSelf(Unknown Source)
         at Thor.API.tcUtilityFactory.<init>(Unknown Source)

    Hi Sonic
    Could you please tell me how you have changed it to Weblogic. I am getting the exception of JBOSS.
    Please reply to my query.
    I have changed the path to weblogic. Now i am getting the exception in the following line
    moSignature = tcCryptoUtil.sign(userid, "PrivateKey");
    utilFactory = new tcUtilityFactory(env, moSignature);
    if i give
    moSignature = tcCryptoUtil.sign(userid, password);
    utilFactory = new tcUtilityFactory(env, moSignature);
    then it shows some other exception that PrivateKey is null etc.
    ERROR,08 Apr 2009 11:57:22,024,[XELLERATE.ACCOUNTMANAGEMENT],Class/Method: Authe
    nticate/connect User with ID: T_USER99 was not found in Xellerate.
    ERROR,08 Apr 2009 11:57:22,054,[XELLERATE.ACCOUNTMANAGEMENT],Class/Method: Xelle
    rateLoginModuleImpl/login encounter some problems:
    com.thortech.xl.security.tcLoginException:
    at com.thortech.xl.security.tcLoginExceptionUtil.createException(Unknown
    Source)
    at com.thortech.xl.security.tcLoginExceptionUtil.createException(Unknown
    Source)
    at com.thortech.xl.security.Authenticate.connect(Unknown Source)
    at com.thortech.xl.security.Authenticate.connect(Unknown Source)

  • NPE while executing ViewObjectImpl.executeQueryForCollection

    Hi,
    Whenever I leave my application ideal for more than 30 mins and start working back on the app is giving me a NPE. As a workaround I had to bounce the server.
    Not able to figure out the cause of the error. Will appreciate, if any pointers are given.
    I'm not using any view criteria here.
    Thanks.
    Log:
    Caused by: java.lang.NullPointerException
    at oracle.jbo.server.QueryCollection.resolveCLOBBindVarParams(QueryCollection.java:1302)
    at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:1097)
    at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:859)
    at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:6314)

    r u using bind variable as charcter large object type.
    based on querycollection
    http://adfcodebits.blogspot.com/2010/05/bit-16-removing-row-from-query.html

  • Error while running a query-Input for variable 'Posting Period is invalid

    Hi All,
    NOTE: This error is only cropping up when I input 12 in the posting period variable selection. If I put in any other value from 1-11 I am not getting any errors. Any ideas why this might be happening?
    I am getting the following error when I try and run a query - "Input for variable 'Posting Period (Single entry, mandatory)' is invalid" - On further clicking on this error the message displayed is as follows -
    Diagnosis
    Variable Posting Period (Single Value Entry, Mandatory) is used as a lower limit (X) and an upper limit () in an interval selection. This limit has the value #.
    System Response
    Procedure
    Enter a different value for variable Posting Period (Single Value Entry, Mandatory). If the value of the other limit is determined by another variable, you can change its value also.
    Procedure for System Administration

    OK.
    Well, if the variable is not used in any interval selection, then I would say "something happened to it".
    I would make a copy of the query and run it to check if I get the same problem with period 12.
       -> If not, something is wrong in the original query (you can proceed as below, if changes to original are permitted).
    If so, then try removing the variable completely from the query and hardcode restriction to 12.
       -> If problem still persists, I would have to do some thinking.
    If problem is gone, then add the variable again. Check.
       -> If problem is back, then the variable "is sick". Only quick thing to do, is to build an identical variable and use that one.
    If problem also happens with the new variable, then it's time to share this experience with someone else and consider raising an OSS.
    Good luck!
    Jacob
    P.S: what fisc year variant are you using?
    Edited by: Jacob Jansen on Jan 25, 2010 8:36 PM

Maybe you are looking for

  • Photoshop CC 2014, MAC OSX, I have no option to close a modified file without saving it - i.e. no "don't save".

    Hi there. I have an odd issue where when I open a file and make changes to it, I can't close the file by clicking the 'x' button, can't select "file close", can't "command W" or even quit or force quit photoshop until I have saved the file. It's very

  • Reader 9 - Mulitiple document in single window?

    In previous Adobe Readers I have all open documents in a single window frame and can switch document with Alt-W or from the Window menu. Not so in Reader 9. I have compared Preferences with Reader 8.1.3 but not found an item that explains the differe

  • OPM production Management for Float Glass industries

    Hi The Process of Float Glass Manufacturing is same throughout the world. Brief Process Desc. All the Raw materials (Sand, Dolamite, Limestone, Soda Ash, Sodium Sulphate, Carbon, Iron Oxide) are weighed correctly and send it into the Furnace where al

  • No matching cloudsystem matrix found

    Hello everybody, I'm trying to update a BL460c G7 blade server with HP SPP DVD 20130900 but the following error appers: "no matching cloudsystem matrix found" A colleague of mine says me that the the blade was previously managed by the CloudSystem Ma

  • Jcshell init-update fails on nxp jcop 41

    hi everyone, i'm trying to upload an applet and this is what happens: cm>  /term "winscard:4|OMNIKEY CardMan 3x21 0" --Opening terminal cm>  /card -a a000000003000000 -c com.ibm.jc.CardManager resetCard with timeout: 0 (ms) --Waiting for card... ATR=