Wednesday, July 23, 2008

'weblogic.kernel.Default (self-tuning)'" java.lang.OutOfMemoryError: PermGen space"

You will get to see this kind of exception, when you run Oracle BPELPM on weblogic server.

Entire line of the exception is as below.
Exception in thread "[ACTIVE] ExecuteThread: '19' for queue: 'weblogic.kernel.Default (self-tuning)'" java.lang.OutOfMemoryError: PermGen space

If you get this exception from your log file (oracleBPELServer.out) under your domain. Then do the following to fix this issue.

1. Navigate to the Weblogic Admin console.
2. Click on the server tab on your left side.
3. Click on your instance - domain
4. Click on the Server start, you can see this tab when the Configuration link is selected.
5. Please set values for those empty fields.
a. Java_home
b. Java Vendor:
c. Bea Home:
d. Root Directory: root directory of the bpel domain.
6. Then in the "Arguments:" field you have to add the following. prefix the entry with the below value and add a space after adding the string.

-XX:MaxPermSize=512m

7. Then restart the oracleBPELServer using the admin console.

Note: When i had a talk with the expert team who is working on this, they said this exception occurs when the weblogic uses the SUN JDK, This exception was not there when they use weblogic JRocket JDK.
You will come to know which JDK the weblogic is using by looking at the top entry of the "oracleBPELServer.out" log file, which is available under the following location.
"C:\bea\user_projects\domains\BPELDomain\servers\oracleBPELServer\logs"

In my guess i think, when you run the build file to create oracleBPELServer, we will be configuring the java_home attribute, i think this is set for this domain to use the java_home mentioned while creating the domain.

If my entry is wrong, please put your comment.

Tuesday, July 22, 2008

weblogic.management.ManagementException: Unable to obtain lock

When i was working with the weblogic 9.2 version, i have installed oracle BPEL PM domain in weblogic server.
When i restarted the domain, i was hit with a strange bug, saying

"Exception while starting server 'oracleBPELServer': java.io.IOException: Server failed to start up. See server output log for more details."
"weblogic.management.ManagementException: Unable to obtain lock "
or "FAILED_NOT_RESTARTABLE"

I tryed to googled out the error and found some useful links Link asper the Shekar Atmakur i tried, it was not working. Then i tried with the following i was able to bring up the BPEL domain up and running.

Login to the administrative console and click on the domain that throws error.

Click on the "configuration" tab for that domain
Click on the "Server Start" tab available under the configuration tab.

Pass the username and password as "weblogic/weblogic" then restart the domain.
You should be able to bring the server up and running.