Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Spring Context on BPEL Process

653103Jul 21 2011 — edited Jul 25 2011
I'm trying to execute a method of a class as a service using the Spring Context Component.

When the process gets to that activity thrwos an exception, I thought it was ´cause the method parameter types so I created a new class very simple... this is the class.
package mx.gob.lotenal.sasle.test;

public class Class1 {
    public Class1() {
        super();
    }
    
    public String testSpringContext(String in){
      return in + " Another String";    
    }
}
the Spring Configuration is this:
<?xml version="1.0" encoding="windows-1252" ?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:util="http://www.springframework.org/schema/util"
       xmlns:jee="http://www.springframework.org/schema/jee"
       xmlns:lang="http://www.springframework.org/schema/lang"
       xmlns:aop="http://www.springframework.org/schema/aop"
       xmlns:tx="http://www.springframework.org/schema/tx"
       xmlns:sca="http://xmlns.oracle.com/weblogic/weblogic-sca"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd http://www.springframework.org/schema/tool http://www.springframework.org/schema/tool/spring-tool-2.5.xsd http://xmlns.oracle.com/weblogic/weblogic-sca META-INF/weblogic-sca.xsd">
  <!--Spring Bean definitions go here-->
  <sca:service name="TestService" target="TestService" type="mx.gob.lotenal.sasle.test.Class1"/>
      <bean id="TestService" class="mx.gob.lotenal.sasle.test.Class1"></bean> 
</beans>
and this is the exception thrown on the execution:
<21/07/2011 01:59:29 PM CDT> <Error> <oracle.soa.bpel.engine.ws> <BEA-000000> <got RuntimeException
java.lang.NullPointerException
        at oracle.integration.platform.blocks.java.JavaEjbBindingUtils.findMethod(JavaEjbBindingUtils.java:51)
        at oracle.integration.platform.blocks.java.SpringServiceEngine.addPayloadProcessor(SpringServiceEngine.java:529)
        at oracle.integration.platform.blocks.java.SpringServiceEngine.request(SpringServiceEngine.java:193)
        at oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:139)
        at oracle.integration.platform.blocks.mesh.MessageRouter.request(MessageRouter.java:179)
        at oracle.integration.platform.blocks.mesh.MeshImpl.request(MeshImpl.java:155)
        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 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
        at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:71)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy298.request(Unknown Source)
        at oracle.fabric.CubeServiceEngine.requestToMesh(CubeServiceEngine.java:820)
        at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:263)
        at com.collaxa.cube.engine.ext.common.InvokeHandler.__invoke(InvokeHandler.java:1056)
        at com.collaxa.cube.engine.ext.common.InvokeHandler.handleNormalInvoke(InvokeHandler.java:583)
        at com.collaxa.cube.engine.ext.common.InvokeHandler.handle(InvokeHandler.java:130)
        at com.collaxa.cube.engine.ext.bpel.common.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:74)
        at com.collaxa.cube.engine.ext.bpel.common.wmp.BaseBPELActivityWMP.perform(BaseBPELActivityWMP.java:158)
        at com.collaxa.cube.engine.CubeEngine._performActivity(CubeEngine.java:2463)
        at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:2334)
        at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1115)
        at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:73)
        at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:220)
        at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:328)
        at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:4350)
        at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:4281)
        at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1204)
        at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.handleWorkItem(CubeEngineBean.java:379)
        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 com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
        at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
        at com.bea.core.repackaged.springframework.jee.intercept.MethodInvocationInvocationContext.proceed(MethodInvocationInvocationContext.java:104)
        at oracle.security.jps.ee.ejb.JpsAbsInterceptor$1.run(JpsAbsInterceptor.java:94)
        at java.security.AccessController.doPrivileged(Native Method)
        at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
        at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
        at oracle.security.jps.ee.ejb.JpsAbsInterceptor.runJaasMode(JpsAbsInterceptor.java:81)
        at oracle.security.jps.ee.ejb.JpsAbsInterceptor.intercept(JpsAbsInterceptor.java:112)
        at oracle.security.jps.ee.ejb.JpsInterceptor.intercept(JpsInterceptor.java:105)
        at sun.reflect.GeneratedMethodAccessor1181.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at com.bea.core.repackaged.springframework.jee.intercept.JeeInterceptorInterceptor.invoke(JeeInterceptorInterceptor.java:69)
        at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
        at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
        at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
        at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
        at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
        at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
        at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
        at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
        at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy285.handleWorkItem(Unknown Source)
        at com.collaxa.cube.engine.ejb.impl.bpel.BPELEngineBean_51369e_ICubeEngineLocalBeanImpl.__WL_invoke(Unknown Source)
        at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:39)
        at com.collaxa.cube.engine.ejb.impl.bpel.BPELEngineBean_51369e_ICubeEngineLocalBeanImpl.handleWorkItem(Unknown Source)
        at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handle(PerformMessageHandler.java:44)
        at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:140)
        at com.collaxa.cube.engine.dispatch.BaseDispatchTask.process(BaseDispatchTask.java:88)
        at com.collaxa.cube.engine.dispatch.BaseDispatchTask.run(BaseDispatchTask.java:64)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
