Cannot create CMP bean, Error: "Werent current caller"

Hi,
I generated a CMP entity ejbean with JDeveloper and deployed it. I can use that bean with a client and retrieve a specific instance using the home interface's findByPrimaryKey() method.
But I can not create a new bean using the home interface's create( long newPrimKey) method. The following error occures only if the specified newPrimKey is not occupied yet. If I use an occupied key, I get an expectable "javax.ejb.DuplicateKeyException"...
java.lang.InternalError: Werent current caller, server stacktrace (to disable this message, use -Dejb.assert=false at startup): java.lang.Throwable: Werent current caller
     at Person_EntityBeanWrapper11.setEntityBean(Person_EntityBeanWrapper11.java:5404)
     at com.evermind.server.ejb.EntityEJBHome.passivateAndRelease(EntityEJBHome.java:344)
     at com.evermind.server.ejb.EntityEJBObject.releaseContext(EntityEJBObject.java:378)
     at PersonHome_EntityHomeWrapper13.create(PersonHome_EntityHomeWrapper13.java:542)
     at java.lang.reflect.Method.invoke(Native Method)
     at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:80)
     at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
     void com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(java.lang.Throwable)
     java.lang.Object com.evermind.server.rmi.RMIConnection.invokeMethod(com.evermind.server.rmi.RMIContext, long, long, java.lang.reflect.Method, java.lang.Object[])
     java.lang.Object com.evermind.server.rmi.RemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
     java.lang.Object com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
     de.fiscus.sfs.cmp.Person __Proxy0.create(long)
     void SamplePersonClient1.main(java.lang.String[])
Any idea?? I'm really stuck with this!
Thank you.
CU, Chris

Chris,
The problem is that both clients and EJBs are in the same server and you are using RMIInitialContextFactory. You have to use default context and package this client in the same EAR. Please look at http://otn.oracle.com/sample_code/tech/java/oc4j/htdocs/oc4jsamplecode/oc4j-demo-ejb.html#CMP for samples. Also some EJB/client sample programs are packaged with Oc4J disand you can find at $IAS_HOME/j2ee/home/demo/cmp distribution ctory.
However the client program should work fine if your client and EJBs are running on different Oc4J containers.
regards
Debu
Hi Debu,
the client is a java application. Here is the code:
[...in main method...]
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
env.put(Context.SECURITY_PRINCIPAL, "admin");
env.put(Context.SECURITY_CREDENTIALS, "admin");
env.put(Context.PROVIDER_URL, "ormi://CHRISTIANE/statful");
Context ctx = new InitialContext(env);
PersonHome personHome = (PersonHome)ctx.lookup("Person");
Person person;
person = personHome.create( 14261026 );
CU, Chris

