Quantcast
Channel: Indrayan's SOA Blog
Viewing all 62 articles
Browse latest View live

Invoke method in custom java class from BPEL

$
0
0
Step1:

Create java class and create jar file from it.
SampleJava.java











Test.jar











Step2: 
Import jar file in classpath(with export option selected) and using java embedding invoke java method.
Test_Java_BPEL.zip












Step3: 
It may happen successful compilation but failure to deploy code.In such case add the jar file under $Application/SCA-INF/lib folder.

Step4: 
To add custom jar in classpath check below link. Probably this will be required if jar is not exported and will be required in server runtime.

Exception in thread "main" java.lang.RuntimeException: error in finding weblogic.Home

$
0
0
Error:Exception in thread "main" java.lang.RuntimeException: error in finding weblogic.Home
        at weblogic.Home.getInstance(Home.java:91)
        at weblogic.Home.getPath(Home.java:97)
        at weblogic.Home.getFile(Home.java:102)
        at weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:116)
        at weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:76)
                       at com.utility.bam.BAMWaitingThread.main(BAMWaitingThread.java:14)

Reason: In Home.java within weblogic.jar it looks for System.getProperty("weblogic.home").If not defined shows above error.
Resolution: Create a Folder Middleware/weblogic and run the java file


java -cp C:\POC\Required_Jars\Server\wlfullclient.jar;. -Dweblogic.home="C:\Temp\Middleware\weblogic"   client.BAMWaitingThread

Exception in thread "main" java.lang.NullPointerException at java.io.File.(Unknown Source)

$
0
0
Error:Exception in thread "main" java.lang.NullPointerException
                     at java.io.File.(Unknown Source)
        at weblogic.management.utils.PDevHelper.getUpgradeLaunchLocation(PDevHelper.java:77)
                       at weblogic.management.utils.PDevHelper.getPDevClassLoader(PDevHelper.java:36)
                       at weblogic.management.scripting.utils.WLSTUtil.setupOffline(WLSTUtil.java:226)
                       at weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:134)
        at weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:76)
        at com.utility.bam.BAMWaitingThread.main(BAMWaitingThread.java:14)

Reason:PDevHelper looks for MiddlewareHomePath.TheBeaHomeHolder class looks for System.getProperty("BEA_HOME").If not defined shows above error.
Resolution:Refer to Middleware folder previously created

java -cp C:\POC\Required_Jars\Server\wlfullclient.jar;. -Dweblogic.home="C:\Temp\Middleware\weblogic"  -DBEA_HOME="C:\Temp\Middleware"client.BAMWaitingThreads

Exception in thread "main" java.lang.NullPointerException at weblogic.management.utils.PDevHelper.getUpgradeLaunchLocation(PDevHelper.java:70)

$
0
0
Error:
Exception in thread "main" java.lang.NullPointerException
        at weblogic.management.utils.PDevHelper.getUpgradeLaunchLocation(PDevHelper.java:70)
        at weblogic.management.utils.PDevHelper.getPDevClassLoader(PDevHelper.java:36)
        at weblogic.management.scripting.utils.WLSTUtil.setupOffline(WLSTUtil.java:226)
        at weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:134)
        at weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:76)
        at client.BAMWaitingThreads.fetchData(BAMWaitingThreads.java:24)
        at client.BAMWaitingThreads.main(BAMWaitingThreads.java:17)

Reason:PDevHelperrunsgetParentFile().getParentFile().getAbsolutePath() on Weblogic home[System.getProperty("weblogic.home")].
Resolution:Please make sure there is two layer of folder structure under any drive.
Any name can be given.









java -cp C:\POC\Required_Jars\Server\wlfullclient.jar;. -Dweblogic.home="C:\Temp\Middleware\weblogic"  -DBEA_HOME="C:\Temp\Middleware"client.BAMWaitingThreads

java.lang.ClassNotFoundException: com.oracle.cie.domain.script.jython.WLST_offline

$
0
0
Error:
Exception in thread "main" java.lang.RuntimeException: Could not find the OffLine WLST class
        at weblogic.management.scripting.utils.WLSTUtil.getOfflineWLSTScriptPathInternal(WLSTUtil.java:88)
        at weblogic.management.scripting.utils.WLSTUtil.setupOfflineInternal(WLSTUtil.java:255)
        at weblogic.management.scripting.utils.WLSTUtil.setupOffline(WLSTUtil.java:234)
        at weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:134)
        at weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:76)
        at client.BAMWaitingThreads.main(BAMWaitingThreads.java:15)
Caused by: java.lang.ClassNotFoundException: com.oracle.cie.domain.script.jython.WLST_offline

Reason:Required jar not found.
Resolution:Add com.oracle.cie.config-wls_7.1.0.0.jar in classpath


