NullPointerException when doing a getObjectById

In one circumstance I am getting a NullPointerException when performing a
getObjectById. I double checked to be sure that all fields of the object
Id are filled properly and that the metadata is mapped properly. This
error is with 2.5.0 b2
- Jeff
Exception and Stack Trace:
com.solarmetric.kodo.runtime.FatalException: java.lang.NullPointerException
NestedThrowables:
java.lang.NullPointerException
at
com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectByIdFilter(PersistenceManagerImpl.java:1150)
at
com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectById(PersistenceManagerImpl.java:1045)
at
dtv.pos.tender.TenderHelper.getTenderSettingsForGroup(TenderHelper.java:69)
at
dtv.pos.tender.ValidateTenderAmountRule.validateGroup(ValidateTenderAmountRule.java:42)
at
dtv.pos.tender.ValidateTenderAmountRule.isValid(ValidateTenderAmountRule.java:28)
at
dtv.pos.common.AbstractValidationOp.applyValidationRules(AbstractValidationOp.java:205)
at
dtv.pos.common.AbstractValidationOp.runValidationCheck(AbstractValidationOp.java:170)
at
dtv.pos.common.AbstractValidationOp.handleOpExec(AbstractValidationOp.java:133)
at
dtv.pos.framework.op.DefaultOpChain.internalDoOp(DefaultOpChain.java:353)
at
dtv.pos.framework.op.DefaultOpChain.handleOpExec(DefaultOpChain.java:178)
at
dtv.pos.framework.op.OpChainProcessor.runChain(OpChainProcessor.java:336)
at
dtv.pos.framework.op.OpChainProcessor.internalEventHandle(OpChainProcessor.java:271)
at dtv.pos.framework.op.OpChainProcessor.run(OpChainProcessor.java:106)
at java.lang.Thread.run(Thread.java:536)
NestedThrowablesStackTrace:
java.lang.NullPointerException
at
com.solarmetric.kodo.runtime.StateManagerImpl.initialize(StateManagerImpl.java:216)
at
com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.loadByPK(ClassMapping.java:986)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.initialize(JDBCStoreManager.java:327)
at
com.solarmetric.kodo.runtime.StateManagerImpl.loadInitialState(StateManagerImpl.java:177)
at
com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectByIdFilter(PersistenceManagerImpl.java:1143)
at
com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectById(PersistenceManagerImpl.java:1045)
at
dtv.pos.tender.TenderHelper.getTenderSettingsForGroup(TenderHelper.java:69)
at
dtv.pos.tender.ValidateTenderAmountRule.validateGroup(ValidateTenderAmountRule.java:42)
at
dtv.pos.tender.ValidateTenderAmountRule.isValid(ValidateTenderAmountRule.java:28)
at
dtv.pos.common.AbstractValidationOp.applyValidationRules(AbstractValidationOp.java:205)
at
dtv.pos.common.AbstractValidationOp.runValidationCheck(AbstractValidationOp.java:170)
at
dtv.pos.common.AbstractValidationOp.handleOpExec(AbstractValidationOp.java:133)
at
dtv.pos.framework.op.DefaultOpChain.internalDoOp(DefaultOpChain.java:353)
at
dtv.pos.framework.op.DefaultOpChain.handleOpExec(DefaultOpChain.java:178)
at
dtv.pos.framework.op.OpChainProcessor.runChain(OpChainProcessor.java:336)
at
dtv.pos.framework.op.OpChainProcessor.internalEventHandle(OpChainProcessor.java:271)
at dtv.pos.framework.op.OpChainProcessor.run(OpChainProcessor.java:106)
at java.lang.Thread.run(Thread.java:536)

