 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
SH Guest
|
Posted: Fri Feb 04, 2005 10:38 pm Post subject: what is the cause of "OutOfMemoryError vmcid: SUN minor co |
|
|
Hello.
when I call root_ncRef.resolve(nc);// see listing 1.
I got the following exception:
" systemException : org.omg.CORBA.INTERNAL:
com.sun.corba.se.internal.core.NoSuchServiceContext: InputStream constructor
threw exception java.lang.OutOfMemoryError vmcid: SUN minor code: 234
completed: Maybe"
which traces back to
'resolve' IN ' _NamingContextExtStub.java'
then _invoke IN 'ObjectImpl.java'
then _get_delegate().invoke IN 'objectImpl.java'
then it goes to InputStream.java
is this exception caused by the fact that the servicecontext not found? but
then should i get something like this:
"IDL:omg.org/CosNaming/NamingContext/NotFound:1.0? what happens here? your
comments are greatly appreciated.
this is the piece of code: (listing 1)
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args, null);//orb is a
default java IDL impl.
org.omg.CORBA.Object co_obj = orb.string_to_object(IOR);
NamingContextExt root_ncRef = NamingContextExtHelper.narrow(co_obj);//this
should be my initial naming context.
NameComponent nc[] = {new NameComponent("SomeID", "")};
org.omg.CORBA.Object co_obj2 = root_ncRef.resolve(nc);
........
thanks
SH.
|
|
| Back to top |
|
 |
Kevin Dean [TeamB] Guest
|
Posted: Sat Feb 05, 2005 1:35 am Post subject: Re: what is the cause of "OutOfMemoryError vmcid: SUN mino |
|
|
SH wrote:
| Quote: | when I call root_ncRef.resolve(nc);// see listing 1.
I got the following exception:
" systemException : org.omg.CORBA.INTERNAL:
com.sun.corba.se.internal.core.NoSuchServiceContext: InputStream
constructor threw exception java.lang.OutOfMemoryError vmcid: SUN
minor code: 234 completed: Maybe"
which traces back to
'resolve' IN ' _NamingContextExtStub.java'
then _invoke IN 'ObjectImpl.java'
then _get_delegate().invoke IN 'objectImpl.java'
then it goes to InputStream.java
is this exception caused by the fact that the servicecontext not
found?
|
OutOfMemoryError is exactly what it says it is: there is not enough
memory. Does this occur immediately on startup? If so, increase the
maximum memory with the VM parameter -Xmx memory parameter. If not,
you have a memory leak and should use something like Optimizeit to find
it.
--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/
Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html
|
|
| Back to top |
|
 |
SH Guest
|
Posted: Mon Feb 07, 2005 3:26 pm Post subject: Re: what is the cause of "OutOfMemoryError vmcid: SUN mino |
|
|
| Quote: | OutOfMemoryError is exactly what it says it is: there is not enough
memory. Does this occur immediately on startup? If so, increase the
maximum memory with the VM parameter -Xmx memory parameter. If not,
you have a memory leak and should use something like Optimizeit to find
it.
--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
|
Kevin,
thanks for your reply.
This does happen immediately on startup. I tried it :-Xmx512m this morning,
and I still got the same error message. (I have win2000, I max out on 516
MB, and no other apps are running). what went wrong here? 512m is quite a
lot for object references already.
thx
SH
|
|
| Back to top |
|
 |
Kevin Dean [TeamB] Guest
|
Posted: Mon Feb 07, 2005 5:33 pm Post subject: Re: what is the cause of "OutOfMemoryError vmcid: SUN mino |
|
|
SH wrote:
| Quote: | This does happen immediately on startup. I tried it :-Xmx512m this
morning, and I still got the same error message. (I have win2000, I
max out on 516 MB, and no other apps are running). what went wrong
here? 512m is quite a lot for object references already.
|
Agreed, it's a lot, but try increasing it to 1024m and see what
happens. If you still blow up, it's possible that there's an endless
loop on startup that is consuming memory (don't worry if the 1024m
exceeds your physical RAM as it will page to disk if necessary).
--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/
Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html
|
|
| Back to top |
|
 |
SH Guest
|
Posted: Mon Feb 07, 2005 6:38 pm Post subject: Re: what is the cause of "OutOfMemoryError vmcid: SUN mino |
|
|
| Quote: | Agreed, it's a lot, but try increasing it to 1024m and see what
happens. If you still blow up, it's possible that there's an endless
loop on startup that is consuming memory (don't worry if the 1024m
exceeds your physical RAM as it will page to disk if necessary).
Kevin, |
you were right on memory error. With your suggestion, I got rid of
'outofmemoryError'. now I got this:
systemException : org.omg.CORBA.INTERNAL:
com.sun.corba.se.internal.core.NoSuchServiceContext: InputStream constructor
threw exception org.omg.CORBA .MARSHAL: underflow called with grow strategy
vmcid: SUN minor code: 202 completed: No vmcid: SUN minor code: 234
completed: Maybe.
I did the same call in c++, and it worked out fine. it seems my
orb(default java IDL impl) is having problem with marshalling pararmeters.
thanks again
SH.
|
|
| Back to top |
|
 |
