Thanks for the suggestion Thomas, here is the last DEBUG logging before the
NPE :

3297  DEBUG [Thread-4] metadata.RepositoryXmlHandler -     <
field-descriptor
3297  DEBUG [Thread-4] metadata.RepositoryXmlHandler -   < class-descriptor
3297  DEBUG [Thread-4] metadata.RepositoryXmlHandler -  <
descriptor-repository
3313  DEBUG [Thread-4] metadata.RepositoryXmlHandler - endDoc
3313  INFO  [Thread-4] metadata.RepositoryPersistor - Read repository from
file took 735 ms
3313  INFO  [Thread-4] metadata.RepositoryPersistor - OJB Descriptor
Repository:
file:/C:/Program/Tomcat41/work/Standalone/localhost/pucken/WEB-INF/classes/repository.xml
3328  DEBUG [Thread-4] metadata.ConnectionDescriptorXmlHandler - ****
startDoc   ****
3344  DEBUG [Thread-4] metadata.ConnectionDescriptorXmlHandler -    >
jdbc-connection-descriptor
3359  DEBUG [Thread-4] metadata.ConnectionDescriptorXmlHandler -
jcd-alias: myConnection
3359  DEBUG [Thread-4] metadata.ConnectionDescriptorXmlHandler -
default-connection: true
3359  DEBUG [Thread-4] metadata.ConnectionDescriptorXmlHandler -
platform: MySQL
3375  DEBUG [Thread-4] metadata.ConnectionDescriptorXmlHandler -
jdbc-level: 2.0
3375  DEBUG [Thread-4] metadata.ConnectionDescriptorXmlHandler -
driver: com.mysql.jdbc.Driver
3375  DEBUG [Thread-4] metadata.ConnectionDescriptorXmlHandler -
protocol: jdbc
3375  DEBUG [Thread-4] metadata.ConnectionDescriptorXmlHandler -
subprotocol: mysql
3375  DEBUG [Thread-4] metadata.ConnectionDescriptorXmlHandler -
dbalias: //localhost:3306/myDB
3375  DEBUG [Thread-4] metadata.ConnectionDescriptorXmlHandler -
jndi-datasource-name: null
3375  DEBUG [Thread-4] metadata.ConnectionDescriptorXmlHandler -
username: admin
3375  DEBUG [Thread-4] metadata.ConnectionDescriptorXmlHandler -
password: blabla
3375  DEBUG [Thread-4] metadata.ConnectionDescriptorXmlHandler -
eager-release: false
3375  DEBUG [Thread-4] metadata.ConnectionDescriptorXmlHandler -
batch-mode: false
3375  DEBUG [Thread-4] metadata.ConnectionDescriptorXmlHandler -
useAutoCommit: 1
3375  DEBUG [Thread-4] metadata.ConnectionDescriptorXmlHandler -
ignoreAutoCommitExceptions: false
3375  DEBUG [Thread-4] metadata.ConnectionDescriptorXmlHandler -    <
jdbc-connection-descriptor
3391  DEBUG [Thread-4] metadata.ConnectionDescriptorXmlHandler - ****
endDoc   ****
3422  DEBUG [Thread-4] metadata.ConnectionRepository - New descriptor was
added: [EMAIL PROTECTED]
  jcd-alias=myConnection
  default-connection=true
  dbms=MySQL
  jdbc-level=2.0
  driver=com.mysql.jdbc.Driver
  protocol=jdbc
  sub-protocol=mysql
  db-alias=//localhost:3306/myDB
  user=admin
  password=blabla
  eager-release=false
  ConnectionPoolDescriptor={whenExhaustedAction=0, maxIdle=-1, maxActive=21,
maxWait=5000, removeAbandoned=false, numTestsPerEvictionRun=10,
testWhileIdle=false, minEvictableIdleTimeMillis=600000, testOnReturn=false,
logAbandoned=false, removeAbandonedTimeout=300,
timeBetweenEvictionRunsMillis=-1, testOnBorrow=true}
  batchMode=false
  useAutoCommit=AUTO_COMMIT_SET_TRUE_AND_TEMPORARY_FALSE
  ignoreAutoCommitExceptions=false
  sequenceDescriptor=<null>
]
3438  INFO  [Thread-4] metadata.RepositoryPersistor - Read connection
repository from file took 125 ms
3484  DEBUG [Thread-4] util.PropertyMessageResources -
getMessage(sv_SE,unhandledException)
3484  DEBUG [Thread-4] util.PropertyMessageResources - loadLocale(sv_SE)
3500  DEBUG [Thread-4] util.PropertyMessageResources -   Loading resource
'org/apache/struts/action/ActionResources_sv_SE.properties'
3500  DEBUG [Thread-4] util.PropertyMessageResources -   Loading resource
completed
3500  DEBUG [Thread-4] util.PropertyMessageResources - loadLocale(sv)
3500  DEBUG [Thread-4] util.PropertyMessageResources -   Loading resource
'org/apache/struts/action/ActionResources_sv.properties'
3500  DEBUG [Thread-4] util.PropertyMessageResources -   Loading resource
completed
3500  DEBUG [Thread-4] util.PropertyMessageResources - loadLocale()
3500  DEBUG [Thread-4] util.PropertyMessageResources -   Loading resource
'org/apache/struts/action/ActionResources.properties'
3500  DEBUG [Thread-4] util.PropertyMessageResources -   Loading resource
completed
3516  DEBUG [Thread-4] util.PropertyMessageResources -   Saving message key
'.configParse
3516  DEBUG [Thread-4] util.PropertyMessageResources -   Saving message key
'.destroyDataSource
3516  DEBUG [Thread-4] util.PropertyMessageResources -   Saving message key
'.sessionCreate
3516  DEBUG [Thread-4] util.PropertyMessageResources -   Saving message key
'.initDataSource
3516  DEBUG [Thread-4] util.PropertyMessageResources -   Saving message key
'.unhandledException
3516  DEBUG [Thread-4] util.PropertyMessageResources -   Saving message key
'.configMapping
3516  DEBUG [Thread-4] util.PropertyMessageResources -   Saving message key
'.initProcessor
3516  DEBUG [Thread-4] util.PropertyMessageResources -   Saving message key
'.applicationResources
3516  DEBUG [Thread-4] util.PropertyMessageResources -   Saving message key
'.applicationLoading
3516  DEBUG [Thread-4] util.PropertyMessageResources -   Saving message key
'.requestDispatcher
3516  DEBUG [Thread-4] util.PropertyMessageResources -   Saving message key
'.processInvalid
3516  DEBUG [Thread-4] util.PropertyMessageResources -   Saving message key
'.mappingType
3516  DEBUG [Thread-4] util.PropertyMessageResources -   Saving message key
'.configInit
3516  DEBUG [Thread-4] util.PropertyMessageResources -   Saving message key
'.dataSource.init
3531  DEBUG [Thread-4] util.PropertyMessageResources -   Saving message key
'.configMissing
3531  DEBUG [Thread-4] util.PropertyMessageResources -   Saving message key
'.notAuthorized
3531  DEBUG [Thread-4] util.PropertyMessageResources -   Saving message key
'.noInput
3531  DEBUG [Thread-4] util.PropertyMessageResources -   Saving message key
'.processPath
3531  DEBUG [Thread-4] util.PropertyMessageResources -   Saving message key
'.dataSource.destroy
3531  DEBUG [Thread-4] util.PropertyMessageResources -   Saving message key
'.formBean
3531  DEBUG [Thread-4] util.PropertyMessageResources -   Saving message key
'.finalizing
3531  DEBUG [Thread-4] util.PropertyMessageResources -   Saving message key
'.reloading
3531  DEBUG [Thread-4] util.PropertyMessageResources -   Saving message key
'.configIO
3531  DEBUG [Thread-4] util.PropertyMessageResources -   Saving message key
'.actionCreate
3531  WARN  [Thread-4] action.RequestProcessor - Unhandled Exception thrown:
class java.lang.NullPointerException


