Skip to main content

FAQ: How Do I Contribute?

10 replies [Last post]
terrencebarr
Offline
Joined: 2004-03-04

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
allenwqf
Offline
Joined: 2007-08-02

Hi Alexey
When I test,there hava some error like this:
--> Unexpected exception:
javax.help.InvalidHelpSetContextException: Wrong context
at javax.help.DefaultHelpModel.setCurrentID(DefaultHelpModel.java:122)
at javax.help.DefaultHelpModel.setCurrentID(DefaultHelpModel.java:95)
at javax.help.JHelpContentViewer.setCurrentID(JHelpContentViewer.java:159)
at com.sun.javatest.exec.CE_View.showInfo(CE_View.java:68)
at com.sun.javatest.exec.CE_FullView.showInfoForQuestion(CE_FullView.java:170)
at com.sun.javatest.exec.CE_FullView.access$700(CE_FullView.java:53)
at com.sun.javatest.exec.CE_FullView$Listener.currentQuestionChanged(CE_FullView.
java:249)
at com.sun.interview.Interview.notifyCurrentQuestionChanged(Interview.java:1716)
at com.sun.interview.Interview.prev(Interview.java:712)
at com.sun.interview.wizard.WizPane.prev(WizPane.java:286)
at com.sun.javatest.exec.CE_FullView$Listener.actionPerformed(CE_FullView.java:19
4)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.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 javax.swing.JComponent.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 java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(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)
** End Internal JavaTest error. **

what should I do?
thank you,
allen

Roger Brinkley

If it helps it means that the helpID that you're setting doesn't exist in
the HelpModel. There can be a number of reasons for this. My initial
guess is that the helpset was actually created correctly and the button
has the wrong helpID. That would just be a guess though.

Binky
(former JavaHelp engineer)
M&E Community Leader

cqmeinterest@mobileandembedded.org wrote:
> Hi Alexey
> When I test,there hava some error like this:
> --> Unexpected exception:
> javax.help.InvalidHelpSetContextException: Wrong context
> at javax.help.DefaultHelpModel.setCurrentID(DefaultHelpModel.java:122)
> at javax.help.DefaultHelpModel.setCurrentID(DefaultHelpModel.java:95)
> at javax.help.JHelpContentViewer.setCurrentID(JHelpContentViewer.java:159)
> at com.sun.javatest.exec.CE_View.showInfo(CE_View.java:68)
> at com.sun.javatest.exec.CE_FullView.showInfoForQuestion(CE_FullView.java:170)
> at com.sun.javatest.exec.CE_FullView.access$700(CE_FullView.java:53)
> at com.sun.javatest.exec.CE_FullView$Listener.currentQuestionChanged(CE_FullView.
> java:249)
> at com.sun.interview.Interview.notifyCurrentQuestionChanged(Interview.java:1716)
> at com.sun.interview.Interview.prev(Interview.java:712)
> at com.sun.interview.wizard.WizPane.prev(WizPane.java:286)
> at com.sun.javatest.exec.CE_FullView$Listener.actionPerformed(CE_FullView.java:19
> 4)
> at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
> at javax.swing.AbstractButton$Handler.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 javax.swing.JComponent.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 java.awt.EventQueue.dispatchEvent(Unknown Source)
> at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
> at java.awt.EventDispatchThread.pumpEventsForFilter(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)
> ** End Internal JavaTest error. **
>
> How should I do?
> thank you,
> allen
> [Message sent by forum member 'allenwqf' (allenwqf)]
>
> http://forums.java.net/jive/thread.jspa?messageID=235563
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@cqme.dev.java.net
> For additional commands, e-mail: interest-help@cqme.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@cqme.dev.java.net
For additional commands, e-mail: interest-help@cqme.dev.java.net

alexeyp
Offline
Joined: 2006-10-04

Hi Allen

as Roger pointed out the problem may be related to how JavaHelp is used. In ME Framework you may deal with JavaHelp only if you change its Configuration Editor or add questions to it. Could you please clarify if did this, if you based your work on any sample and what corrections did you do ?

Again, I would like to refer you to the Developer's Guide, it describes steps that need to be performed to make changes to the Config Editor. If you could describe how your steps correlate with ones described in this guide it may be helpful to understand the problem.

Best regards
Alexey

allenwqf
Offline
Joined: 2007-08-02

Hi alexeyp
I make the jh.jar from javahelp in ME Framework.And this follow the help file of the javaHelp .is that right?
Now ,I don't know how to test it.
For example ,I have a JVM,and the JVM in my device. I will do a sample test for the jvm.I will use the simapletestsuite what is in the cqme_trunk to test it, and it's only a example. What should I do?
I have look the meframework-dev-guide yet.But I also don't know how to do them.
Can you help me?
Thanks.
allen

alexeyp
Offline
Joined: 2006-10-04

Hi Allen

sorry I do not understand your explanation.

What version of the ME Framework you use ?
Can you execute simapletestsuite in any environment as is, without changes ?

Alexey

allenwqf
Offline
Joined: 2007-08-02

Hi alexeyp
Sorry I couldn't descrip it clearly.
Another way, all the test tool is ready.
Include the test tools,and my device.The next step is to do the test.
But I don't know how to test it.
how to contact the PC and my device?
oh,I do the CDC/FP test.

Thank you;
Allen

allenwqf
Offline
Joined: 2007-08-02

Hi,
I hava a question to ask you.thank you.
I want to test my mobile phone about the Sony Ericsson which can supply the CDC. It's say that I want to make the CDC test. I using the JTHarness and cqme.
Everything is ready.and the IDE I make it ok.
But I want to know when I test ,the phone how to cantact with the JT.
And is there has a testsuite for this test?
thank you!
Allen.

alexeyp
Offline
Joined: 2006-10-04

Hi Allen

In order to run tests on CDC device using JT harness and ME Framework you need to:
- write these tests, create and build test suite
- install agent application on your device
- select appropriate communication channel in the test suite interview

Please refer to http://java.sun.com/javame/meframework/docs/framework_dev_guide.pdf for details

Could you please clarify if the problem with creating a test suite or with connecting the device and a harness. For example, were you able to run your tests on emulator ?

Best regards
Alexey

allenwqf
Offline
Joined: 2007-08-02

Hi Alexey
Thank you.
Yes,the mean of mine is that which you said about How to creating a test suite for the CDC test,and how to connecting the device and a harness.

"install agent application on your device" is that install the cdcagent.jar on the mobile? and after install it ,run it on the mobile?But how the harness know that the agent run on the mobile?
thank you.

alexeyp
Offline
Joined: 2006-10-04

Hi Allen

I assume that you use some version older then 1.2, let me please try to give you a generic explanation using 1.2 examples.

Depending on what is profile is implemented on your device, you may need to install either main_agent.jar, if it is CDC Foundation Profile or higher and main() application model is supported, or xlet_agent.jar, if it is Personal Basis profile or above.

When installing agent application depending on requirements of your platform you may need to package it appropriately and provide with parameters, describing how to connect the agent with the harness. You may also need to specify security policy for this application that will allow it to make network connections and access other protected API.

Agent and harness are connected as follows: when you configure JT harness you specify parameters for the connection, for example a port number where JT harness will start listening for connection once you start test execution. When Agent is started it pings specified host and port, when connection is established, test execution begins.

To get familiar with this I suggest first to try your test suite with emulators, for example CDC Toolkit.

Please if you need further assistance describe the sequence of what you have done, what versions of tools you used, if you took some samples and what modifications did you make to them

With best regards
Alexey