Problem creating EJB 3.0 Entity bean in JDeveloper

Hello all,
I trying to create my first entity bean in JDeveloper.
JDevelper create the entity bean with the code below:
package model;
import java.io.Serializable;
import javax.persistence.Entity;
@Entity
public class BatchSettlementT implements Serializable {
public BatchSettlementT() {
The problem is that JDeveloper don't find the import command import javax.persistence.Entity;
What am I doing wrong?
I'm using JDeveloper Studio Edition Version 10.1.3.1.0.3914.
My libraries are:
- TopLink
- Oracle XML Parser 2
- EJB 3.0
- Toplink Essentials JPA
- J2EE
Thanks in advance.

It's very strange, when I type import.javax. in my class there is no persistence package available, do you have any idea what's wrong.
I did set the technology scope to EJB either.
Thanks!

Similar Messages

  • Problem with ejb 3.0 entity beans with manyToMany relationship

    Hello everyone!
    I am using struts 1.2.9 and java ee 5 sdk update 2 for my enterprise application. Besides others i have these entity beans Targetgroup.java and City.java, (i would upload file but i do not know how:)
    with manytomany relationship with join table.
    when user updates Targetgroup, by clicking on web page with checkboxes and textfields, struts dispatch action calls following method stateless bean:
    public void update(String firmId, String targetgroupId, String newGender, String newMinYearsOld, String newMaxYearsOld, String[] newCities) {
    TargetgroupPK pkForUpdate = new TargetgroupPK(targetgroupId, firmId);
    Targetgroup targetgroupForUpdate = find(pkForUpdate);
    targetgroupForUpdate.setGender(newGender);
    targetgroupForUpdate.setMinyearold(Integer.parseIn t(newMinYearsOld));
    targetgroupForUpdate.setMaxyearold(Integer.parseIn t(newMaxYearsOld));
    //pronalazenje gradva za koje je vezana ciljna grupa
    Collection<City> newCitiesCollection = new ArrayList<City>();
    for(int i = 0; i < newCities.length; i++){
    String tmp_city_name = newCities;
    City city_obj = cityFacade.find(tmp_city_name);
    newCitiesCollection.add(city_obj);
    targetgroupForUpdate.setCityidCollection(newCities Collection);
    parameter newCities represents names of cities which user checked on his update page. When the page is showen to him some cities are allready check because they were connected with Targetgruoup when it was created (targetgroup).
    this code throws following exception:
    [#|2007-07-26T12:13:36.993+0200|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.container.web|_Threa dID=16;_ThreadName=httpWorkerThread-8080-0;_RequestID=f79d9c50-86b0-4b6c-96ab-97956dfb39c1;|StandardWrapperValve[action]: Servlet.service() for servlet action threw exception
    javax.ejb.EJBException: Transaction aborted; nested exception is: javax.transaction.RollbackException: Transaction marked for rollback.
    javax.transaction.RollbackException: Transaction marked for rollback.
    at
    .com.sun.enterprise.web.connector.grizzly.WorkerTh read.run(WorkerThread.java:75)
    javax.ejb.EJBException: Transaction aborted; nested exception is: javax.transaction.RollbackException: Transaction marked for rollback.
    at com.sun.ejb.containers.BaseContainer.completeNewTx (BaseContainer.java:3659)
    at com.sun.ejb.containers.BaseContainer.postInvokeTx( BaseContainer.java:3431)
    at com.sun.ejb.containers.BaseContainer.postInvoke(Ba seContainer.java:1247)
    at com.sun.ejb.containers.EJBLocalObjectInvocationHan dler.invoke(EJBLocalObjectInvocationHandler.java:1 92)
    at com.sun.ejb.containers.EJBLocalObjectInvocationHan dlerDelegate.invoke(EJBLocalObjectInvocationHandle rDelegate.java:71)
    at $Proxy149.update(Unknown Source)
    at audiotel.sms.actions.backoffice.TargetgroupDispatc hAction.updateOrDelete(TargetgroupDispatchAction.j ava:132)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.struts.actions.DispatchAction.dispatchM ethod(DispatchAction.java:270)
    at org.apache.struts.actions.DispatchAction.execute(D ispatchAction.java:187)
    at org.apache.struts.action.RequestProcessor.processA ctionPerform(RequestProcessor.java:431)
    at org.apache.struts.action.RequestProcessor.process( RequestProcessor.java:236)
    at org.apache.struts.action.ActionServlet.process(Act ionServlet.java:1196)
    at org.apache.struts.action.ActionServlet.doPost(Acti onServlet.java:432)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:727)
    com.sun.enterprise.web.connector.grizzly.WorkerThr ead.run(WorkerThread.java:75)
    |#]
    exceprion is throwen ONLY when in parameter newCities are city names allready connected to Targetgroup. when NewCities contains names of
    City objects which are not connected to Targetgroup it works fine, but it's of no use for me, because user must be able to add or remove certian cities from relaionship with Targetgroup. I think it's because there are rows in join table that contain primary keys of city and targetgroup which are connected so perisistence manager cann't write them again.
    i thought it was going to figure it out by itself, and only update those rows.
    Does anyone know what is the problem and solution?
    Thanks! (forgive my spelling errors :)

    solved the problem!
    I moved code from sesion bean to struts action as follows:
    CityFacadeLocal cityFacade = lookupCityFacade();
    //prikupljanje novih podataka o ciljnoj grupi
    String newGender = ctf.getGender();
    String newMaxYears = ctf.getMaxyears();
    String newMinYears = ctf.getMinyears();
    String[] newSelectedCities = ctf.getSelectedCities();
    //niz imena gradova se prevodi u kolekcju objekata City
    Collection<City> newCitiesObjCollection = new Vector<City>();
    for(int i = 0; i < newSelectedCities.length; i++){
    String tmpCityName = newSelectedCities;
    City tmpCityObj = cityFacade.find(tmpCityName);
    newCitiesObjCollection.add(tmpCityObj);
    //setovanje novih podataka
    targetgroupForUD.setGender(newGender);
    targetgroupForUD.setMinyearold(Integer.parseInt(newMinYears));
    targetgroupForUD.setMaxyearold(Integer.parseInt(newMaxYears));
    targetgroupForUD.setCityidCollection(newCitiesObjCollection);
    //pozivanje update metdoe u session beany
    targetgroupFacade.edit(targetgroupForUD);
    //korisnik se vraca na stranu sa svim postojecim ciljnim grupama
    forward = mapping.findForward("backend.targetgroups");
    and now it works fine. I guess probelm was same transaction scope for Targetgroup and City entities. Now when they are separated it works.
    Thanks!

  • Problems accessing ejb 3.0 entity bean from project

    I have written some code using ejb 3.0 and was previously accessing the entity bean without problem when both ejbs and the accessing code were in the same project. However I have moved the accessing code into a different project within the same application and now when the code tries to accessing the entity bean I get the following error:
    com.colwilson.web.ingestion.IdentifiedException: java.lang.ClassCastException: __Proxy3
         at com.colwilson.web.ingestion.IngestionHandler.recordArrived(IngestionHandler.java:140)
         at com.colwilson.web.ingestion.IngestionHandler.main(IngestionHandler.java:52)
    Caused by: java.lang.ClassCastException: __Proxy3
         at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.getFreshObject(StatelessSessionRemoteInvocationHandler.java:21)
         at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.getReplacementObject(RecoverableRemoteInvocationHandler.java:64)
         at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.handleRecovery(RecoverableRemoteInvocationHandler.java:41)
         at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:30)
         at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)
         at __Proxy1.mergeEntity(Unknown Source)
         at com.colwilson.web.ingestion.IngestionHandler.recordArrived(IngestionHandler.java:137)
         ... 1 more
    Now, of course I could move the code back into the same project, but as I understand it that is just the point of ejbs. I'm looking up the entity bean thus:
    final Context context = InitialContext();
    ingestionSessionEJB =
    (IngestionSessionEJB)context.lookup("IngestionSessionEJB");
    It may be true that I don't understand the way lookup works, but to be honest I can't find the docs that explain what I've got wrong.
    Please help.

    hi
    Double Click on the project which is goin to use the project which contains bean from the Application Navigator window. The project properties window will open. Choose the "Dependencies" item from left panel. click on the radio "User Project Settings" and select another project which contain ejb which you're goin to access...
    Best Of Luck
    Ravi A. Trivedi

  • Creating EJB 3.0 Session Bean under JDeveloper 10g.

    Hello im using JDeveloper 10 g all up 2 date.
    when i create EJB 2.x EJB everythink is ok .. there is a Wizzard(Designer) from which i can add methods variables and etc.
    all methods are become added to the session bean / remote interefeis etc.
    My Problem is when i create EJB 3.0
    when i do it the Bean class is created and the Remote interfeis with @remote is created too its ok BUT I CANT see Remote interfeis in my Application Naviagation its fine under 2.1 i cannot see remote interfeis and home interfeis too but inder 2.1 there is a wizzard(Designer) under 3.0 there is nothink.
    what am i wrong ? how can i make designer to work under 3.0 or how can i make Jdeveloper to show me all content of the EJBs

    another strange problem.
    i have an APplication server added ( JBOSS ).
    when i create deployment profile (EAR ) application server is showed in the ComboBox .
    But when i create Java Test Client for some EJB and when i check " Connect Remote Application server" there is 2 comboboxes
    J2EE Application
    App Server Connection.
    first combo is ok there is EJB applicaiton
    Secound is empty .. but i Have App Server.
    Another think is that when i create EJB 3.0 its BAD to see J2EE app it must be J EE 5 app or just Java EE app

  • EJB 3.0 Entity Bean

    Hi Friends,
    I am Facing a problem in EJB 3.0 Entity Bean. I am Using Eclipse 3.3.2 and JBoss 4.2 Application Server. Im getting the error such as *"javax.naming.NameNotFoundException: EntityBean not bound"* when im trying to lookup the entity bean. Herewith i had attached the servlet code. Can anyone suggest me.
    package common;
    import java.io.IOException;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import example.BookRemote;
    public class CounterServlet extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
    static final long serialVersionUID = 1L;
    private BookRemote hello;
         public CounterServlet() {
              super();
         protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              // TODO Auto-generated method stub
              try
         InitialContext ctx = new InitialContext();
         hello = (BookRemote) ctx.lookup("EntityBean/remote");
         hello.test();
         Integer count = 1;
         request.setAttribute("counter", count);
         request.getRequestDispatcher("result.jsp").forward(request, response);
         catch (NamingException e)
         e.printStackTrace();
         protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              // TODO Auto-generated method stub
         }

    I think the Bean haven't been registered. I had look into the jmx-console and this is the result which i have got for my sample application (EntityBean).
    java:comp namespace of the EntityBean.ear/EntityBeanWeb.war application:
    +- UserTransaction[link -> UserTransaction] (class: javax.naming.LinkRef)
    +- env (class: org.jnp.interfaces.NamingContext)
    | +- security (class: org.jnp.interfaces.NamingContext)
    | | +- realmMapping[link -> java:/jaas/other] (class: javax.naming.LinkRef)
    | | +- subject[link -> java:/jaas/other/subject] (class: javax.naming.LinkRef)
    | | +- securityMgr[link -> java:/jaas/other] (class: javax.naming.LinkRef)
    | | +- security-domain[link -> java:/jaas/other] (class: javax.naming.LinkRef)
    Global JNDI Namespace
    +- persistence.units:ear=EntityBean.ear,unitName=CounterServlet (class: org.hibernate.impl.SessionFactoryImpl)
    +- persistence.units:ear=TaskEnitity.ear,unitName=FirstEjb3Tutorial (class: org.hibernate.impl.SessionFactoryImpl)
    +- TopicConnectionFactory (class: org.jboss.naming.LinkRefPair)
    +- jmx (class: org.jnp.interfaces.NamingContext)
    | +- invoker (class: org.jnp.interfaces.NamingContext)
    | | +- RMIAdaptor (proxy: $Proxy48 implements interface org.jboss.jmx.adaptor.rmi.RMIAdaptor,interface org.jboss.jmx.adaptor.rmi.RMIAdaptorExt)
    | +- rmi (class: org.jnp.interfaces.NamingContext)
    | | +- RMIAdaptor[link -> jmx/invoker/RMIAdaptor] (class: javax.naming.LinkRef)
    +- HTTPXAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
    +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
    +- UserTransactionSessionFactory (proxy: $Proxy14 implements interface org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory)
    +- HTTPConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
    +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
    +- TransactionSynchronizationRegistry (class: com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionSynchronizationRegistryImple)
    +- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction)
    +- OnlineSurveyTool (class: org.jnp.interfaces.NamingContext)
    | +- RegisterBean (class: org.jnp.interfaces.NamingContext)
    | | +- remote (proxy: $Proxy79 implements interface online.IRegister,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject)
    | +- OnlineSurveyBean (class: org.jnp.interfaces.NamingContext)
    | | +- remote (proxy: $Proxy75 implements interface online.OnlineSurveyRemote,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject)
    +- UILXAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
    +- UIL2XAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
    +- queue (class: org.jnp.interfaces.NamingContext)
    | +- A (class: org.jboss.mq.SpyQueue)
    | +- testQueue (class: org.jboss.mq.SpyQueue)
    | +- ex (class: org.jboss.mq.SpyQueue)
    | +- DLQ (class: org.jboss.mq.SpyQueue)
    | +- D (class: org.jboss.mq.SpyQueue)
    | +- C (class: org.jboss.mq.SpyQueue)
    | +- B (class: org.jboss.mq.SpyQueue)
    +- topic (class: org.jnp.interfaces.NamingContext)
    | +- testDurableTopic (class: org.jboss.mq.SpyTopic)
    | +- testTopic (class: org.jboss.mq.SpyTopic)
    | +- securedTopic (class: org.jboss.mq.SpyTopic)
    +- console (class: org.jnp.interfaces.NamingContext)
    | +- PluginManager (proxy: $Proxy49 implements interface org.jboss.console.manager.PluginManagerMBean)
    +- UIL2ConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
    +- HiLoKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory)
    +- UILConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
    +- persistence.units:unitName=TestServlet (class: org.hibernate.impl.SessionFactoryImpl)
    +- QueueConnectionFactory (class: org.jboss.naming.LinkRefPair)
    +- UUIDKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactory)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Deployment descriptor error for an EJB 3.0 entity bean module

    Hi all,
    i'm facing an error deploying an EJB 3.0 entity bean module wrapped in an enterprise application on WebLogic 10.
    The application is composed as follows:
    WASEnterprise.ear
    |-META-INF
    |-application.xml
    |-WAS.jar
    |-META-INF
    |-persistence.xml
    In other words the application server is unable to load persistence.xml deployment descriptor and,during deployment, it throws an error message like this:
    <Error> <J2EE> <BEA-160197> <Unable to load descriptor C:\bea\user_projects\domains\base_domain\autodeploy\WASEnterprise\WAS/META-INF/persistence.xml of module WAS. The error is weblogic.descriptor.DescriptorException: Unmarshaller failed
    I suppose that the persistence.xml is correct since i can deploy the application on jboss without any problem.
    The persistence.xml deployment descriptor is:
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence>
    <persistence-unit name="CNT4">
    <non-jta-data-source>cnt5ds</non-jta-data-source>
    <class>it.eni.italgas.was.db.entity.AsiDisco</class>
    <class>it.eni.italgas.was.db.entity.AsiErrori</class>
    <class>it.eni.italgas.was.db.entity.WasAsiRouting</class>
    <class>it.eni.italgas.was.db.entity.WasAsiRoutingId</class>
    <class>it.eni.italgas.was.db.entity.WasAsiSchemas</class>
    </persistence-unit>
    </persistence>
    and the application.xml deployment descriptor is:
    <?xml version="1.0" encoding="UTF-8"?>
    <application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd">
    <display-name>WASEnterprise</display-name>
    <module id="myeclipse.1188512259959">
    <ejb>WAS.jar</ejb>
    </module>
    </application>
    I don't use any other weblogic specific deployment descriptor.
    Have you ever experienced such a strange behaviour? Can you suggest something to solve the problem?
    Thanks inadvance.
    Denis Maggiorotto

    Hi all,
    i'm facing an error deploying an EJB 3.0 entity bean module wrapped in an enterprise application on WebLogic 10.
    The application is composed as follows:
    WASEnterprise.ear
    |-META-INF
    |-application.xml
    |-WAS.jar
    |-META-INF
    |-persistence.xml
    In other words the application server is unable to load persistence.xml deployment descriptor and,during deployment, it throws an error message like this:
    <Error> <J2EE> <BEA-160197> <Unable to load descriptor C:\bea\user_projects\domains\base_domain\autodeploy\WASEnterprise\WAS/META-INF/persistence.xml of module WAS. The error is weblogic.descriptor.DescriptorException: Unmarshaller failed
    I suppose that the persistence.xml is correct since i can deploy the application on jboss without any problem.
    The persistence.xml deployment descriptor is:
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence>
    <persistence-unit name="CNT4">
    <non-jta-data-source>cnt5ds</non-jta-data-source>
    <class>it.eni.italgas.was.db.entity.AsiDisco</class>
    <class>it.eni.italgas.was.db.entity.AsiErrori</class>
    <class>it.eni.italgas.was.db.entity.WasAsiRouting</class>
    <class>it.eni.italgas.was.db.entity.WasAsiRoutingId</class>
    <class>it.eni.italgas.was.db.entity.WasAsiSchemas</class>
    </persistence-unit>
    </persistence>
    and the application.xml deployment descriptor is:
    <?xml version="1.0" encoding="UTF-8"?>
    <application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd">
    <display-name>WASEnterprise</display-name>
    <module id="myeclipse.1188512259959">
    <ejb>WAS.jar</ejb>
    </module>
    </application>
    I don't use any other weblogic specific deployment descriptor.
    Have you ever experienced such a strange behaviour? Can you suggest something to solve the problem?
    Thanks inadvance.
    Denis Maggiorotto

  • Deploying EJB 3.0 entity beans without a Datasource

    [Cross-posted from the TopLink list]
    My question: Is there any way to configure the container or persistence provider to defer trying to connect to the Datasource until I make some call that involves persistence? Or any other way to deploy an app containing entity beans without having a database configured?
    Background: I am working on a component that can be configured to run in either persistent or in-memory mode. For the persistent mode we would like to use EJB 3.0 entity beans; for the in-memory mode we would like the component to be deployable without having to have a database available.
    However in my prototype of the application, when I try to deploy to OC4J 10.1.3, as soon as the entity beans are detected the TopLink persistence provider tries to establish a connection to the db via either the configured or default DataSource. So if the db is unavailable, deployment fails. Since this is occuring at deployment, it happens regardless of whether I am actually using any persistence features or not.

    Hi,
    I'm experiencing same problems, is this a bug or an feature?

  • Failed to create "ejb/collaxa/system/FinderBean" bean; exception reported i

    I am unable to invoke BPEL service from an OA framework page. I am getting following error when I am trying to Invoke.
    oracle.apps.fnd.framework.OAException: java.lang.Exception: Failed to create "ejb/collaxa/system/DeliveryBean" bean; exception reported is: "java.lang.NullPointerException: domain was null
         at com.evermind.server.rmi.RMIServer.addNode(RMIServer.java:779)
         at com.evermind.server.rmi.RMIServer.getConnection(RMIServer.java:848)
         at com.evermind.server.rmi.RMIInitialContextFactory.getInitialContext(RMIInitialContextFactory.java:206)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
         at javax.naming.InitialContext.init(InitialContext.java:219)
         at javax.naming.InitialContext.<init>(InitialContext.java:195)
         at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:277)
         at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)
         at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:83)
         at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:53)
         at emr2.oracle.apps.inv.kanban.webui.KanPOCTestCO.getMsg(KanPOCTestCO.java:93)
         at emr2.oracle.apps.inv.kanban.webui.KanPOCTestCO.processRequest(KanPOCTestCO.java:45)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:518)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:920)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1536)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:866)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:833)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:575)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:363)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:866)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:833)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:575)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:330)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2121)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1562)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
         at _OA._jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    Code I am using to invoke is:
              Hashtable jndi = null;
              jndi = new Hashtable();
              jndi.put(Context.PROVIDER_URL, "ormi://142.176.225.111:23791/orabpel");
              jndi.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
              jndi.put(Context.SECURITY_PRINCIPAL, "oc4jadmin");
              jndi.put(Context.SECURITY_CREDENTIALS, "welcome1");
              Locator locator = new Locator("default", "welcome1", jndi);
              IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
              //System.out.println("4444");
              String xml ="<FirstTestBPELProcessProcessRequest xmlns=\"http://xmlns.oracle.com/FirstTestBPELProcess\"><input>123456789</input></FirstTestBPELProcessProcessRequest>";
              NormalizedMessage nm = new NormalizedMessage( );
              nm.addPart("payload", xml );
              NormalizedMessage res = deliveryService.request("FirstTestBPELProcess", "process", nm);
              Map payload = res.getPayload();
              Element elem = (Element)payload.get("payload");
    This code works excellent when called from a stand alone java class but it is not working when it is called from an OA Page.
    Can some one provide any pointer to the error.

    I think that your problem is that the Context.PROVIDER_URL is wrong.
    Here is a sample of url that we use here:
    opmn:ormi://servername:6005:home/orabpel
    where:
    "servername" is (duh) the servername
    "home" is the container that bpel is running
    "6005" is the opmn port.

  • Problem creating container for filter entity

    Hi,
    I have a working API gateway instance (11.1.2.1.0). But from today when I tried to access to it using my policy studio, it gives me this embarrassing error. It worked well, and the gateway instance itself is serving well.
    I can stop and start the gateway instance including the node manager.
    Only from today suddenly my policy studio cannot access to the gateway any more. Any idea? The policy studio can access to other gateway instances in the same version.
    I tried to access from another policy studio in a different machine. Same error.
    It seems the error shows up at the last step to loading filters.
    There must be a dirty stuff in my existing deployment, but it is working well and I have no idea how to clean it up.
    INVALID 2014/01/21 16:36:10.068 [ModalContext] [main] java exception:
    com.vordel.es.EntityStoreException: Problem creating container for filter entity
      at com.vordel.client.circuit.model.CircuitStore.getContainerForEntity(CircuitStore.java:523)
      at com.vordel.client.circuit.model.CircuitStore.addFilterToCircuit(CircuitStore.java:431)
      at com.vordel.client.circuit.model.CircuitStore.getCircuitForKey(CircuitStore.java:472)
      at com.vordel.client.circuit.model.CircuitStore.getCircuit(CircuitStore.java:189)
      at com.vordel.client.manager.filter.CircuitDelegateGUIFilter.filterAttached(CircuitDelegateGUIFilter.java:115)
      at com.vordel.circuit.FilterContainer.configureFilter(FilterContainer.java:41)
      at com.vordel.client.circuit.model.CircuitStore.getContainerForEntity(CircuitStore.java:513)
      at com.vordel.client.circuit.model.CircuitStore.addFilterToCircuit(CircuitStore.java:431)
      at com.vordel.client.circuit.model.CircuitStore.getCircuitForKey(CircuitStore.java:472)
      at com.vordel.client.circuit.model.CircuitStore.getCircuit(CircuitStore.java:189)
      at com.vordel.client.circuit.model.Tracker.incRefCount(Tracker.java:140)
      at com.vordel.client.circuit.model.HTTPTracker.initListeners(HTTPTracker.java:60)
      at com.vordel.client.circuit.model.FirewallTracker.initListeners(FirewallTracker.java:59)
      at com.vordel.client.circuit.model.Tracker.init(Tracker.java:92)
      at com.vordel.client.circuit.model.CircuitStore.initTrackers(CircuitStore.java:123)
      at com.vordel.client.manager.ManagerEntityStore.loadCircuits(ManagerEntityStore.java:195)
      at com.vordel.client.manager.ManagerEntityStore.loadData(ManagerEntityStore.java:143)
      at com.vordel.client.manager.Manager.loadConfiguration(Manager.java:165)
      at com.vordel.client.manager.LoadEntityStoreOperation.run(LoadEntityStoreOperation.java:29)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
    Caused by: java.lang.NullPointerException
      at de.odysseus.el.misc.NumberOperations.sub(NumberOperations.java:98)
      at de.odysseus.el.tree.impl.ast.AstBinary$13.apply(AstBinary.java:91)
      at de.odysseus.el.tree.impl.ast.AstBinary$SimpleOperator.eval(AstBinary.java:31)
      at de.odysseus.el.tree.impl.ast.AstBinary.eval(AstBinary.java:110)
      at de.odysseus.el.tree.impl.ast.AstBinary$SimpleOperator.eval(AstBinary.java:31)
      at de.odysseus.el.tree.impl.ast.AstBinary.eval(AstBinary.java:110)
      at de.odysseus.el.tree.impl.ast.AstEval.eval(AstEval.java:51)
      at de.odysseus.el.tree.impl.ast.AstNode.getValue(AstNode.java:30)
      at de.odysseus.el.TreeValueExpression.getValue(TreeValueExpression.java:122)
      at com.vordel.el.SelectorString.getStructure(SelectorString.java:340)
      at com.vordel.el.SelectorString.getStructure(SelectorString.java:352)
      at com.vordel.el.SelectorString.getWildcardRefs(SelectorString.java:361)
      at com.vordel.circuit.VariablePropertiesFilter.getRequiredPropertiesFromEntity(VariablePropertiesFilter.java:123)
      at com.vordel.circuit.VariablePropertiesFilter.configure(VariablePropertiesFilter.java:71)
      at com.vordel.circuit.CircuitChainFilter.configure(CircuitChainFilter.java:104)
      at com.vordel.circuit.switchcase.SwitchFilter.configure(SwitchFilter.java:130)
      at com.vordel.circuit.FilterContainer.configureFilter(FilterContainer.java:40)
      at com.vordel.client.circuit.model.CircuitStore.getContainerForEntity(CircuitStore.java:513)
      ... 19 more
    INVALID 2014/01/21 16:36:10.441 [ModalContext] [main] Problem loading the data from the entity store [federated:file:/C:/OAG-11.1.2.1.0/oagpolicystudio/configuration/workspace/1390322148340/fe521854-c08b-4ddf-9919-8219b38c13dd/configs.xml]:
    com.vordel.es.EntityStoreException: Problem creating container for filter entity
      at com.vordel.client.circuit.model.CircuitStore.getContainerForEntity(CircuitStore.java:523)
      at com.vordel.client.circuit.model.CircuitStore.addFilterToCircuit(CircuitStore.java:431)
      at com.vordel.client.circuit.model.CircuitStore.getCircuitForKey(CircuitStore.java:472)
      at com.vordel.client.circuit.model.CircuitStore.getCircuit(CircuitStore.java:189)
      at com.vordel.client.manager.FilterContainerStore.getContainer(FilterContainerStore.java:54)
      at com.vordel.client.manager.ManagerEntityStore.loadCircuits(ManagerEntityStore.java:211)
      at com.vordel.client.manager.ManagerEntityStore.loadData(ManagerEntityStore.java:143)
      at com.vordel.client.manager.Manager.loadConfiguration(Manager.java:165)
      at com.vordel.client.manager.LoadEntityStoreOperation.run(LoadEntityStoreOperation.java:29)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
    Caused by: java.lang.NullPointerException
      at de.odysseus.el.misc.NumberOperations.sub(NumberOperations.java:98)
      at de.odysseus.el.tree.impl.ast.AstBinary$13.apply(AstBinary.java:91)
      at de.odysseus.el.tree.impl.ast.AstBinary$SimpleOperator.eval(AstBinary.java:31)
      at de.odysseus.el.tree.impl.ast.AstBinary.eval(AstBinary.java:110)
      at de.odysseus.el.tree.impl.ast.AstBinary$SimpleOperator.eval(AstBinary.java:31)
      at de.odysseus.el.tree.impl.ast.AstBinary.eval(AstBinary.java:110)
      at de.odysseus.el.tree.impl.ast.AstEval.eval(AstEval.java:51)
      at de.odysseus.el.tree.impl.ast.AstNode.getValue(AstNode.java:30)
      at de.odysseus.el.TreeValueExpression.getValue(TreeValueExpression.java:122)
      at com.vordel.el.SelectorString.getStructure(SelectorString.java:340)
      at com.vordel.el.SelectorString.getStructure(SelectorString.java:352)
      at com.vordel.el.SelectorString.getWildcardRefs(SelectorString.java:361)
      at com.vordel.circuit.VariablePropertiesFilter.getRequiredPropertiesFromEntity(VariablePropertiesFilter.java:123)
      at com.vordel.circuit.VariablePropertiesFilter.configure(VariablePropertiesFilter.java:71)
      at com.vordel.circuit.CircuitChainFilter.configure(CircuitChainFilter.java:104)
      at com.vordel.circuit.switchcase.SwitchFilter.configure(SwitchFilter.java:130)
      at com.vordel.circuit.FilterContainer.configureFilter(FilterContainer.java:40)
      at com.vordel.client.circuit.model.CircuitStore.getContainerForEntity(CircuitStore.java:513)
      ... 9 more
    INVALID 2014/01/21 16:36:10.449 [main    ] [main] java exception:
    java.lang.reflect.InvocationTargetException
      at com.vordel.client.manager.Manager.loadConfiguration(Manager.java:176)
      at com.vordel.client.manager.LoadEntityStoreOperation.run(LoadEntityStoreOperation.java:29)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
    Caused by: com.vordel.es.EntityStoreException: Problem creating container for filter entity
      at com.vordel.client.circuit.model.CircuitStore.getContainerForEntity(CircuitStore.java:523)
      at com.vordel.client.circuit.model.CircuitStore.addFilterToCircuit(CircuitStore.java:431)
      at com.vordel.client.circuit.model.CircuitStore.getCircuitForKey(CircuitStore.java:472)
      at com.vordel.client.circuit.model.CircuitStore.getCircuit(CircuitStore.java:189)
      at com.vordel.client.manager.FilterContainerStore.getContainer(FilterContainerStore.java:54)
      at com.vordel.client.manager.ManagerEntityStore.loadCircuits(ManagerEntityStore.java:211)
      at com.vordel.client.manager.ManagerEntityStore.loadData(ManagerEntityStore.java:143)
      at com.vordel.client.manager.Manager.loadConfiguration(Manager.java:165)
      ... 2 more
    Caused by: java.lang.NullPointerException
      at de.odysseus.el.misc.NumberOperations.sub(NumberOperations.java:98)
      at de.odysseus.el.tree.impl.ast.AstBinary$13.apply(AstBinary.java:91)
      at de.odysseus.el.tree.impl.ast.AstBinary$SimpleOperator.eval(AstBinary.java:31)
      at de.odysseus.el.tree.impl.ast.AstBinary.eval(AstBinary.java:110)
      at de.odysseus.el.tree.impl.ast.AstBinary$SimpleOperator.eval(AstBinary.java:31)
      at de.odysseus.el.tree.impl.ast.AstBinary.eval(AstBinary.java:110)
      at de.odysseus.el.tree.impl.ast.AstEval.eval(AstEval.java:51)
      at de.odysseus.el.tree.impl.ast.AstNode.getValue(AstNode.java:30)
      at de.odysseus.el.TreeValueExpression.getValue(TreeValueExpression.java:122)
      at com.vordel.el.SelectorString.getStructure(SelectorString.java:340)
      at com.vordel.el.SelectorString.getStructure(SelectorString.java:352)
      at com.vordel.el.SelectorString.getWildcardRefs(SelectorString.java:361)
      at com.vordel.circuit.VariablePropertiesFilter.getRequiredPropertiesFromEntity(VariablePropertiesFilter.java:123)
      at com.vordel.circuit.VariablePropertiesFilter.configure(VariablePropertiesFilter.java:71)
      at com.vordel.circuit.CircuitChainFilter.configure(CircuitChainFilter.java:104)
      at com.vordel.circuit.switchcase.SwitchFilter.configure(SwitchFilter.java:130)
      at com.vordel.circuit.FilterContainer.configureFilter(FilterContainer.java:40)
      at com.vordel.client.circuit.model.CircuitStore.getContainerForEntity(CircuitStore.java:513)
      ... 9 more
    ERROR   2014/01/21 16:36:10.450 [main    ] [main] Unable to connect to the URL provided:
    federated:file:/C:/OAG-11.1.2.1.0/oagpolicystudio/configuration/workspace/1390322148340/fe521854-c08b-4ddf-9919-8219b38c13dd/configs.xml
    INVALID 2014/01/21 16:51:48.771 [ModalContext] [main] java exception:
    com.vordel.es.EntityStoreException: Problem creating container for filter entity
      at com.vordel.client.circuit.model.CircuitStore.getContainerForEntity(CircuitStore.java:523)
      at com.vordel.client.circuit.model.CircuitStore.addFilterToCircuit(CircuitStore.java:431)
      at com.vordel.client.circuit.model.CircuitStore.getCircuitForKey(CircuitStore.java:472)
      at com.vordel.client.circuit.model.CircuitStore.getCircuit(CircuitStore.java:189)
      at com.vordel.client.manager.filter.CircuitDelegateGUIFilter.filterAttached(CircuitDelegateGUIFilter.java:115)
      at com.vordel.circuit.FilterContainer.configureFilter(FilterContainer.java:41)
      at com.vordel.client.circuit.model.CircuitStore.getContainerForEntity(CircuitStore.java:513)
      at com.vordel.client.circuit.model.CircuitStore.addFilterToCircuit(CircuitStore.java:431)
      at com.vordel.client.circuit.model.CircuitStore.getCircuitForKey(CircuitStore.java:472)
      at com.vordel.client.circuit.model.CircuitStore.getCircuit(CircuitStore.java:189)
      at com.vordel.client.circuit.model.Tracker.incRefCount(Tracker.java:140)
      at com.vordel.client.circuit.model.HTTPTracker.initListeners(HTTPTracker.java:60)
      at com.vordel.client.circuit.model.FirewallTracker.initListeners(FirewallTracker.java:59)
      at com.vordel.client.circuit.model.Tracker.init(Tracker.java:92)
      at com.vordel.client.circuit.model.CircuitStore.initTrackers(CircuitStore.java:123)
      at com.vordel.client.manager.ManagerEntityStore.loadCircuits(ManagerEntityStore.java:195)
      at com.vordel.client.manager.ManagerEntityStore.loadData(ManagerEntityStore.java:143)
      at com.vordel.client.manager.Manager.loadConfiguration(Manager.java:165)
      at com.vordel.client.manager.LoadEntityStoreOperation.run(LoadEntityStoreOperation.java:29)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
    Caused by: java.lang.NullPointerException
      at de.odysseus.el.misc.NumberOperations.sub(NumberOperations.java:98)
      at de.odysseus.el.tree.impl.ast.AstBinary$13.apply(AstBinary.java:91)
      at de.odysseus.el.tree.impl.ast.AstBinary$SimpleOperator.eval(AstBinary.java:31)
      at de.odysseus.el.tree.impl.ast.AstBinary.eval(AstBinary.java:110)
      at de.odysseus.el.tree.impl.ast.AstBinary$SimpleOperator.eval(AstBinary.java:31)
      at de.odysseus.el.tree.impl.ast.AstBinary.eval(AstBinary.java:110)
      at de.odysseus.el.tree.impl.ast.AstEval.eval(AstEval.java:51)
      at de.odysseus.el.tree.impl.ast.AstNode.getValue(AstNode.java:30)
      at de.odysseus.el.TreeValueExpression.getValue(TreeValueExpression.java:122)
      at com.vordel.el.SelectorString.getStructure(SelectorString.java:340)
      at com.vordel.el.SelectorString.getStructure(SelectorString.java:352)
      at com.vordel.el.SelectorString.getWildcardRefs(SelectorString.java:361)
      at com.vordel.circuit.VariablePropertiesFilter.getRequiredPropertiesFromEntity(VariablePropertiesFilter.java:123)
      at com.vordel.circuit.VariablePropertiesFilter.configure(VariablePropertiesFilter.java:71)
      at com.vordel.circuit.CircuitChainFilter.configure(CircuitChainFilter.java:104)
      at com.vordel.circuit.switchcase.SwitchFilter.configure(SwitchFilter.java:130)
      at com.vordel.circuit.FilterContainer.configureFilter(FilterContainer.java:40)
      at com.vordel.client.circuit.model.CircuitStore.getContainerForEntity(CircuitStore.java:513)
      ... 19 more
    INVALID 2014/01/21 16:51:49.286 [ModalContext] [main] Problem loading the data from the entity store [federated:file:/C:/OAG-11.1.2.1.0/oagpolicystudio/configuration/workspace/1390322148340/fe521854-c08b-4ddf-9919-8219b38c13dd/configs.xml]:
    com.vordel.es.EntityStoreException: Problem creating container for filter entity
      at com.vordel.client.circuit.model.CircuitStore.getContainerForEntity(CircuitStore.java:523)
      at com.vordel.client.circuit.model.CircuitStore.addFilterToCircuit(CircuitStore.java:431)
      at com.vordel.client.circuit.model.CircuitStore.getCircuitForKey(CircuitStore.java:472)
      at com.vordel.client.circuit.model.CircuitStore.getCircuit(CircuitStore.java:189)
      at com.vordel.client.manager.FilterContainerStore.getContainer(FilterContainerStore.java:54)
      at com.vordel.client.manager.ManagerEntityStore.loadCircuits(ManagerEntityStore.java:211)
      at com.vordel.client.manager.ManagerEntityStore.loadData(ManagerEntityStore.java:143)
      at com.vordel.client.manager.Manager.loadConfiguration(Manager.java:165)
      at com.vordel.client.manager.LoadEntityStoreOperation.run(LoadEntityStoreOperation.java:29)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
    Caused by: java.lang.NullPointerException
      at de.odysseus.el.misc.NumberOperations.sub(NumberOperations.java:98)
      at de.odysseus.el.tree.impl.ast.AstBinary$13.apply(AstBinary.java:91)
      at de.odysseus.el.tree.impl.ast.AstBinary$SimpleOperator.eval(AstBinary.java:31)
      at de.odysseus.el.tree.impl.ast.AstBinary.eval(AstBinary.java:110)
      at de.odysseus.el.tree.impl.ast.AstBinary$SimpleOperator.eval(AstBinary.java:31)
      at de.odysseus.el.tree.impl.ast.AstBinary.eval(AstBinary.java:110)
      at de.odysseus.el.tree.impl.ast.AstEval.eval(AstEval.java:51)
      at de.odysseus.el.tree.impl.ast.AstNode.getValue(AstNode.java:30)
      at de.odysseus.el.TreeValueExpression.getValue(TreeValueExpression.java:122)
      at com.vordel.el.SelectorString.getStructure(SelectorString.java:340)
      at com.vordel.el.SelectorString.getStructure(SelectorString.java:352)
      at com.vordel.el.SelectorString.getWildcardRefs(SelectorString.java:361)
      at com.vordel.circuit.VariablePropertiesFilter.getRequiredPropertiesFromEntity(VariablePropertiesFilter.java:123)
      at com.vordel.circuit.VariablePropertiesFilter.configure(VariablePropertiesFilter.java:71)
      at com.vordel.circuit.CircuitChainFilter.configure(CircuitChainFilter.java:104)
      at com.vordel.circuit.switchcase.SwitchFilter.configure(SwitchFilter.java:130)
      at com.vordel.circuit.FilterContainer.configureFilter(FilterContainer.java:40)
      at com.vordel.client.circuit.model.CircuitStore.getContainerForEntity(CircuitStore.java:513)
      ... 9 more
    INVALID 2014/01/21 16:51:49.295 [main    ] [main] java exception:
    java.lang.reflect.InvocationTargetException
      at com.vordel.client.manager.Manager.loadConfiguration(Manager.java:176)
      at com.vordel.client.manager.LoadEntityStoreOperation.run(LoadEntityStoreOperation.java:29)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
    Caused by: com.vordel.es.EntityStoreException: Problem creating container for filter entity
      at com.vordel.client.circuit.model.CircuitStore.getContainerForEntity(CircuitStore.java:523)
      at com.vordel.client.circuit.model.CircuitStore.addFilterToCircuit(CircuitStore.java:431)
      at com.vordel.client.circuit.model.CircuitStore.getCircuitForKey(CircuitStore.java:472)
      at com.vordel.client.circuit.model.CircuitStore.getCircuit(CircuitStore.java:189)
      at com.vordel.client.manager.FilterContainerStore.getContainer(FilterContainerStore.java:54)
      at com.vordel.client.manager.ManagerEntityStore.loadCircuits(ManagerEntityStore.java:211)
      at com.vordel.client.manager.ManagerEntityStore.loadData(ManagerEntityStore.java:143)
      at com.vordel.client.manager.Manager.loadConfiguration(Manager.java:165)
      ... 2 more
    Caused by: java.lang.NullPointerException
      at de.odysseus.el.misc.NumberOperations.sub(NumberOperations.java:98)
      at de.odysseus.el.tree.impl.ast.AstBinary$13.apply(AstBinary.java:91)
      at de.odysseus.el.tree.impl.ast.AstBinary$SimpleOperator.eval(AstBinary.java:31)
      at de.odysseus.el.tree.impl.ast.AstBinary.eval(AstBinary.java:110)
      at de.odysseus.el.tree.impl.ast.AstBinary$SimpleOperator.eval(AstBinary.java:31)
      at de.odysseus.el.tree.impl.ast.AstBinary.eval(AstBinary.java:110)
      at de.odysseus.el.tree.impl.ast.AstEval.eval(AstEval.java:51)
      at de.odysseus.el.tree.impl.ast.AstNode.getValue(AstNode.java:30)
      at de.odysseus.el.TreeValueExpression.getValue(TreeValueExpression.java:122)
      at com.vordel.el.SelectorString.getStructure(SelectorString.java:340)
      at com.vordel.el.SelectorString.getStructure(SelectorString.java:352)
      at com.vordel.el.SelectorString.getWildcardRefs(SelectorString.java:361)
      at com.vordel.circuit.VariablePropertiesFilter.getRequiredPropertiesFromEntity(VariablePropertiesFilter.java:123)
      at com.vordel.circuit.VariablePropertiesFilter.configure(VariablePropertiesFilter.java:71)
      at com.vordel.circuit.CircuitChainFilter.configure(CircuitChainFilter.java:104)
      at com.vordel.circuit.switchcase.SwitchFilter.configure(SwitchFilter.java:130)
      at com.vordel.circuit.FilterContainer.configureFilter(FilterContainer.java:40)
      at com.vordel.client.circuit.model.CircuitStore.getContainerForEntity(CircuitStore.java:513)
      ... 9 more
    ERROR   2014/01/21 16:51:49.295 [main    ] [main] Unable to connect to the URL provided:
    federated:file:/C:/OAG-11.1.2.1.0/oagpolicystudio/configuration/workspace/1390322148340/fe521854-c08b-4ddf-9919-8219b38c13dd/configs.xml

    Hi,
    This does happen sometimes and usually its enough to just exit Policy Studio and connect again. If that does not work you can delete everything in your C:/OAG-11.1.2.1.0/oagpolicystudio/configuration/workspace folder (backup before doing anything) as this is just a temporary storage.
    This could also could mean you somehow have managed to get an corrupt deployment (It might load ok in the actual API Server) that fails to load in Policy Studio. In the bin folder there is a esexplorer.bat file, this tool allow you edit configurations in raw format and if you find the error you could try fix it there.
    Cheers,
    Stefan

  • Noob Question: Problem with Persistence in First Entity Bean

    Hey folks,
    I have started with EJB3 just recently. After reading several books on the topic I finally started programming myself. I wanted to develop a little application for getting a feeling of the technology. So what I did is to create a AppClient, which calls a Stateless Session Bean. This Stateless Bean then adds an Entity to the Database. For doing this I use Netbeans 6.5 and the integrated glassfish. The problem I am facing is, that the mapping somehow doesnt work, but I have no clue why it doesn't work. I just get an EJBException.
    I would be very thankfull if you guys could help me out of this. And don't forget this is my first ejb project - i might need a very detailed answer ... I know - noobs can be a real ....
    So here is the code of the application. I have a few methods to do some extra work there, you can ignore them, there are of no use at the moment. All that is really implemented is testConnection() and testAddCompany(). The testconnection() Methode works pretty fine, but when it comes to the testAddCompany I get into problems.
    Edit:As I found out just now, there is the possibility of Netbeans to add a Facade pattern to an Entity bean. If I use this, everythings fine and it works out to be perfect, however I am still curious, why the approach without the given classes by netbeans it doesn't work.
    public class Main {
        private EntryRemote entryPoint = null;
        public static void main(String[] args) throws NamingException {
            Main main = new Main();
            main.runApplication();
        private void runApplication()throws NamingException{
            this.getContext();
            this.testConnection();
            this.testAddCompany();
            this.testAddShipmentAddress(1);
            this.testAddBillingAddress(1);
            this.testAddEmployee(1);
            this.addBankAccount(1);
        private void getContext() throws NamingException{
            InitialContext ctx = new InitialContext();
            this.entryPoint = (EntryRemote) ctx.lookup("Entry#ejb.EntryRemote");
        private void testConnection()
            System.err.println("Can Bean Entry be reached: " + entryPoint.isAlive());
        private void testAddCompany(){
            Company company = new Company();
            company.setName("JavaFreaks");
            entryPoint.addCompany(company);
            System.err.println("JavaFreaks has been placed in the db");
        }Here is the Stateless Session Bean. I added the PersistenceContext, and its also mapped in the persistence.xml file, however here the trouble starts.
    import javax.ejb.Stateless;
    import javax.persistence.EntityManager;
    import javax.persistence.PersistenceContext;
    @Stateless(mappedName="Entry")
    public class EntryBean implements EntryRemote {
        @PersistenceContext(unitName="PersistenceUnit") private EntityManager manager;
        public boolean isAlive() {
            return true;
        public boolean addCompany(Company company) {
            manager.persist(company);
            return true;
        public boolean addShipmentAddress(long companyId) {
            return false;
        public boolean addBillingAddress(long companyId) {
            return false;
        public boolean addEmployee(long companyId) {
            return false;
        public boolean addBankAccount(long companyId) {
            return false;
    }That you guys and gals will have a complete overview of whats really going on, here is the Entity as well.
    package ejb;
    import java.io.Serializable;
    import javax.persistence.*;
    @Entity
    @Table(name="COMPANY")
    public class Company implements Serializable {
        private static final long serialVersionUID = 1L;
        @Id
        @GeneratedValue(strategy = GenerationType.AUTO)
        private Long id;
        @Column(name="COMPANY_NAME")
        private String name;
        public Long getId() {
            return id;
        public void setId(Long id) {
            this.id = id;
       public String getName() {
            return name;
        public void setName(String name) {
            this.name = name;
            System.err.println("SUCCESS:  CompanyName SET");
        @Override
        public int hashCode() {
            int hash = 0;
            hash += (id != null ? id.hashCode() : 0);
            return hash;
        @Override
        public boolean equals(Object object) {
            // TODO: Warning - this method won't work in the case the id fields are not set
            if (!(object instanceof Company)) {
                return false;
            Company other = (Company) object;
            if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
                return false;
            return true;
        @Override
        public String toString() {
            return "ejb.Company[id=" + id + "]";
    }And the persistence.xml file
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
      <persistence-unit name="PersistenceUnit" transaction-type="JTA">
        <provider>oracle.toplink.essentials.PersistenceProvider</provider>
        <jta-data-source>jdbc/sample</jta-data-source>
        <exclude-unlisted-classes>false</exclude-unlisted-classes>
        <properties>
          <property name="toplink.ddl-generation" value="create-tables"/>
        </properties>
      </persistence-unit>
    </persistence>And this is the error message
    08.06.2009 10:30:46 com.sun.enterprise.appclient.MainWithModuleSupport <init>
    WARNUNG: ACC003: Ausnahmefehler bei Anwendung.
    javax.ejb.EJBException: nested exception is: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
            java.rmi.RemoteException: Transaction aborted; nested exception is: javax.transaction.RollbackException: Transaktion für Zurücksetzung markiert.; nested exception is:
            javax.transaction.RollbackException: Transaktion für Zurücksetzung markiert.
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
            java.rmi.RemoteException: Transaction aborted; nested exception is: javax.transaction.RollbackException: Transaktion für Zurücksetzung markiert.; nested exception is:
            javax.transaction.RollbackException: Transaktion für Zurücksetzung markiert.
            at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:243)
            at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:205)
            at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:152)
            at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:225)
            at ejb.__EntryRemote_Remote_DynamicStub.addCompany(ejb/__EntryRemote_Remote_DynamicStub.java)I spend half the night figuring out whats wrong, however I couldnt find any solution.
    If you have any idea pls let me know
    Best regards and happy coding
    Taggert
    Edited by: Taggert_77 on Jun 8, 2009 2:27 PM

    Well I don't understand this. If Netbeans created a Stateless Session Bean as a facade then it works -and it is implemented as a CMP, not as a BMP as you suggested.
    I defenitely will try you suggestion, just for curiosity and to learn the technology, however I dont have see why BMP will work and CMP won't.
    I also don't see why a stateless bean can not be a CMP. As far as I read it should not matter. Also on the link you sent me, I can't see anything related to that.
    Maybe you can help me answering these questions.
    I hope the above lines don't sound harsh. I really appreciate your input.
    Best regards
    Taggert

  • EJB 3.0 entity beans and WebDynpro models

    Hi all,
    first off all my setup:
    WebDynpro Development Component: dcA
    EJB Module Development Component: dcB
    i wan't to create Entity Beans in dcB an use it for my model in dcA.
    My questions:
    1. Why does the "New Wizard" only offer EJB 3.0 Session and Message Beans an no Entity Beans? What is the correct way for creating Entity Beans in DevStudio?
    2. Is ist right that i have to define a public Part containing the Entity Bean to make it visible to dcA?
    Regards,
       Christian

    Hi,
    I'm experiencing same problems, is this a bug or an feature?

  • @EJB annotation in entity bean does not work

    I just started with ejb3. I have created a couple of beans. One session bean that looks like this:
    @Stateless
    public class MySessionBean implements MySession
         @Resource(name="jdbc/mydb")
         private DataSource myDB;
    public void someMethod() {
    myDB.getConnection()
    This works great. The other bean is an entity bean, and there the resource injection doesn't work. It looks like this:
    @Entity
    public class MyEntityBean
    @Resource(name="jdbc/mydb")
         private DataSource myDB;
    public void someMethod() {
    myDB.getConnection()
    Is resource injection any different in an entity bean then in a session bean? Both beans belong to the same package and are in the same application, (ear). I have exactly the same problem with @EJB injection: it works fine in the session bean but not in the entity bean...
    Any help is appreciated...
    John

    <code>
    @Entity
    @Table(name = "assetfault")
    @NamedQueries( {@NamedQuery(name = ... )})
    public class Assetfault implements Serializable {
    @javax.ejb.EJB private com.novadent.data.assetmg.sessionbeans.AssetFacadeLocal aF;
    @javax.ejb.EJB private com.novadent.data.assetmg.sessionbeans.AssetfaultFacadeLocal afF;
    </code>
    importing javax.ejb.EJB ?

  • Problem with foreign key in entity bean in WSED..Plzzzzz help!!!!!

    hi all,
    m very new to ejb...m crerating container managed entity bean in wsed..The steps I have followed r as follows,
    i) created 2 tables in database,one is PARENT with fields ID(Primary Key) and NAME and another is CHILD with fields ID1(Foreign Key) and NAME.
    ii)created 2 entity beans... 1st is parent with fields id(key field) and name(promote getter & setter methods to local interface)...2nd is child
    (choosed parent as bean super type) with fields id1 (promote getter & setter methods to local interface) and name (promote getter & setter methods to local interface)...
    iii)Generated EJB to RDB mapping(choosed crreate new backend folder->meet in the middle->use existing connection->choosed the tables parent & child in the database->match by name->finish)
    now m getting an error in Map.mapxmi--->"The table PARENT does not have a discriminator column"...and a warning--->"A primary key does not exist for table: CHILD in file: platform:/resource/NewFK/ejbModule/META-INF/backends/DB2UDBNT_V8_1/Map.mapxmi.     Map.mapxmi     NewFK/ejbModule/META-INF/backends/DB2UDBNT_V8_1     L/NewFK/ejbModule/META-INF/backends/DB2UDBNT_V8_1/Map.mapxmi"

    Hi Sandra,
    Many thanks for your response and providing time of yours.
    Now, I have done exactly the same thing, but still it is the same.
    I have created two new tables as below:
    ZAAVREF (Check table)
    MANDT (PK)
    COUNTRY (PK) Domain:ZAACOUNT (CHAR 10)
    ZAAV1 (Foreign key table)
    MANDT (PK)
    COUNTRY (PK) Domain:ZAACOUNT (CHAR 10)
    Then I have created FK on country of foreign key table ZAAV1 and then SE16 (for table ZAAVREF)->Create Entries-> Entered values for Country only->Save....Records entered with valid Country values.
    After that SE16 (for table ZAAV1)->Create Entries-->Entered an Invalid country->Save->Still the record entered to the Database successfully....
    Could you please let me know where I am going wrong.
    I am using SAP R/3 4.7 and creating tables using Tools->ABAP Workbench->Development->ABAP dictionary

  • Creating jar file for entity bean

    I am trying to deploy an entity bean..i compiled all the java files and created a dir by name META_INF and copied ejb-jar.xml
    and the other two .xml files which are needed to this dir. then using ,ant i tried to create the jar file ,,but it is giving the following error
    during the process ..PLs Help me
    Buildfile: build.xml
    clean:
    [delete] Deleting directory D:\ejb\entity\build
    [delete] Deleting directory D:\ejb\entity\dist
    init:
    [mkdir] Created dir: D:\ejb\entity\build
    [mkdir] Created dir: D:\ejb\entity\build\META-INF
    [mkdir] Created dir: D:\ejb\entity\dist
    compile_ejb:
    [javac] Compiling 3 source files to D:\ejb\entity\build
    jar_ejb:
    [jar] Building jar: D:\ejb\entity\dist\Cabin.jar
    ejbc:
    [java] java.io.FileNotFoundException: META-INF/ejb-jar.xml not found in jar file
    [java]      at weblogic.ejb20.dd.xml.DDUtils.getEntry(DDUtils.java:332)
    [java]      at weblogic.ejb20.dd.xml.DDUtils.getEjbJarXml(DDUtils.java:236)
    [java]      at weblogic.ejb20.dd.xml.DDUtils.loadEJBJarDescriptorFromJarFile(DDUtils.java:151)
    [java]      at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:139)
    [java]      at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:130)
    [java]      at weblogic.ejbc20.runBody(ejbc20.java:338)
    [java]      at weblogic.utils.compiler.Tool.run(Tool.java:79)
    [java]      at weblogic.ejbc.main(ejbc.java:21)
    [java] ERROR: java.io.FileNotFoundException: META-INF/ejb-jar.xml not found in jar file
    compile_webapp:
    Total time: 20 second

    The Ejb jar file structure for WebLogic server:
    META-INF/ejb-jar.xml
    META-INF/weblogic-ejb-jar.xml
    META-INF/weblogic-cmp-rdbms-jar.xml
    Ejb Bean Class
    Remote interface
    Home interface

  • Deployment problem sdk 1.4 with entity bean

    hallo!
    i have a big problem with the j2ee sdk 1.4. when i want to add an entity bean to my ear-file, everything goes good, but when i put the sql-ql for the finder-method and save the file i got an error like this
    xxxxxxx.ear is corrupt or cannot be read
    when i dont save and will show the descriptor it generates an empty descriptor for this entity bean.
    the problem is, that the deployment tool cannot generate the deployment desciptor for entity beans. with session bean there was no problems.
    hope somebody can help me.
    thanks

    There's bug in non-U.S. locales. The workaround is described in this thread:
    http://forum.java.sun.com/thread.jsp?forum=136&thread=472692&tstart=15&trange=15
    -Ian Evans
    Sun Microsystems
    J2EE Tutorial team

Maybe you are looking for

  • Late Macbook Pro 2011 won't charge via MagSafe adapter.

    My friends Macbook Pro 2011 same as mine wont charge the battery via MagSafe adapter. The battery is good and the adapter also, ive checked them on my Mac. The problem is that on her Mac it won't charge. I've change the MagSafe adapter on her compute

  • Brother DCP7055 after upgrading to Mavericks

    I can't print with Brother DCP7055 after upgrading to Mavericks. No problem via USB. No way via network. Could you help me pls? I can install new printer and so on, but the printer goes immediately on pause and it doesn't print anything... thanks for

  • Colour changing upon export problem.

    Hi. I'm working on a game at the moment, and I'm running into a problem. I was testing the vector files that I export of the art I made, and upon re-importation to flash the colours have changed significantly. Then, when the game is running in a brow

  • Server Proxy --time out.

    Hi,   How can we process large amount of data in server proxy. Is there any parameter that can make server proxy run in background mode. currently the server proxy is timing out in ECC. Thanks, Viswas.

  • Report Data Pane missing

    The Report Data pane is missing in VS version 9.0.30729.4462 QFE.  Does anyone know how to fix this?  I can't proceed to build a report without this vital step. Thanks in advance.