Re: i can't get this exception...
Per Nyfelt <[email protected]> Thu, 30 Dec 2004 20:24:04 +0100
| Newsgroups | gmane.comp.java.ozone.user |
|---|---|
| Organization | Resourcing Networks |
| Message-ID | <[email protected]> |
I'm not sure but it might be that PostImpl does not have a default constructor (but you are trying to invoke one). If this is so then either use another createObject method passing the appropriate parameters or create a default constructor. Best regards, Per torsdagen den 30 december 2004 04.03 skrev Nicolas Barrera: > Hi again..., i m actually trying to download the source code so i > could try to understand the error a bit more and ask a bit less... but > up to now i 'm still asking for help and 'd be extremely grateful if > somebody gives me a hand with this..., > > i 'm still trying to figure out the app of my last post..., and having > solved the server classpath problems (coping .jar to the > $OZONE_HOME/lib directory) > > the thing goes simply... i start the server..., launch the app (entry > point class) and it explodes in pieces... like this: > > Exception in thread "main" org.ozoneDB.OzoneInternalException: > java.lang.InstantiationException: PostImpl > at org.ozoneDB.ExternalDatabase.sendCommand(Unknown Source) > at org.ozoneDB.ExternalDatabase.sendCommand(Unknown Source) > at org.ozoneDB.ExternalDatabase.createObject(Unknown Source) > at org.ozoneDB.AbstractDatabase.createObject(Unknown Source) > at TestOz.main(TestOz.java:26) > Caused by: java.lang.InstantiationException: PostImpl > at java.lang.Class.newInstance0(Class.java:293) > at java.lang.Class.newInstance(Class.java:261) > at org.ozoneDB.core.AbstractObjectContainer.createTarget(Unknown Source) > at org.ozoneDB.core.Transaction.createObject(Unknown Source) > at org.ozoneDB.core.DbRemote.DbCreateObj.perform(Unknown Source) > at org.ozoneDB.core.Transaction.performCommand(Unknown Source) > at org.ozoneDB.core.TransactionManager.performCommand(Unknown Source) > at org.ozoneDB.core.TransactionManager.completeTransaction(Unknown Source) > at org.ozoneDB.core.TransactionManager.handleCommand(Unknown Source) > at org.ozoneDB.core.TransactionManager.handleCommand(Unknown Source) > at org.ozoneDB.core.InvokeServer.handleClientEvent(Unknown Source) > at org.ozoneDB.DxLib.net.DxMultiServerClient.run(Unknown Source) > at java.lang.Thread.run(Thread.java:534) > > > All this generated "at TestOz.main(TestOz.java:26)" which is: > Post post = (Post) (db.createObject(PostImpl.class.getName(), 0, > "postNro: "+ nro)); > > i 'd appreciatte somebody translate to me that exception... > thanks in advance and good night. > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Ozone-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ozone-users ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt