Exception while using weblogic datasource in ADF-BC app

Hi,
I want to use the weblogic datasource[JNDI name] as the datasource for my ADF BC application.
I am following the "Configuring Your Application Module Database Connection" in the link
http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcservices.htm#CHDJDBJB.
I have done the following steps.
1.Started weblogic server and configured a datasource[ex:testbcDS]
2.In JDeveloper,navigated to 'Configuration' panel,edited the '**ModuleLocal' and changed the connection type to 'JDBC DataSource'.
and Datasource Name to 'java:comp/env/jdbc/testbcDS'.
3.In JDeveloper,wrote a stand alone Java client with the following snippet.
public static void main(String[] args) {
try {           
String amDef = "oracle.communications.platform.bcapp.poc.app.AppModule";
String config = "AppModuleLocal";
ApplicationModule am = Configuration.createRootApplicationModule(amDef, config);
ViewObject rscGroupVo = am.findViewObject("IfwRscGroupView1");
rscGroupVo.executeQuery();
4.On execution of this the following exception is being displayed in the console
oracle.jbo.DMLException: JBO-27200: JNDI failure. Unable to lookup Data Source at context jdbc/testbcDS
at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1418)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:309)
Please let me know if I have followed correct steps and let me know the missing/wrongs steps I have done.
The same works fine when the connection type is 'JDBC URL'.
Please suggest.
Thanks,
Praveen

Hi,
After your suggestion I created weblogic data source with name as 'jdbc/testbcDS'
and JNDI Name as 'jdbc/testbcDS'.
Still I get the same error.
oracle.jbo.DMLException: JBO-27200: JNDI failure. Unable to lookup Data Source at context jdbc/testbcDS
at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1418)
Thanks,
Praveen

