Thursday, September 23, 2010

NPE when configuring Subversion in JDeveloper

I haven't been using the SVN capabilities built in to JDeveloper for my local dev environment, but instead have been using Smart SVN (I'm on OS X, and wish I could Tortoise SVN). The trial version of Smart SVN does not enable some features, such as Branching and Tagging. I have a need to do this from my local machine and would prefer to do so in a GUI. Anwyay, I'm trying to do a check out from JDeveloper (11.1.1.1.0 Build JDEVADF_11.1.1.1.0_GENERIC_090615.0017.5407), and since I have not done so in this install of JDev, I have to first configure the SVN connection. Well, as soon as I click the 'Test Connection' button I get a Null Pointer Exception:

"Performing action Check Out...[ from oracle.ide.ceditor.CodeEditor ]
Invoking command: [ from oracle.ide.ceditor.CodeEditor ]
Uncaught exception
java.lang.NullPointerException
o.ji.vcs.svn.util.SVNRepositoryInfoValidator.validate(SVNRepositoryInfoValidator.java:58)
o.ji.vcs.svn.nav.ui.ConnectionPanel$ConnectionTesterThread.run(ConnectionPanel.java:412)


The solution is to remove/rename the existing preferences.xml (and possibly the repositories.xml) under the JDeveloper install directory:

%JDEV_HOME%/jdeveloper/system11.1.1.1.33.54.07/o.jdeveloper.subversion

Many Thanks to Nick for help on resolving this issue.

Wednesday, February 3, 2010

Running with Integrated WLS fails on Mac OS (8681385)

Loaded a different version of JDeveloper (Build JDEVADF_11.1.1.1.0_GENERIC_090615.0017.5407) today and ran into an issue that I knew I had seen before, which I think must have been cleared up with 11.1.1.2.0:

[08:26:20 AM] #### Deployment incomplete. ####
java.io.FileNotFoundException: /var/folders/fc/fcBxVMI8GS8ilNvLNsNQ6U TI/-Tmp-/adfmeta1829925691998595481.xml (No such file or directory)
at java.io.FileOutputStream.open(Native Method)


This is a known issue and is resolved by adding the following to the jdev.conf file:
AddVMOption -Djava.io.tmpdir=/var/tmp