SPONSORS:






User Tag List

Results 1 to 10 of 10
  1. #1
    Senior Member
    Join Date
    Nov 2001
    Location
    UK, Oxford
    Posts
    150
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Segue exception...?

    Anyone getting the following exception in their dos prompt when running a bunch of tests:
    the test in question was trying to set a value in a textfield. I haven't investigated this much yet. Will do more tomorrow.

    ------------------
    Tempus fugit, Carpe Diem, et al

  2. #2
    Member
    Join Date
    Sep 2002
    Location
    Foster City, CA, USA
    Posts
    55
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Segue exception...?

    Yes I have. Segue support didn't really give me a clear answer after some emails exchanging back and forth, and they seem to be blaming on our application. But why then that manual testing doesn't have this problem.

    Seems like the exception only occurs when you try to ask Silk to set text to a textfield that can hold the maximum number of characters that is less than what you are trying to set. For example, in the Java app we are testing, when we try to set 17 characters to a textfield that accepts only 15, it takes it in, but the log in our app would post the exception, as listed below. Also we hear 2 "ding" coming from the pc as it was trying to set it twice.

    ----------------------java.lang.IllegalArgumentException: bad position: 17

    at javax.swing.text.JTextComponent.setCaretPosition(U nknown Source)

    at segue.jfc11.JFCSvcGroupTF.replaceSel(JFCSvcGroupTF .java:282)

    at segue.jfc.JFCSvcGroupTF.replaceSel(JFCSvcGroupTF.j ava:144)

    at segue.ekpro.EkProTF.dispatch(EkProTF.java:109)

    at segue.io.EkPro.dispatchRequest(EkPro.java:1222)

    at segue.io.EkPro.access$0(EkPro.java:1045)

    at segue.io.EkPro$1.run(EkPro.java:503)

    at java.awt.event.InvocationEvent.dispatch(Unknown Source)

    at java.awt.EventQueue.dispatchEvent(Unknown Source)

    at java.awt.EventDispatchThread.pumpOneEventForHierar chy(Unknown Source)

    at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)

    at java.awt.Dialog.show(Unknown Source)

    at java.awt.Component.show(Unknown Source)

    at java.awt.Component.setVisible(Unknown Source)

    at com.apldbio.foundation.udc.gui.common.WizardMenu$2 .actionPerformed(Unknown Source)

    at javax.swing.AbstractButton.fireActionPerformed(Unk nown Source)

    at javax.swing.AbstractButton$ForwardActionEvents.act ionPerformed(Unknown Source)

    at javax.swing.DefaultButtonModel.fireActionPerformed (Unknown Source)

    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

    at javax.swing.AbstractButton.doClick(Unknown Source)

    at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputH andler.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(U nknown Source)

    at java.awt.LightweightDispatcher.dispatchEvent(Unkno wn Source)

    at java.awt.Container.dispatchEventImpl(Unknown Source)

    at java.awt.Window.dispatchEventImpl(Unknown Source)

    at java.awt.Component.dispatchEvent(Unknown Source)

    at java.awt.EventQueue.dispatchEvent(Unknown Source)

    at java.awt.EventDispatchThread.pumpOneEventForHierar chy(Unknown Source)

    at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)

    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

    at java.awt.EventDispatchThread.run(Unknown Source)


  3. #3
    Senior Member
    Join Date
    Nov 2001
    Location
    UK, Oxford
    Posts
    150
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Segue exception...?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by kchan:


    Seems like the exception only occurs when you try to ask Silk to set text to a textfield that can hold the maximum number of characters that is less than what you are trying to set.
    <HR></BLOCKQUOTE>
    Interesting...
    Our textfield does not have such a restriction, and the exception happens randomly.
    I'll try some more tests see if I can replicate it consistently.



    ------------------
    Tempus fugit, Carpe Diem, et al

  4. #4
    Senior Member
    Join Date
    Nov 2001
    Location
    UK, Oxford
    Posts
    150
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Segue exception...?

    OK, we can't replicate this consistently. It happens occasionally. We've had it three times in that last two days.
    This did not happen under 5.5. ever.
    Thoughts...?

    ------------------
    Tempus fugit, Carpe Diem, et al

  5. #5
    Senior Member
    Join Date
    Jun 2000
    Location
    Chicago, IL USA
    Posts
    383
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Segue exception...?

    Are you sure that you got rid of all traces of SilkTest 5.5 when you upgraded to 6.0 ?

    I have seen similar exceptions, but only when I forgot to apply a service pack to a remote agent or something bad like that.

    I hope 6.0 did not break the Java extension. I was just getting ready to try it out.

    ------------------
    Rob Kapteyn
    Rob Kapteyn, CSTE
    RobKapteyn@gmail.com

  6. #6
    Senior Member
    Join Date
    Nov 2001
    Location
    UK, Oxford
    Posts
    150
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Segue exception...?

    As far as I know we did.
    I uninstalled Silktest completely and then manually deleted anything remaining before installing 6.0.
    Just now, I rechecked the timestamps on the Silktest_Java2.jar in the extend directories and they are all up to date.
    I hope I have done something stupid, rather that than the other.


    ------------------
    Tempus fugit, Carpe Diem, et al

  7. #7
    Member
    Join Date
    Sep 2002
    Location
    Foster City, CA, USA
    Posts
    55
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Segue exception...?

    John,
    Could you post the lines where you think the problem occurs? Maybe you were trying to set some illegal characters? I had to run the script in debug mode line by line to isolate the problem.

  8. #8
    Senior Member
    Join Date
    Nov 2001
    Location
    UK, Oxford
    Posts
    150
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Segue exception...?

    the line innercomp.SetText(value) is where I think the problem occurred. 'value' was set to "example1".
    These characters seem fine to me. The problem is random so I cannot really test this further.

    ------------------


    [This message has been edited by johntest (edited 11-15-2002).]
    Tempus fugit, Carpe Diem, et al

  9. #9
    Member
    Join Date
    Sep 2002
    Location
    Foster City, CA, USA
    Posts
    55
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Segue exception...?

    Yea, that looks fine to me too. Could you try setting text one character at a time and see happens? ...SetText("e"), if it's ok, then SetText("ex"), and so on. That might narrow down the problem.

  10. #10
    Senior Member
    Join Date
    Nov 2001
    Location
    UK, Oxford
    Posts
    150
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Segue exception...?

    We have tried this, but everything worked fine. Today, again we had the same stack trace when trying to write to a JTextArea (ST sees these as JavaJFCTextfields) but could not reproduce the problem. It is probably a combination of factors. When we get more time we will try and pin down the problem more.

    ------------------
    Tempus fugit, Carpe Diem, et al

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 05:52 AM.

Copyright BetaSoft Inc.