@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4



Comments:

<0> on jrun
<1> what is a "logged object?"
<0> jottinger...yes my custom logging component
<1> you read a "logged object" from JMS?
<0> my jrun jms configuration is set to file based persistance
<1> I don't quite understand what you're asking or describing
<0> well....i send an objectmessage to jrun jms queue
<0> and on other end read it frm an MDB
<1> okay
<0> the problem appeares here
<1> that should be fairly easy
<1> is teh object serializable?
<0> indeed it is
<1> okay
<0> otherwise i wouldnt have successfully written it
<1> is it being stored in the queue properly?



<0> to queue
<0> yea
<1> so what's exactly throwing the error?
<0> Stackover flow
<1> right, I got that, but what operation?
<0> i did some debugging
<0> and found it right happens where i wrote reading getting my object inside ObjectMessage
<0> statement
<1> so it's ObjectMessage.getObject() or whichever the call is?
<0> no, infact
<0> it reads the object
<0> but when i cast back this object to my custom cl***
<0> it throws the error
<1> Forgive my not remembering the ObjectMessage interface perfectly... but you're saying Serializable foo=objectMessage.getSerializable() works
<1> but then MyFoo myFoo=(MyFoo) foo; // throws a stack overflow?
<0> u r rite...but listen
<0> the cast upto this level works fine
<0> but my actual object is a wrapper cl*** that extends myFoo
<0> so when i again cast it to that cl*** stackover flow is thrown
<2> sounds odd
<1> maybe you'd better show just a bit of code
<0> ok
<1> Rob_uknow: right, sounds very odd
<0> i will show the code...but listen
<0> i have different events in my system
<0> there is a base cl*** for each event
<0> and each even extends this base cl***
<2> recursion?
<0> yes
<1> uhhhh
<0> i have a logobject cl***
<2> I doubt we can solve your problem based on the current information
<0> ok let me rephrase it with example
<1> yes, please
<0> there is a cl*** A, which holds cl*** B in a field. cl*** B is a base cl*** for cl*** C, cl*** D and cl*** E
<1> right
<0> i send cl*** A to queue
<0> now i read cl*** A from queue
<1> right
<0> i get the cl*** B
<0> its fine till now
<0> but when i cast cl*** B to C, D or E
<0> stackoverflow error occurs
<1> so what does B.getCl***().getName() tell you?
<0> it tells me right name
<0> i first check which cl*** it is
<0> and then cast it back to approipate cl***
<0> appropiately used Serializable interface in cl***es
<1> are you sure the cl***path hierarchy is right?
<0> yes it is
<0> no cl*** definition is ambigious
<0> do u see there any bug apparently?
<1> the cl*** defs are coming from the EJB level?
<0> no
<1> xpx: cl***loader is the most likely culprit
<0> tho i am using a single library that is placed in server cl***path and loaded frm ther
<0> not in the ejb jar
<1> yeah, but the cl***loader will still be different
<1> hrm, or will it
<1> very odd



<0> this was working fine when i used Oracle as persistance store for JRUN-JMS
<1> I don't have much experience with JRun - last time I used it was a LOOOOOOONG time ago
<1> why not use oracle, then?
<0> oracle has performance issues
<0> messages are being recieved very slowly on MDB
<0> perhaps i should claim JRun's implementation for oracle or other DBs
<0> for JMS
<0> what looks u odd?
<2> rhowe
<3> are there any clever ways to print execution time in java ?
<2> log?
<3> I want to measure the execution time of 3 different algorithms in the same program
<2> System.currentTimeMillis()
<3> ty
<2> remember the time before execution and after
<2> subtract and you know how long it took
<2> or print a line to a log file with date+time
<2> or use a profiler
<3> what is a profiler
<2> its a tool to profile your code
<2> measure time, memory usage, thread count etc etc
<2> its for optimizing your app
<2> or find performance problems
<3> ah, sounds interesting
<3> any recommendable profilers for beginners such as myself ? ;-)
<2> yourkit, jprofiler, jprobe
<2> oh its not for beginners
<3> "beginners" is a relative term ;P
<3> i'll just see how it goes
<3> thanks
<4> beginners don't need profilers.
<3> have to start somewhere
<4> I was well over two years into java coding before I used a profiler the first time.
<4> a profiler used without wisdom just leads to overoptimized code
<3> ok
<5> Hey does anyone know how to call a different cl***'s method
<5> Like I have two objects and I have a compareTo method in each
<5> I have if (theHand[i].compareTo(c) == 0) {} But I need to make sure that it does not call this object but a different object's compareTo method
<6> morning girls
<7> hello
<7> i need some help with an xml doc i'm trying to transform...anyone got any expertise in this area?
<2> xls?
<7> yeah
<8> tHAT'S A PRETTY BIG AREA.
<8> oops.
<8> Only a Caps Lock..surely you've seen one.
<8> And I'm laying on my back in bed trying to use a laptop....
<9> Aye. I heard a lot of people rebind it as another ctrl key.
<8> Unfortunately it's a Windows laptop. Haven't had the time to do it up properlly.
<9> I'm using one now, moved it downstairs to stop myself from snoozing.
<7> any chance i could paste my 5 liner snippet of xml just to explain my quandry
<9> /topic
<10> Hi
<10> What would cause a NoCl***DefFoundError when running a java application?
<10> I cannot run even those that I could run elsewhere.
<8> xal: means what it says
<4> Xal: Ther eis a cl*** that is not on your cl***path, either form within your project, or a library you have failed to provide.
<11> give an actual example of a cmd that does that?
<10> okay
<10> What you want a screenshot?
<11> no what do you type on the cmd line that causes that
<11> one line a single example
<10> java gradeTotal
<8> How about just "which cl*** isn't found"?
<11> and the message that causes
<9> Xal: echo %CL***PATH%
<8> homework
<10> Not really
<10> This is for myself
<11> and the message that causes
<11> i.e. which cl*** it cannot find
<11> Xal well ?
<10> Hmm this is odd.. The cl***path was set to c:\Program Files\Java\jre1.5.0_04\lib\ext\QTJava.zip


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #java
or
Go to some related logs:

#mirc
inncent teens
#networking
#linux
#AllNiteCafe
#linux
#teens
#c++
#linuxhelp
#linuxhelp



Home  |  disclaimer  |  contact  |  submit quotes