Problem with UNC(Universal Naming Convention) paths while creating additional WAS server profiles


Encountered below problem when I was trying to create additional WAS profiles using the RAD 

following are error details ,( by looking at log)

!SESSION 2013-12-02 18:02:08.084 -----------------------------------------------
eclipse.buildId=unknown
java.fullversion=JRE 1.6.0 IBM J9 2.4 Windows 7 x86-32 jvmwi3260sr10fp1-20120202_101568 (JIT enabled, AOT enabled)
J9VM - 20120202_101568
JIT  - r9_20111107_21307ifx1
GC   - 20120202_AA
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -jar startup.jar
Command-line arguments:  -jar startup.jar -os win32 -ws win32 -arch x86 -clean -dev C:\Program Files (x86)\IBM\SDP\runtimes\base_v7\lib\bootstrap.jar,C:\Program Files (x86)\IBM\SDP\runtimes\base_v7\lib\j2ee.jar,C:\Program Files (x86)\IBM\SDP\runtimes\base_v7\lib\mail-impl.jar

!ENTRY org.eclipse.osgi 4 0 2013-12-02 18:02:09.886
!MESSAGE Startup error
!STACK 1
java.nio.channels.OverlappingFileLockException
               at sun.nio.ch.FileChannelImpl$SharedFileLockTable.checkList(FileChannelImpl.java:1187)
               at sun.nio.ch.FileChannelImpl$SharedFileLockTable.add(FileChannelImpl.java:1089)
               at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:889)
               at java.nio.channels.FileChannel.tryLock(FileChannel.java:962)
               at org.eclipse.core.runtime.internal.adaptor.Locker_JavaNio.lock(Locker_JavaNio.java:32)
               at org.eclipse.osgi.storagemanager.StorageManager.initializeInstanceFile(StorageManager.java:190)
               at org.eclipse.osgi.storagemanager.StorageManager.open(StorageManager.java:700)
               at org.eclipse.osgi.internal.baseadaptor.BaseStorage.initFileManager(BaseStorage.java:160)
               at org.eclipse.osgi.internal.baseadaptor.BaseStorage.initialize(BaseStorage.java:137)
               at org.eclipse.osgi.baseadaptor.BaseAdaptor.initializeStorage(BaseAdaptor.java:124)
               at org.eclipse.osgi.framework.internal.core.Framework.initialize(Framework.java:138)
               at org.eclipse.osgi.framework.internal.core.Framework.<init>(Framework.java:112)
               at org.eclipse.osgi.framework.internal.core.OSGi.createFramework(OSGi.java:90)
               at org.eclipse.osgi.framework.internal.core.OSGi.<init>(OSGi.java:31)
               at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:286)
               at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:173)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:600)
               at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
               at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
               at org.eclipse.core.launcher.Main.run(Main.java:973)
               at org.eclipse.core.launcher.Main.main(Main.java:948)
!SESSION Mon Dec 02 18:02:09 EST 2013 ------------------------------------------
!ENTRY org.eclipse.core.launcher 4 0 2013-12-02 18:02:09.907
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.NullPointerException
               at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:186)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:600)
               at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
               at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
               at org.eclipse.core.launcher.Main.run(Main.java:973)
               at org.eclipse.core.launcher.Main.main(Main.java:948)



Solution is

1.      Open Profile management configuration file i.e config.ini  from directory below
…\IBM\SDP\runtimes\base_v7\bin\ProfileManagement\configuration


2.      Update following entries

i.e. remove the @user.home and add some local temporary directory as below
osgi.instance.area.default=c:/temp/PMT/workspace
osgi.configuration.area=c:/temp/PMT/workspace/configuration

3.      Once you save the file , click on the “Run Profile Management Tool”  in RAD (from window->prefrerences->servers->was)


Ref:

No comments:

Post a Comment