Kevin Dean [TeamB] Guest
|
Posted: Mon Feb 07, 2005 9:56 pm Post subject: Re: what is the cause of "OutOfMemoryError vmcid: SUN mino |
|
|
SH wrote:
| Quote: | you were right on memory error. With your suggestion, I got rid of
'outofmemoryError'. now I got this:
systemException : org.omg.CORBA.INTERNAL:
com.sun.corba.se.internal.core.NoSuchServiceContext: InputStream
constructor threw exception org.omg.CORBA .MARSHAL: underflow called
with grow strategy vmcid: SUN minor code: 202 completed: No vmcid:
SUN minor code: 234 completed: Maybe.
|
I'm afraid that at this point I'm unable to help; your problem is, I
think, too detailed for the newsgroups. Your best bet would be to open
a case with Borland Support directly.
--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/
Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html
|
|
| Back to top |
|
 |
SH Guest
|
Posted: Fri Feb 11, 2005 10:34 pm Post subject: Re: what is the cause of "OutOfMemoryError vmcid: SUN mino |
|
|
After monitoring the tcp/ip traffic, it seems like the JDK Orb isn't
understanding a termination in the data stream. When the resolve is called,
i notice the 'correct' data have received. But the JDK Orb is STILL looking
for some sign of termination.(which explains why i need to increase the vm
memory, i think). I don't know what signal the JDK orb is looking for, but
after about 15 seconds of trying, systemException is thrown.
since this involves sun's Jdk, and on the server side, it uses ORBExpress
ORB, and MICO name server. i am not sure how keen Borland(by opening a case)
is going to help me. so, my question here to everyone is :
between OrbExpress ORB and MICO name server, who fault is it, for not
passing out the right termination that JDK can understand.?
or is there an interopability problem in between iiop version 1.0, 1.1 and
1.2(it seems ORBExpress ORB uses 1.0, MICO uses 1.2, and sun's jdk uses
1.1)?
any help or comments are appreciated.
SH.
"Kevin Dean [TeamB]" <NkOdSePaAnM (AT) datadevelopment (DOT) com> wrote
| Quote: | SH wrote:
you were right on memory error. With your suggestion, I got rid of
'outofmemoryError'. now I got this:
systemException : org.omg.CORBA.INTERNAL:
com.sun.corba.se.internal.core.NoSuchServiceContext: InputStream
constructor threw exception org.omg.CORBA .MARSHAL: underflow called
with grow strategy vmcid: SUN minor code: 202 completed: No vmcid:
SUN minor code: 234 completed: Maybe.
I'm afraid that at this point I'm unable to help; your problem is, I
think, too detailed for the newsgroups. Your best bet would be to open
a case with Borland Support directly.
--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/
Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html
|
|
|
| Back to top |
|
 |
David Orriss, Jr. [TeamB] Guest
|
|
| Back to top |
|
 |
SH Guest
|
Posted: Sat Feb 19, 2005 3:56 am Post subject: Re: what is the cause of "OutOfMemoryError vmcid: SUN mino |
|
|
| Quote: | I think you just pegged it. My recollection about IIOP between
platforms is they all need to use the same IIOP version - even in the
newer ORBs that use POAs. Mixing them can lead problems and is
hit-or-miss at best.
|
well, just want to put an end to this story. i abandoned sun's orb, and went
with orbexpress' orb. everything works perfectly......happy end :-)
thanks for your comment.
SH
|
|
| Back to top |
|
 |
David Orriss, Jr. [TeamB] Guest
|
|
| Back to top |
|
 |
SH Guest
|
Posted: Wed Feb 23, 2005 10:01 pm Post subject: Re: what is the cause of "OutOfMemoryError vmcid: SUN mino |
|
|
also, your visibroker works fine as well. instead of going with orbexpress,
we probably upgrade our 05 developer version to enterprise. since. we are on
the subject, i would like to ask you couple question on enterprise trial
version.
To configure an ORB for use with Jbuilder enterprise. I did it through the
'traditional' way (Project->Project Properties->Pahts->required
libraries->vbjorb.jar). but it seems to me the 'right' way to do it is going
through enterprise setup(highlight corba, visibroker on drop down, and
edit). on the edit configuration page, path for orb tools is the directory
that contains the osagent.exe file. the library for projects is the Borland
enterprise server 5.2.1 client library, which i can not find. did i do
anything wrong, or something missing in trial version?
also, what is the difference between the 'traditional' way to configure the
Orb and the enterprise setup.
as always, any comments are appreciated.
thanks
SH.
"David Orriss, Jr. [TeamB]" <jbuilder_man (AT) davenet (DOT) net> wrote
|
|
| Back to top |
|
 |
Kevin Dean [TeamB] Guest
|
Posted: Thu Feb 24, 2005 1:27 am Post subject: Re: what is the cause of "OutOfMemoryError vmcid: SUN mino |
|
|
SH wrote:
| Quote: | also, your visibroker works fine as well. instead of going with
orbexpress, we probably upgrade our 05 developer version to
enterprise. since. we are on the subject, i would like to ask you
couple question on enterprise trial version.
To configure an ORB for use with Jbuilder enterprise. I did it
through the 'traditional' way (Project->Project
Properties->Pahts->required libraries->vbjorb.jar). but it seems to
me the 'right' way to do it is going through enterprise
setup(highlight corba, visibroker on drop down, and edit). on the
edit configuration page, path for orb tools is the directory that
contains the osagent.exe file. the library for projects is the
Borland enterprise server 5.2.1 client library, which i can not find.
did i do anything wrong, or something missing in trial version?
also, what is the difference between the 'traditional' way to
configure the Orb and the enterprise setup.
|
Your best bet is to go through "Enterprise | Configure servers..." and
configure BES 5.2.1. That will automatically create the VisiBroker ORB
configuration for you.
--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/
NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html
Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|