Problems Debugging JUnit Tests
Hi,
I have been trying a TDD approach to my new development and until my latest test everythings been working well. Im using Eclipse by the way with JUnit incoporated into my project
Now I have the following problem..
I ran my latest test and my CPU usage shot up to 100%. In an attempt to work out why I selected Debug as JUnit Project, the following was displayed
Class File Editor
The Source attachment does not contain the source for the file Assert.class
You can change the source attachment by clicking change attached source below.
Unfortunately I don't know what this means, can anyone help me out here?
Thanks
I don't have access to any other IDE's apart from Eclipse, so I can't check if they run outside.You don't need an IDE to run outside Eclipse. Just run JUnit from a command shell, just like any other Java program that you'd run if you didn't have ANY IDE.
Whats Ant? I presume i'm not using it.Ant is an XML and Java-based make tool that's a standard for Java these days:
http://ant.apache.org
It can run all your JUnit tests as part of your build process. It'll even work with Eclipse.
Its my last test thats causing it not to work however
it never even returns a failure it hangs the system
before the failure is reported. If I remove this test
and debug the other tests however the same error
described in the first post occurs.Can you step through that JUnit test in the Eclipse debugger to see where it's hanging up? If you're going to use an IDE, might as well put it to work.
Similar Messages
-
Problem with JUnit Testing from Command Prompt
Hi There,
Related Info:
OS - Windows 7 32 Bit, IDE Used: Eclipse
I'm using the following command to compile the java file from the command prompt:
C:\Users\J\Desktop> javac -classpath .:junit.jar check4PrimeTest.java
I get the error: "package junit.framework does not exist import junit.framework.*;"
How can i fix this?
I have downloaded junit from junit.org the 'junit4.10' and extracted in my Java Folder along side jdkjdk1.7.0_03, jre6, jre7.
I will post my code below for the 'check4PrimeTest.java' file which im trying to test from the command prompt.
package check4prime;
// check4PrimeTest.java
//Imports
import junit.framework.*;
public class check4PrimeTest extends TestCase {
//Initialize a class to work with.
private check4Prime check4prime = new check4Prime();
//constructor
public check4PrimeTest (String name) {
super(name);
//Main entry point
public static void main(String[] args) {
System.out.println("Starting test...");
junit.textui.TestRunner.run(suite());
System.out.println("Test finished...");
} // end main()
//Test case 1
public void testCheckPrime_true() {
assertTrue(check4prime.primeCheck(3));
//Test cases 2,3
public void testCheckPrime_false() {
assertFalse(check4prime.primeCheck(0));
assertFalse(check4prime.primeCheck(1000));
//Test case 7
public void testCheck4Prime_checkArgs_char_input() {
try {
String [] args= new String[1];
args[0]="r";
check4prime.checkArgs(args);
fail("Should raise an Exception.");
} catch (Exception success) {
//successful test
} //end testCheck4Prime_checkArgs_char_input()
//Test case 5
public void testCheck4Prime_checkArgs_above_upper_bound() {
try {
String [] args= new String[1];
args[0]="10001";
check4prime.checkArgs(args);
fail("Should raise an Exception.");
} catch (Exception success) {
//successful test
} // end testCheck4Prime_checkArgs_upper_bound()
//Test case 4
public void testCheck4Prime_checkArgs_neg_input() {
try {
String [] args= new String[1];
args[0]="-1";
check4prime.checkArgs(args);
fail("Should raise an Exception.");
} catch (Exception success) {
//successful test
} // end testCheck4Prime_checkArgs_neg_input()
//Test case 6
public void testCheck4Prime_checkArgs_2_inputs() {
try {
String [] args= new String[2];
args[0]="5";
args[1]="99";
check4prime.checkArgs(args);
fail("Should raise an Exception.");
} catch (Exception success) {
//successful test
} // end testCheck4Prime_checkArgs_2_inputs
//Test case 8
public void testCheck4Prime_checkArgs_0_inputs() {
try {
String [] args= new String[0];
check4prime.checkArgs(args);
fail("Should raise an Exception.");
} catch (Exception success) {
//successful test
} // end testCheck4Prime_checkArgs_0_inputs
//JUnit required method.
public static Test suite() {
TestSuite suite = new TestSuite(check4PrimeTest.class);
return suite;
} //end suite()
} //end check4PrimeTestEdited by: 963042 on Oct 3, 2012 8:57 PM
Edited by: 963042 on Oct 3, 2012 10:07 PM963042 wrote:
C:\Users\J\Desktop> javac -classpath .:junit.jar check4PrimeTest.javaThat's the Linux way to do it. On windows there is a different list separator. Use this:
javac -cp .;junit.jar check4PrimeTest.java
And use -cp to save you some typing ;) If you want to incorporate unit testing into your builds I would suggest looking into automating it a little more through tool such as ant, maven, etc. -
Unable to establish loopback connection when running junit tests
Hello,
I just started using jrockit (jrockit-jdk1.6.0_20-R28.1.0-4.0.1) and I encounter a problem running junit tests.
I have 2 tests in the same junit suite, both do binding to 127.0.0.1.
The first test succeeds in the binding. Once it finishes, the second one tries to bind to same address and fails due to IOException, Unable to establish loopback connection (logs below)
If I run them using sun's hotspot jvm they work fine.
If I run them separately, i.e, only one test per suite, each works fine.
It seems that only when switching to jrockit I get the problem.
Any idea?
Thanks,
Edo
Logs:
ERROR [Main Thread_1] Failed to start ConnectionFullVirtualServer[server.traffix.com/127.0.0.1:3868]
[org.jboss.netty.channel.ChannelException: Failed to bind to: server.traffix.com/127.0.0.1:3868 ] thrown
org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:303)
com.traffix.openblox.core.transport.ConnectionFullVirtualServer.listen(ConnectionFullVirtualServer.java:60)
com.traffix.openblox.core.transport.VirtualServerTable.listen(VirtualServerTable.java:143)
com.traffix.openblox.core.transport.StackImpl.doStart(StackImpl.java:772)
com.traffix.openblox.core.transport.TransportStack.doStart(TransportStack.java:156)
com.traffix.openblox.core.transport.StackStateMachineImpl.doStart(StackStateMachineImpl.java:75)
com.traffix.openblox.core.transport.StackStateMachine$StackStateConfigured.processEvent(StackStateMachine.java:60)
com.traffix.openblox.core.fsm.StateMachine.processEvent(StateMachine.java:90)
Caused by: java.io.IOException: Unable to establish loopback connection
sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:106)
sun.nio.ch.PipeImpl.<init>(PipeImpl.java:122)
sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:27)
java.nio.channels.Pipe.open(Pipe.java:133)
sun.nio.ch.WindowsSelectorImpl.<init>(WindowsSelectorImpl.java:41)
sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:26)
java.nio.channels.Selector.open(Selector.java:209)
org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink$Boss.<init>(NioServerSocketPipelineSink.java:219)
Caused by: java.nio.channels.ClosedByInterruptException
java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:184)
sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:518)
java.nio.channels.SocketChannel.open(SocketChannel.java:146)
sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:78)
sun.nio.ch.PipeImpl.<init>(PipeImpl.java:122)
sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:27)
java.nio.channels.Pipe.open(Pipe.java:133)
sun.nio.ch.WindowsSelectorImpl.<init>(WindowsSelectorImpl.java:41)[ com.traffix.openblox.core.transport.VirtualServerTable.listen(VirtualServerTable.java:146) ][22/12/2010 11:05:57:511]
ERROR [Main Thread_1] Failed to start Endpoint Stack(server.traffix.com Configured)
[org.jboss.netty.channel.ChannelException: Failed to bind to: server.traffix.com/127.0.0.1:3868 ] thrown
org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:303)
com.traffix.openblox.core.transport.ConnectionFullVirtualServer.listen(ConnectionFullVirtualServer.java:60)
com.traffix.openblox.core.transport.VirtualServerTable.listen(VirtualServerTable.java:143)
com.traffix.openblox.core.transport.StackImpl.doStart(StackImpl.java:772)
com.traffix.openblox.core.transport.TransportStack.doStart(TransportStack.java:156)
com.traffix.openblox.core.transport.StackStateMachineImpl.doStart(StackStateMachineImpl.java:75)
com.traffix.openblox.core.transport.StackStateMachine$StackStateConfigured.processEvent(StackStateMachine.java:60)
com.traffix.openblox.core.fsm.StateMachine.processEvent(StateMachine.java:90)
Caused by: java.io.IOException: Unable to establish loopback connection
sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:106)
sun.nio.ch.PipeImpl.<init>(PipeImpl.java:122)
sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:27)
java.nio.channels.Pipe.open(Pipe.java:133)
sun.nio.ch.WindowsSelectorImpl.<init>(WindowsSelectorImpl.java:41)
sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:26)
java.nio.channels.Selector.open(Selector.java:209)
org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink$Boss.<init>(NioServerSocketPipelineSink.java:219)
Caused by: java.nio.channels.ClosedByInterruptException
java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:184)
sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:518)
java.nio.channels.SocketChannel.open(SocketChannel.java:146)
sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:78)
sun.nio.ch.PipeImpl.<init>(PipeImpl.java:122)
sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:27)
java.nio.channels.Pipe.open(Pipe.java:133)
sun.nio.ch.WindowsSelectorImpl.<init>(WindowsSelectorImpl.java:41Have you tracked down if the phone actually sends the TCP connection to the desktop? I'm feeling that this is a firewall issue that shows itself when the firewall zone changes (public/private/domain).
Matt Small - Microsoft Escalation Engineer - Forum Moderator
If my reply answers your question, please mark this post as answered.
NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
objects and unknown namespaces. -
Cannot get to debugger when Debug As - Junit Test in OEPE
In Oracle Enterprise Pack for Eclipse, I created a JUnit (3 or 4) test case. When I attempted to Debug As -> Junit Test, I would get NullPointerException and cannot get to the debugger at all. However, there is no such problem in Ganymede (not OEPE). Is this a known problem for OEPE?
The stack trace is:
junit.framework.AssertionFailedError: Exception in constructor: testMapCustomer (org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException) (Caused by org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException))
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
at org.springframework.test.ConditionalTestCase.<init>(ConditionalTestCase.java:50)
at org.springframework.test.AbstractSpringContextTests.<init>(AbstractSpringContextTests.java:73)
at org.springframework.test.AbstractSingleSpringContextTests.<init>(AbstractSingleSpringContextTests.java:80)
at org.springframework.test.AbstractDependencyInjectionSpringContextTests.<init>(AbstractDependencyInjectionSpringContextTests.java:98)
at com.cibc.wmfxr.pricing.processor.test.Junit38SybaseDaoTest.<init>(Junit38SybaseDaoTest.java:6)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at junit.framework.TestSuite.createTest(TestSuite.java:54)
at junit.framework.TestSuite.addTestMethod(TestSuite.java:280)
at junit.framework.TestSuite.<init>(TestSuite.java:140)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.getTest(JUnit3TestLoader.java:102)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.loadTests(JUnit3TestLoader.java:59)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException)
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
... 21 more
Caused by: java.lang.NullPointerException
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:374)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
at org.springframework.test.ConditionalTestCase.<init>(ConditionalTestCase.java:50)
at org.springframework.test.AbstractSpringContextTests.<init>(AbstractSpringContextTests.java:74)
at org.springframework.test.AbstractSingleSpringContextTests.<init>(AbstractSingleSpringContextTests.java:80)
at org.springframework.test.AbstractDependencyInjectionSpringContextTests.<init>(AbstractDependencyInjectionSpringContextTests.java:98)
at com.cibc.wmfxr.pricing.processor.test.Junit38SybaseDaoTest.<init>(Junit38SybaseDaoTest.java:6)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at junit.framework.TestSuite.createTest(TestSuite.java:54)
at junit.framework.TestSuite.addTestMethod(TestSuite.java:280)
at junit.framework.TestSuite.<init>(TestSuite.java:140)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.getTest(JUnit3TestLoader.java:102)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.loadTests(JUnit3TestLoader.java:59)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:674)
... 2 more
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.TestSuite$1.runTest(TestSuite.java:90)
at junit.framework.TestCase.runBare(TestCase.java:130)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)Thanks. I tried it with the downloaded junit-4.6.jar and got the following stack trace. Now I wonder I should try it with the Junit bundle in the SpringSource Enterprise Bundle Repository since OEPE integrates the Spring OSGi Bundle. If this is the right idea, could you let me know how to install the Junit bundle in OEPE? Do I just add it to bundles.info? There are already a few lines for org.junit in bundles.info. What should I do with them? Thanks a lot.
java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:31)
at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:24)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:24)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.<init>(JUnit4TestReference.java:28)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.<init>(JUnit4TestClassReference.java:24)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:40)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:30)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException) (Caused by org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException))
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.<clinit>(SpringJUnit4ClassRunner.java:63)
... 18 more
Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException)
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
... 22 more
Caused by: java.lang.NullPointerException
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:374)
... 23 more -
Hi All,
I have my project souce with adding System.out.println statement and bundle it into jar file.
When i running junit test . I cant see project source's println statement.
Any properties file need to be modify to see println statement?
Thanks,
NilHow are you running JUnit? Logging to System.out will appear on the standard output stream, which is the console unless you explicitly redirect it.
-
Unable to run ADFBC JUNIT Test Classes with JDEV11G 11.1.1.6
Dear All,
I upgraded my project to the latest release JDEV 11G 11.1.1.6
Previously we are on JDEV 11G 11.1.1.5
I have a JUNIT class that I am running which test my ADFBC components.
public class MyTestClass {
@Test
public void testVOAccess()
//assertions
}Unfortunately, I am hitting an error like this from the messages.
Mar 9, 2012 1:28:07 PM oracle.adf.share.ADFContext getCurrent
WARNING: Automatically initializing a DefaultContext for getCurrent.
Caller should ensure that a DefaultContext is proper for this use.
Memory leaks and/or unexpected behaviour may occur if the automatic initialization is performed improperly.
This message may be avoided by performing initADFContext before using getCurrent().
For more information please enable logging for oracle.adf.share.ADFContext at FINEST level.
Mar 9, 2012 1:28:08 PM oracle.security.jps.internal.config.xml.XmlConfigurationFactory initDefaultConfiguration
SEVERE: org.xml.sax.SAXParseException: Invalid encoding name "Cp1252".
Mar 9, 2012 1:28:10 PM oracle.mds
NOTIFICATION: PManager instance is created without multitenancy support as JVM flag "oracle.multitenant.enabled" is not set to enable multitenancy support.
Mar 9, 2012 1:28:12 PM oracle.security.jps.internal.config.xml.XmlConfigurationFactory initDefaultConfiguration
SEVERE: org.xml.sax.SAXParseException: Invalid encoding name "Cp1252".
Mar 9, 2012 1:28:12 PM oracle.adf.share.jndi.ReferenceStoreHelper getReferencesMapEx
WARNING: Incomplete connection reference object for connection:MYDATASOURCEAt the JUNIT Test Runner, I see this.
java.lang.ExceptionInInitializerError: null
java.lang.reflect.Constructor.newInstance(Constructor.java:513)
org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:171)
org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:216)
Caused by: oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:207)
oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:166)To validate the issue, I tried to run my same project using the older release which is JDEV 11G 11.1.1.5
and I see that I am not hitting any error. All my test classes runs fine.
Has anybody replicated this?
ThanksDidier Laurent wrote:
I logged the following bug for this issue:
bug 14030895 - REGR: JDEVELOPER 11.1.1.6.0 JUNIT JBO-26061 ERROR WHILE OPENING JDBC CONNECTION
Regards,
Didier.So its really a bug..
I abandon this already since I cannot find any solution to look up for this.
On the other hand, I am maintaining two jdeveloper version just to get around this problem.
When testing ADFBC, I used the 11.1.1.5 while for non-junit test I used the 11.1.1.6
Hopefully this gets fixed on the next release as I am having a hard time swithcing between two JDev version.
Thanks
Edited by: Neliel on May 3, 2012 11:42 PM -
JUNIT test failure-Configuration file bc4j.xcfg not found in the classpath
Hi All,
As part of an ESS project,Im having a model project containing a VO(parameters VO).This VO is configured to have Read-only access through SQL query and have only one transient attribute each.For the model projects containing the VO for pre merge checker compliance I had to create JUNIT Test projects containing new AMs for testing the parametersVO. While running the JUNIT tests I got an exception like
“oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.ConfigException, msg=JBO-33001: Configuration file /oracle/apps/hcm/goals/core/dataMigration/publicEssModel/test/applicationModule/common/bc4j.xcfg is not found in the classpath.”.—even though this file is contained in both the src/classes folder of the project.
When i try to run the TestAM I'm getting an exception like 'configuration tester.xcfg not found in the calsspath.
While debugging this error, we found that we are able to successfully run the JUNIT tests if we make some changes in the adf-config.xml file of the Application. The change required is to comment out the mdsC:adf-mds-config tag in the xml file.
After doing this change Im also able to run my AM without any exception.
Is this a known issue?.
Since modifying the adf-config.xml is not a recommended practice is there any workaround that we can get rid of this exception.
Regards,
Ajin.Just checked but could only find this thread Unable to run ADFBC JUNIT Test Classes with JDEV11G 11.1.1.6
As it's also dealing with junit and 11.1.1.6.0 you might want to read it.
Timo -
Getting error while writing JUnit test case for RestFul Services
Hi All,
I have written Restful services in Netbean 6.8.
It's running well...no issues.
{color:#0000ff}While writing JUnit test cases for them, I am getting following error:
{color}{color:#993300}Testcase: testGetAuthenticated(com.ct.services.LoginServicesTest): Caused an ERROR
Implementing class{color}
java.lang.IncompatibleClassChangeError: Implementing class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:160)
at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:65)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)
at com.ct.services.LoginServices.getAuthenticated(LoginServices.java:205)
at com.ct.services.LoginServicesTest.testGetAuthenticated(LoginServicesTest.java:84)
Test com.ct.services.LoginServicesTest FAILED
F:\NetbeanProjectsWorkspace\DemoProject\nbproject\build-impl.xml:972: Some tests failed; see details above.
BUILD FAILED (total time: 11 seconds)
{color:#0000ff}Strange thing is that when I am commenting below lines and its related calls:
{color}
{color:#ff0000}EntityManagerFactory mEmf = Persistence.createEntityManagerFactory("AnyName");
EntityManager mEm = mEmf.createEntityManager();
{color}
{color:#0000ff}from my code, JUnit test cases are working fine.
{color}Anybody having any idea about this ?
Thanks
Avi
Edited by: Avi007 on Aug 28, 2010 5:17 AMHi All,
[http://stackoverflow.com/questions/2778295/test-driven-development-problem]
Please refer the above link for the solution
Thanks
Avi
Edited by: Avi007 on Aug 30, 2010 12:33 AM -
Exception while running a test file as JUNIT test case
Hi,
I am trying to build a code using Eclipse to generate an "ear" file that can be used for deployment. The ear file is generated successfully but the build is not successful as the following exception is thrown while debugging a junit test case:
javax.naming.CommunicationException: tdk.dk:389 [Root exception is java.net.SocketTimeoutException: connect timed out]
at com.sun.jndi.ldap.Connection.<init>(Connection.java:197)
at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:118)
at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1580)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2616)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:287)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Kindly suggest a solution.
P.S. : All test cases are running fine except for one test case, whose error details are given.No it is not. The Oracle JDeveloper and ADF forum is for development questions around development with Oracle JDeveloper and ADF.
If you use Eclipse through OEPE, you could post the question here
Enterprise Pack for Eclipse
If you don't use OEPE but Eclipse, then this forum may be a great source of help: http://stackoverflow.com/
Frank -
BUG: Debug Unit tests in Selected
I think I've found a bug in JDeveloper.
Using "Debug Unit Tests in Selected" does not all unit tests in the selected projects.
To reproduce:
-select a list of projects,
-right click and select "Debug Unit Tests in Selected".
Results:
-JDev will run all the unit tests in the last project selected but no others.
What it should do:
-JDev should run all unit tests in all selected projects
System properties:
About
Oracle JDeveloper 11g Release 1 11.1.1.2.0
Studio Edition Version 11.1.1.2.0
Build JDEVADF_11.1.1.2.0_GENERIC_091029.2229.5536
Copyright © 1997, 2009 Oracle and/or its affiliates. All rights reserved.
IDE Version: 11.1.1.2.36.55.36
Product ID: oracle.jdeveloper
Product Version: 11.1.1.2.36.55.36
Version
Component Version
========= =======
ADF Business Components 11.1.1.55.36
Java(TM) Platform 1.6.0_14
Oracle IDE 11.1.1.2.36.55.36
SOA Composite Editor 11.1.1.2.0.12.16
Versioning Support 11.1.1.2.36.55.36
Properties
Name Value
==== =====
awt.toolkit sun.awt.windows.WToolkit
ceditor.java.parse.large 1500
ceditor.java.parse.small 300
class.load.environment oracle.ide.boot.IdeClassLoadEnvironment
class.load.log.level CONFIG
class.transfer delegate
compiler.vmargs -Xmx512m
EDITOR_J2SE_VERSION 1.5
feedbackmanager.disable false
file.encoding Cp1252
file.encoding.pkg sun.io
file.separator \
http.agent Mozilla/5.0 (Java 1.6.0_14; Windows XP 5.1 x86; en_CA) ICEbrowser/v6_1_3
ice.browser.forcegc false
ice.pilots.html4.ignoreNonGenericFonts true
ice.pilots.html4.tileOptThreshold 0
ide.bootstrap.start 209766300466
ide.build JDEVADF_11.1.1.2.0_GENERIC_091029.2229.5536
ide.conf C:\Oracle\Middleware\jdeveloper\jdev\bin\jdev.conf
ide.config_pathname C:\Oracle\Middleware\jdeveloper\jdev\bin\jdev.conf
ide.debugbuild false
ide.devbuild false
ide.editions oracle.studio, oracle.j2ee, oracle.jdeveloper
ide.extension.role.search.path jdev/roles
ide.extension.search.path jdev/extensions:sqldeveloper/extensions
ide.feedbackmanager.customer false
ide.firstrun false
ide.java.maxversion 1.7
ide.java.minversion 1.6.0_04
ide.launcherProcessId 5376
ide.main.class oracle.ide.boot.IdeLauncher
ide.max.jar.handles 500
ide.patches.dir jdev/lib/patches
ide.pref.dir C:\Documents and Settings\m_robinson\Application Data\JDeveloper
ide.pref.dir.base C:\Documents and Settings\m_robinson\Application Data
ide.product oracle.jdeveloper
ide.shell.enableFileTypeAssociation C:\Oracle\Middleware\jdeveloper\jdeveloper.exe
ide.splash.screen splash.gif
ide.startingArg0 C:\Oracle\Middleware\jdeveloper\jdeveloper.exe
ide.startingcwd C:\Oracle\Middleware\jdeveloper
ide.throttleLocale true
ide.user.dir C:\Documents and Settings\m_robinson\Application Data\JDeveloper
ide.user.dir.var JDEV_USER_HOME,JDEV_USER_DIR
ide.work.dir C:\\JDeveloper
ide.work.dir.base C:\Documents and Settings\m_robinson\My Documents
ilog.propagatesPropertyEditors false
inJUIDesigntime true
insight.suppresshidden true
INSIGHT_OMIT_HIDDEN true
java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment
java.awt.printerjob sun.awt.windows.WPrinterJob
java.class.path ..\..\ide\lib\ide-boot.jar
java.class.version 50.0
java.endorsed.dirs C:\Oracle\Middleware\jdk160_14_R27.6.5-32\jre\lib\endorsed
java.ext.dirs C:\Oracle\Middleware\jdk160_14_R27.6.5-32\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
java.home C:\Oracle\Middleware\jdk160_14_R27.6.5-32\jre
java.io.tmpdir C:\DOCUME~1\M_ROBI~1\LOCALS~1\Temp\
java.library.path C:\Oracle\Middleware\jdeveloper;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Ora\Forms10g\jdk\jre\bin\classic;C:\Ora\Forms10g\jdk\jre\bin;C:\Ora\Forms10g\jdk\jre\bin\client;C:\Ora\Forms10g\jlib;C:\Ora\Forms10g\bin;C:\Ora\Forms10g\jre\1.4.2\bin\client;C:\Ora\Forms10g\jre\1.4.2\bin;C:\Ora\Orant\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\Intel\DMIX;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\Program Files\TortoiseHg\;C:\Program Files\JProbe 8.3\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Java\jre6\bin;C:\Program Files\GnuWin32\bin;C:\Tools\Mercurial;C:\cygwin\bin;C:\Oracle\Middleware\jdk160_14_R27.6.5-32\bin;C:\Oracle\Middleware\jdeveloper\ant\bin
java.naming.factory.initial oracle.javatools.jndi.LocalInitialContextFactory
java.naming.factory.url.pkgs weblogic.jndi.factories:weblogic.corba.j2ee.naming.url
java.protocol.handler.pkgs oracle.fabric.common.uddiurl.handler|oracle.jdevimpl.handler|weblogic.net
java.runtime.name Java(TM) SE Runtime Environment
java.runtime.version 1.6.0_14-b08
java.specification.name Java Platform API Specification
java.specification.vendor Sun Microsystems Inc.
java.specification.version 1.6
java.vendor Sun Microsystems Inc.
java.vendor.url http://java.sun.com/
java.vendor.url.bug http://java.sun.com/cgi-bin/bugreport.cgi
java.version 1.6.0_14
java.vm.info mixed mode
java.vm.name Java HotSpot(TM) Client VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Sun Microsystems Inc.
java.vm.specification.version 1.0
java.vm.vendor Sun Microsystems Inc.
java.vm.version 14.0-b16
javax.rmi.CORBA.PortableRemoteObjectClass weblogic.iiop.PortableRemoteObjectDelegateImpl
javax.rmi.CORBA.UtilClass weblogic.iiop.UtilDelegateImpl
javax.xml.parsers.DocumentBuilderFactory oracle.xml.jaxp.JXDocumentBuilderFactory
jbo.debugoutput silent
jbo.showdebugwarningbanner false
jps.authz NULL
line.separator \r\n
oracle.adfm.usemds false
oracle.home C:\Oracle\Middleware\jdeveloper\
oracle.j2ee.extension.status enabled
oracle.jbo.usemds false
oracle.jdbc.Trace true
oracle.jdeveloper.webservice.hidePropertyOverride false
oracle.jdeveloper.webservice.showAllOwsmPolicyTypes false
oracle.mds.internal.config.override.emptystore true
oracle.security.jps.config /C:/Documents and Settings/m_robinson/Application Data/JDeveloper/system11.1.1.2.36.55.36/DefaultDomain/config/fmwconfig/jps-config-jse.xml
oracle.soap.transport.noHTTPClient true
oracle.translated.locales de,es,fr,it,ja,ko,pt_BR,zh_CN,zh_TW
oracle.xdkjava.compatibility.version 9.0.4
org.omg.CORBA.ORBClass weblogic.corba.orb.ORB
org.omg.CORBA.ORBSingletonClass weblogic.corba.orb.ORB
os.arch x86
os.name Windows XP
os.version 5.1
path.separator ;
reserved_filenames con,aux,prn,lpt1,lpt2,lpt3,lpt4,lpt5,lpt6,lpt7,lpt8,lpt9,com1,com2,com3,com4,com5,com6,com7,com8,com9,conin$,conout,conout$
sun.arch.data.model 32
sun.awt.disablegrab true
sun.awt.keepWorkingSetOnMinimize true
sun.boot.class.path ../lib/lwawt.jar;C:\Oracle\Middleware\jdk160_14_R27.6.5-32\jre\lib\resources.jar;C:\Oracle\Middleware\jdk160_14_R27.6.5-32\jre\lib\rt.jar;C:\Oracle\Middleware\jdk160_14_R27.6.5-32\jre\lib\sunrsasign.jar;C:\Oracle\Middleware\jdk160_14_R27.6.5-32\jre\lib\jsse.jar;C:\Oracle\Middleware\jdk160_14_R27.6.5-32\jre\lib\jce.jar;C:\Oracle\Middleware\jdk160_14_R27.6.5-32\jre\lib\charsets.jar;C:\Oracle\Middleware\jdk160_14_R27.6.5-32\jre\classes
sun.boot.library.path C:\Oracle\Middleware\jdk160_14_R27.6.5-32\jre\bin
sun.cpu.endian little
sun.cpu.isalist pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
sun.desktop windows
sun.io.unicode.encoding UnicodeLittle
sun.java2d.noddraw true
sun.jnu.encoding Cp1252
sun.management.compiler HotSpot Client Compiler
sun.os.patch.level Service Pack 3
svnkit.sax.useDefault true
user.country CA
user.dir C:\Oracle\Middleware\jdeveloper\jdev\bin
user.home C:\Documents and Settings\m_robinson
user.language en
user.name m_robinson
user.timezone America/Los_Angeles
user.variant
wasp.location ../../uddi
weblogic.home C:\Oracle\Middleware\wlserver_10.3\server
weblogic.security.SSL.ignoreHostnameVerification true
weblogic.security.TrustKeyStore DemoTrust
windows.shell.font.languages en
Extensions
Name Identifier Version Status
==== ========== ======= ======
ADF Business Components oracle.BC4J 11.1.1.2.36.55.36 Loaded
ADF Business Components Dependency oracle.bc4j.dependency 11.1.1.2.36.55.36 Loaded
ADF Business Components Deployment oracle.bc4jdt.deploy 11.1.1.2.36.55.36 Loaded
ADF Business Components Modeler oracle.adfbcdt.modeler 11.1.1.2.36.55.36 Loaded
ADF Business Components Tester oracle.bc4j.tester 11.1.1.2.36.55.36 Loaded
ADF Context Debugger oracle.adf.share.debug 11.1.1.2.36.55.36 Loaded
ADF Controller Configuration Design Time oracle.adf.controller.config.dt 11.1.1.2.36.55.36 Loaded
ADF Data Visualizations Design Time Tests oracle.dvt.dt 11.1.1.2.36.55.36 Loaded
ADF Debugger oracle.adf.debug 11.1.1.2.36.55.36 Loaded
ADF Debugger Diagram Support oracle.adf.debug.diagram 11.1.1.2.36.55.36 Loaded
ADF Desktop Integration Design Time oracle.adfdt.desktopintegration 11.1.1.2.36.55.36 Loaded
ADF Faces Cache oracle.webcache 11.1.1.2.36.55.36 Loaded
ADF Faces Data Visualization Tools Help oracle.dvt-faces-doc 11.1.1.0.0 Loaded
ADF Faces Databinding Design Time oracle.adf-faces-databinding-dt 11.1.1.2.36.55.36 Loaded
ADF Faces Design Time oracle.adf-faces-dt 11.1.1.2.36.55.36 Loaded
ADF Faces Design Time Migration oracle.adffacesdt.migration 11.1.1.2.36.55.36 Loaded
ADF Faces Runtime Help oracle.adf-faces-rt-doc 11.1.1.0.0 Loaded
ADF Faces Skin Design Time oracle.adf-faces-skin-dt 11.1.1.2.36.55.36 Loaded
ADF Java Server Faces Diagram oracle.adf.jsf.diagram 11.1.1.2.36.55.36 Loaded
ADF Library Design Time oracle.jdeveloper.adflibrary 11.1.1.2.36.55.36 Loaded
ADF Lifecycle Design Time oracle.adf.lifecycle.dt 11.1.1.2.36.55.36 Loaded
ADF Management Pages oracle.adf.management 11.1.1.2.36.55.36 Loaded
ADF Menu Model Design-Time oracle.adfmenudt 11.1.1.2.36.55.36 Loaded
ADF Page Flow Design Time oracle.adf.pageflow.dt 11.1.1.2.36.55.36 Loaded
ADF Page Flow Design Time Extras oracle.adf.pageflow.dt.extras 11.1.1.2.36.55.36 Loaded
ADF Page Template DT oracle.adf-faces-templating-dt 11.1.1.2.36.55.36 Loaded
ADF Region Design Time oracle.adf-faces-region-dt 11.1.1.2.36.55.36 Loaded
ADF Struts Page Flow Modeler oracle.struts.adf 11.1.1.2.36.55.36 Loaded
ADF Struts and Model One Databinding oracle.adf.struts.and.model.one.databinding.dt 11.1.1.2.36.55.36 Loaded
ADF Swing oracle.adfdt.swingcore 11.1.1.2.36.55.36 Loaded
ADF View Debugging Design Time adf.view.debugging.dt 11.1.1.2.36.55.36 Loaded
ADFv Common Databinding oracle.adf-view-databinding-dt 11.1.1.2.36.55.36 Loaded
AIA Composite Application Framework oracle.aia.caf.cafextensionwizard 2.4 Loaded
Ant oracle.ant 11.1.1.2.36.55.36 Loaded
Application Server Manager oracle.jdeveloper.asnav 11.1.1.2.36.55.36 Loaded
Application State - Application Navigator oracle.ideimpl.appstate.appnav 11.1.1.2.36.55.36 Loaded
Application State - Editors oracle.ide.appstate.editors 11.1.1.2.36.55.36 Loaded
Application State Manager oracle.ide.appstate 11.1.1.2.36.55.36 Loaded
Archive Compare oracle.jdeveloper.archive-compare 11.1.1.2.36.55.36 Loaded
BAM oracle.bam 11.1.1 Loaded
BI Beans Graph oracle.bibeans 11.1.1.2.36.55.36 Loaded
BM metamodel framework oracle.bm.meta 11.1.1.2.36.55.36 Loaded
Bug Reporter oracle.jdeveloper.bugfiler 11.1.1.2.36.55.36 Loaded
Business Modelers oracle.bm 11.1.1.2.36.55.36 Loaded
Check For Updates oracle.ide.webupdate 11.1.1.2.36.55.36 Loaded
Code Editor oracle.ide.ceditor 11.1.1.2.36.55.36 Loaded
Command Line Formatting Support oracle.jdeveloper.ojformat 11.1.1.2.36.55.36 Loaded
Command Line Make/Rebuild Support oracle.jdevimpl.oj-compiler 11.1.1.2.36.55.36 Loaded
Common Controller Design-Time oracle.controller.dt 11.1.1.2.36.55.36 Loaded
Common Page Flow Design-Time oracle.pageflow.dt 11.1.1.2.36.55.36 Loaded
Component Palette oracle.ide.palette1 11.1.1.2.36.55.36 Loaded
Controller to ADF Bindings Bridge oracle.controller.bindings.dt 11.1.1.2.36.55.36 Loaded
Database Connection Support oracle.jdeveloper.db.connection 11.1.1.2.36.55.36 Loaded
Database Features (JDeveloper) oracle.jdeveloper.db 11.1.1.2.36.55.36 Loaded
Database Features (SQLDeveloper in JDeveloper) oracle.jdeveloper.db.navigator 11.1.1.2.36.55.36 Loaded
Database Modeler oracle.dbmodeler 11.1.1.2.36.55.36 Loaded
Database Modeler Migration oracle.dbmodeler.migrate 11.1.1.2.36.55.36 Loaded
Database Object Dependency API Support oracle.jdeveloper.db.dependency 11.1.1.2.36.55.36 Loaded
Database Object Explorers oracle.ide.db.explorer 11.1.1.2.36.55.36 Loaded
Database Object Transfer Framework oracle.jdeveloper.db.transfer 11.1.1.2.36.55.36 Loaded
Database UI oracle.ide.db 11.1.1.2.36.55.36 Loaded
Design Time Resource Bundle Variable Resolver oracle.jdeveloper.resourcebundle.resolver.dt 11.1.1.2.36.55.36 Loaded
Diagram Framework oracle.diagram 11.1.1.2.36.55.36 Loaded
Diagram Framework Toplink extensions oracle.diagram.toplink 11.1.1.2.36.55.36 Loaded
Diagram Javadoc Extension oracle.diagram.javadoc 11.1.1.2.36.55.36 Loaded
Diagram Thumbnail oracle.diagram.thumbnail 11.1.1.2.36.55.36 Loaded
Diagram to XMLEF Bridge oracle.diagram.xmlef 11.1.1.2.36.55.36 Loaded
Diff/Merge oracle.ide.diffmerge 11.1.1.2.36.55.36 Loaded
EJB oracle.ejb 11.1.1.2.36.55.36 Loaded
EJB Modeler oracle.ejbmodeler 11.1.1.2.36.55.36 Loaded
ESDK Sample - CodeInteraction oracle.ide.extsamples.codeinteraction 11.1.1 Loaded
Editor Tint oracle.ide.ceditor-tint 11.1.1.2.36.55.36 Loaded
Editor Tint (Java) oracle.jdeveloper.ceditor-tint-java 11.1.1.2.36.55.36 Loaded
Extended IDE Platform oracle.javacore 11.1.1.2.36.55.36 Loaded
Extension Designtime Core oracle.jdeveloper.extensiondt.core 11.1.1.2.36.55.36 Loaded
Extension Designtime UI oracle.jdeveloper.extensiondt.ui 11.1.1.2.36.55.36 Loaded
External Tools oracle.ide.externaltools 11.1.1.2.36.55.36 Loaded
Feedback oracle.ide.feedback 11.1.1.2.36.55.36 Loaded
File Support oracle.ide.files 11.1.1.2.36.55.36 Loaded
Fusion Application Overview Definition oracle.ide.appoverview.fusion.definition 11.1.1.2.36.55.36 Loaded
Fusion Web Application (ADF) Template oracle.adf.webapp.template 11.1.1.2.36.55.36 Loaded
Go to File oracle.ide.gotofile 11.1.1.2.36.55.36 Loaded
Go to Java Type oracle.jdeveloper.gotojava 11.1.1.2.36.55.36 Loaded
HTML oracle.html 11.1.1.2.36.55.36 Loaded
Help System oracle.ide.help 11.1.1.2.36.55.36 Loaded
History Support oracle.jdeveloper.history 11.1.1.2.36.55.36 Loaded
IDE Reports Extension oracle.ide.report 11.1.1.2.36.55.36 Loaded
Import/Export Support oracle.ide.importexport 11.1.1.2.36.55.36 Loaded
Index Migrator support oracle.ideimpl.indexing-migrator 11.1.1.2.36.55.36 Loaded
J2EE oracle.j2ee 11.1.1.2.36.55.36 Loaded
J2EE oracle.j2ee.webapp.ve 11.1.1.2.36.55.36 Loaded
J2EE oracle.j2ee.webapp.ve.facelets 11.1.1.2.36.55.36 Loaded
J2EE CSS oracle.css 11.1.1.2.36.55.36 Loaded
J2EE Faces Config oracle.j2ee.facesconfig 11.1.1.2.36.55.36 Loaded
J2EE Web App oracle.j2ee.webapp 11.1.1.2.36.55.36 Loaded
J2EE-ADRS oracle.j2ee.adrs 11.1.1.2.36.55.36 Loaded
J2ee extension help oracle.j2ee.help 11.1.1.0.0 Loaded
JDeveloper oracle.jdeveloper 11.1.1.2.36.55.36 Loaded
JDeveloper Runner oracle.jdeveloper.runner 11.1.1.2.36.55.36 Loaded
JGoodies Forms oracle.jdeveloper.jgoodies 11.1.1.2.36.55.36 Loaded
JPublisher oracle.jdeveloper.db.jpub 11.1.1.2.36.55.36 Loaded
JSON Language support oracle.jdeveloper.json 11.1.1.2.36.55.36 Loaded
JUnit Integration oracle.jdeveloper.junit 11.1.1.2.36.55.36 Loaded
JViews Registration Addin oracle.diagram.registration 11.1.1.2.36.55.36 Loaded
Java Annotation Inspector oracle.jdeveloper.annotation.inspector 11.1.1.2.36.55.36 Loaded
Java Breadcrumbs oracle.jdeveloper.ceditor-breadcrumbs-java 11.1.1.2.36.55.36 Loaded
Java Class Modeler oracle.javamodeler 11.1.1.2.36.55.36 Loaded
Java Modeler Toplink extensions oracle.javamodeler.toplink 11.1.1.2.36.55.36 Loaded
Java Server Faces Page Flow Modeler oracle.jsfmod 11.1.1.2.36.55.36 Loaded
Java Structure Compare oracle.jdeveloper.java-compare 11.1.1.2.36.55.36 Loaded
Java Type Search oracle.jdeveloper.searchbar.java 11.1.1.2.36.55.36 Loaded
Java extension help oracle.java.help 11.1.1.0.0 Loaded
JavaBeans, Swing, and AWT oracle.swingawt 11.1.1.2.36.55.36 Loaded
JavaScript Language Support oracle.ide.javascript 11.1.1.2.36.55.36 Loaded
Jdeveloper UI Editor oracle.jdeveloper.uieditor 11.1.1.2.36.55.36 Loaded
Jdeveloper XML Extension oracle.jdeveloper.xml 11.1.1.2.36.55.36 Loaded
Legacy Controller Design-Time oracle.controller.bm.dt 11.1.1.2.36.55.36 Loaded
Legacy Preferences integration for BM oracle.modeler.bm.prefs 11.1.1.2.36.55.36 Loaded
Log Window oracle.ide.log 11.1.1.2.36.55.36 Loaded
MDS Extension oracle.mds 11.1.1.2.36.55.36 Loaded
MOF Ide Integration oracle.mof.ide 11.1.1.2.36.55.36 Loaded
MOF Modeler Integration oracle.modeler.mof 11.1.1.2.36.55.36 Loaded
Mac OS X Adapter oracle.ideimpl.apple 11.1.1.2.36.55.36 Loaded
Modeler Framework oracle.modeler 11.1.1.2.36.55.36 Loaded
Modeler Framework Common Layer oracle.modeler.common 11.1.1.2.36.55.36 Loaded
Modelling migration from BM oracle.modeler.bm.migrate 11.1.1.2.36.55.36 Loaded
Navigator oracle.ide.navigator 11.1.1.2.36.55.36 Loaded
Nightly Indexing support oracle.ideimpl.indexing-rt 11.1.1.2.36.55.36 Loaded
OAR/MAR/SAR Deployment Support Extension oracle.deploy.orapp 11.1.1.2.36.55.36 Loaded
OWSM Policy Manager Installer oracle.jdeveloper.webservice.wsmpm.installer 11.1.1.2.36.55.36 Loaded
Object Gallery oracle.ide.gallery 11.1.1.2.36.55.36 Loaded
Object Viewer oracle.sqldeveloper.oviewer 11.1.1.63.05 Loaded
Offline Database oracle.jdeveloper.offlinedb 11.1.1.2.36.55.36 Loaded
Offline Database Import/Generate oracle.jdeveloper.offlinedb.transfer 11.1.1.2.36.55.36 Loaded
Offline Database Reports Extension oracle.jdeveloper.offlinedb.report 11.1.1.2.36.55.36 Loaded
Offline Database SXML oracle.jdeveloper.offlinedb.sxml 11.1.1.2.36.55.36 Loaded
Offline Database User Properties oracle.jdeveloper.offlinedb.userprops 11.1.1.2.36.55.36 Loaded
Offline Database User Properties SXML oracle.jdeveloper.offlinedb.userprops.sxml 11.1.1.2.36.55.36 Loaded
Oracle BPEL Designer oracle.bpm.modeler 11.1.1.2.0.12.16 Loaded
Oracle BPEL Designer Plugins oracle.bpm.modeler.plugins 11.1.1.2.0.12.16 Loaded
Oracle BPM DVM oracle.bpm.dvm 11.1.1.2.0.12.16 Loaded
Oracle BPM XREF oracle.bpm.xref 11.1.1.2.0.12.16 Loaded
Oracle Business Rules Designer oracle.bpm.rules 11.1.1.2.0.12.16 Loaded
Oracle Database Browser oracle.sqldeveloper.thirdparty.browsers 11.1.1.63.05 Loaded
Oracle ESS Designer oracle.bpm.ess 11.1.1.2.0.12.16 Loaded
Oracle Enterprise Repository Adapter oracle.jdeveloper.rcoeradapter 11.1.1.2.36.55.36 Loaded
Oracle Enterprise Repository Editor oracle.jdeveloper.oereditor 11.1.1.2.36.55.36 Loaded
Oracle Events Designer oracle.bpm.events 11.1.1.2.0.12.16 Loaded
Oracle Fabric Plugins oracle.sca.modeler.plugins 11.1.1.2.0.12.16 Loaded
Oracle Human Task Designer oracle.bpm.workflow 11.1.1.2.0.12.16 Loaded
Oracle IDE oracle.ide 11.1.1.2.36.55.36 Loaded
Oracle JDeveloper Spring 2 Integration oracle.sca.spring2 11.1.1.2.0.12.16 Loaded
Oracle JDevloper Deployment Core Module oracle.deploy.core 11.1.1.2.36.55.36 Loaded
Oracle MDS Design time oracle.mds.dt 11.1.1.2.36.55.36 Loaded
Oracle Mobile ADF oracle.wireless.dt 11.1.1.2.36.55.36 Loaded
Oracle Page Templates oracle.adf-page-template-samples 11.1.1.2.36.55.36 Loaded
Oracle SOA Composite Editor oracle.sca.modeler 11.1.1.2.0.12.16 Loaded
Oracle SOA Mediator oracle.sca.mediator 11.1.1.2.0.12.16 Loaded
Oracle SQL Developer oracle.sqldeveloper 11.1.1.63.05 Loaded
Oracle SQL Developer Reports oracle.sqldeveloper.report 11.1.1.63.05 Loaded
Oracle SQL Developer Worksheet oracle.sqldeveloper.worksheet 11.1.1.63.05 Loaded
Oracle XML Schema Support oracle.sqldeveloper.xmlschema 11.1.1.63.05 Loaded
PL/SQL Debugger oracle.jdeveloper.db.debug.plsql 11.1.1.2.36.55.36 Loaded
PROBE Debugger oracle.jdeveloper.db.debug.probe 11.1.1.2.36.55.36 Loaded
Peek oracle.ide.peek 11.1.1.2.36.55.36 Loaded
Persistent Storage oracle.ide.persistence 11.1.1.2.36.55.36 Loaded
Profiler oracle.jdeveloper.profiler 11.1.1.2.36.55.36 Loaded
Properties File Support oracle.jdeveloper.props 11.1.1.2.36.55.36 Loaded
Property Inspector oracle.ide.inspector 11.1.1.2.36.55.36 Loaded
Quick Start Features for Web Applications quickstart.webapp.dt 11.1.1.2.36.55.36 Loaded
QuickDiff oracle.ide.quickdiff 11.1.1.2.36.55.36 Loaded
REST Web Services oracle.jdeveloper.webservice.rest 11.1.1.0.0 Loaded
Refactoring oracle.jdeveloper.refactoring 11.1.1.2.36.55.36 Loaded
Replace With oracle.ide.replace 11.1.1.2.36.55.36 Loaded
Reports Extension oracle.javatools.report 11.1.1.2.36.55.36 Loaded
Resource Bundle Support oracle.ide.resourcebundle 11.1.1.2.36.55.36 Loaded
Resource Bundle Support for Properties Files oracle.jdeveloper.resourcebundle.props 11.1.1.2.36.55.36 Loaded
Resource Catalog Application Server Adapter oracle.jdeveloper.asadapter 11.1.1.2.36.55.36 Loaded
Resource Catalog DB UI extension oracle.jdeveloper.db.rcadapter.ui 11.1.1.2.36.55.36 Loaded
Resource Catalog Database Adapter oracle.jdeveloper.rcdbadapter 11.1.1.2.36.55.36 Loaded
Resource Catalog WSIL Adapter oracle.jdeveloper.rcwsiladapter 11.1.1.2.36.55.36 Loaded
Resource Lookup oracle.jdeveloper.rclookup 11.1.1.2.36.55.36 Loaded
Runner oracle.ide.runner 11.1.1.2.36.55.36 Loaded
SQL*Plus Integration oracle.jdeveloper.db.sqlplus 11.1.1.2.36.55.36 Loaded
SQLJ oracle.jdeveloper.sqlj 11.1.1.2.36.55.36 Loaded
Search Bar oracle.ide.searchbar 11.1.1.0.0 Loaded
SearchBar Commands oracle.ide.searchbar.commands 11.1.1.2.36.55.36 Loaded
Searchbar Preferences oracle.ide.searchbar.preferences 11.1.1.2.36.55.36 Loaded
Snippet Window oracle.sqldeveloper.snippet 11.1.1.63.05 Loaded
Struts Page Flow Modeler oracle.struts 11.1.1.2.36.55.36 Loaded
Studio oracle.studio 11.1.1.2.36.55.36 Loaded
Studio extension help oracle.studio.help 11.1.1.0.0 Loaded
Template oracle.ide.ceditor-template 11.1.1.2.36.55.36 Loaded
TopLink oracle.toplink 11.1.1.2.36.55.36 Loaded
Trinidad Databinding Design Time oracle.trinidad-databinding-dt 11.1.1.2.36.55.36 Loaded
Trinidad Design Time oracle.trinidad-dt 11.1.1.2.36.55.36 Loaded
UDDI Resource Catalogue Provider oracle.jdevimpl.uddiadapter 11.1.1.2.36.55.36 Loaded
UML XMI oracle.uml.v2.xmi 11.1.1.2.36.55.36 Loaded
UML v2 oracle.uml.v2 11.1.1.2.36.55.36 Loaded
UML v2 Activity Modeler oracle.uml.v2.activity 11.1.1.2.36.55.36 Loaded
UML v2 Class Diagram oracle.uml.v2.clazz 11.1.1.2.36.55.36 Loaded
UML v2 Migration oracle.uml.v2.migrate 11.1.1.2.36.55.36 Loaded
UML v2 Sequence Diagram oracle.uml.v2.sequence 11.1.1.2.36.55.36 Loaded
UML v2 Transformation to Java oracle.uml.v2.umljava 11.1.1.2.36.55.36 Loaded
UML v2 Use Case Diagram oracle.uml.v2.usecase 11.1.1.2.36.55.36 Loaded
UML2 Modelers Common Classes oracle.uml.v2.modeler 11.1.1.2.36.55.36 Loaded
URL Connection oracle.jdevimpl.urlconn 11.1.1.2.36.55.36 Loaded
VHV oracle.ide.vhv 11.1.1.2.36.55.36 Loaded
Versioning Support oracle.jdeveloper.vcs 11.1.1.2.36.55.36 Loaded
Versioning Support for Subversion oracle.jdeveloper.subversion 11.1.1.2.36.55.36 Loaded
Virtual File System oracle.ide.vfs 11.1.1.2.36.55.36 Loaded
WSDL Chooser oracle.jdeveloper.wsdllookup 11.1.1.0.0 Loaded
WSDL web services extension oracle.jdevimpl.wsdl 11.1.1.2.36.55.36 Loaded
Web Browser and Proxy oracle.ide.webbrowser 11.1.1.2.36.55.36 Loaded
Web Services oracle.jdeveloper.webservice 11.1.1.0.0 Loaded
WebDAV Connection Support oracle.jdeveloper.webdav2 11.1.1.2.36.55.36 Loaded
WebStart oracle.j2ee.webstart 11.1.1.0.0 Loaded
XML Compare oracle.jdeveloper.xml-compare 11.1.1.2.36.55.36 Loaded
XML Editing Framework IDE Extension oracle.ide.xmlef 11.1.1.2.36.55.36 Loaded
XML Editing Framework Java Integration oracle.jdeveloper.xmlef 11.1.1.2.36.55.36 Loaded
XSL Mapper oracle.bpm.mapper 11.1.1.2.0.12.16 Loaded
adf-deploy-dt oracle.adfdt.common.deploy 11.1.1.2.36.55.36 Loaded
adf-deploy-dt-mds oracle.adfdt.common.deploy.mds 11.1.1.2.36.55.36 Loaded
adf-installer-ide adf.installer.dt 11.1.1.2.36.55.36 Loaded
adf-jmxdc-ide oracle.adf.jmxdc 11.1.1.2.36.55.36 Loaded
adf-logging-dt oracle.adf.logging.dt 11.1.1.2.36.55.36 Loaded
adf-model-debugger-dt oracle.adf-model-debugger-dt 11.1.1.2.36.55.36 Loaded
adf-model-tools oracle.adf.model.tools 11.1.1.2.36.55.36 Loaded
adf-security-policy-dt oracle.adfdtinternal.adf-security-policy-dt 11.1.1.2.36.55.36 Loaded
adf-share-deploy-dt oracle.adf.share.deploy.dt 11.1.1.2.36.55.36 Loaded
adf-share-dt oracle.adf.share.dt 11.1.1.2.36.55.36 Loaded
adfmcoredt-xdf oracle.adfm.xdf 11.1.1.2.36.55.36 Loaded
adfquerylovdt oracle.adf-faces-query-and-lov-dt 11.1.1.2.36.55.36 Loaded
appoverview oracle.ide.appoverview 11.1.1.2.36.55.36 Loaded
asnav-weblogic oracle.jdeveloper.asnav.weblogic 11.1.1.2.36.55.36 Loaded
audit oracle.ide.audit 11.1.1.2.36.55.36 Loaded
audit-core oracle.ide.audit.core 11.1.1.2.36.55.36 Loaded
bi-jdbc oracle.bi.jdbc 11.1.1.2.36.55.36 Loaded
classpath: protocol handler extension oracle.jdeveloper.classpath 11.1.1.0.0 Loaded
db-audit oracle.ide.db.audit 11.1.1.2.36.55.36 Loaded
db-modeler-transform oracle.dbmodeler.transform 11.1.1.2.36.55.36 Loaded
dcadapters-ide oracle.adfm.dc-adapters 11.1.1.2.36.55.36 Loaded
dependency-java oracle.jdeveloper.java.dependency 11.1.1.2.36.55.36 Loaded
dependency-refactor oracle.jdeveloper.refactoring.dependency 11.1.1.2.36.55.36 Loaded
deploy-ant oracle.deploy.ant 11.1.1.2.36.55.36 Loaded
deploy-rt oracle.jdevimpl.deploy-rt 11.1.1.2.36.55.36 Loaded
feedback-client2 oracle.ideimpl.feedback2.client 11.1.1.2.36.55.36 Loaded
ide-diagnostics oracle.ide.diagnostics 11.1.1.0.0 Loaded
j2ee-adrsimpl oracle.j2ee.adrsimpl 11.1.1.0.0 Loaded
j2ee-facelets oracle.j2ee.facelets 11.1.1.2.36.55.36 Loaded
j2ee-jpsconfig oracle.j2ee.jpsconfig 11.1.1.2.36.55.36 Loaded
j2ee-security oracle.j2ee.security 11.1.1.2.36.55.36 Loaded
j2ee-server oracle.j2ee.server 11.1.1.0.0 Loaded
j2ee-server-dt oracle.j2ee.server.dt 11.1.1.2.36.55.36 Loaded
j2ee-serverimpl oracle.j2ee.serverimpl 11.1.1.2.36.55.36 Loaded
j2ee-weblogic oracle.j2ee.weblogic 11.1.1.2.36.55.36 Loaded
j2ee-weblogic-editors oracle.j2ee.weblogic.editors 11.1.1.2.36.55.36 Loaded
jdukshare oracle.bm.jdukshare 11.1.1.2.36.55.36 Loaded
library-dconfig-infra oracle.jdeveloper.library.dconfig.infra 11.1.1.2.36.55.36 Loaded
library-jee-api oracle.jdeveloper.library.jee.api 11.1.1.2.36.55.36 Loaded
library-jmx oracle.jdeveloper.library.jmx 11.1.1.2.36.55.36 Loaded
library-jps oracle.jdeveloper.library.jps 11.1.1.2.36.55.36 Loaded
library-weblogic-api oracle.jdeveloper.library.weblogic.api 11.1.1.2.36.55.36 Loaded
library-weblogic-client oracle.jdeveloper.library.weblogic.client 11.1.1.2.36.55.36 Loaded
mof oracle.mof 11.1.1.2.36.55.36 Loaded
mof-index oracle.mof.index 11.1.1.2.36.55.36 Loaded
mof-xmi oracle.mof.xmi 11.1.1.2.36.55.36 Loaded
oracle.adfm oracle.adfm 11.1.1.2.36.55.36 Loaded
oracle.adfm.contextual oracle.adfm.contextual 11.1.1.2.36.55.36 Loaded
oracle.dynamic-faces-dt oracle.dynamic.faces 11.1.1.2.36.55.36 Loaded
oracle.ide.dependency oracle.ide.dependency 11.1.1.2.36.55.36 Loaded
oracle.ide.filequery oracle.ide.filequery 11.1.1.2.36.55.36 Loaded
oracle.ide.indexing oracle.ide.indexing 11.1.1.2.36.55.36 Loaded
oracle.ide.usages-tracking oracle.ide.usages-tracking 11.1.1.2.36.55.36 Loaded
oracle.todo.tasks oracle.todo.tasks 11.1.1.2.36.55.36 Loaded
palette2 oracle.ide.palette2 11.1.1.2.36.55.36 Loaded
placeholder-jsf-ui oracle.placeholderjsf-ui 11.1.1.2.36.55.36 Loaded
placeholderdc-dt oracle.placeholderdc.dt 11.1.1.2.36.55.36 Loaded
rcasadapter-dt oracle.jdeveloper.asadapter.dt 11.1.1.2.36.55.36 Loaded
rcasadapter-oc4j oracle.jdeveloper.asadapter.oc4j 11.1.1.2.36.55.36 Loaded
rcasadapter-rescat2 oracle.jdeveloper.asadapter.rescat2 11.1.1.2.36.55.36 Loaded
rcasadapter-thirdparty oracle.jdeveloper.asadapter.thirdparty 11.1.1.2.36.55.36 Loaded
rcasadapter-weblogic oracle.jdeveloper.asadapter.weblogic 11.1.1.2.36.55.36 Loaded
rcasadapter-weblogic-api oracle.jdeveloper.asadapter.weblogic.api 11.1.1.2.36.55.36 Loaded
rescat2 oracle.jdevimpl.rescat2 11.1.1.2.36.55.36 Loaded
resourcebundle-api-adfdeps oracle.jdeveloper.resourcebundle.adfdeps 11.1.1.2.36.55.36 Loaded
resourcebundle-api-xliff oracle.resourcebundle.xliff 11.1.1.2.36.55.36 Loaded
resourcebundle-customization oracle.jdeveloper.resourcebundle.customization 11.1.1.2.36.55.36 Loaded
searchbar-gallery oracle.ide.searchbar.gallery 11.1.1.2.36.55.36 Loaded
searchbar-help oracle.ide.searchbar.help 11.1.1.2.36.55.36 Loaded
searchbar-index oracle.ide.searchbar.index 11.1.1.2.36.55.36 Loaded
status oracle.ide.status 11.1.1.2.36.55.36 Loaded
xml-schema-dt oracle.jdevimpl.xml.schema 11.1.1.2.36.55.36 Loaded
xsl-dt oracle.jdevimpl.xml.xsl 11.1.1.2.36.55.36 Loaded
xsqldt-ide oracle.xsqldt-ide 11.1.1.2.36.55.36 LoadedHi
thanks for getting back to me.
I just went to the controls panel (under Systemsteuerung\Programme\Standardprogramme\Dateizuordnungen festlegen, sorry, German) I can see:
Name: .swf
Description: Shockwave Flash Object
Application: Unknown application
Also, double clicking a swf file prompts me with a dialog saying Windows can't openit since it doesn't know how. -
Exceptions trying to run Junit test thro Jdev. Test uses Application module
Hi,
my junit test works through the OraTst frame work. But I want to debug the code and If I try to run the same test through Jdev I am running into a following exception. Can somebody tell me how to fix this issue.
I am a consumer of the Application module, I have not created it. I am using it by referencing it through the jar file provided by the owner.
oracle.jbo.DMLException: JBO-27200: JNDI failure. Unable to lookup Data Source at context jdbc/EMReposDS
at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1414)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:309)
at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:553)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:409)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8534)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4392)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2388)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareResource(ApplicationPoolImpl.java:3621)
at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:344)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2200)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3088)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:460)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:431)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:426)
at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1494)
at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1399)
at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1370)
-SiddSidd,
No idea what OraTst is, but based upon the name of your data source, I'd guess you are an Oracle employee using an internal framework. I understand that there are some internal Oracle forums that you can use.
John -
Creating junit test cases using the reflection API
In order to use the reflection API to get information about a *.java file's class name and methods, I need to compile the *.java file first, and then get info through the *.class file. Am I right?
Eclipse, the Java IDE, can create junit test cases for java files the user selects right after the *.java files have been created, and even before the *.java files have been compiled by the user. I guess Eclipse internally compiles the java files before creating JUnit test cases for them. Does anyone know about it? Thanks.Let me explain my problem in more details.
Given any java source tree, my program is supposed to create junit test cases for each class using java reflection. My approach is to scan through the source tree to keep the list of classes available, then compile all the java files in the given source tree, then do Class.forName() to load them to get their methods... Obviously I don't know what classes I will have at compilation time. I create a temp_classes directory as the output directory for the given source tree java files, and I add temp_classes to my classpath when I strart up my own program. However, that won't work..
D:\eclipse\workspace\cmpe271_hw4\classes>java -classpath ..\classes;..\temp_classes Test
javac -classpath .\temp_classes; -d .\temp_classes @temp_classes\javalist.txt
java.lang.ClassNotFoundException: Factory
java.lang.ClassNotFoundException: InvalidDateFormatException
java.lang.ClassNotFoundException: MyUtility
java.lang.ClassNotFoundException: Storage -
Check if an exception is thrown during my JUnit test
Hi all,
I've been writing unit tests for the application I'm writing.
I'm trying to write one very generic test which will simply open up the application, press some buttons, and close it back down, and confirm that no exceptions were thrown at any time during the test.
Unfortunately, while I figured I could just wrap the whole thing in a try/catch block, it seems that I have an exception that is being thown in the AWT-EventQueue which isn't being caught. The test passes fine, but I want it to fail.
What is the best way to go about checking for this? Should I be running the test in the event queue? Or should I have my own error handler to catch the exceptions?
Thanks!
Timjschell wrote:
TimQuinn wrote:
I'm not trying to fix the bug. I'm trying to make my JUnit tests catch the exception. I think we're going around in circles here.Yep. Because the problem was stated incorrectly.
Exceptions are returned up the call stack within the thread of execution.
You have two threads. The one that the test runs in A, and another B.
You can't catch or even see an exception in A that originated in B as an exception (you can't catch it.)
So you need to find some other way, some other place, to put a catch, in thread B and then create data which indicates whether it worked or not. Or find some other existing data that changes state because of that.Well, the question that I asked in my original post was exactly that: how do I find out about an exception that is thrown in another thread? If something got stated incorrectly, maybe it was in the later posts?
It can't be impossible: I can think of one very simple solution to my question, but it isn't very good. I can simply replace the Standard Error writer with one that sets a"fail" flag every time it is called. Then my test can fail every time Standard Error is written to, no matter which thread it's in. Obviously, this isn't a great solution, because, while it would fail the test every time an exception was printed, it would fail other times as well.
So with a bit more work I could parse what's written to stderr myself, to check if it's a real exception. But this really seems like re-inventing the wheel. Is there no standard pattern for creating a test that confirms that you can run something without generating exceptions? -
Writing JUnit test app to test a method which uses AppResources
Recently I was given a requirement to write a JUnit class( with main) to test a method in a Processor class which is running in weblogic. But this method in processor class makes use of AppResources like this: AppResources appResources = new AppResources("ApplicationResources"); String ruleFileName = appResources.getResourceString("rule.file.irlfile"); But when I try to run my JUnit test (stand alone app with main class) I am getting "java.util.MissingResourceException: Can't find bundle for base name ApplicationResources" exception. The appResources is null... Any ideas how to work around this problem?
It doesn't sound like the Process class was designed for testability outside of its J2EE server container, probably. So writing a unit test for it, under its current design, may be an exercise in futility. You might want to look into "Cactus" tests (search for JUnit Cactus on the web), to test it in its container. Or, redesign the class for testability, separating its business logic better (that's a lot of work to do though) so that it can be instantiated and exercised independently of its environment.
-
Hello,
I'm using KODO 2.4.3 and JUnit 3.8.1 and log4j 1.2.8.
I have a problem when executing TestCases with JUnit! I think it have to
do with log4j.
The Error is:
javax.jdo.JDOFatalUserException: Exception thrown by
getPersistenceManagerFactory(Properties)
Caused by: org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:416)
I regret, but JUnit doesnt show the complete output of the eexception and
you also can't copy and paste it! But it must have to do with the
log4j-Framework (which makes alyways problems with JUnit?)...
If I start JUnit without "-Dlog4j.ignoreTCL=true" then Errors occur with
log4j already before KODO is called...
Thanks for any idea.
Best wishes
BERNDBernd-
Hmmm ... I really think that this problem is because you have another
version of log4j somewhere in your CLASSPATH (or else the classpath that
ant is using). Do you get this exception if you try to use the junit
test cases stand-alone (by using the junit TestRunner class)?
Can you scour your classpath and any classpath that is being used by
ant to ensure that you do not have another log4j or commons-logging jar
anywhere?
In article <[email protected]>, Michael wrote:
I'm using 1.2.8 so I doubt it's the version. It's possible to have two
versions of the apache commons logging jar files, since they've renamed it
from commons-logging to jakarta-commons-logging a while back.
"Marc Prudhommeaux" <[email protected]> wrote in message
news:[email protected]...
Bernd-
Do you have a different version of log4j in your CLASSPATH (perhaps
being used by ant)? You might want to try log4j 1.2.6, which does not
exhibit any problems for us.
In article <[email protected]>, Bernd Ruecker wrote:
Yes, I have both...
Michael wrote:
Do you have both log4j & commons-logging jar files in your classpath??
"Bernd Ruecker" <[email protected]> wrote in message
news:[email protected]...
Hello,
I'm using KODO 2.4.3 and JUnit 3.8.1 and log4j 1.2.8.
I have a problem when executing TestCases with JUnit! I think it have
to
do with log4j.
The Error is:
javax.jdo.JDOFatalUserException: Exception thrown by
getPersistenceManagerFactory(Properties)
Caused by: org.apache.commons.logging.LogConfigurationException:Class
org.apache.commons.logging.impl.Log4JCategoryLog does not implementLog
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI
mpl.java:416)
I regret, but JUnit doesnt show the complete output of the eexception
and
you also can't copy and paste it! But it must have to do with the
log4j-Framework (which makes alyways problems with JUnit?)...
If I start JUnit without "-Dlog4j.ignoreTCL=true" then Errors occurwith
log4j already before KODO is called...
Thanks for any idea.
Best wishes
BERND
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com
Maybe you are looking for
-
Installation problem od Oracle 1.8.7.0.1 on Mandrake 7.2
When attempting to launch ./runInstaller from the command line I get the following: SIGSEGV received at bfffece8 in /mnt/vol/Disk1/stage/Components/oracle.swd.jre/1.1.8/1/DataFiles/Expanded/linux/lib/linux/native_threads/libawt.so. Processing termina
-
Why won't the App Store let me download things that are free, just because I don't have money on my card sometimes, it's free so I just don't get it??
-
Flash not showing up in browser
I have a weird question that doesn't pertain to the actual macromedia software. I created a flash banner ad for this website, www.metrictv.com. So far when I view this movie it appears fine on most of the systems and browsers I try it on. However, fo
-
Bluetooth is no longer available?
Hello, I have both an Apple wireless keyboard A1016 and a wireless mightymouse A1197 and when I booted up this morning they were no longer available. I verified that the batteries were good and zapped the pram twice to no avail. When I type in blueto
-
I'm trying to install/upgrade a 60gb Corsair SSD. When I put in the available secondary hdd slot it shows up fine in windows and I'm able format and mirror image the drive. But when I take out the original 1tb HDD and put the SSD in the primary slot