java.lang.NoClassDefFoundError: com/oracle/cie/common/util/logging/LogFactory...

$
0
0
Error:
Exception in thread "main" java.lang.RuntimeException: Invocation Target exception while getting the WLSTOffLineScript path
        at weblogic.management.scripting.utils.WLSTUtil.getOfflineWLSTScriptPathInternal(WLSTUtil.java:97)
        at weblogic.management.scripting.utils.WLSTUtil.setupOfflineInternal(WLSTUtil.java:255)
        at weblogic.management.scripting.utils.WLSTUtil.setupOffline(WLSTUtil.java:234)
        at weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:134)
        at weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:76)
        at client.BAMWaitingThreads.main(BAMWaitingThreads.java:15)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at weblogic.management.scripting.utils.WLSTUtil.getOfflineWLSTScriptPathInternal(WLSTUtil.java:85)
        ... 5 more
Caused by: java.lang.NoClassDefFoundError: com/oracle/cie/common/util/logging/LogFactory
        at com.oracle.cie.domain.script.jython.WLSTOfflineInterpreterHelper.(WLSTOfflineInterpreterHelper.java:29)
        at com.oracle.cie.domain.script.jython.WLST_offline.getWLSTOfflineInitFilePath(WLST_offline.java:241)
        ... 10 more
Caused by: java.lang.ClassNotFoundException: com.oracle.cie.common.util.logging.LogFactory



Reason: Required jar not found.

Resolution: Add  com.oracle.cie.comdev_6.3.0.0.jar in classpath

java.lang.NoClassDefFoundError: com/oracle/cie/domain/DomainConstants

$
0
0
Error:

java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at weblogic.management.scripting.utils.WLSTUtil.initOfflineContext(WLSTUtil.java:291)
        at weblogic.management.scripting.utils.WLSTUtil.setupOfflineInternal(WLSTUtil.java:267)
        at weblogic.management.scripting.utils.WLSTUtil.setupOffline(WLSTUtil.java:234)
        at weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:134)
        at weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:76)
        at client.BAMWaitingThreads.main(BAMWaitingThreads.java:15)
Caused by: java.lang.NoClassDefFoundError: com/oracle/cie/domain/DomainConstants
        at com.oracle.cie.domain.script.jython.WLScriptContext.init(WLScriptContext.java:220)
        at com.oracle.cie.domain.script.jython.WLScriptContext.setup(WLScriptContext.java:162)
        at com.oracle.cie.domain.script.jython.WLST_offline.setupContext(WLST_offline.java:105)
        ... 10 more
Caused by: java.lang.ClassNotFoundException: com.oracle.cie.domain.DomainConstants


Reason: Required jar not found.

Resolution: Add com.oracle.cie.config_7.1.0.0.jar in classpath

java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlObject

$
0
0
Error:

java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at weblogic.management.scripting.utils.WLSTUtil.initOfflineContext(WLSTUtil.java:291)
        at weblogic.management.scripting.utils.WLSTUtil.setupOfflineInternal(WLSTUtil.java:267)
        at weblogic.management.scripting.utils.WLSTUtil.setupOffline(WLSTUtil.java:234)
        at weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:134)
        at weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:76)
        at client.BAMWaitingThreads.main(BAMWaitingThreads.java:15)
Caused by: java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlObject

Reason: Required jar not found.

Resolution: Add com.bea.core.xml.xmlbeans_2.2.0.0.jar in classpath

java.lang.NoClassDefFoundError: com/oracle/cie/domain/xml/configxb/weblogic/x90/TargetableType

$
0
0
Error:

java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at weblogic.management.scripting.utils.WLSTUtil.initOfflineContext(WLSTUtil.java:291)
        at weblogic.management.scripting.utils.WLSTUtil.setupOfflineInternal(WLSTUtil.java:267)
        at weblogic.management.scripting.utils.WLSTUtil.setupOffline(WLSTUtil.java:234)
        at weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:134)
        at weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:76)
        at client.BAMWaitingThreads.main(BAMWaitingThreads.java:15)
