[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ozone 0.4 available -- ... now error on first createObject call



Making some progress, thanks, Falko.  Now my ozone4 on NT under
jdk1.3rc1.0 errors on the first createObject call after doing
an objectForName lookup without any trouble (code included below).

org.ozoneDB.OzoneInternalExc: java.lang.NullPointerException
    at org.ozoneDB.ExternalDatabase.sendCommand(ExternalDatabase.java:324)
    at org.ozoneDB.ExternalDatabase.sendCommand(ExternalDatabase.java:296)
    at org.ozoneDB.ExternalDatabase.createObject(ExternalDatabase.java:413)
    at org.ozoneDB.ExternalDatabase.createObject(ExternalDatabase.java:407)
    at edu.nwu.sesp.marek.PrototypePP$9.actionPerformed(PrototypePP.java:384)

(I include complete errors, below, for both the ozone server and the
application VMs)




Btw, "OzoneInst -d<whatever> -D<whateverelse> just does not like when
<whateverelse> is ozone.dbID=0 under NT in a dos window shell.  So I
ran with OzoneInst -d<whatever> option only and the dbID defaulted to 0,
according to the startup message.  Here are the WizardStore startup
messages in case they are weird:

[info] (960) ClassManager: startup...
[info] (960) UserManager: startup...
[info] (960) TransactionManager: startup...
[info] (960) WizardStore: startup...
[info] (960) WizardStore:     no valid idTable file found; recovering...
[info] (960) WizardStore:     cluster: 4
[info] (960) WizardStore:         0 containers
[info] (960) WizardStore:         cluster is empty or unable to read - deleted
[info] (960) WizardStore:     0 IDs, 0 name(s))
[info] (960) InvokeServer: startup...
[info] (960) AdminPort: startup...
[info] (960) Env: external event processing started
('q' to shutdown without admin tool)


What's below: [you can search on these headings]

1. the offending code (Swing gui, just a button, ActionPerformed...)
====================================================================
2. screen snap from the NT dos window where the ozone server runs/errors:
=========================================================================
3. screen shot from the application VM's NT dos window:
=======================================================



