testing a mail bean

Questions and answers on developing, deploying and using plugins and JavaBeans

testing a mail bean

Postby patrick » Thu Jul 08, 2004 10:15 am

Hello,

I am currently playing with elegants pop3 bean and am having a problem (at least) when debugging my method. All of a sudden CPU usage goes up to 100% and Servoy is "dead". In the log I have this entry:

java.lang.RuntimeException: Terminated current scriptjava.lang.RuntimeException: Terminated current scriptjava.lang.RuntimeException: Terminated current script
at com.servoy.j2db.develop.debugger.n$f.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at com.servoy.j2db.develop.debugger.n.a(Unknown Source)
at com.servoy.j2db.develop.debugger.n.handleBreakpointHit(Unknown Source)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2179)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:94)
at com.servoy.j2db.scripting.e.call(Unknown Source)
at com.servoy.j2db.develop.debugger.n.a(Unknown Source)
at com.servoy.j2db.develop.debugger.n.access$14(Unknown Source)
at com.servoy.j2db.develop.debugger.n$3.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
java.lang.RuntimeException: Terminated current scriptjava.lang.RuntimeException: Terminated current script

Any ideas?
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Postby jcompagner » Fri Jul 09, 2004 1:17 pm

did you hit a breakpoint?
And then terminate the script? Because that is what youre debug info says.

I can't tell anything more of youre script. For that i need to see the solution/code how you use the bean ect.

But there are a lot of other reports here of mail/pop plugin that are working ok.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Postby patrick » Fri Jul 09, 2004 1:40 pm

I didn't have any breakpoints or hit stop. I know that several people have played with email beans, but nobody tried to retrieve mail. This is, however, a task I have to solve. And since I am stuck here, I suppose I will need your help.:) I simply don't have the debugging possibilities/knowledge to figure out the problem:

Retrieving mail is successful until a certain point (message x of y). From that point on the bean returns no results (message_id is null etc.). A few (null-)mails later I come to that point where the CPU fires up to 100% and Servoy gets stuck.

I can't tell if it is a mail server problem, a bean problem, a Servoy problem or my method problem.

Would you have the time to take a look at this issue if I construct a little sample application? I really don't get any further and the guys from elegant (bean supplier) don't know anything about this problem either.
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 7 guests