Can anyone read out anything from this that might help me solve this NPE
problem ?

Thanks !

----- Original Message ----- 
From: "Mahler Thomas" <[EMAIL PROTECTED]>
To: "'OJB Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, June 10, 2003 5:15 PM
Subject: RE: NullPointerException !


> I have only a guess:
>
> >From you stacktrace we can see that there is a problem in the OjbExtent
> constructor:
>     public OjbExtent(Class pClazz, PersistenceBroker pBroker)
>     {
>         clazz = pClazz;
>         Criteria selectExtent = null;
>         Query q = QueryFactory.newQuery(clazz, selectExtent);
>         broker = pBroker;
>         iterator = (RsIterator) broker.getIteratorByQuery(q);
>     }
>
> The only place for a NPE is the last line.
> So the problem seems to be that it was not possible to retieve a broker
> instance.
> This is usually an Indicator for problems with the repository.
>
> Please try to set all log levels to DEBUG and try if you can see more
> details.
> It would also be could to use a servlet container debug environment
> (like WSAD with it's Tomcat testenvironment) to see what's going on...
>
> cheers,
> thomas
>
> > -----Original Message-----
> > From: Lukas Severin [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, June 10, 2003 4:54 PM
> > To: OJB Users List
> > Subject: NullPointerException !
> >
> >
> > Any ideas why I get this NullPointerException ?
> >
> > ----- Original Message ----- 
> > From: "Lukas Severin" <[EMAIL PROTECTED]>
> > To: "OJB Users List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, June 10, 2003 1:05 PM
> > Subject: NullPointerException in OjbExtent
> >
> >
> > > I get the following exception running a JDO query in tomcat
> > (if I run it
> > > standalone it works just fine) :
> > >
> > > java.lang.NullPointerException
> > >         at org.apache.ojb.jdori.sql.OjbExtent.<init>(Unknown Source)
> > >         at
> > org.apache.ojb.jdori.sql.OjbStoreManager.getExtent(Unknown
> > > Source)
> > >         at
> > com.sun.jdori.common.PersistenceManagerImpl.getExtent(Unknown
> > > Source
> > >
> > >         at
> > com.sun.jdori.common.query.QueryImpl.checkCandidates(Unknown
> > > Source)
> > >         at
> > com.sun.jdori.common.query.QueryImpl.execute(Unknown Source)
> > >
> > > My query code :
> > > PersistenceManagerFactory factory = new OjbStorePMF();
> > > PersistenceManager pm = factory.getPersistenceManager();
> > > Query q = null;
> > > Collection c = null;
> > > User user = null;
> > > try {
> > >     String filter = "this.id == " +userId;
> > >     q = pm.newQuery(User.class, filter);
> > >     c = (Collection) q.execute();
> > >     user  = (User) c.iterator().next();
> > > etc ...
> > >
> > >
> > >
> > > My OJB.properties and repository files are in WEB-INF/classes.
> > >
> > > Thanks for suggestions to solve this !
> > >
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to