I have discovered that the cause of this error was that we accidentaly
made the class abstract. I am confused however as to why this caused a
null-pointer exception, as opposed to an exception that complained about
trying to instantiate an abstract class.
Jeff Sheldon wrote:
In one circumstance I am getting a NullPointerException when performing a
getObjectById. I double checked to be sure that all fields of the object
Id are filled properly and that the metadata is mapped properly. This
error is with 2.5.0 b2
- Jeff
Exception and Stack Trace:
com.solarmetric.kodo.runtime.FatalException: java.lang.NullPointerException
NestedThrowables:
java.lang.NullPointerException
at
com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectByIdFilter(PersistenceManagerImpl.java:1150)
at
com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectById(PersistenceManagerImpl.java:1045)
at
dtv.pos.tender.TenderHelper.getTenderSettingsForGroup(TenderHelper.java:69)
at
dtv.pos.tender.ValidateTenderAmountRule.validateGroup(ValidateTenderAmountRule.java:42)
at
dtv.pos.tender.ValidateTenderAmountRule.isValid(ValidateTenderAmountRule.java:28)
at
dtv.pos.common.AbstractValidationOp.applyValidationRules(AbstractValidationOp.java:205)
at
dtv.pos.common.AbstractValidationOp.runValidationCheck(AbstractValidationOp.java:170)
at
dtv.pos.common.AbstractValidationOp.handleOpExec(AbstractValidationOp.java:133)
at
dtv.pos.framework.op.DefaultOpChain.internalDoOp(DefaultOpChain.java:353)
at
dtv.pos.framework.op.DefaultOpChain.handleOpExec(DefaultOpChain.java:178)
at
dtv.pos.framework.op.OpChainProcessor.runChain(OpChainProcessor.java:336)
at
dtv.pos.framework.op.OpChainProcessor.internalEventHandle(OpChainProcessor.java:271)
at dtv.pos.framework.op.OpChainProcessor.run(OpChainProcessor.java:106)
at java.lang.Thread.run(Thread.java:536)
NestedThrowablesStackTrace:
java.lang.NullPointerException
at
com.solarmetric.kodo.runtime.StateManagerImpl.initialize(StateManagerImpl.java:216)
at
com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.loadByPK(ClassMapping.java:986)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.initialize(JDBCStoreManager.java:327)
at
com.solarmetric.kodo.runtime.StateManagerImpl.loadInitialState(StateManagerImpl.java:177)
at
com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectByIdFilter(PersistenceManagerImpl.java:1143)
at
com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectById(PersistenceManagerImpl.java:1045)
at
dtv.pos.tender.TenderHelper.getTenderSettingsForGroup(TenderHelper.java:69)
at
dtv.pos.tender.ValidateTenderAmountRule.validateGroup(ValidateTenderAmountRule.java:42)
at
dtv.pos.tender.ValidateTenderAmountRule.isValid(ValidateTenderAmountRule.java:28)
at
dtv.pos.common.AbstractValidationOp.applyValidationRules(AbstractValidationOp.java:205)
at
dtv.pos.common.AbstractValidationOp.runValidationCheck(AbstractValidationOp.java:170)
at
dtv.pos.common.AbstractValidationOp.handleOpExec(AbstractValidationOp.java:133)
at
dtv.pos.framework.op.DefaultOpChain.internalDoOp(DefaultOpChain.java:353)
at
dtv.pos.framework.op.DefaultOpChain.handleOpExec(DefaultOpChain.java:178)
at
dtv.pos.framework.op.OpChainProcessor.runChain(OpChainProcessor.java:336)
at
dtv.pos.framework.op.OpChainProcessor.internalEventHandle(OpChainProcessor.java:271)
at dtv.pos.framework.op.OpChainProcessor.run(OpChainProcessor.java:106)
at java.lang.Thread.run(Thread.java:536)

