narendrabtechcse / robotframework-javatools

Automatically exported from code.google.com/p/robotframework-javatools
1 stars 0 forks source link

Exception in container.toString #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I run my cases using all libs of robot-javaws-demo-2009-09-07. Exception in
test log like this:

-KEYWORD: swingLib2.Insert Into Text Field ${TEXTFIELD_NAME}, ${VALUE}  
Start / End / Elapsed: 20091029 11:39:53.890 / 20091029 11:39:53.967 /
00:00:00.077 
11:39:53.890 TRACE Arguments: [ GUI_PROFILE_VOIPMGC_TXT_NAME | RobotTest ] 
11:39:53.967 FAIL TestFailedException: caused by:
java.lang.RuntimeException: Exception in container.toString() 
11:39:53.967 DEBUG java.lang.RuntimeException: Exception in
container.toString()
        at
org.robotframework.javalib.library.AnnotationLibrary.retrieveInnerException(Anno
tationLibrary.java:93)
        at
org.robotframework.javalib.library.AnnotationLibrary.runKeyword(AnnotationLibrar
y.java:75)
        at
org.robotframework.swing.SwingLibrary.runKeyword(SwingLibrary.java:49)
        at
org.robotframework.jvmconnector.server.SimpleRobotRmiService.executeKeyword(Simp
leRobotRmiService.java:66)
        at
org.robotframework.jvmconnector.server.SimpleRobotRmiService.runKeyword(SimpleRo
botRmiService.java:57)
        at
org.robotframework.jvmconnector.server.CloseableRobotRmiService.runKeyword(Close
ableRobotRmiService.java:41)
        at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils
.java:310)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(Ref
lectiveMethodInvocation.java:182)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveM
ethodInvocation.java:149)
        at
org.springframework.remoting.support.RemoteInvocationTraceInterceptor.invoke(Rem
oteInvocationTraceInterceptor.java:70)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveM
ethodInvocation.java:171)
        at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.j
ava:204)
        at $Proxy1.runKeyword(Unknown Source)
        at
org.springframework.remoting.support.RemoteInvocation.invoke(RemoteInvocation.ja
va:205)
        at
org.springframework.remoting.support.DefaultRemoteInvocationExecutor.invoke(Defa
ultRemoteInvocationExecutor.java:38)
        at
org.springframework.remoting.support.RemoteInvocationBasedExporter.invoke(Remote
InvocationBasedExporter.java:78)
        at
org.springframework.remoting.rmi.RmiBasedExporter.invoke(RmiBasedExporter.java:7
2)
        at
org.springframework.remoting.rmi.RmiInvocationWrapper.invoke(RmiInvocationWrappe
r.java:72)
        at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
        at sun.rmi.transport.Transport$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
        at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown
Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: org.netbeans.jemmy.JemmyException: Exception in container.toString()
        at org.netbeans.jemmy.QueueTool.invokeAndWait(QueueTool.java:414)
        at org.netbeans.jemmy.QueueTool.invokeSmoothly(QueueTool.java:344)
        at
org.netbeans.jemmy.ComponentSearcher.containerToString(ComponentSearcher.java:11
6)
        at
org.netbeans.jemmy.ComponentSearcher.findComponent(ComponentSearcher.java:160)
        at
org.netbeans.jemmy.operators.ContainerOperator$1.actionProduced(ContainerOperato
r.java:285)
        at org.netbeans.jemmy.Waiter.checkActionProduced(Waiter.java:249)
        at org.netbeans.jemmy.Waiter.waitAction(Waiter.java:142)
        at
org.netbeans.jemmy.operators.ContainerOperator.waitSubComponent(ContainerOperato
r.java:298)
        at
org.netbeans.jemmy.operators.JTextComponentOperator.<init>(JTextComponentOperato
r.java:149)
        at
org.netbeans.jemmy.operators.JTextComponentOperator.<init>(JTextComponentOperato
r.java:161)
        at
org.robotframework.swing.textcomponent.TextComponentOperator.<init>(TextComponen
tOperator.java:29)
        at
org.robotframework.swing.textcomponent.TextComponentOperatorFactory.createOperat
orByName(TextComponentOperatorFactory.java:32)
        at
org.robotframework.swing.textcomponent.TextComponentOperatorFactory.createOperat
orByName(TextComponentOperatorFactory.java:24)
        at
org.robotframework.swing.factory.IdentifierParsingOperatorFactory.nameArgument(I
dentifierParsingOperatorFactory.java:33)
        at
org.robotframework.swing.arguments.ArgumentParser.parseArgument(ArgumentParser.j
ava:35)
        at
org.robotframework.swing.factory.DefaultContextVerifyingOperatorFactory.parseArg
ument(DefaultContextVerifyingOperatorFactory.java:27)
        at
org.robotframework.swing.factory.IdentifierParsingOperatorFactory.createOperator
(IdentifierParsingOperatorFactory.java:25)
        at
org.robotframework.swing.keyword.textcomponent.TextComponentKeywords.createOpera
tor(TextComponentKeywords.java:77)
        at
org.robotframework.swing.keyword.textcomponent.TextComponentKeywords.insertIntoT
extField(TextComponentKeywords.java:35)
        at
org.robotframework.javalib.reflection.KeywordInvoker.invoke(KeywordInvoker.java:
49)
        at
org.robotframework.javalib.beans.annotation.AnnotationKeywordExtractor$1.execute
(AnnotationKeywordExtractor.java:55)
        at
org.robotframework.javalib.library.KeywordFactoryBasedLibrary.runKeyword(Keyword
FactoryBasedLibrary.java:37)
        at
org.robotframework.javalib.library.AnnotationLibrary.runKeyword(AnnotationLibrar
y.java:73)
        ... 35 more 

I tried SwingLibrary version 0.14 and 1.0, but they didn't work at all.

Java: 1.6.0_13
OS: Win2003 Standard Edition

Thanks and Regards,
Wei

Original issue reported on code.google.com by dblue.j...@gmail.com on 29 Oct 2009 at 5:04

GoogleCodeExporter commented 9 years ago
It seems [1] that the text component 'GUI_PROFILE_VOIPMGC_TXT_NAME' is not 
found.
Could you send/attach the robot test that reproduces this behavior to this 
issue please?

[1]:
org.netbeans.jemmy.ComponentSearcher.findComponent(ComponentSearcher.java:160)
        at
org.netbeans.jemmy.operators.ContainerOperator$1.actionProduced(ContainerOperato
r.java:285)
        at org.netbeans.jemmy.Waiter.checkActionProduced(Waiter.java:249)
        at org.netbeans.jemmy.Waiter.waitAction(Waiter.java:142)
        at

Original comment by hhhul...@gmail.com on 9 Dec 2009 at 11:14

GoogleCodeExporter commented 9 years ago
As there is no more info provided, I'll close this issue. In case we get more 
info,
it can be reopened.

Original comment by jpran...@gmail.com on 13 Jan 2010 at 11:26