Caused by: java.lang.NoClassDefFoundError: com/oracle/cie/domain/xml/configxb/weblogic/x90/TargetableType
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at com.oracle.cie.domain.AbstractManager.getInstanceObject(AbstractManager.java:85)
        at com.oracle.cie.domain.AbstractManager.load(AbstractManager.java:46)
        at com.oracle.cie.domain.aspect.ConfigAspectManager.(ConfigAspectManager.java:34)
        at com.oracle.cie.domain.WLSTemplateBuilder.(WLSTemplateBuilder.java:148)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at com.oracle.cie.domain.AbstractManager.getInstanceObject(AbstractManager.java:85)
        at com.oracle.cie.domain.AbstractManager.load(AbstractManager.java:46)
        at com.oracle.cie.domain.ConfigManager.(ConfigManager.java:37)
        at com.oracle.cie.domain.DomainConstants.(DomainConstants.java:20)
        at com.oracle.cie.domain.script.jython.WLScriptContext.init(WLScriptContext.java:220)
        at com.oracle.cie.domain.script.jython.WLScriptContext.setup(WLScriptContext.java:162)
        at com.oracle.cie.domain.script.jython.WLST_offline.setupContext(WLST_offline.java:105)
        ... 10 more
Caused by: java.lang.ClassNotFoundException: com.oracle.cie.domain.xml.configxb.weblogic.x90.TargetableType

Reason: Required jar not found.

Resolution: Add com.oracle.cie.config-wls-schema_10.3.4.0.jar in classpath

java.lang.NoClassDefFoundError: com/oracle/cie/wizard/ControllerProxy

$
0
0
Error:

java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at weblogic.management.scripting.utils.WLSTUtil.initOfflineContext(WLSTUtil.java:291)
        at weblogic.management.scripting.utils.WLSTUtil.setupOfflineInternal(WLSTUtil.java:267)
        at weblogic.management.scripting.utils.WLSTUtil.setupOffline(WLSTUtil.java:234)
        at weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:134)
        at weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:76)
        at client.BAMWaitingThreads.main(BAMWaitingThreads.java:15)
Caused by: java.lang.NoClassDefFoundError: com/oracle/cie/wizard/ControllerProxy
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
        at java.lang.Class.getMethod0(Unknown Source)
        at java.lang.Class.getMethod(Unknown Source)
        at com.oracle.cie.domain.AbstractManager.getInstanceObject(AbstractManager.java:88)
        at com.oracle.cie.domain.AbstractManager.load(AbstractManager.java:46)
        at com.oracle.cie.domain.ConfigManager.(ConfigManager.java:37)
        at com.oracle.cie.domain.DomainConstants.(DomainConstants.java:20)
        at com.oracle.cie.domain.script.jython.WLScriptContext.init(WLScriptContext.java:220)
        at com.oracle.cie.domain.script.jython.WLScriptContext.setup(WLScriptContext.java:162)
        at com.oracle.cie.domain.script.jython.WLST_offline.setupContext(WLST_offline.java:105)
        ... 10 more
Caused by: java.lang.ClassNotFoundException: com.oracle.cie.wizard.ControllerProxy

Reason: Required jar not found.

Resolution: Add com.oracle.cie.config-wls-schema_10.3.4.0.jar in classpath

java.lang.IllegalStateException: java.io.FileNotFoundException: C:\Temp\Middleware\.product.properties (The system cannot find the file specified)

$
0
0
Error:

java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at weblogic.management.scripting.utils.WLSTUtil.initOfflineContext(WLSTUtil.java:291)
        at weblogic.management.scripting.utils.WLSTUtil.setupOfflineInternal(WLSTUtil.java:267)
        at weblogic.management.scripting.utils.WLSTUtil.setupOffline(WLSTUtil.java:234)
        at weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:134)
        at weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:76)
        at client.BAMWaitingThreads.main(BAMWaitingThreads.java:15)
Caused by: java.lang.IllegalStateException: java.io.FileNotFoundException: C:\Temp\Middleware\.product.properties (The system cannot find the file specified)

Reason:The Upgrade class looks for .product.properties under Middleware folder. Actually the file should be present in the parent directory of weblogic.home being passed as System argument.


Resolution:Create dummy file .product.properties in the parent directory of Weblogic home directory(as per System argument weblogic.home). Anyhow it’s just a Warning hence can be ignored.

Execute Commands After You Exit From a Shell Prompt

$
0
0
 If you start a shell script or command and you exit (abort remote connection), the process / command will get killed.

use nohup command line-utility which allows to run command/process or shell script that can continue running in the background after you log out from a shell:

Syntax:



nohup command-name &

Oracle XE Error: The installer is unable to instantiate the file KEY_XE.reg

$
0
0
 In case OS is 32bit this will run perfectly without any issue. In c ase you are running on 64bit OS you may face below issue.Please follow the steps mentioned below:





















Copy text " C:\Users\nio\AppData\Local\Temp\{F8CA9032-93DA-4C62-B79E-96D45ECA3FAE}\KEY_XE.reg"
Go to registry(regedit) & browse to HKEY_CLASSES_ROOT\Installer\Products\266B7A503A089BE4EAD1986A429434C1\SourceList\Media
change the value of Disk1;1 with copied text

Previous:






After:







Select ok on the Error pop-up.