Similar Messages

  • Java.lang.NullPointerException when doing SQL on ms access

    I am trying to perform Insert and delete commands on an access database and I continue to get a java.lang.NullPointerException when performing the action. Everything is fine when i do a Select * FROM..., I am able to read all of the information I ask for, but when performing the Insert/Delete commands I get the error. Any help would be appreciated, I will copy and past a portion of my code below. All of the fields and variable types match with what is in the database.
    public void executeAddSecretary() throws SQLException{
    String a,b;
    a= txtSecLname.getText();
    b= txtSecFname.getText();
    statement.execute("INSERT INTO Contact_Sec (Sec_Lname,Sec_Fname) Values ('" + a + "', '" + b + "')");
    System.out.println("updated Secretary");
    public void executeDeleteContact() throws SQLException{
    String a = "a";
    statement.execute("DELETE FROM Contact WHERE Lname = ('" + a + "')");
    System.out.println("deleted contact");
    Thanks to anyone who can help me out.

    1) Use prepared statement instead of statement.
    2) Do like this ...
    PreparedStatement prepStmt = null;
    try
         String query="INSERT INTO Contact_Sec (Sec_Lname,Sec_Fname) Values (?,?)");
         prepStmt = connection.prepareStatement(query);
         prepStmt.setString(1, value1);
         prepStmt.setString(2, value2);
         prepStmt.executeUpdate();
    catch (SQLException e)
         throw e;
    catch (Exception e)
         throw e;
    finally
         try
              if (prepStmt != null)
                   prepStmt.close();
         } catch (Exception e) {}
         try
              if (connection != null)
                   connection.close();
         } catch (Exception e) {}
    }3) If you still get the null exception then put step wise System.out's
    and debug it.
    -Rohit

  • NullPointerException when doing in-memory-replication

    I am clustering two WLS instance sitting behind a WLS NSAPI proxy on one
              multi-home NT box, but when I tried to use in memory replication with adding
              the the following three properties:
              weblogic.httpd.clustering.enable=true
              weblogic.httpd.session.persistence=true
              weblogic.httpd.session.persistentStoreType=replicated
              I got the exception below. if I removed the session.persistence and
              session.persistentStoreType properties, the request will go through and both
              instance can serve request, but I lost the session information in fail over.
              Any hints will be appreciated!
              Qingxiang
              java.lang.NullPointerException
              at
              weblogic.servlet.internal.session.ReplicatedSession.setMaxInactiveInterval(R
              eplicatedSession.java:339)
              at
              weblogic.servlet.internal.session.SessionContext.getNewSessionInstance(Sessi
              onContext.java:322)
              at
              weblogic.servlet.internal.ServletRequestImpl.getNewSession(ServletRequestImp
              l.java:1104)
              at
              weblogic.servlet.internal.ServletRequestImpl.getSession(ServletRequestImpl.j
              ava:1007)
              at
              weblogic.servlet.internal.ServletRequestImpl.getSession(ServletRequestImpl.j
              ava:981)
              at
              weblogic.servlet.jsp.PageContextImpl.initialize(PageContextImpl.java:47)
              at
              weblogic.servlet.jsp.PageContextImpl.<init>(PageContextImpl.java:64)
              at
              weblogic.servlet.jsp.JspFactoryImpl.getPageContext(JspFactoryImpl.java:31)
              at jsp_servlet.index._jspService(index.java:105)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :123)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :141)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:744)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:692)
              at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
              Manager.java:251)
              at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
              at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              

    I forgot to add that I am running WLS5.1 with sp3.
              "Qingxiang Ke" <[email protected]> wrote in message
              news:[email protected]...
              > I am clustering two WLS instance sitting behind a WLS NSAPI proxy on one
              > multi-home NT box, but when I tried to use in memory replication with
              adding
              > the the following three properties:
              >
              > weblogic.httpd.clustering.enable=true
              > weblogic.httpd.session.persistence=true
              > weblogic.httpd.session.persistentStoreType=replicated
              >
              > I got the exception below. if I removed the session.persistence and
              > session.persistentStoreType properties, the request will go through and
              both
              > instance can serve request, but I lost the session information in fail
              over.
              >
              > Any hints will be appreciated!
              >
              > Qingxiang
              >
              > java.lang.NullPointerException
              > at
              >
              weblogic.servlet.internal.session.ReplicatedSession.setMaxInactiveInterval(R
              > eplicatedSession.java:339)
              > at
              >
              weblogic.servlet.internal.session.SessionContext.getNewSessionInstance(Sessi
              > onContext.java:322)
              > at
              >
              weblogic.servlet.internal.ServletRequestImpl.getNewSession(ServletRequestImp
              > l.java:1104)
              > at
              >
              weblogic.servlet.internal.ServletRequestImpl.getSession(ServletRequestImpl.j
              > ava:1007)
              > at
              >
              weblogic.servlet.internal.ServletRequestImpl.getSession(ServletRequestImpl.j
              > ava:981)
              > at
              > weblogic.servlet.jsp.PageContextImpl.initialize(PageContextImpl.java:47)
              > at
              > weblogic.servlet.jsp.PageContextImpl.<init>(PageContextImpl.java:64)
              > at
              > weblogic.servlet.jsp.JspFactoryImpl.getPageContext(JspFactoryImpl.java:31)
              > at jsp_servlet.index._jspService(index.java:105)
              > at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              > at
              >
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              > :123)
              > at
              >
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              > :141)
              > at
              >
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              > l.java:744)
              > at
              >
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              > l.java:692)
              > at
              >
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
              > Manager.java:251)
              >
              > at
              >
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
              > at
              > weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              >
              >
              

  • Error in pricing when doing sourcing in EBP 4.0

    Hello,
    We're experiencing random errors when doing sourcing in EBP 4.0. The shopping carts don't seem to have any similarities that could launch the error. There has been few cases when the same error has occured when user is creating a shopping cart.
    The problem occures when doing sourcing and the shopping cart is either being held or a PO is created. The error creates dump in ST22, "UNCAUGHT_EXCEPTION". This is somehow related to pricing and we have checked note 673372 and ran report BBP_CND_CUSTOMIZING_CHECK, all OK. IPC is running the same SP level as SRM, SP level 10.
    We have already created an OSS about this, but as this is completely random we haven't been able to reproduce the error and no solution has been found.
    Here's some data from ST22:
    Transaction......... "BBPSOCO01 "             
    Program............. "SAPLBBP_PDH"            
    Screen.............. "SAPLBBP_SOCO_UI_ITS 2000"
    The termination occurred in the ABAP program "SAPLBBP_PDH" in "BBP_PD_ABORT"
    The main program was "SAPLBBP_SOCO_UI_ITS ".                                                                               
    The termination occurred in line 69 of the source code of the (Include)   
    program "LBBP_PDHU08"                                                    
    of the source code of program "LBBP_PDHU08" (when calling the editor 690).
    000600   * get the messages from the application log    
    000610     TRY.                                         
    000620         CALL FUNCTION 'BBP_PD_LOG_GET_MESSAGES'  
    000630           TABLES                                 
    000640             E_MESSAGES = LT_MESSAGES.            
    000650       CATCH CX_BBP_PD_ABORT.                     
    000660         REFRESH LT_MESSAGES.                     
    000670     ENDTRY.                                      
    000680                                                  
    >     RAISE EXCEPTION TYPE CX_BBP_PD_ABORT EXPORTING
    Thanks already in advance!
    -Jussi

    Hi
    Please refer to following SAP Notes:
    Note 860935 - pricing customizing exits are missing
    Note 673372 - Short dumps UNCAUGHT_EXCEPTION in SRM 3.0, 4.0, and 5.0
    Also try to implement the latest IPC patches following the instructions from note 880749, then restart the VMC. It worked for us, after trying many things with no luck.
    Alternatively, try this as well. There must be some problem with VMC. Most probably java connection problem. Please execute program RSVMCRT_HEALTH_CHECK in SE38 transaction. You should see green for all 4 messages in the result. Please contact your basis consultant and refer notes 854170 (and 844817)
    <u>Other related OSS notes.</u>
    Note 1024374 - Unexpected pricing error for pricing irrelevant item
    Note 992259 - NullPointerException in Command GetFilteredCsticsAndValues
    Note 860935 - pricing customizing exits are missing
    Note 673372 - Short dumps UNCAUGHT_EXCEPTION in SRM 3.0, 4.0, and 5.0
    Note 854170 - Activating the component "VM Container"
    Note 593109 - Short dumps UNCAUGHT_EXCEPTION in SRM 2.0 (EBP 3.5)
    Note 880749 - Patching of VMC based AP 7.00 engines
    Note 854170 - Activating the component "VM Container"
    Note 844816 - Information for Upgrade from IPC 4.0 to SAP AP 7.00
    Hope this will help.
    Please award points if helpful.
    Regards,
    -Atul

  • Java.lang.NullPointerException when trying to start UM

    I get java.lang.NullPointerException when I try to start Unified Messaging using EM on a new Windows 2000 single-box installation. Has anyone enountered this problem?

    I have also encountered same issue. Please let me know the solution in case you find it.
    In fact after configuiring Oracle files as per the document provided at Oracle OTN site 'Collaboration handbook', I am unable to connect OID. As per log it says
    2003/04/01:20:37:58[Oidmon]: Unable to connect to database, will retry after 20 sec
    2003/04/01:21:20:21Starting Monitor Process, PID=2920
    2003/04/01:21:20:21ORACLE_SID not set, setting to iasdb
    2003/04/01:21:41:22Failed to fetch Process Table. ORA-12571: TNS:packet writer failure
    I checked Listener, which was found ok, then I checked TNSPING, which executed ok.
    I have dowloaded documents troubleshooting OID, but no success. The document itself says that architecture of OID is fairly complex and the log does not suggest much insight.
    Any solution?
    Regards,
    Vipul

  • NullPointerException when running TopLink

    Hi. I'm working through the ADF tutorial for JDeveloper. I keep running into a NullPointerException when I try to complete the TopLink step
    java.lang.NullPointerException
         at oracle.ideimpl.log.TabbedLogManager.getMsgPage(TabbedLogManager.java:101)
         at oracle.toplink.addin.log.POJOGenerationLoggingAdapter.updateTask(POJOGenerationLoggingAdapter.java:42)
         at oracle.toplink.addin.mappingcreation.MappingCreatorImpl.fireTaskUpdated(MappingCreatorImpl.java:1102)
         at oracle.toplink.addin.mappingcreation.MappingCreatorImpl.generateMappedDescriptorsForTables(MappingCreatorImpl.java:269)
         at oracle.toplink.addin.mappingcreation.MappingCreatorImpl.generateMappedDescriptorsForTables(MappingCreatorImpl.java:206)
         at oracle.toplink.addin.wizard.jobgeneration.JobWizard$1.construct(JobWizard.java:401)
         at oracle.ide.util.SwingWorker$1.run(SwingWorker.java:119)
         at java.lang.Thread.run(Thread.java:595)
    If I click OK, the JDeveloper shows a dialog box as if it's doing some work. This just runs indefinitely and never does anything. I've tried the tutorial a couple of times with the same problem at this step. Help!! I'm getting very frustrated and don't know what's going on.

    Thanks for your reply, user640530. No, this is XP Pro. It seems to be having trouble from the Java class connecting to the db; however, the db connection by itself works fine. Not sure what to do next. Help!!

  • NullPointerException when opening a script in SQL Developer 4.0.0.12

    I recently upgraded to SQL Developer v.4.0.0.12 64 bit, and am running into some issues.
    I am running this on 64 bit Windows 7. I have a 64 bit Oracle 11, and in addition have the 32 bit oracle client installed.
    I made an association between the .sql file extension and sqldeveloper64W.exe.
    However I frequently get a nullpointerexception when clicking on a script in the file explorer.
    It seems to occur mostly if I loaded scripts into SQL Developer before.
    If I close all the windows before closing SQL Developer and then click on a script in the file manager, things work (startup is arguably slower than v.3).
    But in most cases either nothing happens, or I get the NullPointerException below.
    What am I doing wrong?
    Regards,
    Wim
    java.lang.NullPointerException
      at oracle.dbtools.raptor.plsql.FindHighlightListener.editorDeactivated(FindHighlightListener.java:63)
      at com.oracle.jdeveloper.nbwindowsystem.NbEditorManager.fireEditorEvent(NbEditorManager.java:1315)
      at com.oracle.jdeveloper.nbwindowsystem.NbEditorManager.handleEditorEvent(NbEditorManager.java:1294)
      at com.oracle.jdeveloper.nbwindowsystem.NbEditorManager.whenCurrentEditorChanges(NbEditorManager.java:1556)
      at com.oracle.jdeveloper.nbwindowsystem.editor.TabGroup.whenCurrentEditorChanges(TabGroup.java:1026)
      at com.oracle.jdeveloper.nbwindowsystem.editor.TabGroup.setCurrentTabGroupState(TabGroup.java:847)
      at com.oracle.jdeveloper.nbwindowsystem.editor.TabGroup.addTabGroupState(TabGroup.java:129)
      at com.oracle.jdeveloper.nbwindowsystem.NbEditorManager.createEditor(NbEditorManager.java:534)
      at com.oracle.jdeveloper.nbwindowsystem.NbEditorManager.createEditor(NbEditorManager.java:511)
      at com.oracle.jdeveloper.nbwindowsystem.NbEditorManager.openEditor(NbEditorManager.java:379)
      at oracle.ide.cmd.OpenCommand.openWithNoProject(OpenCommand.java:337)
      at oracle.ide.cmd.OpenCommand.access$100(OpenCommand.java:62)
      at oracle.ide.cmd.OpenCommand$1.run(OpenCommand.java:266)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
      at java.awt.EventQueue.access$200(EventQueue.java:103)
      at java.awt.EventQueue$3.run(EventQueue.java:694)
      at java.awt.EventQueue$3.run(EventQueue.java:692)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
      at oracle.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
      at oracle.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

    Please refer to this White paper for how to generate PL/SQL package for workflow deployment:
    Oracle Data Miner (Extension of SQL Developer 4.0)
    Generate a PL/SQL script for workflow deployment
    http://www.oracle.com/technetwork/database/options/advanced-analytics/odmrcodegenwhitepaper-2042206.pdf

  • NullPointerException when mouselistener calls method

    Good Evening,
    I get a java.lang.NullPointerException when a mouselistener calls a method "populatethedatafields()" contained within the class. The populatethedatafields method tries to set the values of text fields and it is at this point the exception occurs. I have tried being more explict in identifying the fields using myclassname.this.textfieldname and this.textfieldname without success. When I moved the settext to within the mouselistener scope, I was able to make the changes.
    Why does this occur?
    I know that I can fix it by putting the settext into the listeners, but that does not seem to be good coding practice. Any suggestions for a good coding practice to solve this type of issue?
    Many thanks for your time.
    Some code removed for clarity and brevity.......
    package EMSBeta1;
    public class ContactInfoViewTEST2 extends JPanel {
    private JTextField textFieldFirstName, textFieldLastName;
    private JPanel custDetails;
    /** Creates new ContactInfoView */
    public ContactInfoViewTEST2(PowerSourceRacingModel model) {
    mod = model;
    cqm = mod.getContactQuery();
    cdt = mod.getContactDetails();
    initComponents();
    public void initComponents() {
    JPanel panel1 = new JPanel();
    JPanel panel2 = new JPanel();
    JPanel detailsPanel = new JPanel();
    double size[][] =
    {{10, -1.0, -1.0, -1.0, -1.0, TableLayout.PREFERRED, 10}, // Columns
    {10, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, 10}}; // Rows
    panel1.setBorder(BorderFactory.createTitledBorder("This is a title"));
    BoxLayout layout = new BoxLayout(panel1, BoxLayout.Y_AXIS);
    panel1.setLayout(layout);
    // panel2.setBorder(BorderFactory.createTitledBorder("This is a title"));
    BoxLayout layout2 = new BoxLayout(panel2, BoxLayout.X_AXIS);
    panel2.setLayout(layout2);
    detailsPanel.setBorder(BorderFactory.createTitledBorder("This is a title"));
    detailsPanel.setLayout(new TableLayout(size));
    JLabel labelLastName = new JLabel("Last Name") ;
    final JTextField textFieldLastName = new JTextField("Enter LastName",10);
    JLabel labelFirstName = new JLabel("First Name") ;
    final JTextField textFieldFirstName = new JTextField("FirstName",5);
    textFieldLastName.setNextFocusableComponent(textFieldMembershipNum);
    textFieldMembershipNum.setNextFocusableComponent(textFieldAddress);
    textFieldAddress.setNextFocusableComponent(textFieldEmerContactPhone);
    detailsPanel.add(labelLastName, "1, 1, L, C");
    detailsPanel.add(textFieldLastName, "1, 2, L, T");
    detailsPanel.add(labelFirstName, "3, 1, L, C");
    detailsPanel.add(textFieldFirstName, "3, 2, L, T");
    panel1.add(contactListPane);
    this.setLayout(new BorderLayout());
    add(panel1,BorderLayout.WEST);
    add(panel2,BorderLayout.SOUTH);
    add(detailsPanel,BorderLayout.CENTER);
    MouseListener listMouseListener = new MouseListener() {
    public void mouseClicked(MouseEvent e) {
    public void mouseEntered(MouseEvent e) {
    public void mouseExited(MouseEvent e) {
    public void mousePressed(MouseEvent e) {
    public void mouseReleased(MouseEvent e) {
    createNewContact.setEnabled(true);
    updateButton.setEnabled(true);
    insertNewDataButton.setEnabled(false);
    clearButton.setEnabled(false);
    JList theList = (JList)e.getSource();
    int indexValue = theList.getSelectedIndex();
    System.out.println("This is the selected index from the JList: " + indexValue);
    ContactIdName selectedItem = (ContactIdName)list.getSelectedValue();
    int selectedKey = selectedItem.getKey();
    contactInfo = cdt.getContactDetails(selectedKey);
    populateTheDataFields();
    list.addKeyListener(listKeyListener);
    list.addMouseListener(listMouseListener);
    public void clearFields() {
    textFieldFirstName.setText(null);
    textFieldLastName.setText(null);
    public void populateTheDataFields() {
    String first = (String)contactInfo.get("FIRSTNAME");
    String last = (String)contactInfo.get("LASTNAME");
    this.textFieldFirstName.setText(first);
    this.textFieldLastName.setText(last);
    }

    Ah Ha, Discovered the solution/problem.
    Note that I declared textFieldFirstName and textFieldLastName as class objects with private scope. Then in the initComponents METHOD, I created NEW textFieldFirstName and textFieldLastName objects whose scope is limited only to the method. By prefixing the objects with type, I was creating new instances of the objects rather than "re-using" the class objects. Class objects with appropriate scope are accessible by methods and inner classes. Objects created within a method are not unless the method returns the object.
    Subtle, but basic OO stuff that was a painful lesson. Whew!

  • NullPointerException when creating a JTextField ?

    I feel pretty stupid asking about a NPE - a typical newbie problem, but this is just very strange. Working on my app I seem to have messed up something - somewhere. I get a NullPointerException when creating a new JTextField. I haven't had a problem with this line before, and I was not editing that file...
    The line in my ImageSearchBox class:
            searchField = new JTextField(10);where searchField is defined
    private JTextField searchField;The stack trace:
    java.lang.NullPointerException
         at javax.swing.text.StyleContext.registerStaticAttributeKey(StyleContext.java:665)
         at javax.swing.text.StyleContext.<clinit>(StyleContext.java:1602)
         at javax.swing.text.AbstractDocument.<init>(AbstractDocument.java:91)
         at javax.swing.text.PlainDocument.<init>(PlainDocument.java:74)
         at javax.swing.text.PlainDocument.<init>(PlainDocument.java:64)
         at javax.swing.text.DefaultEditorKit.createDefaultDocument(DefaultEditorKit.java:113)
         at javax.swing.plaf.basic.BasicTextUI.installUI(BasicTextUI.java:688)
         at javax.swing.plaf.basic.BasicTextFieldUI.installUI(BasicTextFieldUI.java:56)
         at javax.swing.JComponent.setUI(JComponent.java:449)
         at javax.swing.text.JTextComponent.setUI(JTextComponent.java:267)
         at javax.swing.text.JTextComponent.updateUI(JTextComponent.java:277)
         at javax.swing.text.JTextComponent.<init>(JTextComponent.java:251)
         at javax.swing.JTextField.<init>(JTextField.java:211)
         at javax.swing.JTextField.<init>(JTextField.java:178)
         at no.xait.dod.customcomponents.ImageSearchBox.<init>(ImageSearchBox.java:27)
    (..)????

    I found the source of the problem - but I do not understand why it is a problem. If anyone can explain to me why this happens, they get the dukes :) ...
    I've got a Singelton class that's named StyleRepository. When I commented out these declarations the problem disappeared:
        private Object align = javax.swing.text.StyleConstants.ParagraphConstants.Alignment;
        private Object fontfamily = javax.swing.text.StyleConstants.FontConstants.Family;
        private String fontname = "FontName";
        private Object fontsize = javax.swing.text.StyleConstants.FontConstants.FontSize;
        private Object foregroundcolor = javax.swing.text.StyleConstants.Foreground;
        private Object backgroundcolor = javax.swing.text.StyleConstants.CharacterConstants.Background;
        private Object firstlineindent = javax.swing.text.StyleConstants.FirstLineIndent;
        private Object leftindent = javax.swing.text.StyleConstants.LeftIndent;
        private Object rightindent = javax.swing.text.StyleConstants.RightIndent;
        private Object spaceabove = javax.swing.text.StyleConstants.ParagraphConstants.SpaceAbove;
        private Object spacebelow = javax.swing.text.StyleConstants.ParagraphConstants.SpaceBelow;
        private Object linespacing = javax.swing.text.StyleConstants.ParagraphConstants.LineSpacing;
        private Object bold = javax.swing.text.StyleConstants.ParagraphConstants.Bold;
        private Object italic = javax.swing.text.StyleConstants.ParagraphConstants.Italic;
        private Object underline = javax.swing.text.StyleConstants.ParagraphConstants.Underline;Isn't that weird?? It's like the declarations above override something in StyleContext or something, cause if I have the lines there I get an error even doing a
    JTextFiled f = new JTextField(10);
    Strange?! ..

  • My iphone 5 keeps crashing all the time and has a delay of about 3 seconds when doing anything on it i did a factory restore on it but it didnt fix the problem

    my iphone 5 keeps crashing all the time and has a delay of about 3 seconds when doing anything on it i did a factory restore on it but it didnt fix the problem i went to optus to see if they could help me as my phone is through them but they knew nothing i need help please my phone is only 8 months old

    Plug the device into a wall outlet and leave it for about 20 minutes. If it has not powered on at that point try a reset by pressing and holding the home and power buttons for about 15 seconds until the white Apple logo appears.

  • I am currently using Lightroom 5.6 and operating on a Mac with OSX Ver 10.9.5. I am receiving an error problem when doing the following -  I am exporting selected photos from a particular Catalogue saved on Drive 1 to a folder created on another Drive whe

    Hi, I am having a little trouble with exporting images to another drive and Catalogue and need some help if anyone can give me some advice
    I am currently using Lightroom 5.6 and operating on a Mac with OSX Ver 10.9.5.
    I am receiving an error problem when doing the following -
    I am exporting selected photos from a particular Catalogue saved on Drive 1 to a folder created on another Drive where a Lightroom Catalogue has been created. In this Catalogue I have arranged for the images once exported to be moved to a different folder - I used the Auto Import process under the File dialogue box.
    When processing the Export I receive an error message for each of the images being exported indicating the following -
    Heading Import Results
    Some import operations were not performed
    Could not move a file to requested location. (1)
    then a description of the image with file name
    Box Save As                                  Box  OK
    If I click the OK button to each image I can then go to the other Catalogue and all images are then transferred to the file as required.
    To click the OK button each time is time consuming, possibly I have missed an action or maybe you can advise an alternative method to save the time in actioning this process.
    Thanks if you can can help out.

    Thank You, but this is a gong show. Why is something that is so important to us all so very, very difficult to do?

  • No Data when doing multiple selection of sub-brand in the cube

    Hey everyone.
    I am having a very strange situation.
    No Data when doing multiple selection cube.
    The thing is that the situation is created only in the transition between the servers, who have a different Build but both of them are SQL 2008R2 servers.
    The Build of one of them is 10.50.2789.0 and the other one is 10.50.4000.0 (SP2).
    The other properties of the cube are the same, it's Not possible to retrieve data from the cube on the server with the "SP2 when we  the slicing is at the level of sub-brand and removed even one item  mean we passed a multiple selection ,
    This is possible only if we connect the cube as Admin .
    While the server with the older "Build" the problem to perform the above operation when connected as a user not exist.
    What can cause this problem,and how can we fix it?
    thank's a lot.

    Hi Doron2Bull,
    According to your description, there are two servers in your scenario, and you cannot retrieve data from one of the cube, right? Are there any differences between the two cubes on different? You can import the database on the server into BIDS and explore
    Data on the fact table on the Data Source View to check if there are any data. If we can see the data when we do Explore Data on the fact table on the Data Source View (DSV), but when we browse the cube here is no data. Then there are many possibilities for
    this issue.
    On the cube's Dimension Usage, the relationship between this measure group and the dimension is not correctly defined.
    On the relational database, the dimensional key column on the fact table does not correspond to the key column on dimension table.
    There is a Default Member on another dimension, and there is no fact table row that satisfy this condition.
    If I have anything misunderstood, please point it out.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Firefox 5 apparrently changed a Windows setting, now I have artifacts remaining on top of my desktop when doing things like selecting a file and doing an open with selection.

    Ever since I my system updated to Firefox 5 I now have issues such as:
    Want to open a file such as a doc in Wordpad instead of Word (for speed and simplicity), I right click on the file and select open with Wordpad...the Wordpad and it's icon now stay on the desktop, on top of anything else. This happens when doing any open as selections. This did not happen before Firefox 5......there must be an overriding code confliction. Am using XP Home Premium.

    Hi Steve1904,
    So you have use the backup and Restore to restore your files from Windows XP to Windows 7 directly?
    This should be considered not work.
    If you would like to transfer files between Windows XP and Windows 7, you need another tool called Windows Easy Transfer.
    See the article below if you would like to upgrade from Windows XP to Windows 7:
    Upgrading from Windows XP to Windows 7
    If possible, follow the steps there, then things should be OK.
    Best regards
    Michael Shao
    TechNet Community Support

  • ITunes crashes when doing a power search. I get a Microsoft Visual C   Runtime Library Error message: Program C:\Program Files (x86)\iTunes\iTunes.exe R6025.  Pure virtual functional call.  If I select ok, Windows 7 pops up with iTunes has stopped working

    iTunes crashes when doing a power search. I get a Microsoft Visual C   Runtime Library Error message: Program C:\Program Files (x86)\iTunes\iTunes.exe R6025.  Pure virtual functional call.  If I select ok, Windows 7 pops up with iTunes has stopped working and then it shuts iTunes down.  Anyone else every have this issue.  Any ideas on a fix?
    Thanks,

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • Debit and Credit notes not to update COPA cost of sales when doing price ad

    Hi Experts,
    Please help me to fix the below issue.
    When we correct price adjustments on customer accounts we use debit and credit notes to do these price corrections. We first process a ZCR order type with reference to the original invoice to reverse the transaction and then we process a debit meme request ZDR with the correct details to invoice the customer correctly.
    These credit and Debit memo request are purley for pricing problems and do not effect cost of sales. Currently these Debit and credit memos are updating the cost of Sales value field (COS on Market Price - VV013) .
    This creates a problem since the credit and debit memo happen in subsequent months e.g. The credit memo is reversed at the old cost of sales value since SAP keeps a reference to the cost of sales at that time but the debit memo creates the cost sales at the new standard cost which is obviously not the same as the original cost of sales. We therefore sit with differences which will not equal FI since FI cost of sales was updated with the goods issue price in the month that the goods issue happened.
    We therefore need to zerorise the following value fields when doing ZDR dedit memo and billing type ZL2 and ZCR credit memo billing type ZG2.
    Gross Weight in KG VV004
    Invoiced Qty KG net VV002
    Invoiced Qty in L VV001
    Invoiced Qty in L15 VV003
    Invoiced Quantity VV005
    COS on Market Price VV013
    VV001 to VV005 are quantity fields and VV013 is Value field.
    Please help me how to fix the issue.
    Regards,
    Amar.

    Hi,
    Sorry, I probably confused things by mentioning Revenue. Your settings are correct, with Revenue defined as a revenue element (11) rather than a cost element (1).
    With respect to WIP (P&L), I would create it as a cost element, since it represents the absorption of cost centre costs and materials into the production of goods, even though the goods are not yet complete. When the goods are completed they will be credited in CO-OM and debited to stock using a similar entry. The impact of these credits (to WIP or to Stock) is to move costs out of CO-OM into the goods produced (CoGS). In CO-OM, the net result of Costs less credits to WIP/Stock, indicates the efficiency of your cost centres or the accuracy of your standards.
    I would also create the manufacturing variance accounts as Cost Elements and settle them back to your production costs centres (or possibly CO-PA if you used it), since they are also a reflection of the efficiency of your cost centres - i.e. if a Cost Centre manager is not achieving the standards, (s)he should be accountable for the variance, and if you are concerned about reconciling CO-OM and the costs in P&L, you won't reconcile if the variances aren't posted back to CO.
    Regards,
    Marc

Maybe you are looking for

  • ABAP Proxy : Modification in Structure

    Hi Experts, I have one query in ABAP Proxy. I had one customized table type as declared DATA: ITAB TYPE ZABCD. It is having line type as ZABCD_LINE. This is just line type. Now I wanted to add 2 fields in same line type. While using SE11 whenever I a

  • Error in collect function

    Hi, I am using below query for collect select account_id_N,collect(connection_id_v) from My_test_table group by account_id_n; but its giving me error as below. ORA-00932: inconsistent datatypes: expected NUMBER got - 00932. 00000 - "inconsistent data

  • Class should be declared abstract

    hello, i'm learning to use the JOONE(Java Object Oriented Neural Engine).I tried to run a sample program.On compiling it gives the following error. XorExample should be declared abstract; it does not define errorChanged(org.joone.engine.NeuralNetEven

  • JRE 1.4.1 causes windows 98 to hang

    I just installed the latest JRE 1.4.1, now every time I use the one Java program I have my computer hangs. Sometimes I can open it and then close before the hang - then I get a ddhelp.exe is not responding error message. Tried uninstalling and reinst

  • 10.4.11, WPA,  AND Verizon Router

    Should I be able to connect wirelessly with WPA encription to a Verizon Wireless N Actiontec Router with OS 10.4.11? Have an old G3 and G4 that's worked forever and with the new router can't seem to get on line, though see the network name.  No probl