Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / CORBA / November 2007

Tip: Looking for answers? Try searching our database.

NullPointerException during ORB_init

Thread view: 
Mark Wales - 31 Oct 2007 15:58 GMT
I've spent ages searching on Google and several newsgroups for an
answer but sadly with no success.

I get an NPE when I try to create my ORB - I'm pretty sure its going
to be down to some config error but the exception isn't helpful at
all. Here is some logging from the app:

14:37:52,625 [MKVxjThread] ERROR MKVxj.AppTemplate - Application
initialise caused exception, error: null, application will now exit..
java.lang.NullPointerException
       at
com.iona.corba.atli_protocol.ip.PerORBState.get_tcp_settings(Unknown
Source)
       at
com.iona.corba.atli_protocol.ip.PerORBState.load_configuration(Unknown
Source)
       at com.iona.corba.atli_protocol.ip.PerORBState.<init>(Unknown
Source)
       at com.iona.corba.iiop.IIOPPerORBState.<init>(Unknown Source)
       at com.iona.corba.iiop.IIOPPlugIn.ORB_init(Unknown Source)
       at com.iona.corba.art.artimpl.ORBDelegate.init_plugin(Unknown
Source)
       at
com.iona.corba.art.artimpl.ORBDelegate.set_parameters(Unknown Source)
       at com.iona.corba.art.artimpl.ORBImpl.set_parameters(Unknown
Source)
       at org.omg.CORBA.ORB.init(ORB.java:337)

I'm using Orbix 6.1 on Linux.

Has anyone seen this before? Or have any ideas of where/how I could
find out more about why the exception is occurring?

Thanks all,

Mark Wales
Mark Wales - 31 Oct 2007 16:02 GMT
Perhaps I also ought to add that if I get a vanilla ORB, i.e.
ORB.init() I see no exceptions. But when calling ORB.init(args, prop)
where args is null and prop contains the properties (including domain
dirs etc) it fails.

Thanks,

Mark Wales

> I've spent ages searching on Google and several newsgroups for an
> answer but sadly with no success.
[quoted text clipped - 32 lines]
>
> Mark Wales
apm35@student.open.ac.uk - 07 Nov 2007 08:38 GMT
> Perhaps I also ought to add that if I get a vanilla ORB, i.e.
> ORB.init() I see no exceptions. But when calling ORB.init(args, prop)
> where args is null and prop contains the properties (including domain
> dirs etc) it fails.

> > I get an NPE when I try to create my ORB - I'm pretty sure its going
> > to be down to some config error but the exception isn't helpful at
[quoted text clipped - 6 lines]
> > com.iona.corba.atli_protocol.ip.PerORBState.get_tcp_settings(Unknown
> > Source)

> > I'm using Orbix 6.1 on Linux.
>
> > Has anyone seen this before? Or have any ideas of where/how I could
> > find out more about why the exception is occurring?

I've not seen it before but a thought occurs (you may have tried this
already). How about passing an empty vector instead of null? Hopefully
that would make the problem go away.

-Andrew Marlow
dsmoniker - 08 Nov 2007 04:17 GMT
On Nov 7, 3:38 am, ap...@student.open.ac.uk wrote:

> > Perhaps I also ought to add that if I get a vanilla ORB, i.e.
> > ORB.init() I see no exceptions. But when calling ORB.init(args, prop)
[quoted text clipped - 22 lines]
>
> - Show quoted text -

It sounds like a configuration problem. Can you make sure you have
sourced your Orbix 6.1 domain environment script (this would have been
created by the itconfigure utility when you first created your
domain). If you run 'set | grep IT' you should see some IT_
environment variables.

Hope this helps,
/Dave
Yakov Gerlovin - 09 Nov 2007 12:27 GMT
>  But when calling ORB.init(args, prop)
>  where args is null and prop contains the properties (including domain
>  dirs etc) it fails.

Have you tried passing null for prop parameter?
Please post the properties that cause NPE.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.