Similar Messages

  • Wrong exception being thrown on CMP bean error

    In OC4J Release 2 I'm getting the wrong exception thrown from a CMP bean error.
    Situation:
    Servlet calls an update method on a stateless session bean with trans-attribute of Required. This update method finds 2 entity beans by primary key and updates both of them (all with trans-attribute of Supports). When an error is thrown in the second entity bean (by trying to set a value to something that breaks a constraint), I get the following error:
    com.evermind.server.rmi.OrionRemoteException: Transaction was rolled back: Error preparing bean instance: com.evermind.transaction.MarshallingXAException
    at TestSession_StatefulSessionBeanWrapper3.updatebothtests(TestSession_StatefulSessionBeanWrapper3.java:1164)
    at __jspPage1_insertEntityTest_jsp._jspService(__jspPage1_insertEntityTest_jsp.java:224)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at com.evermind.server.http.HttpApplication.serviceJSP(HttpApplication.java:5680)
    at com.evermind.server.http.JSPServlet.service(JSPServlet.java:31)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:667)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:702)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:250)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
    Nested exception is:
    com.evermind.transaction.MarshallingXAException
    at com.evermind.server.ejb.EntityEJBObject.prepare(EntityEJBObject.java:70)
    at com.evermind.server.ApplicationServerTransactionSynchronization.prepareComponentsSuccess(ApplicationServerTransactionSynchronization.java:403)
    at com.evermind.server.ApplicationServerTransactionSynchronization.beforeCompletion(ApplicationServerTransactionSynchronization.java:565)
    at com.evermind.server.ApplicationServerTransaction.beforeCompletion(ApplicationServerTransaction.java:1063)
    at com.evermind.server.ApplicationServerTransaction.commit(ApplicationServerTransaction.java:552)
    at com.evermind.server.ApplicationServerTransaction.end(ApplicationServerTransaction.java:834)
    at TestSession_StatefulSessionBeanWrapper3.updatebothtests(TestSession_StatefulSessionBeanWrapper3.java:1160)
    at __jspPage1_insertEntityTest_jsp._jspService(__jspPage1_insertEntityTest_jsp.java:224)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at com.evermind.server.http.HttpApplication.serviceJSP(HttpApplication.java:5680)
    at com.evermind.server.http.JSPServlet.service(JSPServlet.java:31)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:667)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:702)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:250)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
    Nested exception is:
    java.lang.InternalError: Werent current caller, server stacktrace (to disable this message, use -Dejb.assert=false at startup): java.lang.Throwable: Werent current caller
    at Test2_EntityBeanWrapper5.setEntityBean(Test2_EntityBeanWrapper5.java:1496)
    at com.evermind.server.ejb.EntityEJBHome.passivateAndRelease(EntityEJBHome.java:344)
    at com.evermind.server.ejb.EntityEJBObject.releaseContext(EntityEJBObject.java:378)
    at Test2_EntityBeanWrapper5.saveState(Test2_EntityBeanWrapper5.java:1442)
    at com.evermind.server.ejb.EntityEJBObject.prepare(EntityEJBObject.java:39)
    at com.evermind.server.ApplicationServerTransactionSynchronization.prepareComponentsSuccess(ApplicationServerTransactionSynchronization.java:403)
    at com.evermind.server.ApplicationServerTransactionSynchronization.beforeCompletion(ApplicationServerTransactionSynchronization.java:565)
    at com.evermind.server.ApplicationServerTransaction.beforeCompletion(ApplicationServerTransaction.java:1063)
    at com.evermind.server.ApplicationServerTransaction.commit(ApplicationServerTransaction.java:552)
    at com.evermind.server.ApplicationServerTransaction.end(ApplicationServerTransaction.java:834)
    at TestSession_StatefulSessionBeanWrapper3.updatebothtests(TestSession_StatefulSessionBeanWrapper3.java:1160)
    at __jspPage1_insertEntityTest_jsp._jspService(__jspPage1_insertEntityTest_jsp.java:224)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at com.evermind.server.http.HttpApplication.serviceJSP(HttpApplication.java:5680)
    at com.evermind.server.http.JSPServlet.service(JSPServlet.java:31)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:667)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:702)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:250)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62) at Test2_EntityBeanWrapper5.setEntityBean(Test2_EntityBeanWrapper5.java:1496)
    at com.evermind.server.ejb.EntityEJBHome.passivateAndRelease(EntityEJBHome.java:344)
    at com.evermind.server.ejb.EntityEJBObject.releaseContext(EntityEJBObject.java:378)
    at Test2_EntityBeanWrapper5.saveState(Test2_EntityBeanWrapper5.java:1442)
    at com.evermind.server.ejb.EntityEJBObject.prepare(EntityEJBObject.java:39)
    at com.evermind.server.ApplicationServerTransactionSynchronization.prepareComponentsSuccess(ApplicationServerTransactionSynchronization.java:403)
    at com.evermind.server.ApplicationServerTransactionSynchronization.beforeCompletion(ApplicationServerTransactionSynchronization.java:565)
    at com.evermind.server.ApplicationServerTransaction.beforeCompletion(ApplicationServerTransaction.java:1063)
    at com.evermind.server.ApplicationServerTransaction.commit(ApplicationServerTransaction.java:552)
    at com.evermind.server.ApplicationServerTransaction.end(ApplicationServerTransaction.java:834)
    at TestSession_StatefulSessionBeanWrapper3.updatebothtests(TestSession_StatefulSessionBeanWrapper3.java:1160)
    at __jspPage1_insertEntityTest_jsp._jspService(__jspPage1_insertEntityTest_jsp.java:224)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at com.evermind.server.http.HttpApplication.serviceJSP(HttpApplication.java:5680)
    at com.evermind.server.http.JSPServlet.service(JSPServlet.java:31)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:667)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:702)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:250)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
    Why am I getting a MarshallingXAException instead of a SQLException? In the old OC4J, I got a SQLException wrapped in an OrionRemoteException, with the details of what constraint was broken, instead of this.
    I've also duplicated this by doing the entity bean updates directly from the servlet wrapped in a UserTransaction.
    Jeff.

    Tell me whether your transaction has been rolled back or not....If it has been rolled back, then those messages, printed on your server console are debug messages...just ignore them...
    After this exception, can u able to execute other applications in OC4J?
    --Venky                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Java.lang.InternalError: Werent current caller

    I'm running the J2EE Sample for JDeveloper 9i.
    The EJB.jpr project compiles without errors. orderItems run without error.
    Running SampleorderItemsClient.java gives a java.lang InternalError.
    See server stacktrace:
    com.evermind.server.rmi.OrionRemoteException: java.lang.InternalError: Werent current caller, server stacktrace (to disable this message, use -Dejb.assert=false at startup): java.lang.Throwable: Werent current caller
         void Orders_EntityBeanWrapper0.setEntityBean(javax.ejb.EntityBean)
         void com.evermind.server.ejb.EntityEJBHome.passivateAndRelease(com.evermind.server.ejb.EvermindEntityContext, boolean)
         void com.evermind.server.ejb.EntityEJBObject.releaseContext(boolean)
         ejbsample.Orders OrdersHome_EntityHomeWrapper4.create(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         void ejbsample.impl.orderItemsBean.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         void orderItems_StatelessSessionBeanWrapper1.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
         void com.evermind.server.rmi.RMICallHandler.run(java.lang.Thread)
         void com.evermind.util.ThreadPoolThread.run()
         java.lang.Exception com.evermind.server.ejb.EJBUtils.getUserException(java.lang.Throwable, boolean)
         void orderItems_StatelessSessionBeanWrapper1.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
         void com.evermind.server.rmi.RMICallHandler.run(java.lang.Thread)
         void com.evermind.util.ThreadPoolThread.run()
    at connection to localhost/127.0.0.1 as admin
         void Orders_EntityBeanWrapper0.setEntityBean(javax.ejb.EntityBean)
         void com.evermind.server.ejb.EntityEJBHome.passivateAndRelease(com.evermind.server.ejb.EvermindEntityContext, boolean)
         void com.evermind.server.ejb.EntityEJBObject.releaseContext(boolean)
         ejbsample.Orders OrdersHome_EntityHomeWrapper4.create(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         void ejbsample.impl.orderItemsBean.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         void orderItems_StatelessSessionBeanWrapper1.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
         void com.evermind.server.rmi.RMICallHandler.run(java.lang.Thread)
         void com.evermind.util.ThreadPoolThread.run()
         void com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(java.lang.Throwable)
         java.lang.Object com.evermind.server.rmi.RMIConnection.invokeMethod(com.evermind.server.rmi.RMIContext, long, long, java.lang.reflect.Method, java.lang.Object[])
         java.lang.Object com.evermind.server.rmi.RemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
         void __Proxy1.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         void SampleorderItemsClient.main(java.lang.String[])
         Nested exception is:
    java.lang.InternalError: Werent current caller, server stacktrace (to disable this message, use -Dejb.assert=false at startup): java.lang.Throwable: Werent current caller
         void Orders_EntityBeanWrapper0.setEntityBean(javax.ejb.EntityBean)
         void com.evermind.server.ejb.EntityEJBHome.passivateAndRelease(com.evermind.server.ejb.EvermindEntityContext, boolean)
         void com.evermind.server.ejb.EntityEJBObject.releaseContext(boolean)
         ejbsample.Orders OrdersHome_EntityHomeWrapper4.create(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         void ejbsample.impl.orderItemsBean.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         void orderItems_StatelessSessionBeanWrapper1.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
         void com.evermind.server.rmi.RMICallHandler.run(java.lang.Thread)
         void com.evermind.util.ThreadPoolThread.run()
         void Orders_EntityBeanWrapper0.setEntityBean(javax.ejb.EntityBean)
         void com.evermind.server.ejb.EntityEJBHome.passivateAndRelease(com.evermind.server.ejb.EvermindEntityContext, boolean)
         void com.evermind.server.ejb.EntityEJBObject.releaseContext(boolean)
         ejbsample.Orders OrdersHome_EntityHomeWrapper4.create(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         void ejbsample.impl.orderItemsBean.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         void orderItems_StatelessSessionBeanWrapper1.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
         void com.evermind.server.rmi.RMICallHandler.run(java.lang.Thread)
         void com.evermind.util.ThreadPoolThread.run()
    at connection to localhost/127.0.0.1
         void Orders_EntityBeanWrapper0.setEntityBean(javax.ejb.EntityBean)
         void com.evermind.server.ejb.EntityEJBHome.passivateAndRelease(com.evermind.server.ejb.EvermindEntityContext, boolean)
         void com.evermind.server.ejb.EntityEJBObject.releaseContext(boolean)
         ejbsample.Orders OrdersHome_EntityHomeWrapper4.create(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         void ejbsample.impl.orderItemsBean.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         void orderItems_StatelessSessionBeanWrapper1.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
         void com.evermind.server.rmi.RMICallHandler.run(java.lang.Thread)
         void com.evermind.util.ThreadPoolThread.run()
         void com.evermind.server.rmi.OrionRemoteException.receive(java.net.InetAddress, java.lang.String)
         void com.evermind.server.rmi.RMIConnection.handleMethodInvocationResponse()
         void com.evermind.server.rmi.RMIConnection.run()
         void java.lang.Thread.run()
    Process exited with exit code 0.
    Can you tell me what this means?
    Thx

    Chris,
    The problem is that both clients and EJBs are in the same server and you are using RMIInitialContextFactory. You have to use default context and package this client in the same EAR. Please look at http://otn.oracle.com/sample_code/tech/java/oc4j/htdocs/oc4jsamplecode/oc4j-demo-ejb.html#CMP for samples. Also some EJB/client sample programs are packaged with Oc4J disand you can find at $IAS_HOME/j2ee/home/demo/cmp distribution ctory.
    However the client program should work fine if your client and EJBs are running on different Oc4J containers.
    regards
    Debu
    Hi Debu,
    the client is a java application. Here is the code:
    [...in main method...]
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "admin");
    env.put(Context.SECURITY_CREDENTIALS, "admin");
    env.put(Context.PROVIDER_URL, "ormi://CHRISTIANE/statful");
    Context ctx = new InitialContext(env);
    PersonHome personHome = (PersonHome)ctx.lookup("Person");
    Person person;
    person = personHome.create( 14261026 );
    CU, Chris

  • Cannot Create Output File Error

    I have a working (and deployed) JSP/ADF application which was written with JDev 10.1.2 that I need to make a change to. Since it was deployed, I've gotten a new computer, and installed JDev 10.1.2 on it. Now, when I open the project on the new computer and try to build it, I get an error
    "error writing class oracle.jbo.http.HttpSessionCookieImpl: java.io.IOException: cannot create output file"
    The source file is <jdevhome>\bc4j\src\bc4jhtmlsrc.zip!\oracle\jbo\http\HttpSessionCookieImpl.java.
    I'm guessing that somewhere in the project there's an xml file that has an out-of-date reference to a file location that doesn't exist on this computer. Can anyone point me in the right direction? I'm a bit concerned that JDev projects are dependent upon the original computer? Please say it isn't so!

    Thanks,
    Ive set this, although the temporary files that Reports usese are going there, the temp PDF isnt!!

  • Classgeneratorwizard extension plugin - "cannot create node content" error

    Hi,
    I updated latest ESDK in jdev, I tried executing the "ClassGeneratorWizard" plugin from " Tools & right click project", in both the cases, after 3rd step ie. clicking "finish", i'm getting an error dialog saying "cannot create node content".
    What can be the issue ?
    About jdeveloper versions
    1. jdev version 10.1.3.3.0.4157
    2. windows xp sp2
    3. java platform - 1.5.0_06

    Seems like there is a slight problem with the following two lines :
    JavaManager javaMgr = JavaManager.getJavaManager(prj);
    SourceFile javaFile = javaMgr.getSourceFile(node.getURL());
    in the createContent method of the realWizard class.
    I'll let the developer know about it.

  • When connecting to a server farm in sharepoint foundation 2013 cannot create new farm error: One or more types failed to load

    When trying to create a new server farm in the sharepoint foundation 2013 we get a following error :
    The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.
    PS C:\Users\Administrator> New-SPConfigurationDatabase
    cmdlet New-SPConfigurationDatabase at command pipeline position 1
    Supply values for the following parameters:
    DatabaseName: SharePoint_Config
    DatabaseServer: PC78\SQLEXPRESS,25111
    FarmCredentials
    Passphrase: *********
    New-SPConfigurationDatabase : One or more types failed to load. Please refer
    to the upgrade log for more details.
    At line:1 char:1
    + New-SPConfigurationDatabase
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidData: (Microsoft.Share...urationDatabase:
    SPCmdletNewSPConfigurationDatabase) [New-SPConfigurationDatabase], SPUpgra
    deException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewSPCon
    figurationDatabase
    And the error log is shown below :
    Microsoft.SharePoint.Upgrade.SPUpgradeException: One or more types failed to load.
    Please refer to the upgrade log for more details.
    at Microsoft.SharePoint.Upgrade.SPActionSequence.LoadUpgradeActions()
    at Microsoft.SharePoint.Upgrade.SPActionSequence.get_ActionsInternal()
    at Microsoft.SharePoint.Upgrade.SPUtility.GetLatestTargetSchemaVersionByMajorVersion(Type typeActionSequence, Int32 majorVer)
    at Microsoft.SharePoint.Upgrade.SPUtility.get_CurrentSPSiteWssTargetSchemaVersion()
    at Microsoft.SharePoint.Administration.SPSiteCollection.Add(SPContentDatabase database, SPSiteSubscription siteSubscription, String siteUrl, String title, String description, UInt32 nLCID, Int32 compatibilityLevel, String webTemplate, String ownerLogin, String ownerName, String ownerEmail, Strin... b712a522-fa85-49eb-b59c-dedf55295504
    ...g secondaryContactLogin, String secondaryContactName, String secondaryContactEmail, String quotaTemplate, String sscRootWebUrl, Boolean useHostHeaderAsSiteName, Boolean overrideCompatibilityRestriction)
    at Microsoft.SharePoint.Administration.SPSiteCollection.Add(SPSiteSubscription siteSubscription, String siteUrl, String title, String description, UInt32 nLCID, Int32 compatibilityLevel, String webTemplate, String ownerLogin, String ownerName, String ownerEmail, String secondaryContactLogin, String secondaryContactName, String secondaryContactEmail, Boolean useHostHeaderAsSiteName)
    at Microsoft.SharePoint.Administration.SPAdministrationWebApplication.CreateDefaultInstance(SqlConnectionStringBuilder administrationContentDatabase, SPWebService adminService, IdentityType identityType, ... b712a522-fa85-49eb-b59c-dedf55295504
    ...String farmUser, SecureString farmPassword)
    at Microsoft.SharePoint.Administration.SPFarm.CreateAdministrationWebService(SqlConnectionStringBuilder administrationContentDatabase, IdentityType identityType, String farmUser, SecureString farmPassword)
    at Microsoft.SharePoint.Administration.SPFarm.CreateBasicServices(SqlConnectionStringBuilder administrationContentDatabase, IdentityType identityType, String farmUser, SecureString farmPassword)
    at Microsoft.SharePoint.Administration.SPFarm.Create(SqlConnectionStringBuilder configurationDatabase, SqlConnectionStringBuilder administrationContentDatabase, IdentityType identityType, String farmUser, SecureString farmPassword, SecureString masterPassphrase)
    at Microsoft.SharePoint.Administration.SPFarm.Create(SqlConnectionStringBuil... b712a522-fa85-49eb-b59c-dedf55295504
    ...der configurationDatabase, SqlConnectionStringBuilder administrationContentDatabase, String farmUser, SecureString farmPassword, SecureString masterPassphrase)
    at Microsoft.SharePoint.PowerShell.SPCmdletNewSPConfigurationDatabase.InternalProcessRecord()
    at Microsoft.SharePoint.PowerShell.SPCmdlet.ProcessRecord() b712a522-fa85-49eb-b59c-dedf55295504
    Error Category: InvalidData Target Object Microsoft.SharePoint.PowerShell.SPCmdletNewSPConfigurationDatabase Details NULL RecommendedAction NULL b712a522-fa85-49eb-b59c-dedf55295504
    Leaving ProcessRecord Method of New-SPConfigurationDatabase. e9ae5ba6-c499-0000-d35c-aee999c4cf01
    we are using server 2012 R2 and we don't have office 2010 installed

    Yes,SQL server is on the same server as SharePoint 
    SQL has both the permissions Securityadmin
    and  DBcreator roles on SQL Server.
    When we run those sharepoint management shell commands the database  will be created with the error
    msg (shown in attachment)

  • Cannot create directory - dbca error message

    i am trying to create database through dbca in 10.2 in windows vista
    in 12 step while click finish button i am getting
    "cannot create directory f:\oracle\product\10.2.0\db_1\cfgtoollogs\dbca\catdb"
    please give solution for this. Thanks in advance.
    Edited by: user8941653 on Feb 7, 2011 12:14 AM
    Edited by: user8941653 on Feb 7, 2011 12:15 AM

    According to the download page the minimum supported version on Vista is 10.2.0.4 but the installation guide states 10.2.0.3.0.
    According to the installation guide you need administrator rights to run DBCA.
    How are you running DBCA? From the Start menu or from command line?

  • "cannot create communication semaphore" - Error

    hi,
    We recently re-installed SAP and done a database recovery on my R3 system. We are running SAP 6.40 with MAXDB 7.5.0.032.
    This is running on Linux.
    My problem is since the recovery i get this message on my system log as well as when trying to use MaxDB gui "cannot create communication semaphore" if i stopsap, then i can access the database via the gui without a problem but once SAP is running i cannot access the database to do backups or add volumes.
    thanks

    hi,
    we rebooted a few times since then but it still does not help.
    will check that note now.

  • Cannot Create Cofiles, Checksum Error

    Hi All,
    We are facing very strange problem while applying patch in Qlt system in one of our landscape. We have been strugling on this for last 7 days. Even Opened OSS message last 4 days back, but still we are working along with SAP and applied the suggestion given by SAP. But not able to apply this patch.
    We are trying to apply the patch SAPKH47028. (OS is windows)
    When it comes to disassemble phase it gives the following error.                                                                               
    Import phase 'DISASSEMBLE' (15.05.2009, 19:29:59)                                   
       Disassemble OCS package SAPKH47028                                                  
         Use EPS package CSR0120031469_0026108.PAT with OCS file format '03'               
         Create data file
    PRDSERV\sapmnt\trans\data\RH47028.SAP                          
         Create associated cofile...                                                       
       Error during executing the tp command 'tp CREATECOFILE SAPKH47028   ...'            
       tp return code: '0016' , tp message: 'A tool used by tp broke down' , tp output:    
         This is tp version 340.16.45 (release 640)                                        
         standard output from tp and from tools called by tp:                              
         This is R3trans.exe version 6.13 (release 640 - 26.02.09 - 07:47:00).             
         1AETW065 check-sum error in datafile after "2283518" bytes.                       
         2EETW000 Please contact the SAP support.                                          
         exiting ...                                                                       
         R3trans.exe finished (0016).              
    We have carriedout the following activities in system, but no result so far.
    01. Referred Note 97633, as per that verified the parameters DIR_TRANS, DIR_EPS_ROOT. There is no issue. Parameters are set correctly.
    02. Upgraded the kernel (latest), tp, r3trans, sapcar to latest version and tried, but the same error.
    03. Checked by creating the cofile manually using following command from OS.
        tp createcofile KH47028 - got the same error
    Regards,
    Iyyappan MR

    Further to my message,
    We have carried out the following activities too,
    04. Removed from TMS domain controller and made it as a local domain controller. Post which tried to apply patch, but same error.
    05. Applied other patches which are less than in size (<5mb), its getting applied successfully. But the APPL patch SAPKH47028 which is 40MB around is not getting applied. Also point no (01) is rulled out for cause of this problem as the patch with less than 5mb is getting applied successfully.
    06. R3trans -l KH47028.sap gives following error.
    1AETW065 check-sum error in datafile after "9752592" bytes.
    2EETW000 Please contact the SAP support.
    4 ETW000 End of Transport (0016).
    4 ETW000 date&time: 15.05.2009 - 20:38:10
    4 ETW000 1 error occured.
    07. While uncaring the file in the same server it gives checksum error, hence we uncar the file on different server and moved the PAT and ATT file to IN folder and tried, but no result.
    08. SAP has sent the PAT and ATT file after uncaring the said patch, but still the error was same.
    09. We could have downloaded this patch morethan 5 times from SMP and tried extracting this in different locations, servers. but not able to apply.
    10. Felt there may be a disk problem, then we re-configured the RAID and then tried applying the patch, but no result. Even checked the size of the files by uncaring in different location, but there is no difference in size.
    Now the last option which we are looking at is providing internet access on the same server and download the patch and then try to apply.
    Any suggestion on this pls.
    Regards,
    Iyyappan MR

  • Satellite C70-A-13D: Cannot create recovery media - error 02016e-3c-0000000

    Hi
    I am trying to create a recovery flash drive on my new laptop satellite c70-a-13d windows 8 operating system and keep getting the following message
    differences were found between the following files z\recovery\install20.swm target path e:\\zzimages\zzimages\install20.swm (error code 02016e_3c_0000000
    and the recovery drive creation will not complete any ideas what is wrong ive tried doing it a few times --the flash drive is a toshiba transmemory 16gb uhybs-o16gh
    Any help would be appreciated,
    i am loathe to buy discs just to have the same problem with them too!

    Try please to create recovery DVD. Few empty discs are not expensive. If the same problem happen again I recommend you to contact nearest Toshiba service provider in your country and explain the situation. It is not your fault and maybe you will get new recovery disc for free.
    Just dont delete anything on the HDD.

  • Creating&deploing CMP bean step by step

    Hi!
    Anybody can explain subj process? Is it possible to create CMP bean in ORACLE without BC4J?
    I create simple CMP bean by withard but it's dosn't work.
    System Error: java.lang.ClassNotFoundException: oracle.jbo.DMLException
    System Error: java.lang.Object java.io.ObjectInputStream.readObject(boolean) (ObjectInputStream.java:468)
    System Error: java.lang.Object java.io.ObjectInputStream.readObject() (ObjectInputStream.java:232)
    System Error: com.retailpro.cms.ao.test.UserInfo com.retailpro.cms.ao.test._st_UserInfoHome.create() (_st_UserInfoHome.java:60)
    System Error: void com.retailpro.cms.ao.test.client.TestClient.<init>() (TestClient.java:48)
    System Error: void com.retailpro.cms.ao.test.client.TestClient.main(java.lang.String[]) (TestClient.java:93)
    System Output: Unexpected User Exception: IDL:EjbExceptions/EjbRemoteException:1.0
    System Error: org.omg.CORBA.MARSHAL: Unexpected User Exception: IDL:EjbExceptions/EjbRemoteException:1.0 minor code: 0 completed: No
    System Error: com.retailpro.cms.ao.test.UserInfo com.retailpro.cms.ao.test._st_UserInfoHome.create() (_st_UserInfoHome.java:70)
    System Error: void com.retailpro.cms.ao.test.client.TestClient.<init>() (TestClient.java:48)
    System Error: void com.retailpro.cms.ao.test.client.TestClient.main(java.lang.String[]) (TestClient.java:93)
    Mike

    In JDeveloper3.2 , BC4J is used as persistence layer for CMP entity beans.
    BC4J with its advanced O-R Mappings, Validations, Domains, Forward Generation, Flexibility and ease of use provides a powerful solution to build simple to very complex Container Managed Entity Beans.
    check out the demo scripts available on technet http://technet.oracle.com/products/jdev/htdocs/fullcmpdemo/cmpdemo.html http://technet.oracle.com/products/jdev/htdocs/cmpdemo2/cmpdemo2.html
    we will have a white paper on CMP available soon on technet which will talk about the advanced features.
    raghu
    null

  • Error #1056: Cannot create property metaClass

    Hello,
    I've been working on integrating an app between Grails, Flex and BlazeDS. Unfortunately, I keep running into an ' ReferenceError: Error #1056: Cannot create property metaClass' error. Googling hasn't really yielded much of a result and I'm not sure what to do at this point. Could anyone help?
    Thanks in advance.

    Any ideas so far anyone?

  • Cmp beans generated from rose

    hi all;
    i have a uml diagram with two classes (matser-detail). i generated the corresponding tables into oracle 9i database from rational rose.
    using jdeveloper. when create cmp beans from this two tables, i deploy it works fine
    but when i add my finder method (findByID) in ejbql i wrote:
    select object(e) from employees e where e.employee_id=?1
    i try to deploy again and i have the following error:
    javax.ejb.EJBException: nested exception is: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         at java.lang.String.substring(String.java:1525)
         at com.sun.ejb.sqlgen.SQLGenerator.generateCreateTableQuery(SQLGenerator.java:530)
         at com.sun.ejb.sqlgen.SQLGenerator.<init>(SQLGenerator.java:240)
         at com.sun.ejb.sqlgen.SQLGenerator.generateSQL(SQLGenerator.java:360)
         at com.sun.ejb.sqlgen.SQLGenerator.generateSQL(SQLGenerator.java:309)
         at com.evermind.server.ejb.deployment.EJBPackage.translateEjbqlQeries(EJBPackage.java:2100)
         at com.evermind.server.ejb.compilation.Compilation.translateEjbqlQeries(Compilation.java:140)
         at com.evermind.server.ejb.compilation.Compilation.compile(Compilation.java:178)
         at com.evermind.server.administration.ServerApplicationInstallation.finish(ServerApplicationInstallation.java:526)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:119)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:484)
    javax.ejb.EJBException: nested exception is: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         at com.sun.ejb.sqlgen.SQLGenerator.<init>(SQLGenerator.java:255)
         at com.sun.ejb.sqlgen.SQLGenerator.generateSQL(SQLGenerator.java:360)
         at com.sun.ejb.sqlgen.SQLGenerator.generateSQL(SQLGenerator.java:309)
         at com.evermind.server.ejb.deployment.EJBPackage.translateEjbqlQeries(EJBPackage.java:2100)
         at com.evermind.server.ejb.compilation.Compilation.translateEjbqlQeries(Compilation.java:140)
         at com.evermind.server.ejb.compilation.Compilation.compile(Compilation.java:178)
         at com.evermind.server.administration.ServerApplicationInstallation.finish(ServerApplicationInstallation.java:526)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:119)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:484)
    com.evermind.compiler.CompilationException: Error translating EJBQL: javax.ejb.EJBException: nested exception is: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         at com.evermind.server.ejb.compilation.Compilation.translateEjbqlQeries(Compilation.java:143)
         at com.evermind.server.ejb.compilation.Compilation.compile(Compilation.java:178)
         at com.evermind.server.administration.ServerApplicationInstallation.finish(ServerApplicationInstallation.java:526)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:119)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:484)
    nb: when i use the HR schema coming with 9i it works fine.
    need help

    I presume you are getting the problem on application
    deploy? This happens when upon initialization of the application using the built-in OC4J container/app server that is part of JDeveloper. Here is the full messaging:
    [Starting OC4J using the following ports: HTTP=8989, RMI=23892, JMS=9228.]
    C:\OraHome1\jdk\bin\javaw.exe -ojvm -classpath C:\OraHome1\j2ee\home\oc4j.jar com.evermind.server.OC4JServer -config C:\OraHome1\jdev\system\oc4j-config\server.xml
    [waiting for the server to complete its initialization...]
    Copying default deployment descriptor from archive at Q:\CBTCOF\COF_APPLICATION\COF_Project\classes/META-INF/orion-ejb-jar.xml to deployment directory C:\OraHome1\jdev\system\oc4j-config\application-deployments\current-workspace-app\classes...
    Auto-deploying file:/Q:/CBTCOF/COF_APPLICATION/COF_Project/classes/ (No previous deployment found)...
    Auto-creating table: create table STREET_TYPE (PK_STYP_ID NUMBER(8), STREET_TYPE VARCHAR2(20), primary key (PK_STYP_ID, STREET_TYPE))
    Warning: Error creating table: ORA-00955: name is already used by an existing object
    [...OTHER SIMILAR ERROR MESSAGES]
    done.
    Oracle9iAS (9.0.2.0.0) Containers for J2EE initialized
    If so, in the application.xml file of you
    OC4J instance the is a setting autocreate-tables,
    which by default is true!
    Set it to false as below and that should clear up
    your problem.
    <orion-application autocreate-tables="false"
    default-data-Hmm. I found at least a dozen or so files with that name and set everyone that had this attriute to "false", restarted the OC4J server and still got these errors.

  • FRM-41072 - Cannot create Group GRP_NAME

    In the layout I'm trying to populate Grp_name column values from GRP_TAB table, in the 'GRP_NAME' item list.
    This is the code I had written. But when I run the Form, I'm getting 'FRM-41072 - Cannot create Group GRP_NAME'error. What could be the error?
    DECLARE
    rg_tags varchar2(20) := 'GRP_NAME';
    rg_id RecordGroup;
    errcode number;
    list_id ITEM;
    BEGIN
    rg_id := create_group_from_query ('GRP_NAME', 'select GRP_NAME, grp_name from grp_tab');
    list_id := find_item('GRP_NAME');
    errcode := populate_group(rg_id);
    populate_list (list_id, rg_id);
    END;
    P.S. I'm writing this code in WHEN-MOUSE-CLICK Trigger in GRP_NAME list item. Is this the right place to write the code?
    Thanks.

    > select GRP_NAME, grp_name from grp_tab
    Looking up the on-line help for FRM-41072:
    FRM-41072: Cannot create Group %s
    Cause:     Caused by one of the following
    1. Duplicate column names in SQL statement.
    2. Invalid record group name.
    3. Query is invalid.
    Action:     Check the group name and/or correct the SQL statement.
    Looks like you violated rule number 1.

  • Import fails (cannot create initial extent)

    I am running an import (using the interactive screen, and importing 1 user only)
    After creating a couple of tables, the import starts failing with "cannot create initial extent" errors.
    When I look at the free space, the tablespace I am importing into, has no free space left.
    What I don't understand, is that - I created this tablespace exactly the same size, as the tablespace I exported from (on a remote system). Source=4Gb, Target=4Gb
    Why is this happening ?

    I was never faced with that issue before so I am just guessing...
    Did you create the tablespace with the same initial/next extent values?
    Also, have you tried setting the tablespace to autoextend? It will not answer the "why", but it will at least allow you to see how much larger that tablespace needs to be and let the import finish.