1. the offending code (Swing gui, just a button, ActionPerformed...)
====================================================================

     JButton storeButton = new JButton("DB Store");
     storeButton.setPreferredSize(new Dimension(90, 34));
     storeButton.addActionListener(new ActionListener() 
       {
	 public void actionPerformed(ActionEvent e) 
         {
		colorizeIfColorizeRequested((JButton)e.getSource());
		if (myTextPage == null)
		   System.out.println("Nothing to store; make a thing.");
		else
		   try
		   {
                     //check the database for the existence of an object
                     //already bearing this name; if none found, create it.

                     SwingPanel dbobject = 
                           (SwingPanel)db.objectForName(getStringPassword());

                     if (dbobject == null)
                     {
 -- line 384-->          dbobject = (SwingPanel)db.createObject(
			              SwingPanelImpl.class.getName(),
                                      0, 
                                      getStringPassword());


2. screen snap from the NT dos window where the ozone server runs/errors:
=========================================================================

C:\CODE\edu\nwu\sesp\marek>ozone -dg:\databases

C:\CODE\edu\nwu\sesp\marek>rem $Id: ozone.bat,v 1.2 1999/10/01 14:16:06 lars Exp
 $
ozone server - version 0.4-dev6
initializing environment...
    ozoneDB.adminPort = 3000
    ozoneDB.classicStore.clusterSize = 65536
    ozoneDB.classicStore.clusterSpaceSize = 5120000
    ozoneDB.classicStore.tableBufferSize = 12800
    ozoneDB.classicStore.tableCacheSize = 4096
    ozoneDB.dbID = 0
    ozoneDB.fileLog = INFO, WARN, ERROR
    ozoneDB.port = 3333
    ozoneDB.stdoutLog = INFO, WARN, ERROR
    ozoneDB.store = org.ozoneDB.core.wizardStore.WizardStore
    ozoneDB.wizardStore.clusterCacheSize = 2097152
    ozoneDB.wizardStore.clusterSize = 65536
    ozoneDB.wizardStore.clusterSizeRatio = 256
    ozoneDB.wizardStore.tableBufferSize = 100
    ozoneDB.wizardStore.tableCacheSize = 12
[info] (960) Env: Copyright (C) 1997-2000 The Ozone Database Project
[info] (960) Env: contains libraries from the Apache Software Foundation
[info] (960) Env: contains libraries from SUN microsystems
[info] (960) Env: contains libraries from the W3C
[info] (960) Env: contains libraries from Exoffice, Inc.
[info] (960) Env: contains libraries (JavaClass) from Markus Dahm
[info] (960) Env: Copyright (C) under owner's respective terms.
[info] (960) ClassManager: startup...
[info] (960) UserManager: startup...
[info] (960) TransactionManager: startup...
[info] (960) WizardStore: startup...
[info] (960) WizardStore:     no valid idTable file found; recovering...
[info] (960) WizardStore:     0 IDs, 0 name(s))
[info] (960) InvokeServer: startup...
[info] (960) AdminPort: startup...
[info] (960) Env: external event processing started
('q' to shutdown without admin tool)
[info] (720) InvokeServer: connection established...
[info] (802) InvokeServer: user logged in: marek
[info] (802) InvokeServer: connection closed (user: marek)
[info] (720) InvokeServer: connection established...
[info] (764) InvokeServer: user logged in: marek
[warn] (764) Transaction: nameObject()
    java.lang.NullPointerException
        at org.ozoneDB.core.wizardStore.WizardStore.nameContainer(WizardStore
            .java:297)
        at org.ozoneDB.core.Transaction.nameObject(Transaction.java:429)
        at org.ozoneDB.core.Transaction.createObject(Transaction.java:318)
        at org.ozoneDB.core.DbRemote.DbCreateObj.perform(DbCreateObj.java:43)

        at org.ozoneDB.core.Transaction.performCommand(Transaction.java:189)
        at org.ozoneDB.core.TransactionManager.performCommand(TransactionMana
            ger.java:304)
        at org.ozoneDB.core.TransactionManager.completeTransaction(Transactio
            nManager.java:276)
        at org.ozoneDB.core.TransactionManager.handleCommand(TransactionManag
            er.java:195)
        at org.ozoneDB.core.InvokeServer.handleClientEvent(InvokeServer.java:
            76)
        at org.ozoneDB.DxLib.net.DxMultiServerClient.run(DxMultiServerClient.
            java:36)
        at java.lang.Thread.run(Thread.java:484)
[warn] (764) Transaction: ta(2): uncaught exception: (org.ozoneDB.OzoneInternalE
xc: java.lang.NullPointerException)
    org.ozoneDB.OzoneInternalExc: java.lang.NullPointerException
        at org.ozoneDB.core.Transaction.nameObject(Transaction.java:436)
        at org.ozoneDB.core.Transaction.createObject(Transaction.java:318)
        at org.ozoneDB.core.DbRemote.DbCreateObj.perform(DbCreateObj.java:43)

        at org.ozoneDB.core.Transaction.performCommand(Transaction.java:189)
        at org.ozoneDB.core.TransactionManager.performCommand(TransactionMana
            ger.java:304)
        at org.ozoneDB.core.TransactionManager.completeTransaction(Transactio
            nManager.java:276)
        at org.ozoneDB.core.TransactionManager.handleCommand(TransactionManag
            er.java:195)
        at org.ozoneDB.core.InvokeServer.handleClientEvent(InvokeServer.java:
            76)
        at org.ozoneDB.DxLib.net.DxMultiServerClient.run(DxMultiServerClient.
            java:36)
        at java.lang.Thread.run(Thread.java:484)

3. screen shot from the application VM's NT dos window:
=======================================================

C:\CODE\edu\nwu\sesp\marek>java -version
java version "1.3.0rc1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-T)
Java HotSpot(TM) Client VM (build 1.3.0rc1-S, mixed mode)

C:\CODE\edu\nwu\sesp\marek>java edu.nwu.sesp.marek.PrototypePP
thread(2263554): connected to db...
The user has inserted a node.
New value: Outline
The user has inserted a node.
New value: Outline
The user has inserted a node.
New value: Parent 1
The user has inserted a node.
New value: Parent 2
The user has inserted a node.
New value: Parent 2
The user has inserted a node.
New value: Parent 2
entered nodeClicked...
entered nodeClicked...
.........action 4 called
entered nodeClicked...
.........action 4 called
entered nodeClicked...
entered nodeClicked...
.........action 4 called
entered nodeClicked...
.........action 4 called
entered nodeClicked...
entered nodeClicked...
entered nodeClicked...
entered nodeClicked...
entered nodeClicked...
entered nodeClicked...
entered nodeClicked...
entered nodeClicked...
entered nodeClicked...
entered nodeClicked...
entered nodeClicked...
entered nodeClicked...
entered nodeClicked...
entered nodeClicked...
entered nodeClicked...
entered nodeClicked...
entered nodeClicked...
entered nodeClicked...
entered nodeClicked...
entered nodeClicked...
entered nodeClicked...
org.ozoneDB.OzoneInternalExc: java.lang.NullPointerException
        at org.ozoneDB.ExternalDatabase.sendCommand(ExternalDatabase.java:324)
        at org.ozoneDB.ExternalDatabase.sendCommand(ExternalDatabase.java:296)
        at org.ozoneDB.ExternalDatabase.createObject(ExternalDatabase.java:413)
        at org.ozoneDB.ExternalDatabase.createObject(ExternalDatabase.java:407)
        at edu.nwu.sesp.marek.PrototypePP$9.actionPerformed(PrototypePP.java:384
)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:14
50)
        at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
ctButton.java:1504)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:378)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250
)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
istener.java:216)
        at java.awt.Component.processMouseEvent(Component.java:3717)
        at java.awt.Component.processEvent(Component.java:3546)
        at java.awt.Container.processEvent(Container.java:1163)
        at java.awt.Component.dispatchEventImpl(Component.java:2595)
        at java.awt.Container.dispatchEventImpl(Container.java:1212)
        at java.awt.Component.dispatchEvent(Component.java:2499)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2427
)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2192)

        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2101)
        at java.awt.Container.dispatchEventImpl(Container.java:1199)
        at java.awt.Window.dispatchEventImpl(Window.java:912)
        at java.awt.Component.dispatchEvent(Component.java:2499)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:319)
        at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:10
3)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)


		-- Marek