>
When the activity takes place it doesn't end, Enterprise Manager Console says there are X instances of this component running, even older instances are running...

What is missing on my configuration?

Thanks in advance

Comments

Vite DBA
Hi Sudhir,

obviously you haven't been studying the documentation too closely.

http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21673/otn_install.htm#BABDEAFD

Regards
Andre
Jitendra
Hi Sudhir,


To change the password for the ADMIN account:

1) Change your working directory to the apex directory where you unzipped the installation software.

2) Start SQL*Plus and connect to the database where Oracle Application Express is installed as SYS specifying the SYSDBA role. For example:

On Windows:

SYSTEM_DRIVE:\ sqlplus /nolog
SQL> CONNECT SYS as SYSDBA
Enter password: SYS_password

On UNIX and Linux:

$ sqlplus /nolog
SQL> CONNECT SYS as SYSDBA
Enter password: SYS_password

3) Run apxchpwd.sql. For example:

@apxchpwd

4) When prompted enter a password for the ADMIN account.


Hope this will helps you,

If you want more details about other Information related to installation
then follow the documentation suggested by Andre.

Regards,
Jitendra
909328
Hi Jitendra,

I tried connecting through sydba role. When I enter password I am getting this error TNS: protocol adapater error;

have installed oracle 10g express edition. From there menu sqlplus link i am able to connect to the sysdba role. sysdba role password have provided as "oracle"

Please guide me how to fix this issue.

Thanks
Sudhir
Jitendra
Hi Sudhir,

try this from SQL Prompt.
1 ) SQL> CONN SYS AS SYSDBA
and then your password.
either try this
2) CONN / AS SYSDBA


This is just a guess...try the above..

hope this will solve your issue.

thanks,
jitendra
Kiran Pawar
Hello Sudhir,

Do you have multiple databases on your system? If you have:
<ul>
<li>First of all check the service for the database on which you installed apex is up.</li>
<li>Check if the Listener service for the database is up.</li>
</ul>
Try the following if yours is a Windows OS:
SYSTEM_DRIVE:\ > sqlplus
Username: conn sys@<database-name> as sysdba
Password: <database-password>
For Example:
C:\ > sqlplus
Username: conn sys@mydb as sysdba
Password: ******
OR

Alternatively you can also try following:
SYSTEM_DRIVE:\ > set ORACLE_SID = <database-name>
SYSTEM_DRIVE:\ > sqlplus /nolog
SQL> CONNECT SYS as SYSDBA
Enter password: SYS_password
The rest is documented here:

http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21673/otn_install.htm#BABDEAFD

Also Refer:

http://www.orafaq.com/wiki/ORACLE_SID

In order to get accurate/appropriate response you should include at least following information with your question:
<ul>
<li>Full APEX version</li>
<li>Full Database version</li>
<li>APEX Web server architecture (EPG, OHS or APEX listener)</li>
<li>Browser(s) and version(s) used</li>
<li>Operating system with version</li>
</ul>

Please read the [url https://wikis.oracle.com/display/Forums/Forums+FAQ]FAQ and [url https://forums.oracle.com/forums/ann.jspa?annID=1324]forum instructions for more information on using OTN forums effectively.

Please perform a [url https://forums.oracle.com/forums/search!default.jspa]forum search before posting a question as this will help reduce duplicate threads.

Please update your forum profile with a real handle instead of user6774496.

Hope it helps!
Regards,
Kiran
909328
Hi Kiran,

Thanks for you reply. I tried all the ways as you suggested me to check. I am working in a client place so they actually installed oracle 10g later they uninstalled and installed oracle 10g xpress edition.

If I login from sqlplus where xe is installed. I am able to login. Please suggest me how to reset the admin password because when ever i connect to sysdba it asked for password. If i give the password it shows TNS: Protocol adapater error


Thanks
Sudhir
Kiran Pawar
Hello Sudhir,

>
If i give the password it shows TNS: Protocol adapater error
>

Here you can look for possible remedies:

http://www.dba-oracle.com/t_ora_12560_tns_protocol_adapter_error.htm

>
If I login from sqlplus where xe is installed. I am able to login.
>
Does this mean you are using Oracle Database Client ?

Hope it helps!
Regards,
Kiran
1 - 7
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 22 2011
Added on Jul 21 2011
2 comments
303 views