Maybe you are looking for

  • Recordset per message in Sender File Adapter

    Hi Friends I have configured a sender file adapter to pick up *.txt files from a specific path, Since the file is having thousands of records it is failing to process the file at  PI level . In order to avoid the problem I have kept Recordset Set Per

  • I am nearly in tears. Can't install online version of CS2...

    I am nearly in tears. About three weeks ago my hard drive died. I have a new hard drive and am wishing to install my CS2 Premium, which perfectly serves my needs. The disks no longer work with the original activation number so you are directed to the

  • Flashbuilder 4.7 and Windows 8.1 - Debugger not working

    I have recently upgraded to Windows 8.1 and am having problems getting both the debugger and the run to work for an AIR Mobile application in Flashbuilder 8.1. In Flashbuilder the error message is 'Process Terminated unexpectedly' with the adl.ex lau

  • What is best type of 'new' video camera to buy for editing with PE 10?

    I currently own two Sony miniDV camcorders (models DCR-HC28 and HC40) and was doing fine in Premiere Elements and recently upgraded to version 10. I was in the process of using the HC40 cam as a 'pass-through' device to digitize some old VHS tapes, a

  • Problem with tableView SelectionMode = "MULTISELECT"

    Hi, I have a dropdownlistbox. In that I have different groups. If I select first group then entries related to that group are displayed in tableView which has selectionMode = "MULTISELECT". I select some rows in that. when I select another group then