Install OSB in windows-64/Install OEPE on weblogic Server

Installation steps for Oracle SOA Suite 11g (11.1.1.7) on Windows 64bit m/c

$
0
0
Download pdf file from below Link for step by step approach to install Oracle SOA Suite:

·         Oracle Database Installation:

·         Weblogic Installation:

·         RCU Installation:

·         SOA Installation:

·         Domain Configurarion:

·         Jdeveloper Installation:




JDBC LLR, table verify failed for table 'DEV_SOAINFRA.WL_LLR_ADMINSERVER'

$
0
0
Issue:
#### <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1393589763826>1393589763826>
weblogic.transaction.loggingresource.LoggingResourceException: java.sql.SQLException: JDBC LLR, table verify failed for table 'DEV_SOAINFRA.WL_LLR_ADMINSERVER', row 'JDBC LLR Domain//Server' record had unexpected value 'osb_domain//AdminServer' expected 'osb_cluster_domain//AdminServer'*** ONLY the original domain and server that creates an LLR table may access it ***
Reason:
If already domain has been created earlier below error msg will be encountered in log:

Resolution: Login to DEV_SOAINFRA schema and change RECORDSTR field with correct domain name.

java.lang.OutOfMemoryError: PermGen space.

$
0
0
Issue: 
####<[STANDBY] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1393589780973>1393589780973>
 java.lang.OutOfMemoryError: PermGen space.
java.lang.OutOfMemoryError: PermGen space
Reason:
If not explicitly mentioned the default size of MaxPermGen is set to 32Mb which isn't enough for weblogic server.
Resolution: 
add below properties in  C:\Oracle\Middleware_weblogic\wlserver_10.3\common\nodemanager\ nodemanager.properties
JAVA_OPTION=-Xms1024m -Xmx1024m -XX:MaxPermSize=256m
StartScriptName=startWebLogic.cmd

StartScriptEnabled=true

java.io.IOException: Could not rotate server output log file in Weblogic Server

$
0
0
Issue:
Feb 28, 2014 7:33:57 AM>
java.io.IOException: Could not rotate server output log file (rename from 'C:\Oracle\Middleware_weblogic\user_projects\domains\osb_cluster_domain\servers\AdminServer\logs\AdminServer.out' to 'C:\Oracle\Middleware_weblogic\user_projects\domains\osb_cluster_domain\servers\AdminServer\logs\AdminServer.out00002' failed).
            at weblogic.nodemanager.server.LogFileRotationUtil.rotateLogFile(LogFileRotationUtil.java:75)
            at weblogic.nodemanager.server.LogFileRotationUtil.rotateServerFiles(LogFileRotationUtil.java:38)
            at weblogic.nodemanager.server.AbstractServerManager.startServer(AbstractServerManager.java:203)
            at weblogic.nodemanager.server.AbstractServerManager.start(AbstractServerManager.java:181)
            at weblogic.nodemanager.server.ServerManager.start(ServerManager.java:23)
            at weblogic.nodemanager.server.Handler.handleStart(Handler.java:609)
            at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:119)
            at weblogic.nodemanager.server.Handler.run(Handler.java:71)
            at java.lang.Thread.run(Thread.java:662)
Reason:
While trying to restart the server after any abnormal Shutdown one may face below error

Resolution: It may happen due to improper shutdown the file io operation wasn’t closed properly. That’s why weblogic user is unable to rename the file. Restarting the m/c should resolve the issue.

ERROR: transport error 202: bind failed: Address already in use

$
0
0
Issue:
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
ERROR: transport error 202: bind failed: Address already in use
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]


Reason:
One may face above issue if running Admin and/or one or more Managed Server in same physical m/c.
Resolution:
Solution: The issue is with setDomainEnv.cmd file. The Domain configuration wizard set the value of debugFlag to 'true'.
Since both AdminServer, osb_mngd_srvr_1 are running in the same physical box, osb_mngd_srvr_1 failed to listen to JAVA_DEBUG port because AdminServer is already listening to it. Comment out the initialization of debugFlag variable from the setDomainEnv.cmd and things should run fine.
rem set debugFlag=true


Enter username to boot WebLogic server:Error: Failed to get value from Standard Input

$
0
0
Issue:
Enter username to boot WebLogic server:Error: Failed to get value from Standard Input
Enter password to boot WebLogic server:
Resolution:

Solution: Copy the boot.properties file from C:\Oracle\Middleware_weblogic\user_projects\domains\osb_cluster_domain\servers\AdminServer\security to C:\Oracle\Middleware_weblogic\user_projects\domains\osb_cluster_domain\servers\osb_mngd_srvr_1\security (Managed Server security folder)
Viewing all 62 articles
Browse latest View live