Similar Messages

  • Error Connecting to Database using Weblogic Datasource

    Hi,
    I am trying to connect to oracle database from my program using weblogic DataSource. I am using JDK1.3.1.08 , weblogic 7.
    I am using the following code to get Connection object.
    contextFactory ="weblogic.jndi.WLInitialContextFactory";
    providerURL="t3://192.168.0.29:7001";
    dataSource ="temp_ds";
    if(contextFactory!=null)
    properties.put(Context.INITIAL_CONTEXT_FACTORY,contextFactory);
    if(providerURL !=null)
    properties.put(Context.PROVIDER_URL, providerURL);
    initCtx = new InitialContext(properties);
    DataSource ds= (javax.sql.DataSource) initCtx.lookup(dataSource);
    Connection con = ds.getConnection();
    con.setAutoCommit(false);
    I am getting the following error while running the program. Can any body help?
    javax.naming.CommunicationException. Root exception is weblogic.socket.Unrecove
    rableConnectException: [JDK 1.3 or higher required]
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.io.IOException.<init>(IOException.java:47)
    at java.net.SocketException.<init>(SocketException.java:36)
    at java.net.ConnectException.<init>(ConnectException.java:34)
    at weblogic.socket.UnrecoverableConnectException.<init>(UnrecoverableCon
    nectException.java:19)
    at weblogic.rjvm.RJVMManager.checkVersion(RJVMManager.java:451)
    at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java
    :201)
    at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:191)
    at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:203)
    at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:169)
    at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:262)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Compi
    led Code)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
    tialContextFactoryDelegate.java:221)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialCont
    extFactory.java:149)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242)
    at javax.naming.InitialContext.init(InitialContext.java:218)
    at javax.naming.InitialContext.<init>(InitialContext.java:194)
    at WeblogicTest.getConnection(WeblogicTest.java:40)
    at WeblogicTest.<init>(WeblogicTest.java:23)
    at WeblogicTest.main(WeblogicTest.java:18)
    at WeblogicTest.printTableData(Compiled Code)
    at WeblogicTest.<init>(WeblogicTest.java:24)
    at WeblogicTest.main(WeblogicTest.java:18)
    Regards
    Kumar

    I am not sure if this is the reason, but going thru the stack trace ...
    javax.naming.CommunicationException. Root exception is weblogic.socket.Unrecove
    rableConnectException: [JDK 1.3 or higher required]Make sure you have JDK 1.3 or higher installed.
    Cheers
    Sekar

  • Exception while using unit of work commit

    Hi,
    I have using this code to create a object
    KbAdAlerts alert = new KbAdAlerts();
    alert.setAlertId(kmData.getAlertId());
    alert.setAlertDesc(kmData.getOutcome());
    alert.setAlertLastRevisionDate(KmUtils.convertReviewDate(kmData.getReviewDate()));
    alert.setAlertType(kmData.getAlertType());
    System.out.println("Alert Object :" + alert);
    KbAdAlerts alertClone = (KbAdAlerts) uow.registerObject(alert);
    System.out.println("Clone Alert:" + alertClone);
    uow.printRegisteredObjects();
    uow.commit();
    I am getting exception while using uow.commit(). I have gone into alert object and everything seems to be fine.
    Could you help me in this issue.
    Thanks,
    Ashish
    Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-01400: cannot insert NULL into ("AD_OWNER"."KB_AD_ALERTS"."ALERT_ID")
    Error Code: 1400
    Call:insert into kb_ad_alerts(alert_id, alert_desc, alert_type, alert_last_revision_date)
    values
    (NULL, NULL, NULL, NULL)
    Query:InsertObjectQuery(oracle.ccr.admin.model.KbAdAlerts@6108)
         at oracle.toplink.exceptions.TopLinkException.<init>(TopLinkException.java:46)
         at oracle.toplink.exceptions.DatabaseException.<init>(DatabaseException.java:50)
         at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:282)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:658)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:707)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:496)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:442)
         at oracle.toplink.publicinterface.UnitOfWork.executeCall(UnitOfWork.java:1603)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:117)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:103)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.insertObject(DatasourceCallQueryMechanism.java:238)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.insertObject(DatabaseQueryMechanism.java:355)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.insertObjectForWrite(DatabaseQueryMechanism.java:433)
         at oracle.toplink.queryframework.InsertObjectQuery.executeCommit(InsertObjectQuery.java:60)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.performUserDefinedWrite(DatabaseQueryMechanism.java:622)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.performUserDefinedInsert(DatabaseQueryMechanism.java:586)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.insertObjectForWriteWithChangeSet(DatabaseQueryMechanism.java:479)
         at oracle.toplink.queryframework.WriteObjectQuery.executeCommitWithChangeSet(WriteObjectQuery.java:110)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.executeWriteWithChangeSet(DatabaseQueryMechanism.java:259)
         at oracle.toplink.queryframework.WriteObjectQuery.executeDatabaseQuery(WriteObjectQuery.java:47)
         at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:603)
         at oracle.toplink.queryframework.DatabaseQuery.executeInUnitOfWork(DatabaseQuery.java:519)
         at oracle.toplink.queryframework.ObjectLevelModifyQuery.executeInUnitOfWorkObjectLevelModifyQuery(ObjectLevelModifyQuery.java:100)
         at oracle.toplink.queryframework.ObjectLevelModifyQuery.executeInUnitOfWork(ObjectLevelModifyQuery.java:72)
         at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(UnitOfWork.java:2532)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:981)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:938)
         at oracle.toplink.internal.sessions.CommitManager.commitNewObjectsForClassWithChangeSet(CommitManager.java:240)
         at oracle.toplink.internal.sessions.CommitManager.commitAllObjectsWithChangeSet(CommitManager.java:161)
         at oracle.toplink.publicinterface.Session.writeAllObjectsWithChangeSet(Session.java:3123)
         at oracle.toplink.publicinterface.UnitOfWork.commitToDatabase(UnitOfWork.java:1242)
         at oracle.toplink.publicinterface.UnitOfWork.commitToDatabaseWithChangeSet(UnitOfWork.java:1330)
         at oracle.toplink.publicinterface.UnitOfWork.commitRootUnitOfWork(UnitOfWork.java:1097)
         at oracle.toplink.publicinterface.UnitOfWork.commit(UnitOfWork.java:865)
         at oracle.ccr.admin.model.FeedbackServices.writeFeedback(FeedbackServices.java:116)
         at oracle.ccr.admin.view.AlertDetails.updateTables(AlertDetails.java:834)
         at oracle.ccr.admin.view.AlertDetails.commandButton1_action(AlertDetails.java:822)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
         at oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:211)
         at oracle.adf.view.faces.component.UIXCollection.broadcast(UIXCollection.java:94)
         at oracle.adf.view.faces.component.UIXTable.broadcast(UIXTable.java:205)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:629)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)

    Hi,
    I am having a similar problem that results in this stack trace. The funny thing is that it occurs after a session.logout/login and re-read of the object I'm trying to update. The other thing is that if I remove objects from the transaction it just happens somewhere else - on a different object/descriptor. I am attempting to upgrade from 9.03 runtime to the 10.0.3.1 builder/runtime. I am connecting to a Sybase 12.5 db.
    Any ideas on this one?
    Thanks,
    Bret
    This is the sql that is found in the DatasourceCallQueryMechanism. We are not using any custom SQL.
    SQLCall(INSERT INTO Invoice (id, description, billingAddress, customerNote, invoiceNumber, startDate, stopDate, sentDate, commitDate, customerId, dueDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?))
    java.lang.NullPointerException
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.insertObject(DatasourceCallQueryMechanism.java:213)
         at oracle.toplink.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:156)
         at oracle.toplink.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:170)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.insertObjectForWrite(DatabaseQueryMechanism.java:426)
         at oracle.toplink.queryframework.InsertObjectQuery.executeCommit(InsertObjectQuery.java:65)
         at oracle.toplink.queryframework.InsertObjectQuery.executeCommitWithChangeSet(InsertObjectQuery.java:75)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.executeWriteWithChangeSet(DatabaseQueryMechanism.java:251)
         at oracle.toplink.queryframework.WriteObjectQuery.executeDatabaseQuery(WriteObjectQuery.java:47)
         at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:620)
         at oracle.toplink.queryframework.DatabaseQuery.executeInUnitOfWork(DatabaseQuery.java:542)
         at oracle.toplink.queryframework.ObjectLevelModifyQuery.executeInUnitOfWorkObjectLevelModifyQuery(ObjectLevelModifyQuery.java:100)
         at oracle.toplink.queryframework.ObjectLevelModifyQuery.executeInUnitOfWork(ObjectLevelModifyQuery.java:72)
         at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(UnitOfWork.java:2578)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:988)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:945)
         at oracle.toplink.internal.sessions.CommitManager.commitNewObjectsForClassWithChangeSet(CommitManager.java:243)
         at oracle.toplink.internal.sessions.CommitManager.commitAllObjectsForClassWithChangeSet(CommitManager.java:218)
         at oracle.toplink.internal.sessions.CommitManager.commitAllObjectsWithChangeSet(CommitManager.java:174)
         at oracle.toplink.publicinterface.Session.writeAllObjectsWithChangeSet(Session.java:3177)
         at oracle.toplink.publicinterface.UnitOfWork.commitToDatabase(UnitOfWork.java:1282)
         at oracle.toplink.publicinterface.UnitOfWork.commitToDatabaseWithChangeSet(UnitOfWork.java:1370)
         at oracle.toplink.publicinterface.UnitOfWork.commitRootUnitOfWork(UnitOfWork.java:1137)
         at oracle.toplink.publicinterface.UnitOfWork.commit(UnitOfWork.java:905)
         at com.tbs.database.DBBroker.mergeSingleObject(DBBroker.java:288)
         at com.tbs.database.DBBroker.merge(DBBroker.java:235)
         at com.tbs.database.DBBrokerSetInvoker.merge(DBBrokerSetInvoker.java:73)
         at com.tbs.database.TbsDataSource.merge(TbsDataSource.java:353)
    /////////////////////////////////

  • Exception - sealing exception while starting weblogic

    i get the following exception while starting weblogic ,
    pls let me know what changes needs to be done!!
    D:\bea\user_projects\mapos>"d:\bea\jdk131_06\bin\java" -hotspot -Xms64m -Xmx256m
    -Dserver.id=01:7001 -Ddomain.home=D:\bea\user_projects\mapos -Dweblogic.securi
    ty.SSL.trustedCAKeyStore=D:\bea\weblogic700\server\lib\cacerts -Dweblogic.Name=m
    yserver -Dbea.home="d:\bea" -Dweblogic.management.username=system -Dweblogic.man
    agement.password=password -Dweblogic.ProductionModeEnabled= -Djava.security.poli
    cy="d:\bea\weblogic700\server\lib\weblogic.policy" weblogic.Server
    <Aug 27, 2003 4:08:37 AM PDT> <Critical> <WebLogicServer> <000364> <Server faile
    d during initialization. Exception:java.lang.SecurityException: sealing violatio
    n
    java.lang.SecurityException: sealing violation
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:229)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:10
    6)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:10
    6)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
    at weblogic.t3.srvr.T3Srvr.checkAccess(T3Srvr.java:419)
    at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:627)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282)
    at weblogic.Server.main(Server.java:32)
    >

    Your server certificate expired. You need to update your identity keystore with a new certificate.
    The expired certificate was issued by the demo BEA certificate authority (CA). These certs are not adequate for production but if you want to take this approach for your new cert you'll have to use the BEA CertGen utility. Have a look at http://edocs.bea.com/wls/docs70/secmanage/ssl.html for more details.
    Your other option is to use Java's keytool utility to create a private key. You'd then generate a certificate signing request (CSR) that you'd send to a CA such as Verisign. You might even have a CA in-house. The CA will then send you a signed certificate that you load in your keystore. Assuming you've configured WebLogic to use this keystore you should be back in business with SSL.
    Mike
    Weblogic/J2EE Security Blog: http://monduke.com

  • Invalid_path exception while using UTL_FILE.FOPEN

    Hi
    I am getting invalid_path exception while using the UTL_FILE.fopen subprogram. I tried finding out the reason but could not solve it. Please help.
    Below is my piece of code.
    create directory utldr as 'e:\utldir';
    declare
    f utl_file.file_type;
    s varchar2(200);
    begin
    dbms_output.put_line('1');
    f := utl_file.fopen('UTLDR','utlfil.txt','r');
    dbms_output.put_line('2');
    utl_file.get_line(f,s);
    dbms_output.put_line('3');
    utl_file.fclose(f);
    dbms_output.put_line('4');
    dbms_output.put_line(s);
    exception
    when utl_file.invalid_path then
    dbms_output.put_line('invalid_path');
    end;
    the result is:
    1
    invalid_path

    I am executing it from sys. The same user who created the directory.
    The output is as below:
    SELECT * FROM dba_directories
    OWNER     DIRECTORY_NAME     DIRECTORY_PATH
    SYS     MEDIA_DIR      d:\avale\rel4\demo\schema\product_media\
    SYS     LOG_FILE_DIR     d:\avale\rel4\assistants\dbca\logs\
    SYS     DATA_FILE_DIR     d:\avale\rel4\demo\schema\sales_history\
    SYS     EMP_DIR     E:\Oracle Directory
    SYS     REMOTED     \\10.1.1.12\oracle directory
    SYS     UTLDR     e:\utldir
    SELECT * FROM dba_tab_privs WHERE table_name='UTLDR'
    GRANTEE     OWNER     TABLE_NAME     GRANTOR     PRIVILEGE     GRANTABLE     HIERARCHY
    PUBLIC     SYS     UTLDR     SYS     READ     NO     NO

  • My problem in using weblogic Datasource and proxy user

    Hello
    I create a DataSource in Weblogic that connect to the database by a proxy user and I have a client application that use this DataSource and create a proxy session , I've written my client application (it's a stand alone client application) code below :
    public static void main(String [] args) {
    OracleConnection conn=null;
    javax.sql.DataSource ds=null;
    Hashtable env = new Hashtable();
    env.put( Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory" );
    env.put(Context.PROVIDER_URL, "t3://127.0.0.1:7001");
    try{
    Context context=new InitialContext( env );
    ds=(javax.sql.DataSource) context.lookup ("OracleConnection2");
    conn=(OracleConnection) ds.getConnection();
    java.util.Properties prop = new java.util.Properties();
    prop.put(OracleConnection.PROXY_USER_NAME, "web_user1");
    prop.put(OracleConnection.PROXY_USER_PASSWORD,"web_user1");
    conn.openProxySession(OracleConnection.PROXYTYPE_USER_NAME, prop);
    if (conn.isClosed()){
    System.out.println("Connection closed");
    return;
    testJDBC(conn,true);
    for(int k=0;k<10;k++){
    testJDBC(conn,false);
    conn.close(OracleConnection.PROXY_SESSION);
    conn.close();
    }catch(Exception ex){
    ex.printStackTrace();
    It works but my problem is that in line "prop.put(OracleConnection.PROXY_USER_PASSWORD,"web_user1")" or line "prop.put(OracleConnection.PROXY_USER_NAME, "web_user1");"
    Let me to mention a scenario :
    *1- I type a wrong username or password in my client application and I run the client application it shows me this error : invalid username/password*
    *this error is acceptable*
    *2- then I correct the wrong username or password immediately and run the application again , it shows me this error (at line conn.openProxySession(OracleConnection.PROXYTYPE_USER_NAME, prop)) :*
    java.sql.SQLException: Closed Connection
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
         at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
         at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_JTAConnection_weblogic_jdbc_wrapper_XAConnection_oracle_jdbc_driver_LogicalConnection_1032_WLStub.openProxySession(Unknown Source)
         at weblogic.jdbc.rmi.SerialConnection_weblogic_jdbc_rmi_internal_ConnectionImpl_weblogic_jdbc_wrapper_JTAConnection_weblogic_jdbc_wrapper_XAConnection_oracle_jdbc_driver_LogicalConnection_1032_WLStub.openProxySession(Unknown Source)
         at oracle.HRFacadeClient.main(HRFacadeClient.java:38)
    *3- I run the application again (by correct username and password) but this time it shows me this error :*
    java.sql.SQLException: Unsupported feature
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
         at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
         at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_JTAConnection_weblogic_jdbc_wrapper_XAConnection_oracle_jdbc_driver_LogicalConnection_1032_WLStub.openProxySession(Unknown Source)
         at weblogic.jdbc.rmi.SerialConnection_weblogic_jdbc_rmi_internal_ConnectionImpl_weblogic_jdbc_wrapper_JTAConnection_weblogic_jdbc_wrapper_XAConnection_oracle_jdbc_driver_LogicalConnection_1032_WLStub.openProxySession(Unknown Source)
         at oracle.HRFacadeClient.main(HRFacadeClient.java:38)
    *4 - if I repeat running the application for multi times every time it shows me the previous error*
    *5- I wait about one minute the problem solved and my application can create proxy session *
    the result is that if I wanna create proxy session by wrong username or password and I get "Invalid username/password" error message , then after correcting username or password I have to wait about one minute and then run the application again_
    Do you know how I can overcome this problem ?
    Thank you

    Hi Jamshid,
    There is same problem observed few days back with us, and we have used the below code, and it got solved. Actually there is a problem observed while using proxy connections on weblogic.
    if(conn instanceof weblogic.jdbc.extensions.WLConnection){
         weblogic.jdbc.extensions.WLConnection cn=(weblogic.jdbc.extensions.WLConnection)conn;
         cn.clearStatementCache();
    http://rocksolutions.wordpress.com/2010/06/04/connection-pool-issue-on-weblogic/
    Hope this helps.
    Thanks

  • I am getting build error while using weblogic.appc

    Hi All,
    I am using weblogic 10 server and ejb 3.0 code .
    While ejb-complisation i am getting the class not found error.
    Please help me in resolving the below issue.
    ejb-compile:
    [echo] E:\workspace\OMGAdmin\OMGADMIN/omgAdminBuild/omgAdminEAR
    [java] Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/descriptor/BeanUpdateListener
    [java] at java.lang.ClassLoader.defineClass1(Native Method)
    [java] at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    [java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    [java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    [java] at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    [java] at java.security.AccessController.doPrivileged(Native Method)
    [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    [java] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    [java] at java.lang.Class.forName0(Native Method)
    [java] at java.lang.Class.forName(Class.java:164)
    [java] at weblogic.logging.MessageLogger.<clinit>(MessageLogger.java:46)
    [java] at weblogic.logging.WLMessageLogger.log(WLMessageLogger.java:51)
    [java] at weblogic.j2ee.J2EELogger.logAppcFailedWithError(J2EELogger.java:5257)
    [java] at weblogic.application.compiler.Appc.runBody(Appc.java:179)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:158)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:115)
    [java] at weblogic.application.compiler.Appc.main(Appc.java:188)
    [java] at weblogic.appc.main(appc.java:14)
    [java] Java Result: 1
    <target name="ejb-compile" depends="ejb-jar">
         <echo message="${project.EAR.dir}"></echo>
         <java classname="weblogic.appc" fork="yes">
    <sysproperty key="weblogic.home" value="${wl.home}"/>
    <arg line="-compiler javac ${project.EJB.dir}/omgAdminEJB.jar"/>
    <classpath>
    <pathelement location="${wl.dir.lib}\weblogic.jar"/>
    <pathelement location="${wl.dir.lib}\api.jar"/>
    <pathelement location="${wl.dir.lib}\wls-api.jar"/>
              <pathelement location="${project.EAR.dir}\utility.jar"/>
              <pathelement location="${project.lib}\log4j-1.2.13.jar"/>
    </classpath>
    </java>
         <copy todir="${project.EAR.dir}" >
    <fileset dir="${project.EJB.dir}" includes="omgAdminEJB.jar" />
    </copy>
         <delete>
    <fileset dir="${project.EJB.dir}" includes="omgAdminEJB.jar"/>
    </delete>
    </target>
    above script is my ant task for ejb compilisation
    Regd's
    Soma.

    Finally i am end up with this exception
    [java] Exception in thread "main" java.lang.AssertionError: java.lang.reflect.InvocationTargetException
    [java] at weblogic.logging.MessageLogger.log(MessageLogger.java:104)
    [java] at weblogic.logging.MessageLogger.log(MessageLogger.java:116)
    [java] at weblogic.logging.WLMessageLogger.log(WLMessageLogger.java:51)
    [java] at weblogic.j2ee.J2EELogger.logAppcFailedWithError(J2EELogger.java:5257)
    [java] at weblogic.application.compiler.Appc.runBody(Appc.java:179)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:158)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:115)
    [java] at weblogic.application.compiler.Appc.main(Appc.java:188)
    [java] at weblogic.appc.main(appc.java:14)
    [java] Caused by: java.lang.reflect.InvocationTargetException
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:585)
    [java] at weblogic.logging.MessageLogger.log(MessageLogger.java:101)
    [java] ... 8 more
    [java] Caused by: java.lang.NoClassDefFoundError: weblogic/management/DistributedManagementException
    [java] at java.lang.Class.getDeclaredMethods0(Native Method)
    [java] at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
    [java] at java.lang.Class.privateGetPublicMethods(Class.java:2488)
    [java] at java.lang.Class.privateGetPublicMethods(Class.java:2498)
    [java] at java.lang.Class.privateGetPublicMethods(Class.java:2498)
    [java] at java.lang.Class.privateGetPublicMethods(Class.java:2498)
    [java] at java.lang.Class.getMethods(Class.java:1406)
    [java] at weblogic.kernel.MBeanStub.initializeFromSystemProperties(MBeanStub.java:51)
    [java] at weblogic.kernel.LogMBeanStub.<init>(LogMBeanStub.java:41)
    [java] at weblogic.kernel.KernelMBeanStub.<init>(KernelMBeanStub.java:10)
    [java] at weblogic.kernel.KernelLogManager$LoggerMaker.<clinit>(KernelLogManager.java:22)
    [java] at weblogic.kernel.KernelLogManager.getLogger(KernelLogManager.java:28)
    [java] ... 13 more
    [java] Java Result: 1
    My Build file is
    <target name="ejb-compile" depends="ejb-jar">
         <echo message="${project.EAR.dir}"></echo>
         <echo message="${wl.modules.lib}\com.bea.core.descriptor_1.0.1.0.jar" />
         <echo message="${wl.dir.lib}\weblogic.jar" />
         <java classname="weblogic.appc" fork="yes">
    <sysproperty key="weblogic.home" value="${wl.home}"/>
    <arg line="-compiler javac ${project.EJB.dir}/omgAdminEJB.jar"/>
    <classpath>
    <pathelement location="${wl.dir.lib}\weblogic.jar"/>
    <pathelement location="${wl.dir.lib}\api.jar"/>
    <pathelement location="${wl.dir.lib}\wls-api.jar"/>
    <pathelement location="${wl.dir.lib}\wlclient.jar"/>
    <pathelement location="${wl.modules.lib}\com.bea.core.descriptor_1.0.1.0.jar"/>
              <pathelement location="${project.EAR.dir}\utility.jar"/>
              <pathelement location="${project.lib}\log4j-1.2.13.jar"/>
    </classpath>
    </java>
         <copy todir="${project.EAR.dir}" >
    <fileset dir="${project.EJB.dir}" includes="omgAdminEJB.jar" />
    </copy>
         <delete>
    <fileset dir="${project.EJB.dir}" includes="omgAdminEJB.jar"/>
    </delete>
    </target>

  • Exception while starting Weblogic Application Server (ver 7.0)

    While starting WEBLOGIC server (ver 7.0), we are getting the following exception.
    Can anybody help us to correct this problem.
    Following is the Exception we are getting. We couldn't able to trace the reason
    for this error:
    <May 10, 2004 9:22:36 AM IST> <Debug> <TLS> <000000> <SSLManager(server=udaykr,
    realm=myrealm)>
    <May 10, 2004 9:22:36 AM IST> <Notice> <Security> <090082> <Security initializing
    using realm myrealm.>
    <May 10, 2004 9:22:37 AM IST> <Notice> <WebLogicServer> <000327> <Starting WebLogic
    Admin Server "udaykr" for domain "uday">
    <May 10, 2004 9:22:52 AM IST> <Error> <HTTP> <101065> <[HTTP udaykr] Failed to
    obtain localhost name
    java.net.UnknownHostException: -Z
    at java.net.InetAddress.getAllByName0(Unknown Source)
    at java.net.InetAddress.getAllByName0(Unknown Source)
    at java.net.InetAddress.getAllByName(Unknown Source)
    at java.net.InetAddress.getLocalHost(Unknown Source)
    at weblogic.servlet.internal.HttpServer.initServerNameAndPort(HttpServer.java:579)
    at weblogic.servlet.internal.HttpServer.start(HttpServer.java:196)
    at weblogic.servlet.internal.WebService.startWebServers(WebService.java:134)
    at weblogic.servlet.internal.WebService.resume(WebService.java:105)
    at weblogic.t3.srvr.ServerLifeCycleList.resume(ServerLifeCycleList.java:61)
    at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:812)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:294)
    at weblogic.Server.main(Server.java:31)
    >
    setSessionContext(SessionContext) called from class com.hp.wes.ejb.CaseBean_18uvk_Impl

    While starting WEBLOGIC server (ver 7.0), we are getting the following exception.
    Can anybody help us to correct this problem.
    Following is the Exception we are getting. We couldn't able to trace the reason
    for this error:
    <May 10, 2004 9:22:36 AM IST> <Debug> <TLS> <000000> <SSLManager(server=udaykr,
    realm=myrealm)>
    <May 10, 2004 9:22:36 AM IST> <Notice> <Security> <090082> <Security initializing
    using realm myrealm.>
    <May 10, 2004 9:22:37 AM IST> <Notice> <WebLogicServer> <000327> <Starting WebLogic
    Admin Server "udaykr" for domain "uday">
    <May 10, 2004 9:22:52 AM IST> <Error> <HTTP> <101065> <[HTTP udaykr] Failed to
    obtain localhost name
    java.net.UnknownHostException: -Z
    at java.net.InetAddress.getAllByName0(Unknown Source)
    at java.net.InetAddress.getAllByName0(Unknown Source)
    at java.net.InetAddress.getAllByName(Unknown Source)
    at java.net.InetAddress.getLocalHost(Unknown Source)
    at weblogic.servlet.internal.HttpServer.initServerNameAndPort(HttpServer.java:579)
    at weblogic.servlet.internal.HttpServer.start(HttpServer.java:196)
    at weblogic.servlet.internal.WebService.startWebServers(WebService.java:134)
    at weblogic.servlet.internal.WebService.resume(WebService.java:105)
    at weblogic.t3.srvr.ServerLifeCycleList.resume(ServerLifeCycleList.java:61)
    at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:812)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:294)
    at weblogic.Server.main(Server.java:31)
    >
    setSessionContext(SessionContext) called from class com.hp.wes.ejb.CaseBean_18uvk_Impl

  • Unknown Host Exception while starting weblogic 6.0

    Hi,
    While starting weblogic 6.0 on win 95, i get following error.
    [java.net.UnknownHostException: default]
    weblogic.utils.NestedError: Local host not known?! - with nested exception:
    I have tried to change ports from 7001 and 7002, error is still there. I work on
    a desktop, dont have any proxy settings.
    What else can be done?

    Hi.
    Again, this is not a supported platform. I also believe this is some kind of network
    setup issue on your win95 machine. Try comparing the tcp/ip setup differences between
    your win98 machine and your win95 machine. If you are using dhcp you should try to
    change your settings to support a static ip.
    Good luck.
    Michael
    Tarang wrote:
    Hi,
    I am attaching complete error message, may be you can throw more light. I tried the
    same installation on win 98, it is working fine. On my machine, variable is defined
    as localhost only.
    [java.net.UnknownHostException: default]
    weblogic.utils.NestedError: Local host not known?! - with nested exception:
    [java.net.UnknownHostException: default]
    at weblogic.rjvm.JVMID.setLocalID(JVMID.java:86)
    at weblogic.rjvm.JVMID.localID(JVMID.java:67)
    at weblogic.rjvm.LocalRJVM.getID(LocalRJVM.java:130)
    at weblogic.i18ntools.L10nLookup$Logger.<init>(L10nLookup.java:282)
    at weblogic.i18ntools.L10nLookup.<init>(L10nLookup.java:114)
    at weblogic.i18ntools.L10nLookup.init(L10nLookup.java:70)
    at weblogic.i18ntools.L10nLookup.getL10n(L10nLookup.java:58)
    at weblogic.logging.LogManager.initialize(LogManager.java:66)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:322)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
    at weblogic.Server.main(Server.java:35)
    Tarang
    Michael Young <[email protected]> wrote:
    Hi.
    The port is not the problem, it's something with your network setup - localhost
    is
    not properly defined. I'm not sure about the error you posted below, but
    FWIW it
    should be defined as localhost, not 'local host' (note the space).
    In the bigger picture, however, you should try running WLS on a supported
    platform.
    See the following link for this:
    http://edocs.bea.com/wls/platforms/index.html
    Regards,
    Michael
    Tarang wrote:
    Hi,
    While starting weblogic 6.0 on win 95, i get following error.
    [java.net.UnknownHostException: default]
    weblogic.utils.NestedError: Local host not known?! - with nested exception:
    I have tried to change ports from 7001 and 7002, error is still there.I work on
    a desktop, dont have any proxy settings.
    What else can be done?--
    Michael Young
    Developer Relations Engineer
    BEA Support
    Michael Young
    Developer Relations Engineer
    BEA Support

  • OraclePersistManager.updateBlobs() errors in using WebLogic DataSource

    CONFIGURATION
    Ap server: WebLogic 8.1
    Oracle database: 10g
    Oracle JDBC Driver: ojdbc14.jar, ojdbc14_g.jar, classes12.jar
    DESCRIPTION
    We have developed an application- V3- on top of ADF, and currently, we wanna deployed V3 from OC4J to WebLogic, and we used weblogic data source to access oracle database. The following Exception occurred in deployment to Weblogic.
    java.lang.ClassCastException: weblogic.jdbc.wrapper.Blob_oracle_sql_BLOB
         at oracle.jbo.pcoll.OraclePersistManager.updateBlobs(JI[Loracle.jbo.pcoll.PCollKeyInfo;[BILoracle.jdbc.OracleCallableStatement;)V(OraclePersistManager.java:1682)
         at oracle.jbo.pcoll.OraclePersistManager.insert(JJI[Loracle.jbo.pcoll.PCollKeyInfo;[B)V(OraclePersistManager.java:1832)
         at oracle.jbo.pcoll.PCollNode.passivateElem(Loracle.jbo.pcoll.PCollPersistable;Loracle.jbo.pcoll.PCollNode;Loracle.jbo.pcoll.PCollection;J)Z(PCollNode.java:561)
         at oracle.jbo.pcoll.PCollNode.passivate()Z(PCollNode.java:684)
         at oracle.jbo.pcoll.PCollNode.passivateBranch()Z(PCollNode.java:643)
         at oracle.jbo.pcoll.PCollection.passivate()J(PCollection.java:461)
         at oracle.jbo.server.DBSerializer.passivateRootAM(I[BI)I(DBSerializer.java:294)
         at oracle.jbo.server.DBSerializer.passivateRootAM([B)I(DBSerializer.java:267)
         at oracle.jbo.server.ApplicationModuleImpl.passivateStateInternal(I[BI)I(ApplicationModuleImpl.java:5123)
         at oracle.jbo.server.ApplicationModuleImpl.passivateState(I[BI)I(ApplicationModuleImpl.java:5011)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(Loracle.jbo.ApplicationPoolSvcMsgContext;)Loracle.jbo.ApplicationPoolSvcMsgContext;(ApplicationModuleImpl.java:7741)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(Loracle.jbo.ApplicationPoolSvcMsgContext;Loracle.jbo.common.ampool.SessionCookie;Loracle.jbo.common.ampool.ApplicationPoolImpl$SessionCookieInfo;Loracle.jbo.ApplicationModule;Loracle.jbo.common.ampool.ApplicationPoolImpl$ApplicationModuleInfo;)V(ApplicationPoolImpl.java:3923)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doManagedCheckin(Loracle.jbo.common.ampool.SessionCookie;Z)V(ApplicationPoolImpl.java:2161)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.releaseApplicationModule(Loracle.jbo.common.ampool.SessionCookie;I)V(ApplicationPoolImpl.java:1261)
         at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(IJ)V(SessionCookieImpl.java:717)
         at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(ZZJ)V(SessionCookieImpl.java:629)
         at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(ZZ)V(SessionCookieImpl.java:611)
         at oracle.cabo.data.jbo.servlet.RootAppModuleRegistryImpl$ReleaseRootAppModule.unbindValue()V(Unknown Source)
         at oracle.cabo.share.util.BindableNamespaceMap.unbindAll()V(Unknown Source)
         at oracle.cabo.servlet.BaseBajaContext.dispose()V(Unknown Source)
         at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Loracle.cabo.servlet.BajaContext;)Loracle.cabo.servlet.Page;(Unknown Source)
         at oracle.cabo.servlet.UIXServlet.doGet(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(Unknown Source)
         at javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:996)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:419)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ServletStubImpl.java:315)
         at weblogc.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.java:6452)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Obect;(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponseImpl;)V(WebAppServletContext.java:3661)
         at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThread;)V(ServletRequestImpl.java:2630)
    After decompiling class file of OraclePersistManager, it is because the following statement, which wanted to Cast returned object to Oracle.sql.BLOB.
    BLOB blob = (BLOB)oraclecallablestatement.getObject(j++);
    After searching the internet, the following url says it should be casted to weblogic.jdbc.vendor.oracle.OracleThinBlob.
    http://e-docs.bea.com/wls/docs81/jdbc/thirdparty.html#1043777
    oracle.jbo.pcoll.OraclePersistManager is the foundation class in ADF, of which code can NOT be revised. So, what should we do to resolve such error?? Please help to get it resolved ASAP, Thx for ur time...
    cheers
    Adam

    Hi. The problem is that in several places in Oracle JDBC extensions,
    they have methods that claim they take generic JDBC objects, such
    as java.sql.Blob, but they actually assume that the object is an
    Oracle driver object, and do such casts internally. WebLogic always
    generates a wrapper around JDBC objects so we can control transactions
    and prevent unintended multithreaded use of pooled connections.
    In this case, the only quick solution is to judiciously use our
    getVendorConnection() call and generate/obtain the actual Oracle
    blob object to pass to the OraclePersistenceManager. Do note though
    that this will initially mean that the pool connection will be closed and
    replaced at the end of the current invoke, to protect the pool. This is
    reconfigurable, but please read our docs.
    Joe Weinstein at BEA Systems

  • Security Exception while using OIM client API with Webcenter

    Hi,
    We are using OIM 11g Client api for creating user from our WebCenter portal application. But we are getting security as well as no such service exception while calling login from the OIM client.
    Exception::
    oracle.iam.platform.utils.NoSuchServiceException: java.lang.reflect.InvocationTargetException
         at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:197)
         at oracle.iam.platform.OIMClient.getService(OIMClient.java:174)
         at oracle.iam.platform.OIMClient.loginSessionCreated(OIMClient.java:209)
         at oracle.iam.platform.OIMClient.login(OIMClient.java:136)
         at oracle.iam.platform.OIMClient.login(OIMClient.java:114)
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:193)
    Caused by: java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[weblogic, Administrators]
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
    oracle.iam.platform.utils.NoSuchServiceException: java.lang.reflect.InvocationTargetException
    Client Code::
    System.setProperty("java.security.auth.login.config", "Path to authwl.conf");
    System.setProperty("OIM.AppServerType", "weblogic");
    env = new Hashtable();
    env.put(OIMClient.JAVA_NAMING_FACTORY_INITIAL,"weblogic.jndi.WLInitialContextFactory");
    env.put(OIMClient.JAVA_NAMING_PROVIDER_URL, "t3://host:14000/oim");
    client = new OIMClient(env);
    try {
    client.login(OIMUserName, OIMPassword);
    } catch (LoginException e) {
    e.printStackTrace();
    The exception is coming after executing the login code (not login exception).We logged into our application using weblogic user(even for any other user in OID,shared by OIM, is having same behaviour). The code is being executed from integrated webogic server and oim_server is running on a different server under a separate domain.
    Please suggest.
    Thanks

    There are files needed in your project.
    from the <OIMHOME>/config folder_
    xl.policy
    authwl.conf
    log.properties
    from the <OIMHOME>/ext folder_
    commons-logging.jar
    jakarta-oro-2.0.8.jar
    javagroups-all.jar
    jhall.jar
    log4j-1.2.8.jar
    mail.jar
    oscache.jar
    spring.jar
    wlfullclient.jar
    from the <OIMHOME>/lib folder_
    iam-platform-auth-client.jar
    iam-platform-context.jar
    iam-platform-pluginframework.jar
    iam-platform-utils.jar
    oimclient.jar
    XellerateClient.jar
    xlAPI.jar
    xlDataObjectBeans.jar
    xlUtils.jar
    xlVO.jar

  • Exception while using Nested types in Oracle

    Hi All,
    I am getting an exception while trying to use Nested types in Oracle. The same thing works in other systems. So it might be some problem with my configuration. Can anyone please help me out with this one. Thanks in advance..
    java.sql.SQLException: Internal Error
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.initCollElemTypeName(OracleTypeCOLLECTION.java:1074)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.getAttributeType(OracleTypeCOLLECTION.java:1107)
    at oracle.jdbc.oracore.OracleNamedType.getFullName(OracleNamedType.java:81)
    at oracle.jdbc.oracore.OracleNamedType.getFullName(OracleNamedType.java:68)
    at oracle.sql.TypeDescriptor.initSQLName(TypeDescriptor.java:237)
    at oracle.sql.TypeDescriptor.getName(TypeDescriptor.java:198)
    at oracle.sql.StructDescriptor.getClass(StructDescriptor.java:1105)
    at oracle.sql.STRUCT.toJdbc(STRUCT.java:574)
    at oracle.jdbc.oracore.OracleTypeUPT.unpickle81UPT(OracleTypeUPT.java:502)
    at oracle.jdbc.oracore.OracleTypeUPT.unpickle81rec(OracleTypeUPT.java:456)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81ImgBodyElements(OracleTypeCOLLECTION.java:1011)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81ImgBody(OracleTypeCOLLECTION.java:952)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81(OracleTypeCOLLECTION.java:764)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.unlinearizeInternal(OracleTypeCOLLECTION.java:243)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.unlinearize(OracleTypeCOLLECTION.java:217)
    at oracle.sql.ArrayDescriptor.toJavaArray(ArrayDescriptor.java:891)
    at oracle.sql.ARRAY.getArray(ARRAY.java:315)
    at weblogic.jdbc.wrapper.Array_oracle_sql_ARRAY.getArray(Unknown Source)
    Regards,
    Praveen G S

    Ok .. i got around this issue myself ..
    For others who might have had to face the same problem, let me tell them the problem that i had... i ll b happy if it helps someone ...
    The issue was improper privleges of the Nested Types in the schema to which my server was connecting. Once proper privelges were given, everything started working just fine ...

  • Naming Exception while using the javax.jms.QueueConnectionFactory

    Hi All,
    I am quite new to JMS. I am trying to run the example QueueSender program shipped with weblogic5.1 . When i run the program i get the following error ...
    Exception in thread "main" javax.naming.Name
    NotFoundException:
    'javax.jms.QueueConnectionFactory'; remaining name 'jms.QueueConnectionFactory'
    at weblogic.rmi.extensions.AbstractRequest.sendReceive(AbstractRequest.j
    ava:76)
    at weblogic.jndi.toolkit.BasicWLContext_WLStub.lookup(BasicWLContext_WLS
    tub.java:246)
    at weblogic.jndi.toolkit.WLContextStub.lookup(WLContextStub.java:545)
    at javax.naming.InitialContext.lookup(InitialContext.java:350)
    at examples.jms.queue.QueueSend.init(QueueSend.java:37)
    at examples.jms.queue.QueueSend.main(QueueSend.java:82)
    I am desperate to get any guidance regarding the above mentioned exception
    Thanx
    Shanks

    I don't use weblogic but the javax.naming.Name
    NotFoundException suggests that the JNDI name cannot be found or resolved.
    The name is specified in 2 locations, one in your java codes and the other during the deployment of the JMS application.
    The error means the java program cannot find the JNDI name which means you did not specify the name correctly during the deployment.
    Make sure both the names in java codes and deployment are right and matching. That should solve the problem.

  • Using Weblogic to Deploy Simple Flex App

    Hi,
       I am trying to deploy a simple Flex application in a weblogic8.1  server , so that I can use it locally.
    Can any one please guide me where and how I have to deploy my flex app .
    I am pretty new to this can any body provide me a guide or walk through step wise for me.
    More over What is the url I need to give in the browser to access the flex app I deploy in the Weblogic server.
    (At present I am using the IIS -- just copying the .swf file and wrapper html page in to the C:\Inetpub\wwwroot and giving http://localhost/test.html
    in the browser to access it) ---  How do I do this using Weblogic 8.1
    thanks
    Nash

    Hi again Nash,
    the stuff I am doing at present is not yet permitted to be publicly available, but the principles are very straightforward. Remember that WebLogic is primarily concerned with server-side functionality and Flex with client-side, so there is not really a great deal of overlap. The place where your Flex instantiation code will sit is in one or other JSP, using code very like the templates that Adobe generate. The only thing you have to do is ensure that your JSP (or the controller/code files behind it) generate HTML that contains the necessary. I tend to use the Apache Beehive libraries for UI stuff, but from vague memory I don't think these were around in WL8 - however, it doesn't really matter what tag library you prefer as all you are doing is generating HTML that looks like the usual JavaScript calls to AC_FL_RunContent (or swfobject if you are using that method). Basically, just take the Adobe-generated template and wrap the necessary bits and pieces round the edge to make it a proper JSP.
    When you need to make calls to get functionality, just use something like
                        service = new HTTPService();
                        separator_date = new Date();
                        service.url = "get_tool_list.jsp?sep=" + separator_date.valueOf();
                        service.addEventListener(FaultEvent.FAULT , fault_handler);
                        service.addEventListener(ResultEvent.RESULT, resultHandler);
                        service.resultFormat = "text";
                        CursorManager.setBusyCursor();
                        service.requestTimeout = WEB_SERVICE_TIMEOUT;
                        service.send();
    and then inside get_tool_list.jsp (or whatever...) do the server-side functionality you need, and return the result in a suitable format that the Flex resultHandler method can then interpret and make use of.
    Hope that helps,
    Richard

  • Exception while using RSA BSAFE CryptoJ in Weblogic 7.0 (SP2)

    I need to verify the digital signature in the application (Web Tier - Servlet)
    and i have got the RSA - BSafe license and tried using the RSA API and this works
    fine in the stand alone environment. (weblogic.jar is not part of the classpath).
    I have tried the same program in the Weblogic environment the BSAFE jar's are
    kept in the classpath prior to weblogic.jar and while starting the server i am
    getting the following exception and server continues to start. (Security configuration
    doesn't changed)
    =============================================
    <18/02/2004 16:59:46> <Alert> <WebLogicServer> <000297> <Inconsistent security
    configuration, java.lang.NoSuchMethodError>
    java.lang.NoSuchMethodError
    at com.rsa.jsafe.JA_AlgID.berDecode(JA_AlgID.java:94)
    at com.rsa.jsafe.JA_AlgID.berDecodeAlgID(JA_AlgID.java:29)
    at com.rsa.certj.cert.X509Certificate.setSignatureAlgorithm(X509Certificate.java:893)
    at com.rsa.certj.cert.X509Certificate.setInnerDER(X509Certificate.java:764)
    at com.rsa.certj.cert.X509Certificate.setCertBER(X509Certificate.java:428)
    at com.rsa.certj.cert.X509Certificate.<init>(X509Certificate.java:328)
    at com.rsa.certj.cert.X509Certificate.<init>(X509Certificate.java:306)
    at utils.ValidateCertChain.convertChain(ValidateCertChain.java:258)
    at utils.ValidateCertChain.validateServerCertChain(ValidateCertChain.java:304)
    at weblogic.security.service.SSLManager.getServerCertificate(SSLManager.java:316)
    at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:154)
    at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:122)
    at weblogic.t3.srvr.T3Srvr.initializeListenThreads(T3Srvr.java:1548)
    at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:891)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:300)
    at weblogic.Server.main(Server.java:32)
    <18/02/2004 16:59:46> <Emergency> <Security> <090034> <Not listening for SSL,
    java.io.IOException: Inconsistent security configuration, null.>
    <18/02/2004 16:59:47> <Notice> <WebLogicServer> <000355> <Thread "ListenThread.Default"
    listening on port 7001, ip address 127.0.0.1>
    <18/02/2004 16:59:47> <Notice> <Management> <141030> <Starting discovery of Managed
    Server... This feature is on by default, you may turn this off by passing -Dweblogic.management.discover=false>
    <18/02/2004 16:59:47> <Notice> <WebLogicServer> <000331> <Started WebLogic Admin
    Server "IMTServer" for domain "IMTDomain" running in Development Mode>
    <18/02/2004 16:59:47> <Notice> <WebLogicServer> <000365> <Server state changed
    to RUNNING>
    <18/02/2004 16:59:47> <Notice> <WebLogicServer> <000360> <Server started in RUNNING
    mode>
    ==========================================
    If the weblogic.jar set first in the classpath and BSAFE jar's kept in the last
    the Signature verification fails and iam getting the following exception
    ========================================================
         at com.rsa.jsafe.crypto.ar.f(Unknown Source)
         at com.rsa.jsafe.crypto.c7.a(Unknown Source)
         at com.rsa.jsafe.crypto.b1.a(Unknown Source)
         at com.rsa.jsafe.crypto.av.f(Unknown Source)
         at com.rsa.jsafe.crypto.at.e(Unknown Source)
         at com.rsa.jsafe.provider.JS_Signature.engineVerify(Unknown Source)
         at java.security.Signature$Delegate.engineVerify(Unknown Source)
         at java.security.Signature.verify(Unknown Source)
    ==========================================================
    I believe that there seems to be different versions of BSAFE products. Could you
    please suggests that in what way i can overcome this issue. Is it possible to
    use the BSAFE jar only for the specific application (web application) without
    disturbing weblogic envrionment.
    Reponses are highly appreciated.

    Weblogic is using RSA Crypto-J 3.3.1 The easiest solution is probably to modify
    the signature verification code to use 3.3.1 api-s. The alternative solution would
    require writing your own classloader for the application that would load BSAFE
    classes from your jar.
    Pavel.
    "Gops" <[email protected]> wrote:
    >
    I need to verify the digital signature in the application (Web Tier -
    Servlet)
    and i have got the RSA - BSafe license and tried using the RSA API and
    this works
    fine in the stand alone environment. (weblogic.jar is not part of the
    classpath).
    I have tried the same program in the Weblogic environment the BSAFE
    jar's are
    kept in the classpath prior to weblogic.jar and while starting the server
    i am
    getting the following exception and server continues to start. (Security
    configuration
    doesn't changed)
    =============================================
    <18/02/2004 16:59:46> <Alert> <WebLogicServer> <000297> <Inconsistent
    security
    configuration, java.lang.NoSuchMethodError>
    java.lang.NoSuchMethodError
    at com.rsa.jsafe.JA_AlgID.berDecode(JA_AlgID.java:94)
    at com.rsa.jsafe.JA_AlgID.berDecodeAlgID(JA_AlgID.java:29)
    at com.rsa.certj.cert.X509Certificate.setSignatureAlgorithm(X509Certificate.java:893)
    at com.rsa.certj.cert.X509Certificate.setInnerDER(X509Certificate.java:764)
    at com.rsa.certj.cert.X509Certificate.setCertBER(X509Certificate.java:428)
    at com.rsa.certj.cert.X509Certificate.<init>(X509Certificate.java:328)
    at com.rsa.certj.cert.X509Certificate.<init>(X509Certificate.java:306)
    at utils.ValidateCertChain.convertChain(ValidateCertChain.java:258)
    at utils.ValidateCertChain.validateServerCertChain(ValidateCertChain.java:304)
    at weblogic.security.service.SSLManager.getServerCertificate(SSLManager.java:316)
    at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:154)
    at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:122)
    at weblogic.t3.srvr.T3Srvr.initializeListenThreads(T3Srvr.java:1548)
    at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:891)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:300)
    at weblogic.Server.main(Server.java:32)
    <18/02/2004 16:59:46> <Emergency> <Security> <090034> <Not listening
    for SSL,
    java.io.IOException: Inconsistent security configuration, null.>
    <18/02/2004 16:59:47> <Notice> <WebLogicServer> <000355> <Thread "ListenThread.Default"
    listening on port 7001, ip address 127.0.0.1>
    <18/02/2004 16:59:47> <Notice> <Management> <141030> <Starting discovery
    of Managed
    Server... This feature is on by default, you may turn this off by passing
    -Dweblogic.management.discover=false>
    <18/02/2004 16:59:47> <Notice> <WebLogicServer> <000331> <Started WebLogic
    Admin
    Server "IMTServer" for domain "IMTDomain" running in Development Mode>
    <18/02/2004 16:59:47> <Notice> <WebLogicServer> <000365> <Server state
    changed
    to RUNNING>
    <18/02/2004 16:59:47> <Notice> <WebLogicServer> <000360> <Server started
    in RUNNING
    mode>
    ==========================================
    If the weblogic.jar set first in the classpath and BSAFE jar's kept in
    the last
    the Signature verification fails and iam getting the following exception
    ========================================================
         at com.rsa.jsafe.crypto.ar.f(Unknown Source)
         at com.rsa.jsafe.crypto.c7.a(Unknown Source)
         at com.rsa.jsafe.crypto.b1.a(Unknown Source)
         at com.rsa.jsafe.crypto.av.f(Unknown Source)
         at com.rsa.jsafe.crypto.at.e(Unknown Source)
         at com.rsa.jsafe.provider.JS_Signature.engineVerify(Unknown Source)
         at java.security.Signature$Delegate.engineVerify(Unknown Source)
         at java.security.Signature.verify(Unknown Source)
    ==========================================================
    I believe that there seems to be different versions of BSAFE products.
    Could you
    please suggests that in what way i can overcome this issue. Is it possible
    to
    use the BSAFE jar only for the specific application (web application)
    without
    disturbing weblogic envrionment.
    Reponses are highly appreciated.

