Oracle CEP JDBC Data Cartridge

Hello,
I'm trying to implement Oracle CEP JDBC Data Cartridge
according to :
http://docs.oracle.com/cd/E23943_01/apirefs.1111/e12048/datacartjdbc.htm#CIHCEFBH
The problem is that it fails on deployment with following error :
<Exception thrown from prepare method com.oracle.cep.cartridge.jdbc.JdbcCartridgeContext.checkCartridgeContextConfig.
java.lang.AssertionError: java.lang.ClassNotFoundException: weblogic.jdbc.wrapper.PoolConnection
I've added file that contains this class to classpath (com.bea.core.datasource6_1.10.0.0.jar) ,
but get the same error .
Any help would be appreciated .
Regards,
Dmitry

Hello Wei Xiong,
I have the same error when I trying to configure Oracle CQL Processor Table Source according to :
http://docs.oracle.com/cd/E23943_01/dev.1111/e14301/processorcql.htm#CIHCCADG
I've configured table source and had the same error on deployment :
<The application context "check_entrance" could not be started: org.springframework.beans.FatalBeanException: Error in context lifecycle initialization; nested exception is com.bea.wlevs.ede.api.StatementException: Could not start rule [DBEventQuery] due to error: java.lang.ClassNotFoundException: weblogic.jdbc.wrapper.PoolConnection
org.springframework.beans.FatalBeanException: Error in context lifecycle initialization; nested exception is com.bea.wlevs.ede.api.StatementException: Could not start rule [DBEventQuery] due to error: java.lang.ClassNotFoundException: weblogic.jdbc.wrapper.PoolConnection
     at com.bea.wlevs.spring.ApplicationContextLifecycle.onApplicationEvent(ApplicationContextLifecycle.java:145)
It's look like a same issue.
I've added zip file of my Eclipse project and config.xml of my CEP domain to e-mail.
Thank you !
Regards,
Dmitry

