Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Contributor User Documentation:FAQs Contributors"
(→Apache ANT and PDE Builds) |
(→Apache ANT and PDE Builds) |
||
Line 39: | Line 39: | ||
! Question || Possible Solution | ! Question || Possible Solution | ||
|- | |- | ||
− | | | + | |Why do tests in Ant throw these exceptions: |
− | || | + | <pre><ul></li>MethodNotFoundException</li> <li>NoClassDefFoundExceptions</li></pre> |
− | + | || Our tests rely on a normal classpath ordering. If you receive one of these exception messages it may be that there is another JAR file in the queue that contains the right methods or class definitions that are not in the file that is currently loaded. The file that has been loaded may not contain the methods or the the class definitions that you want. To find that particular JAR with the right components, add <vmargs value="-verbose:class"> to the VM that is started. This also works with <tt><junit></tt> if you fork to a separate VM. In the log the VM will show you which class it loaded and you can use that information to patch the classpath to make sure that the expected JAR is used. | |
− | + | ||
|- | |- | ||
− | | Why does bundle | + | | Why does bundle |
− | || | + | || T |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|} | |} | ||
<br> | <br> |
Revision as of 10:52, 4 June 2009
Contents
FAQs for Contributors and Committers
We have collected some of the most frequently asked questions, tips and tricks related to the Swordfish project. This section will be continually updated as and when new FAQs arise. It is a good idea to start here if you have problems with Swordfish.
Equinox/OSGI
Question | Possible Solution |
---|---|
How do I connect to an Equinox instance via Telnet? | To start a telnet connection just add a port number behind the -console option.
For example, use the command console 3333 when starting your console. You can also use the commandtelnet localhost 3333 |
Why does bundle [xyz] not find the classes of bundle [abc]? | Try to open a console. If the bundle does not start, try to start it manually by using the command:
start <bundleNumber> If this attempt results in a stack trace, it may help you to investigate further.
|
When I use a launch configuration to start a class inside Equinox where do I find the corresponding log file? | Usually, you will find logs in <workspace>.metadata/.plugins/org.eclipse.pde.core/<RunConfigurationName> You may overwrite that in the configuration tab of your launch configuration. This can be helpful after a crash when you did not switch on the console or when the instance shuts down with an error. |
How do I limit the output of the Equinox ss command? | The ss command accepts a textual argument. If you enter ss swordfish, the status list is limited to bundles with swordfish (somewhere) in their symbolic name. |
Why does instanceof return false? | When you use Java dynamic proxies note that instanceof will return false if an interface implemented by the proxy cannot be found by your current class loader.
If you created a proxy in the context of another bundle (where a certain interface is accessible), instanceof may return false, if you do not imported the interface's package. |
Apache ANT and PDE Builds
Question | Possible Solution |
---|---|
Why do tests in Ant throw these exceptions:
<ul></li>MethodNotFoundException</li> <li>NoClassDefFoundExceptions</li> |
Our tests rely on a normal classpath ordering. If you receive one of these exception messages it may be that there is another JAR file in the queue that contains the right methods or class definitions that are not in the file that is currently loaded. The file that has been loaded may not contain the methods or the the class definitions that you want. To find that particular JAR with the right components, add <vmargs value="-verbose:class"> to the VM that is started. This also works with <junit> if you fork to a separate VM. In the log the VM will show you which class it loaded and you can use that information to patch the classpath to make sure that the expected JAR is used. |
Why does bundle | T
|
Connecting to the SVN
Problem/Issue | Hint | |
---|---|---|
a | b | |
a | b | |
a | b |