Maybe you are looking for

  • About Number Data type

    Hi All, I have few issues with "Number" data type 1) trying to convert string "0.0000007" to Number i am getting value with exponential (1e-7). This is only when we have more than 5 0's after decimal. 2) If i try to do below calculation, i am not get

  • Installing Grid Infrastructure 11.2.0.2 fails on Oracle Linux 5.6 and 6.0

    Hi all, We are in the process of building our new enterprise environment and tried to install the following: Oracle Linux 6.0 Grid Infrastructure 11.2.0.2 ASM OCFS2 Oracle RDBMS 11.2.0.2 Installation of Grid Infrastructure failed on Oracle Linux 6.0

  • Segment Builder

    Hi All, Can any one guide me the usage of below in the Segment Builder (CRM 5.0) "AND Within an Attribute", "OR Within an Attribute", "AND Across all Attributes" and "OR Across all Attributes" . Thanks for your assistance in advance. Regards, Krish

  • Trusted source Object Reconciliation Mapping for act_key - 11g Realease2

    Hi all, I have defined Trusted Source object for trusted reconciliation(from design consolw) and then created a process where I did the attribute mappings for reconciliation. I know that act_key is required field and coresponds to Organizations.Key.

  • VMware Vsphere 5.0

    Hi, We are looking for suggestions and advice from the users who are running Oracle EBS R12 in VMware Vsphere 5.0 environment. Thanks & Regards Chakrapani.S