Similar Messages

  • SPATIAL : External fault handler failed: oracle.cep.execution.ExecException

    Hi,
    I am using a cartesian context with this content :
    <spatial:context id="Lambert1NORD" anyinteract-tolerance="0.01" cartesian="true"  srid="41013" tolerance="0.01"/>
    I want to detect if a point is anyinteracting a rectangle. Here are my two queries :
            <![CDATA[
                istream(
                select a.*, [email protected]D(a.x, a.y) as geometry ,[email protected]1NORD( 613000.0d, 146000.0d,618000.0d, 148000.0d) as rectangle
                from inputchannel[now] as a
                where a.x is not null and a.y is not null
            ]]>
        </view>
        <query id="QueryInput"><![CDATA[
               istream(
                select i.nom, i.refSource, i.dateCurrentPos, i.x, i.y, 0d as distance
                from ViewVehicule[now] as i
                WHERE ANYINTERACT@Lambert1NORD(i.geometry, i.rectangle, 5.0d)=true
                ]]></query>
    It seems to give my the first answer, but after I receive a big stack  with this :
    ontext for "ApplicationFormation1.Project3" was started successfully>
    VÚhicule: Acquisition Radar(S4) - CDG / ENV 7 : 04/09/2014 17:09:37 [0,000000]--
    > X=614373,500000 Y=146004,500000
    <Sep 4, 2014 5:05:38 PM CEST> <Warning> <CQLServerTrace> <BEA-000000> <External
    fault handler failed: oracle.cep.execution.ExecException: >
    <Sep 4, 2014 5:05:38 PM CEST> <Warning> <CQLServerTrace> <BEA-000000> <
    oracle.cep.execution.ExecException:
            at oracle.cep.execution.operators.Select.run(Select.java:468)
            at oracle.cep.execution.operators.ExecOpt.run(ExecOpt.java:1080)
            at oracle.cep.execution.operators.ExecOpt.run(ExecOpt.java:1062)
            at oracle.cep.execution.operators.ExecOpt.run(ExecOpt.java:1140)
            at oracle.cep.execution.queues.DirectInteropQueue.runOperator(DirectInte
    ropQueue.java:573)
            at oracle.cep.execution.queues.DirectInteropQueue.enqueue(DirectInteropQ
    ueue.java:457)
            at oracle.cep.execution.queues.DirectInteropQueue.enqueue(DirectInteropQ
    ueue.java:84)
            at oracle.cep.execution.operators.RangeWindow.run(RangeWindow.java:537)
            at oracle.cep.execution.operators.ExecOpt.run(ExecOpt.java:1080)
            at oracle.cep.execution.operators.ExecOpt.run(ExecOpt.java:1062)
            at oracle.cep.execution.operators.ExecOpt.run(ExecOpt.java:1140)
            at oracle.cep.execution.queues.DirectInteropQueue.runOperator(DirectInte
    ropQueue.java:573)
            at oracle.cep.execution.queues.DirectInteropQueue.enqueue(DirectInteropQ
    ueue.java:457)
            at oracle.cep.execution.queues.DirectInteropQueue.enqueue(DirectInteropQ
    ueue.java:84)
            at oracle.cep.execution.operators.ViewStrmSrc.run(ViewStrmSrc.java:341)
            at oracle.cep.execution.operators.ExecOpt.run(ExecOpt.java:1080)
            at oracle.cep.execution.operators.ExecOpt.run(ExecOpt.java:1062)
            at oracle.cep.execution.operators.ExecOpt.run(ExecOpt.java:1140)
            at oracle.cep.execution.queues.DirectInteropQueue.runOperator(DirectInte
    ropQueue.java:573)
            at oracle.cep.execution.queues.DirectInteropQueue.enqueue(DirectInteropQ
    ueue.java:457)
            at oracle.cep.execution.queues.DirectInteropQueue.enqueue(DirectInteropQ
    ueue.java:84)
            at oracle.cep.execution.operators.IStream.run(IStream.java:304)
            at oracle.cep.execution.operators.ExecOpt.run(ExecOpt.java:1080)
            at oracle.cep.execution.operators.ExecOpt.run(ExecOpt.java:1062)
            at oracle.cep.execution.operators.ExecOpt.run(ExecOpt.java:1140)
            at oracle.cep.execution.queues.DirectInteropQueue.runOperator(DirectInte
    ropQueue.java:573)
            at oracle.cep.execution.queues.DirectInteropQueue.enqueue(DirectInteropQ
    ueue.java:457)
            at oracle.cep.execution.queues.DirectInteropQueue.enqueue(DirectInteropQ
    ueue.java:84)
            at oracle.cep.execution.operators.Project.run(Project.java:459)
            at oracle.cep.execution.operators.ExecOpt.run(ExecOpt.java:1080)
            at oracle.cep.execution.operators.ExecOpt.run(ExecOpt.java:1062)
            at oracle.cep.execution.operators.ExecOpt.run(ExecOpt.java:1140)
            at oracle.cep.execution.queues.DirectInteropQueue.runOperator(DirectInte
    ropQueue.java:573)
            at oracle.cep.execution.queues.DirectInteropQueue.enqueue(DirectInteropQ
    ueue.java:457)
            at oracle.cep.execution.queues.DirectInteropQueue.enqueue(DirectInteropQ
    ueue.java:84)
            at oracle.cep.execution.operators.Select.run(Select.java:553)
            at oracle.cep.execution.operators.ExecOpt.run(ExecOpt.java:1080)
            at oracle.cep.execution.operators.ExecOpt.run(ExecOpt.java:1062)
            at oracle.cep.execution.operators.ExecOpt.run(ExecOpt.java:1140)
            at oracle.cep.execution.queues.DirectInteropQueue.runOperator(DirectInte
    ropQueue.java:573)
            at oracle.cep.execution.queues.DirectInteropQueue.enqueue(DirectInteropQ
    ueue.java:457)
            at oracle.cep.execution.queues.DirectInteropQueue.enqueue(DirectInteropQ
    ueue.java:84)
            at oracle.cep.execution.operators.RangeWindow.run(RangeWindow.java:537)
            at oracle.cep.execution.operators.ExecOpt.run(ExecOpt.java:1080)
            at oracle.cep.execution.operators.ExecOpt.run(ExecOpt.java:1062)
            at oracle.cep.execution.operators.ExecOpt.run(ExecOpt.java:1140)
            at oracle.cep.execution.queues.DirectInteropQueue.runOperator(DirectInte
    ropQueue.java:573)
            at oracle.cep.execution.queues.DirectInteropQueue.enqueue(DirectInteropQ
    ueue.java:457)
            at oracle.cep.execution.queues.DirectInteropQueue.enqueue(DirectInteropQ
    ueue.java:84)
            at oracle.cep.execution.operators.StreamSource.run(StreamSource.java:903
            at oracle.cep.execution.operators.ExecOpt.run(ExecOpt.java:1216)
            at oracle.cep.execution.ExecManager.runOperator(ExecManager.java:357)
            at oracle.cep.execution.operators.ExecOptTask.run(ExecOptTask.java:82)
            at oracle.cep.interfaces.input.QueueSource.putNext(QueueSource.java:423)
            at oracle.cep.interfaces.input.QueueSource.putNext(QueueSource.java:320)
            at oracle.cep.interfaces.input.QueueSource.putNext(QueueSource.java:267)
            at oracle.cep.execution.ExecManager.insertBase(ExecManager.java:1282)
            at oracle.cep.execution.ExecManager.insertFastBase(ExecManager.java:1392
            at oracle.cep.execution.ExecManager.insertFast(ExecManager.java:1335)
            at oracle.cep.server.CEPServer.executeDMLBase(CEPServer.java:327)
            at oracle.cep.server.CEPServer.executeDML(CEPServer.java:233)
            at oracle.cep.jdbc.CEPPreparedStatement.executeDMLBase(CEPPreparedStatem
    ent.java:978)
            at oracle.cep.jdbc.CEPPreparedStatement.executeDML(CEPPreparedStatement.
    java:919)
            at com.oracle.cep.processor.cql.impl.CQLEventReceiver.executeDMLBase(CQL
    EventReceiver.java:562)
            at com.oracle.cep.processor.cql.impl.CQLEventReceiver.sendToEngine(CQLEv
    entReceiver.java:523)
            at com.oracle.cep.processor.cql.impl.CQLEventReceiver.onInsertEvent(CQLE
    ventReceiver.java:259)
            at com.bea.wlevs.processor.impl.EventSenderImpl.sendInsertEventToListene
    r(EventSenderImpl.java:583)
            at com.bea.wlevs.processor.impl.EventSenderImpl.sendInsertEvent(EventSen
    derImpl.java:291)
            at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(Ab
    stractSendEventInterceptor.java:84)
            at com.bea.wlevs.eventstore.recplay.RecordPlaySendEventInterceptor.sendI
    nsertEvent(RecordPlaySendEventInterceptor.java:160)
            at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(Ab
    stractSendEventInterceptor.java:84)
            at com.bea.wlevs.eventinspector.EventInspectInterceptor.sendInsertEvent(
    EventInspectInterceptor.java:131)
            at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(Ab
    stractSendEventInterceptor.java:84)
            at com.bea.wlevs.monitor.internal.MonitorSendEventInterceptor.sendInsert
    Event(MonitorSendEventInterceptor.java:476)
            at com.bea.wlevs.channel.impl.ChannelImpl.onInsertEvent(ChannelImpl.java
    :459)
            at com.bea.wlevs.processor.impl.EventSenderImpl.sendInsertEventToListene
    r(EventSenderImpl.java:583)
            at com.bea.wlevs.processor.impl.EventSenderImpl.sendInsertEvent(EventSen
    derImpl.java:291)
            at com.bea.wlevs.ede.impl.EventSourceEventSenderImpl.sendInsertEvent(Eve
    ntSourceEventSenderImpl.java:85)
            at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(Ab
    stractSendEventInterceptor.java:84)
            at com.bea.wlevs.eventstore.recplay.RecordPlaySendEventInterceptor.sendI
    nsertEvent(RecordPlaySendEventInterceptor.java:160)
            at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(Ab
    stractSendEventInterceptor.java:84)
            at com.bea.wlevs.eventinspector.EventInspectInterceptor.sendInsertEvent(
    EventInspectInterceptor.java:131)
            at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(Ab
    stractSendEventInterceptor.java:84)
            at com.bea.wlevs.monitor.internal.MonitorSendEventInterceptor.sendInsert
    Event(MonitorSendEventInterceptor.java:476)
            at fr.adp.oep.formation3.DatabaseAdapter.readDatabase(DatabaseAdapter.ja
    va:164)
            at fr.adp.oep.formation3.DatabaseAdapter.run(DatabaseAdapter.java:90)
            at fr.adp.oep.formation3.DatabaseAdapter$$FastClassByCGLIB$$7b8987bf.inv
    oke(<generated>)
            at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
            at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocatio
    n.invokeJoinpoint(Cglib2AopProxy.java:689)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
    ReflectiveMethodInvocation.java:150)
            at com.bea.wlevs.ede.impl.EventManagerAccessorProxy.invoke(EventManagerA
    ccessorProxy.java:30)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
    ReflectiveMethodInvocation.java:172)
            at com.bea.wlevs.ede.impl.EventBeanProxy.invoke(EventBeanProxy.java:38)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
    ReflectiveMethodInvocation.java:172)
            at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterc
    eptor.intercept(Cglib2AopProxy.java:622)
            at fr.adp.oep.formation3.DatabaseAdapter$$EnhancerByCGLIB$$553045ce.run(
    <generated>)
            at com.bea.wlevs.spring.RunnableBeanPostProcessor$RunnableWrapper.run(Ru
    nnableBeanPostProcessor.java:117)
            at weblogic.work.commonj.CommonjWorkManagerImpl$WorkWithListener.run(Com
    monjWorkManagerImpl.java:204)
            at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTunin
    gWorkManagerImpl.java:548)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)
    What is wrong with this ?
    Olivier

    Hi Olivier,
    Could you send us the application that is easy to reproduce the failure? You can send the mail to [email protected]
    It looks like the error happened at the CQL. But it is not a syntax error.
    Thanks
    Junger

  • Oracle Com Data Cartridge

    I have installed Oracle COM Data Cartridge, but I have problem with creating objects.
    While calling ORDCom.CreateObject method I always get error represented by HRESULT value = -2147467259 (Ox80004005). Does anybody know what may be purpose of this error?
    null

    Hello Wei Xiong,
    I have the same error when I trying to configure Oracle CQL Processor Table Source according to :
    http://docs.oracle.com/cd/E23943_01/dev.1111/e14301/processorcql.htm#CIHCCADG
    I've configured table source and had the same error on deployment :
    <The application context "check_entrance" could not be started: org.springframework.beans.FatalBeanException: Error in context lifecycle initialization; nested exception is com.bea.wlevs.ede.api.StatementException: Could not start rule [DBEventQuery] due to error: java.lang.ClassNotFoundException: weblogic.jdbc.wrapper.PoolConnection
    org.springframework.beans.FatalBeanException: Error in context lifecycle initialization; nested exception is com.bea.wlevs.ede.api.StatementException: Could not start rule [DBEventQuery] due to error: java.lang.ClassNotFoundException: weblogic.jdbc.wrapper.PoolConnection
         at com.bea.wlevs.spring.ApplicationContextLifecycle.onApplicationEvent(ApplicationContextLifecycle.java:145)
    It's look like a same issue.
    I've added zip file of my Eclipse project and config.xml of my CEP domain to e-mail.
    Thank you !
    Regards,
    Dmitry

  • How to set JDBC Data Sources in Oracle MapViewer for Oracle database 12c Release 1 (12.1.0.1)

    How to set JDBC Data Sources in Oracle MapViewer for Oracle database 12c Release 1 (12.1.0.1)?
    The following is my configuration in the conf\mapViewerConfig.xml:
    <map_data_source name="mvdemo12"
    jdbc_host="127.0.0.1"
    jdbc_sid="orcl12c1"
    jdbc_port="1522"
    jdbc_user="mvdemo"
    jdbc_password="7OVl2rJ+hOYxG5T3vKJQb+hW4NPgy9EN"
    jdbc_mode="thin"
    number_of_mappers="3"
    allow_jdbc_theme_based_foi="true"
    editable="true"/>
    <!--  ****  -->
    But it does not work.
    After use "sqlplus mvdemo/[email protected]:1522/pdborcl", it connected to the Oracle database 12c.
    Does anyone know it?
    Thanks,

    For 11.1.1.7.1 use the syntax for jdbc_sid, i.e.
    //mypdb1.foo.com as described in the README,
    - MapViewer native (non-container) data sources can now use database service name in place of SID. To supply a db service name, you will use the same jdbc_sid attribute, but specify the service name with double slashes in front, such as follows:
      <map_data_source name="myds"
        jdbc_host="foo.com"
        jdbc_sid="//mypdb1.foo.com"
        jdbc_port="1522"
      />
    For 11.1.1.7.0 use a container_ds instead.
    i.e. instead of using
    <map_data_source name="my_12c_test"
                       jdbc_host="mydbinstance"
                       jdbc_sid="pdborcl12c"
                       jdbc_port="1522"
                       jdbc_user="mytestuser"
                       jdbc_password="m2E7T48U3LfRjKwR0YFETQcjNb4gCMLG8/X0KWjO00Q="
                       jdbc_mode="thin"
                       number_of_mappers="6"
                       allow_jdbc_theme_based_foi="false"
                       editable="false"
       />
    use
      <map_data_source name="my_12c_test"
                       container_ds="jdbc/db12c"
                       number_of_mappers="6"
                       allow_jdbc_theme_based_foi="false"
                       editable="false"
       />
    In my case the Glassfish 3.1.2.2 JDBC connection pool definition was
    Property
    url  jdbc:oracle:thin:@mydbinstance:1522/pdborcl12c.rest_of.service.name
    Uncheck the Wrap JDBC Objects option in Advanced panel, i.e. the Edit JDBC Connection Pool Advanced properties page.
    Add a JDBC resource for that newly created pool
    Use that in mapviewerconfig.xml as above

  • Oracle CEP and JDBC Adapter

    I am using Oracle CEP 10g on WIndows.
    I wrote the following code on CEP:
    OracleDataSource ods = new OracleDataSource();
    ods.setURL("jdbc:oracle:thin:scott/[email protected]:1521/orcl");
    Connection conn = ods.getConnection();
    // Check for the existence of a previous customerID
    String selectStmt     = "SELECT * from STEPS " +
         "WHERE (streamID='" +
         this.customerId +
         "') and (assetid='" +
         this.eventName +
    Statement stmt  = conn.createStatement();
    //System.out.println("-- calling SELECT");
    //System.out.println(selectStmt);
    ResultSet rs    = stmt.executeQuery(selectStmt);This works great, except it is exceedingling slow. I am sending about 20,000 messages to this code.
    I think the problem is that I open the connection everytime I perform a select (and later an insert statement).
    The server instance goes away after the message has been processed, and I can not save the connection.
    Would using an adapter in config.xml prevent this openig a new connection every time a message invokes this code ?
    If so, I have never done JDBC with an adapter and I dont understand how to use an adapter to use a WHERE clause to select on variables, since in the example I have seen so far, it places "SELECT 1 from DUAL" into the config.xml and does not explain how to get mix have the SELECT statement interact with code variables or better yet how to get your code to get a connection handle.
    Could someone please post an exaqmple of how to use an adapter with JDBC, and possibly how to get your code to access a connection handle from the config.xml ?
    Thanks

    Hi,
    From note : 831162,
    <i>Oracle JDBC Driver (classes12.zip / classes12.jar) Deadlocks
    Q: I have deployed the Oracle classes12.zip / classes12.jar JDBC driver as per the instructions in the XI Configuration Guide.
    Unfortunately, I frequently notice hanging database connections. A thread dump taken according to the instructions in note 710154 shows one or more blocking JDBC Sender/Reciver threads and optionally that the JVM has detected a deadlock.
    A: <b>The Oracle classes12.zip / classes12.jar driver is compatible with JDK 1.2 and 1.3 only, but not with JDK 1.4. Upgrade to a current version of the driver (ojdbc14.jar). For details, refer to note 941317.</b>
    Make sure that you remove classes12.zip / classes12.jar from aii_af_jmsproviderlib.sda prior to adding the new driver as per the instructions in the answer to question #1 above as you will get a class name collision otherwise (all JARs from aii_af_jmsproviderlib.sda are loaded into the same class loader and the driver class name of both driver versions is the same).
    Before deploying the updated driver, ensure that the new version is still compatible with your Oracle database server release. For details, refer to the release notes provided by Oracle.</i>
    Regards,
    Bhavesh

  • Data Cartridges in Oracle 10g XE

    Has anybody ever used Oracle 10g Express Edition and installed a third party data cartridge?
    Just wondered if they worked OK and were allowed under the licence agreement. I haven't read anywhere in the licence that they are forbidden and I wondered if it was possible to install them.
    Many thanks.

    They are permitted.
    Pproperly designed 'cartridges' use the published Oracle spec. If they live within the restrictions of XE (size, CPU, and no Java stored procedures) they should work.
    Oracle Locator is an example of a properly designed cartridge. So is intermedia.
    Locator does not have any Java SPs and works in XE.
    intermedia does use Java SPs and does not work in XE.

  • For Oracle : When will Oracle's JDBC Driver work for Date ?

    I try to develop an application that will run on every database.
    The only Database I have a problem with is Oracle because of date : I can't use executeQuery or executeUpdate with sql request that use a date field as a parameter.
    And this stupid issue is only due to Oracles's non conformity to JDBC Standard.
    I know that I can use preparedStatements and that it works, but It's not an issue : This is a minor bug that would be easy to correct so DO IT !
    I also know that tit works with SQLJ, but I use Thin client.
    I tried to change NLS_DATE_FORMAT, but with timestamp, time format got millisconds and Oracle don't like it ...
    No, really, it's a long known bug.
    Mike
    null

    I appreciate the confidence in SQLJ, but since SQLJ runs atop JDBC I would be very surprised if you did not encounter the same issue you are troubled with.
    Unfortunately -not already knowing what your problem is- I do not quite understand what you are trying to point out here. Could you give us some code snippets and the expected versus actual behavior, so that we can understand and reproduce your problem? Or, if it is a known issue, would you have a bug assignment for it?
    Thank you very much!

  • Oracle Data Cartridge Error

    I was trying to develop a data cartridge. I tried the sample code Power Demand Cartridge Example (chapter 11)given in Oracle Documentation "Oracle 8i Data Cartridge Developer's Guide Release 2 (8.1.6)". All objects, indextypes, tables and indexes were successfully created. When I issue the select statement it gives the following error.
    ERROR at line 1:
    ORA-29902: error in executing ODCIIndexStart() routine
    Oracle Documentation for ORA-29902 say only this much. "Examine the error messages produced by the index type code and take appropriate action.".
    The problem here is that Oracle is unable to invoke the module ODCIIndexStart(). I am unable to find out where the error lies. If anybody knows please help.
    Mohan

    The select statement used for testing the index is
    POWERCARTUSER> SELECT P.Region, P.Sample.TotGridDemand ,P.Sample.MaxCellDemand, P.Sample.MinCellDemand FROM PowerDemand_Tab P WHERE Power_Equals(P.Sample,2,8) = 1;
    SELECT P.Region, P.Sample.TotGridDemand ,P.Sample.MaxCellDemand, P.Sample.MinCellDemand FROM PowerD
    ERROR at line 1:
    ORA-29902: error in executing ODCIIndexStart() routine

  • Is Oracle Data Cartridge a built in component of Oracle 8?

    Is Oracle Data Cartridge a built in component of Oracle 8? Or
    is it an add on item which needs to be purchased separately?
    Thanks,
    Adam Tadj
    [email protected]
    Opinions expressed or questions asked are mine not of my
    employer.
    null

    Well, I am a novice, but I think all of the posts have hit on something. The web fron end application was built with a combination of Visual basic and Visual Studio 2003. My one question now that the curiosity has been settled about why the table is there is now, when and how does it actually get created. I am trying to retrace the steps of the original developers. i.e, was the table automatically created, once the Development software attached to the database, and did the database realize, "hey a .net development program is trying to access me", let me create the MICROSOFTDTPROPERTIES Table.
    because another utility table they seem to have is something called GTMBAVERSION. It also only has one row, and it has columns called
    Major, Minor, Revision, and Versiondate
    The data in those columns, respectivley are 3, 0, 1, 12/5/2003 3:26:49 PM
    Now two of the "user accounts" within the tables are GTMBA, and GTMSM. In terms of owners, those are the two owners of those two tables.
    Inside of the .net program, the gtmsm account is used to make the actual connection to the database.

  • Oracle CEP connecting to a database

    Hello all,
    I am trying to make a simple CEP Application example works for a few days but I just can't make it and I'm getting more and more mad.
    So I have installed Oracle CEP 11.1.1 and configured Eclipse 1.2.1 to develop CEP Application. Then I created a new CEP project on the HelloWorld template.
    I have added the jdbc drivers into the java build path as external jar.
    I also tried to add a data-source in the config.xml
    When I add a database connection into the Eclipse data source explorer it works fine.
    But when I add the code into the constructor of my adapter and deploy the application :
    try {
              DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
                 this.conn = DriverManager.getConnection(CONNEC_STRING, USERNAME, PASS);
              } catch (SQLException e) {
                   e.printStackTrace();
              }I just keep getting a java.lang.NoClassDefFoundError error on the registerDriver instruction. And I really don't understand what's wrong.
    I would be really grateful if anyone could explain me step by step how to configure the drivers and just make a simple select statement into a table.
    Thanks in advance.
    Max

    you need not get the Connection object from DriverManager. You can get it from Datasource by getting the Static resource injection.
    this returns you the javax.sql.Datasource object which can give you Connection.
    Please take a look at
    http://download.oracle.com/docs/cd/E17904_01/doc.1111/e14301/overview.htm#CEPED524

  • Error while creating a report that uses Oracle OCI JDBC connectivity

    Please let me know why my CR and LF characters are removed from my forum posting *****
    Hi,
    I was trying to create a report that uses Oracle OCI JDBC connectivity. I am using Eclipse3.4 download from "cr4e-all-in-one-win_2.0.2.zip".  I have successfully created a JDBC OCI connection.
    The connection parameters are given below:
    URL: jdbc:oracle:oci8:@xe
    Database: xe
    username: <userName>
    password: <password>
    I have tested the above connection in Data source Explorer and it works fine!!!
    But I am getting the following error when I drag-and-drop a table from the list of tables. Not sure what I am missing here?  Any help is highly appreciated.
    com.businessobjects.reports.jdbinterface.common.DBException: InvalidURLOrClassName
         at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCConnection.Open(Unknown Source)
         at com.crystaldecisions.reports.queryengine.JDBConnectionWrapper.Open(SourceFile:123)
         at com.crystaldecisions.reports.queryengine.Connection.br(SourceFile:1771)
         at com.crystaldecisions.reports.queryengine.Connection.bs(SourceFile:491)
         at com.crystaldecisions.reports.queryengine.Connection.t1(SourceFile:2979)
         at com.crystaldecisions.reports.queryengine.Table.u7(SourceFile:2408)
         at com.crystaldecisions.reports.dataengine.datafoundation.AddDatabaseTableCommand.new(SourceFile:529)
         at com.crystaldecisions.reports.common.CommandManager.a(SourceFile:71)
         at com.crystaldecisions.reports.common.Document.a(SourceFile:203)
         at com.businessobjects.reports.sdk.requesthandler.f.a(SourceFile:175)
         at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.byte(SourceFile:1079)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1163)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:657)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:163)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:525)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:523)
         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
         at java.util.concurrent.FutureTask.run(Unknown Source)
         at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing$3.doWork(ExecutorWithIdleProcessing.java:182)
         at com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(AbstractCancellableRunnable.java:69)
         at com.businessobjects.crystalreports.designer.core.util.thread.PriorityTask.run(PriorityTask.java:75)
         at com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.runSubtask(PriorityCompoundCancellableRunnable.java:187)
         at com.businessobjects.crystalreports.designer.core.util.thread.PriorityProgressAwareRunnable.runSubtask(PriorityProgressAwareRunnable.java:90)
         at com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.doWork(PriorityCompoundCancellableRunnable.java:144)
         at com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(AbstractCancellableRunnable.java:69)
         at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing$IdleTask.run(ExecutorWithIdleProcessing.java:320)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Thanks
    Karthik
    Edited by: KARTHIK1 on Oct 14, 2009 9:38 PM

    Hi Ted,
    Thanks for the feedback. I was able to create a report in Creystal Reports Designer 2008 using OCI.  It is not allowing only in the Eclipse plugin. In our environment we are not allowed to user Oracle thin connections and ONLY OCI is allowed.
    1) Can you please let me know if there is a way to do this? 
    2) Will it allow data sources using native database driver?
    3) If so, can I use JRC to create these reports from a desktop java program?
    Thanks & Regards
    Karthik
    Edited by: KARTHIK1 on Oct 15, 2009 4:38 PM

  • Data Cartridge Implementation - PGA Memory Problem

    Hi,
    I have modified the Data Cartridge implementation explained in the article at http://www.oracle-developer.net/display.php?id=422.
    More precisely I have modified it to create not only the type returned, but also the select statement.
    The problem I have, is that the PGA memory through the execution of my package always increases, and when it ends the execution the PGA doesn't get released.
    I'm wondering if i'm missing something on the ODCITableClose.
    Object spec:
    create or replace type t_conf_obj as object
      atype anytype, --<-- transient record type
      static function ODCITableDescribe(rtype                  out anytype,
                                        p_cz_conf_categoria in     number,
                                        p_id_profilo        in     number   default null,
                                        p_cz_conf_livello   in     number   default null,
                                        p_dt_rif            in     varchar2 default to_char(sysdate,'ddmmyyyy')
                                       ) return number,
      static function ODCITablePrepare(sctx                   out t_conf_obj,
                                       tf_info             in     sys.ODCITabFuncInfo,
                                       p_cz_conf_categoria in     number,
                                       p_id_profilo        in     number   default null,
                                       p_cz_conf_livello   in     number   default null,
                                       p_dt_rif            in     varchar2 default to_char(sysdate,'ddmmyyyy')
                                      ) return number,
      static function ODCITableStart(sctx                in out t_conf_obj,
                                     p_cz_conf_categoria in     number,
                                     p_id_profilo        in     number   default null,
                                     p_cz_conf_livello   in     number   default null,
                                     p_dt_rif            in     varchar2 default to_char(sysdate,'ddmmyyyy')
                                    ) return number,
      member function ODCITableFetch(self  in out t_conf_obj,
                                     nrows in     number,
                                     rws      out anydataset
                                    ) return number,
      member function ODCITableClose(self in t_conf_obj
                                    ) return number
    );Object Body
    create or replace type body t_conf_obj as
      static function ODCITableDescribe(rtype                  out anytype,
                                        p_cz_conf_categoria in     number,
                                        p_id_profilo        in     number   default null,
                                        p_cz_conf_livello   in     number   default null,
                                        p_dt_rif            in     varchar2 default to_char(sysdate,'ddmmyyyy')
                                       ) return number
      is
        r_sql   pck_conf_calcolo.rt_dynamic_sql;
        v_rtype anytype;
        stmt    dbms_sql.varchar2a;
      begin
          HERE I CREATE MY SELECT STATEMENT
        if p_cz_conf_livello is null and p_id_profilo is null then
          stmt := pck_conf_calcolo.GetSQLConfCategoria(p_cz_conf_categoria
        elsif p_cz_conf_livello is not null then
          stmt (1) := pck_conf_calcolo.GetSQLConfCategoria(p_cz_conf_categoria,
                                                           p_id_profilo,
                                                           p_cz_conf_livello,
                                                           p_dt_rif
        else
          stmt (1) := pck_conf_calcolo.GetSQLConfCategoria(p_cz_conf_categoria,
                                                           p_id_profilo
        end if;
        || parse the sql and describe its format and structure.
        r_sql.cursor := dbms_sql.open_cursor;
        dbms_sql.parse(r_sql.cursor, stmt, stmt.first, stmt.last, false, dbms_sql.native);
        dbms_sql.describe_columns2(r_sql.cursor,
                                   r_sql.column_cnt,
                                   r_sql.description);
        dbms_sql.close_cursor(r_sql.cursor);
        || create the anytype record structure from this sql structure.
        anytype.begincreate(dbms_types.typecode_object, v_rtype);
        for i in 1 .. r_sql.column_cnt loop
          v_rtype.addattr(r_sql.description(i).col_name,
                          case
                          --<>--
                            when r_sql.description(i).col_type in (1, 96, 11, 208) then
                             dbms_types.typecode_varchar2
                          --<>--
                            when r_sql.description(i).col_type = 2 then
                             dbms_types.typecode_number
                            when r_sql.description(i).col_type in (112) then
                             dbms_types.typecode_clob
                          --<>--
                            when r_sql.description(i).col_type = 12 then
                             dbms_types.typecode_date
                          --<>--
                            when r_sql.description(i).col_type = 23 then
                             dbms_types.typecode_raw
                          --<>--
                            when r_sql.description(i).col_type = 180 then
                             dbms_types.typecode_timestamp
                          --<>--
                            when r_sql.description(i).col_type = 181 then
                             dbms_types.typecode_timestamp_tz
                          --<>--
                            when r_sql.description(i).col_type = 182 then
                             dbms_types.typecode_interval_ym
                          --<>--
                            when r_sql.description(i).col_type = 183 then
                             dbms_types.typecode_interval_ds
                          --<>--
                            when r_sql.description(i).col_type = 231 then
                             dbms_types.typecode_timestamp_ltz
                          --<>--
                          end,
                          r_sql.description(i).col_precision,
                          r_sql.description(i).col_scale,
                          r_sql.description(i).col_max_len,
                          r_sql.description(i).col_charsetid,
                          r_sql.description(i).col_charsetform);
        end loop;
        v_rtype.endcreate;
        || now we can use this transient record structure to create a table type
        || of the same. this will create a set of types on the database for use
        || by the pipelined function...
        anytype.begincreate(dbms_types.typecode_table, rtype);
        rtype.setinfo(null,
                      null,
                      null,
                      null,
                      null,
                      v_rtype,
                      dbms_types.typecode_object,
                      0);
        rtype.endcreate();
        return odciconst.success;
      exception when others then
        -- indicate that an error has occured somewhere.
        return odciconst.error;
      end odcitabledescribe;
      static function ODCITablePrepare(sctx                   out t_conf_obj,
                                       tf_info             in     sys.ODCITabFuncInfo,
                                       p_cz_conf_categoria in     number,
                                       p_id_profilo        in     number   default null,
                                       p_cz_conf_livello   in     number   default null,
                                       p_dt_rif            in     varchar2 default to_char(sysdate,'ddmmyyyy')
                                      ) return number
      is
        r_meta pck_conf_calcolo.rt_anytype_metadata;
      begin
        || we prepare the dataset that our pipelined function will return by
        || describing the anytype that contains the transient record structure...
        r_meta.typecode := tf_info.rettype.getattreleminfo(1,
                                                           r_meta.precision,
                                                           r_meta.scale,
                                                           r_meta.length,
                                                           r_meta.csid,
                                                           r_meta.csfrm,
                                                           r_meta.type,
                                                           r_meta.name);
        || using this, we initialise the scan context for use in this and
        || subsequent executions of the same dynamic sql cursor...
        sctx := t_conf_obj(r_meta.type);
        return odciconst.success;
      end;
      static function ODCITableStart(sctx                in out t_conf_obj,
                                     p_cz_conf_categoria in     number,
                                     p_id_profilo        in     number   default null,
                                     p_cz_conf_livello   in     number   default null,
                                     p_dt_rif            in     varchar2 default to_char(sysdate,'ddmmyyyy')
                                    ) return number
      is
        r_meta pck_conf_calcolo.rt_anytype_metadata;
        stmt    dbms_sql.varchar2a;
      begin
          HERE I CREATE MY SELECT STATEMENT
        if p_cz_conf_livello is null and p_id_profilo is null then
          stmt := pck_conf_calcolo.GetSQLConfCategoria(p_cz_conf_categoria
        elsif p_cz_conf_livello is not null then
          stmt(1) := pck_conf_calcolo.GetSQLConfCategoria(p_cz_conf_categoria,
                                                           p_id_profilo,
                                                           p_cz_conf_livello,
                                                           p_dt_rif
        else
          stmt(1) := pck_conf_calcolo.GetSQLConfCategoria(p_cz_conf_categoria,
                                                          p_id_profilo
        end if;
        || we now describe the cursor again and use this and the described
        || anytype structure to define and execute the sql statement...
        pck_conf_calcolo.r_sql.cursor := dbms_sql.open_cursor;
        dbms_sql.parse(pck_conf_calcolo.r_sql.cursor, stmt, stmt.first, stmt.last, false, dbms_sql.native);
        dbms_sql.describe_columns2(pck_conf_calcolo.r_sql.cursor,
                                   pck_conf_calcolo.r_sql.column_cnt,
                                   pck_conf_calcolo.r_sql.description);
        for i in 1 .. pck_conf_calcolo.r_sql.column_cnt loop
          || get the anytype attribute at this position...
          r_meta.typecode := sctx.atype.getattreleminfo(i,
                                                        r_meta.precision,
                                                        r_meta.scale,
                                                        r_meta.length,
                                                        r_meta.csid,
                                                        r_meta.csfrm,
                                                        r_meta.type,
                                                        r_meta.name);
          case r_meta.typecode
          --<>--
            when dbms_types.typecode_varchar2 then
              dbms_sql.define_column(pck_conf_calcolo.r_sql.cursor, i, '', 32767);
              --<>--
            when dbms_types.typecode_number then
              dbms_sql.define_column(pck_conf_calcolo.r_sql.cursor,
                                     i,
                                     cast(null as number));
              --<>--
            when dbms_types.typecode_date then
              dbms_sql.define_column(pck_conf_calcolo.r_sql.cursor,
                                     i,
                                     cast(null as date));
              --<>--
            when dbms_types.typecode_raw then
              dbms_sql.define_column_raw(pck_conf_calcolo.r_sql.cursor,
                                         i,
                                         cast(null as raw),
                                         r_meta.length);
              --<>--
            when dbms_types.typecode_timestamp then
              dbms_sql.define_column(pck_conf_calcolo.r_sql.cursor,
                                     i,
                                     cast(null as timestamp));
              --<>--
            when dbms_types.typecode_timestamp_tz then
              dbms_sql.define_column(pck_conf_calcolo.r_sql.cursor,
                                     i,
                                     cast(null as timestamp with time zone));
              --<>--
            when dbms_types.typecode_timestamp_ltz then
              dbms_sql.define_column(pck_conf_calcolo.r_sql.cursor,
                                     i,
                                     cast(null as timestamp with local time zone));
              --<>--
            when dbms_types.typecode_interval_ym then
              dbms_sql.define_column(pck_conf_calcolo.r_sql.cursor,
                                     i,
                                     cast(null as interval year to month));
              --<>--
            when dbms_types.typecode_interval_ds then
              dbms_sql.define_column(pck_conf_calcolo.r_sql.cursor,
                                     i,
                                     cast(null as interval day to second));
              --<>--
            when dbms_types.typecode_clob then
              --<>--
              dbms_sql.define_column(pck_conf_calcolo.r_sql.cursor,
                                     i,
                                     cast(null as clob));
              --<>--
          end case;
        end loop;
        || the cursor is prepared according to the structure of the type we wish
        || to fetch it into. we can now execute it and we are done for this method...
        pck_conf_calcolo.r_sql.execute := dbms_sql.execute(pck_conf_calcolo.r_sql.cursor);
        return odciconst.success;
      end;
      member function ODCITableFetch(self  in out t_conf_obj,
                                     nrows in     number,
                                     rws      out anydataset
                                    ) return number
      is
        type rt_fetch_attributes is record(
          v2_column    varchar2(32767),
          num_column   number,
          date_column  date,
          clob_column  clob,
          raw_column   raw(32767),
          raw_error    number,
          raw_length   integer,
          ids_column   interval day to second,
          iym_column   interval year to month,
          ts_column    timestamp,
          tstz_column  timestamp with time zone,
          tsltz_column timestamp with local time zone,
          cvl_offset   integer := 0,
          cvl_length   integer);
        r_fetch rt_fetch_attributes;
        r_meta  pck_conf_calcolo.rt_anytype_metadata;
      begin
        rws := null;
        if dbms_sql.fetch_rows(pck_conf_calcolo.r_sql.cursor) > 0 then
          || first we describe our current anytype instance (self.a) to determine
          || the number and types of the attributes...
          r_meta.typecode := self.atype.getinfo(r_meta.precision,
                                                r_meta.scale,
                                                r_meta.length,
                                                r_meta.csid,
                                                r_meta.csfrm,
                                                r_meta.schema,
                                                r_meta.name,
                                                r_meta.version,
                                                r_meta.attr_cnt);
          || we can now begin to piece together our returning dataset. we create an
          || instance of anydataset and then fetch the attributes off the dbms_sql
          || cursor using the metadata from the anytype. longs are converted to clobs...
          anydataset.begincreate(dbms_types.typecode_object, self.atype, rws);
          rws.addinstance();
          rws.piecewise();
          for i in 1 .. pck_conf_calcolo.r_sql.column_cnt loop
            r_meta.typecode := self.atype.getattreleminfo(i,
                                                          r_meta.precision,
                                                          r_meta.scale,
                                                          r_meta.length,
                                                          r_meta.csid,
                                                          r_meta.csfrm,
                                                          r_meta.attr_type,
                                                          r_meta.attr_name);
            case r_meta.typecode
            --<>--
              when dbms_types.typecode_varchar2 then
                dbms_sql.column_value(pck_conf_calcolo.r_sql.cursor,
                                      i,
                                      r_fetch.v2_column);
                rws.setvarchar2(r_fetch.v2_column);
                --<>--
              when dbms_types.typecode_number then
                dbms_sql.column_value(pck_conf_calcolo.r_sql.cursor,
                                      i,
                                      r_fetch.num_column);
                rws.setnumber(r_fetch.num_column);
                --<>--
              when dbms_types.typecode_date then
                dbms_sql.column_value(pck_conf_calcolo.r_sql.cursor,
                                      i,
                                      r_fetch.date_column);
                rws.setdate(r_fetch.date_column);
                --<>--
              when dbms_types.typecode_raw then
                dbms_sql.column_value_raw(pck_conf_calcolo.r_sql.cursor,
                                          i,
                                          r_fetch.raw_column,
                                          r_fetch.raw_error,
                                          r_fetch.raw_length);
                rws.setraw(r_fetch.raw_column);
                --<>--
              when dbms_types.typecode_interval_ds then
                dbms_sql.column_value(pck_conf_calcolo.r_sql.cursor,
                                      i,
                                      r_fetch.ids_column);
                rws.setintervalds(r_fetch.ids_column);
                --<>--
              when dbms_types.typecode_interval_ym then
                dbms_sql.column_value(pck_conf_calcolo.r_sql.cursor,
                                      i,
                                      r_fetch.iym_column);
                rws.setintervalym(r_fetch.iym_column);
                --<>--
              when dbms_types.typecode_timestamp then
                dbms_sql.column_value(pck_conf_calcolo.r_sql.cursor,
                                      i,
                                      r_fetch.ts_column);
                rws.settimestamp(r_fetch.ts_column);
                --<>--
              when dbms_types.typecode_timestamp_tz then
                dbms_sql.column_value(pck_conf_calcolo.r_sql.cursor,
                                      i,
                                      r_fetch.tstz_column);
                rws.settimestamptz(r_fetch.tstz_column);
                --<>--
              when dbms_types.typecode_timestamp_ltz then
                dbms_sql.column_value(pck_conf_calcolo.r_sql.cursor,
                                      i,
                                      r_fetch.tsltz_column);
                rws.settimestampltz(r_fetch.tsltz_column);
                --<>--
              when dbms_types.typecode_clob then
                --<>--
                dbms_sql.column_value(pck_conf_calcolo.r_sql.cursor,
                                      i,
                                      r_fetch.clob_column);
                rws.setclob(r_fetch.clob_column);
                --<>--
            end case;
          end loop;
          || our anydataset instance is complete. we end our create session...
          rws.endcreate();
        end if;
        return odciconst.success;
      end;
      member function ODCITableClose(self in t_conf_obj
                                    ) return number
      is
      begin
        dbms_sql.close_cursor(pck_conf_calcolo.r_sql.cursor);
        pck_conf_calcolo.r_sql := null;
        return odciconst.success;
      end;
    end;We have an Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 running on Windows 2003 sp2.
    Thanks in advance.
    Riccardo.

    I'm getting confused with so much answers!!!

  • Standalone application can't get JDBC data source from Weblogic 10.3

    We have the following configuration :
    A Weblogic server 10.3 (default installation).
    The server contains a JMS queue (jndi name: "DMQ") and JDBC data sources (jndi names: Oracle thin XA - "dataSource", MS SQL - "dataSource1")
    We have built wlfullclient5.jar for Java 1.5 ([http://edocs.bea.com/wls/docs103/client/jarbuilder.html#wp1078122]) (according to the docs)
    And now we use a test standalone application with the wlfullclient5.jar :
    public static void main (String[] args) throws NamingException {
    bq. Hashtable&lt;String, String&gt; env = new Hashtable&lt;String, String&gt;(); \\     env.put(Context.+INITIAL_CONTEXT_FACTORY+, "weblogic.jndi.WLInitialContextFactory"); \\     env.put(Context.+PROVIDER_URL+, "http://serv1:7001"); \\     env.put(Context.+SECURITY_CREDENTIALS+, "weblogic"); \\     env.put(Context.+SECURITY_PRINCIPAL+, "weblogic"); \\     InitialContext ic = new InitialContext(env); \\ \\ System.+out+.println("Get DMQ"); \\     ic.lookup("DMQ"); \\ System.+out+.println("Get dataSource"); \\     ic.lookup("dataSource");
    bq. System.+out+.println("Get dataSource1"); \\     ic.lookup("dataSource1"); \\ System.+out+.println("Done"); \\
    Here is the output when connected to WLS 10.3:
    bq. Get DMQ \\ Get dataSource \\ Exception in thread "Main Thread" java.lang.AssertionError: Failed to generate class for weblogic.jdbc.common.internal.RmiDataSource_1030_WLStub \\ at weblogic.rmi.internal.StubGenerator.generateStub(_StubGenerator.java:790_) \\ at weblogic.rmi.internal.StubGenerator.generateStub(_StubGenerator.java:779_) \\ at weblogic.rmi.extensions.StubFactory.getStub(_StubFactory.java:74_) \\ at weblogic.rmi.internal.StubInfo.resolveObject(_StubInfo.java:213_) \\ at weblogic.rmi.internal.StubInfo.readResolve(_StubInfo.java:207_) \\ 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 java.io.ObjectStreamClass.invokeReadResolve(_ObjectStreamClass.java:1033_) \\ at java.io.ObjectInputStream.readOrdinaryObject(_ObjectInputStream.java:1728_) \\ at java.io.ObjectInputStream.readObject0(_ObjectInputStream.java:1305_) \\ at java.io.ObjectInputStream.readObject(_ObjectInputStream.java:348_) \\ at weblogic.utils.io.ChunkedObjectInputStream.readObject(_ChunkedObjectInputStream.java:197_) \\ at weblogic.rjvm.MsgAbbrevInputStream.readObject(_MsgAbbrevInputStream.java:564_) \\ at weblogic.utils.io.ChunkedObjectInputStream.readObject(_ChunkedObjectInputStream.java:193_) \\ at weblogic.rmi.internal.ObjectIO.readObject(_ObjectIO.java:62_) \\ at weblogic.rjvm.ResponseImpl.unmarshalReturn(_ResponseImpl.java:240_) \\ at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(_ClusterableRemoteRef.java:348_) \\ at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(_ClusterableRemoteRef.java:259_) \\ at weblogic.jndi.internal.ServerNamingNode_1030_WLStub.lookup(Unknown Source) \\ at weblogic.jndi.internal.WLContextImpl.lookup(_WLContextImpl.java:392_) \\ at weblogic.jndi.internal.WLContextImpl.lookup(_WLContextImpl.java:380_) \\ at javax.naming.InitialContext.lookup(_InitialContext.java:351_) \\ at test.main(_test.java:23_) \\ 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:494_) \\ at weblogic.rmi.internal.StubGenerator.generateStub(_StubGenerator.java:788_) \\ at weblogic.rmi.internal.StubGenerator.generateStub(_StubGenerator.java:779_) \\ at weblogic.rmi.extensions.StubFactory.getStub(_StubFactory.java:74_) \\ at weblogic.rmi.internal.StubInfo.resolveObject(_StubInfo.java:213_) \\ at weblogic.rmi.internal.StubInfo.readResolve(_StubInfo.java:207_) \\ 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 java.io.ObjectStreamClass.invokeReadResolve(_ObjectStreamClass.java:1033_) \\ at java.io.ObjectInputStream.readOrdinaryObject(_ObjectInputStream.java:1728_) \\ at java.io.ObjectInputStream.readObject0(_ObjectInputStream.java:1305_) \\ at java.io.ObjectInputStream.readObject(_ObjectInputStream.java:348_) \\ at weblogic.utils.io.ChunkedObjectInputStream.readObject(_ChunkedObjectInputStream.java:197_) \\ at weblogic.rjvm.MsgAbbrevInputStream.readObject(_MsgAbbrevInputStream.java:564_) \\ at weblogic.utils.io.ChunkedObjectInputStream.readObject(_ChunkedObjectInputStream.java:193_) \\ at weblogic.rmi.internal.ObjectIO.readObject(_ObjectIO.java:62_) \\ at weblogic.rjvm.ResponseImpl.unmarshalReturn(_ResponseImpl.java:240_) \\ at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(_ClusterableRemoteRef.java:348_) \\ at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(_ClusterableRemoteRef.java:259_) \\ at weblogic.jndi.internal.ServerNamingNode_1030_WLStub.lookup(Unknown Source) \\ at weblogic.jndi.internal.WLContextImpl.lookup(_WLContextImpl.java:392_) \\ at weblogic.jndi.internal.WLContextImpl.lookup(_WLContextImpl.java:381_) \\ at javax.naming.InitialContext.lookup(_InitialContext.java:351_) \\ at test.main(_test.java:26_) \\ Caused by: java.lang.ArrayIndexOutOfBoundsException: 6 \\ at weblogic.jdbc.common.internal.RmiDataSource_1030_WLStub.ensureInitialized(Unknown Source) \\ at weblogic.jdbc.common.internal.RmiDataSource_1030_WLStub.&lt;init&gt;(Unknown Source) \\ 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:494_) \\ at weblogic.rmi.internal.StubGenerator.generateStub(_StubGenerator.java:788_) \\ at weblogic.rmi.internal.StubGenerator.generateStub(_StubGenerator.java:779_) \\ at weblogic.rmi.extensions.StubFactory.getStub(_StubFactory.java:74_) \\ at weblogic.rmi.internal.StubInfo.resolveObject(_StubInfo.java:213_) \\ at weblogic.rmi.internal.StubInfo.readResolve(_StubInfo.java:207_) \\ 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 java.io.ObjectStreamClass.invokeReadResolve(_ObjectStreamClass.java:1033_) \\ at java.io.ObjectInputStream.readOrdinaryObject(_ObjectInputStream.java:1728_) \\ at java.io.ObjectInputStream.readObject0(_ObjectInputStream.java:1305_) \\ at java.io.ObjectInputStream.readObject(_ObjectInputStream.java:348_) \\ at weblogic.utils.io.ChunkedObjectInputStream.readObject(_ChunkedObjectInputStream.java:197_) \\ at weblogic.rjvm.MsgAbbrevInputStream.readObject(_MsgAbbrevInputStream.java:564_) \\ at weblogic.utils.io.ChunkedObjectInputStream.readObject(_ChunkedObjectInputStream.java:193_) \\ at weblogic.rmi.internal.ObjectIO.readObject(_ObjectIO.java:62_) \\ at weblogic.rjvm.ResponseImpl.unmarshalReturn(_ResponseImpl.java:240_) \\ at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(_ClusterableRemoteRef.java:348_) \\ at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(_ClusterableRemoteRef.java:259_) \\ at weblogic.jndi.internal.ServerNamingNode_1030_WLStub.lookup(Unknown Source) \\ at weblogic.jndi.internal.WLContextImpl.lookup(_WLContextImpl.java:392_) \\ at weblogic.jndi.internal.WLContextImpl.lookup(_WLContextImpl.java:380_) \\ at javax.naming.InitialContext.lookup(_InitialContext.java:351_) \\ at test.main(_test.java:23_)
    But at the same time the output when connected to WLS 10.0 is :
    Get DMQ \\Get dataSource \\Get dataSource1 \\Done
    (so that the test passed)
    Could you give me a piece of advice ?
    Thanks,
    Sergey

    I hit the same problem as yours. This issue is caused by JDK version. The JDK used by Weblogic 10.3 is java 6, while your client program's jdk version is java5. So change the both of them to java 6. This issue will be fixed.
    Don't forget to rebuild the wlfullclient.jar which also should be java 6.
    Good luck!

  • Problem in creating jdbc-data-vew to oracle10g

    I have installed DSEE7.0 and setup the directory proxy server successfully
    my oracle environment:
    ip=202.205.16.93
    sid=nicdbs
    table: CAMPUS.CAMPUS_USER { USERID, NAME, TEL, EMAIL }
    my steps (refer to the administrator guide a reference):
    dpconf create-jdbc-data-source -b nicdbs -B jdbc:oracle:thin://202.205.16.93:1521: -J file:///opt/sun/dsee7/var/jdbc/ojdbc14.jar -S oracle.jdbc.driver.OracleDriver oracleds
    dpconf set-jdbc-data-source-prop oracleds db-vendor:oracle
    dpconf set-jdbc-data-source-prop oracleds db-pwd-file:/etc/oraclepass.txt
    dpconf create-jdbc-data-source-pool oraclepool
    dpconf attach-jdbc-data-source oraclepool oracleds
    dpconf create-jdbc-data-view oracleview oraclepool o=oracle
    dpconf create-jdbc-table user CAMPUS.CAMPUS_USER
    dpconf add-jdbc-attr user uid USERID
    dpconf add-jdbc-attr user cn NAME
    dpconf add-jdbc-attr user telephoneNumber TEL
    dpconf add-jdbc-attr user mail EMAIL
    dpconf create-jdbc-object-class oracleview person user uid
    every thing return succefully
    but when I test the view by
    ldapsearch -b o=oralce -x uid=1422
    it returns:
    ldap_search: DSA is unavailable
    ldap_search: additional info: Unable to process the search request. Reason: [Original error=52] No JDBC server available.
    i cant get any help from this error message.I want some help, Maybe some steps were left.
    thanks in advace.

    thanks but it didn't solve it,
    ldapsearch -b o=oracle uid=1422
    ldap_search: DSA is unavailable
    ldap_search: additional info: Unable to process the search request. Reason: [Original error=52] No JDBC server available.
    i also have tried:
    db-name: (CONNECT_DATA =(SERVICE_NAME = nicdbs))
    db-url: jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = 202.205.16.93)(PORT = 1521)))
    but it still didnt work.
    #[root@dsee7 ~]# dpconf get-jdbc-data-source-prop oracleds
    db-name : nicdbs
    db-pwd : {3DES}+j6AoBZNIGx+7st/KDPgSmzVMlDcL6zs
    db-url : jdbc:oracle:thin:@202.205.16.93:1521:
    db-user : campus
    db-vendor : oracle
    description : -
    driver-class : oracle.jdbc.driver.OracleDriver
    driver-url : file:///opt/sun/dsee7/var/jdbc/ojdbc14.jar
    is-enabled : true
    is-read-only : false
    monitoring-inactivity-timeout : 2m
    monitoring-interval : 30s
    monitoring-mode : reactive
    num-connection-incr : 5
    num-connection-init : 5
    num-connection-limit : 30
    #dpconf get-jdbc-data-view-prop oracleview
    Enter "cn=Proxy Manager" password:
    alternate-search-base-dn : ""
    attr-name-mappings : none
    base-dn : o=oracle
    contains-shared-entries : false
    custom-distribution-algorithm : none
    description : -
    distribution-algorithm : none
    dn-join-rule : none
    dn-mapping-attrs : none
    dn-mapping-source-base-dn : none
    excluded-subtrees : -
    filter-join-rule : none
    is-enabled : true
    is-read-only : false
    is-routable : true
    jdbc-attr-date-format : yyyy-MM-dd
    jdbc-attr-time-format : hh:mm:ss
    jdbc-attr-timestamp-format : yyyy-MM-dd hh:mm:ss
    jdbc-data-source-pool : oraclepool
    lexicographic-attrs : all
    lexicographic-lower-bound : none
    lexicographic-upper-bound : none
    non-viewable-attr : none
    non-writable-attr : none
    numeric-attrs : all
    numeric-default-data-view : false
    numeric-lower-bound : none
    numeric-upper-bound : none
    pattern-matching-base-dn-regular-expression : all
    pattern-matching-base-object-search-filter : all
    pattern-matching-dn-regular-expression : all
    pattern-matching-one-level-search-filter : all
    pattern-matching-subtree-search-filter : all
    process-bind : -
    replication-role : master
    viewable-attr : all except non-viewable-attr
    writable-attr : all except non-writable-attr
    Edited by: mickypc1979 on Mar 1, 2010 4:31 PM

  • Using WLST to set up credential mapping on JDBC Data Source

    I am wanting to write a script (WLST) to set up a large initial set of credential mappings on a JDBC data source.
    I can create the datasource and do all the basic set ups, but I can't figure out how to do the credential mappings.
    I tried the "record" option from the Admin console, but it created a script that says that credential mappings are not recorded.
    This is the mapping function that you get to from the "Security" tab on the DataSource page, and then the "Credential Mappings" tab. This allows you to map a "WLS user" to a "remote user" - which in my case is an Oracle OLS user.
    I am using Weblogic 10.3
    Can anyone point me to a set of commands which can perform this function?
    Thanks!

    I wonder if there isn't a publicly visible MBean for the credential mapping. That would explain why the recorded script doesn't have the mbean method invocations.

Maybe you are looking for