Advanced queueing hotel example (sqlj error)

can anyone help me about why this error occured when i follow all the steps of installation.
when i exec the command ->sqlj -status -ser2class HotelSystemSLJ.sqlj HotelSQLJ.sqlj *.java
this error occured. i use oracle 9i and my translator.zip file is copied from {9i home}/sqlj/lib
but in my classpath both of the translator.zip file is defined. one is at 9i home and the other is at oc4j home. when i defined the only oc4j home file the command returned the error that it cant find the sqlj translator so i defined both in my classpath
D:\oracle9ias\core\J2EE_containers\j2ee\home\applications\AQEJBHotelSample\src\
ava\oracle\otnsamples\AQEJBHotelSample\ejb>sqlj -status -ser2class HotelSystemS
LJ.sqlj HotelSQLJ.sqlj *.java
[Translating 15 files]
[Reading file HotelSystemSQLJ]
[Reading file HotelSQLJ]
[Reading file AQHotelMessage]
[Reading file Hotel]
[Reading file HotelBean]
[Reading file HotelDetails]
[Reading file HotelHome]
[Reading file HotelSummary]
[Reading file HotelSystem]
[Reading file HotelSystemBean]
[Reading file HotelSystemHome]
[Reading file RequestAQHandler]
[Reading file ReservationDetails]
[Reading file RoomType]
[Reading file ServiceAQHandler]
[Translating file HotelSystemSQLJ]
[Translating file HotelSQLJ]
[Translating file AQHotelMessage]
[Translating file Hotel]
[Translating file HotelBean]
[Translating file HotelDetails]
[Translating file HotelHome]
[Translating file HotelSummary]
[Translating file HotelSystem]
[Translating file HotelSystemBean]
[Translating file HotelSystemHome]
[Translating file RequestAQHandler]
[Translating file ReservationDetails]
[Translating file RoomType]
[Translating file ServiceAQHandler]
[Compiling 15 Java files]
java.io.IOException: CreateProcess: javac -J-Djavac.pipe.output=true HotelSyste
SQLJ.java HotelSQLJ.java AQHotelMessage.java Hotel.java HotelBean.java HotelDet
ils.java HotelHome.java HotelSummary.java HotelSystem.java HotelSystemBean.java
HotelSystemHome.java RequestAQHandler.java ReservationDetails.java RoomType.jav
ServiceAQHandler.java error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Unknown Source)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at sqlj.tools.Sqlj.runCompilation(Sqlj.java:910)
at sqlj.tools.Sqlj.statusMain(Sqlj.java:384)
at sqlj.tools.Sqlj.main(Sqlj.java:140)
Error in Java compilation: CreateProcess: javac -J-Djavac.pipe.output=true Hote
SystemSQLJ.java HotelSQLJ.java AQHotelMessage.java Hotel.java HotelBean.java Ho
elDetails.java HotelHome.java HotelSummary.java HotelSystem.java HotelSystemBea
.java HotelSystemHome.java RequestAQHandler.java ReservationDetails.java RoomTy
e.java ServiceAQHandler.java error=2

Coskan,
Sorry for annoying you...Since i cudnt
reprodue the same error here in my machine, please provide
following details also....
1. Have you set the classpath environment variable correctly?
Means all the jar files (Jndi.jar,ejb.jar,jta.jar,aqapi.jar,tools.jar, classes12.jar)are
in classpath?
2. Have you put <Oracle9i_Home>/bin in your classpath???
Since sqlj.exe is in <Oracle9i_Home>/bin, this step is mandatory...
Cheers
--Venky                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Problems with Advanced Queueing...

    Hi,
    Has anyone used AQ through OCI?
    We are having problems with OCISubscriptionRegister() the error reported back is 'two task conversions - overflow integer'. The code we are running is straight out of the published demos...
    Please HELP!!
    Thanks,
    Darryl Schallig

    There are discussion on this in the Advanced Queueing forum.

  • CORBA Hotel examples

    Has anyone tryed to install and run the CORBA hotel examples for Oracle 8i found on the technet site?
    I have Installed 8i and JDeveloper and have followed the instructions to the letter but on compolation of the project there are loads of errors thrown all relating to CORBA ORB and Java etc..
    Could there be a clash of version of JDK??
    Please Help...
    e-mail [email protected]
    null

    The readme files for the various CORBA Hotel demos provide details about which versions of the various products were used.
    There's also a file called Common]http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/htdocs/sampleoverview.htm]Common Samples Features that describes requirements and conventions.
    You can also find more information in the Sample Code discussion forum.
    Regards,
    -rh

  • Advanced Queueing and SQL in same transaction?

    Can Advanced Queueing operations and SQL operations be combined in one atomic transaction? I can't find any reference to this in the Oracle AQ documentation and none of the examples show this. In my application I'm having problems that seem like deadlock when I do combine AQ and SQL in the same transaction. However, when I place them in seperate transactions it works.
    null

    I am also looking for some examples of using SQL/PLSQL w/Advanced Queueing. We currently have the following scenario: One server has non-relational tables; another server has relational tables which house the same data in a relational format. We are looking for a way to migrate the non-relational data to the relational tables and keep the data updated when it changes in the non-relational tables.
    We had considered using materialized views, but, this was ruled out because the non-relational tables are created and dropped on a daily basis.
    My email: [email protected]
    Thanks for any input you may have!

  • Data synchronization between apps using Advanced Queueing

    Dear you,
    I'm quite new to Oracle Advanced Queueing and looking at this for using now.
    I want to integrate our system (name A, Web application with Java technology, deployed on Ora AS 10g, using Oracle database) with an outside system (named B, .NET technology, using Sybase database) using Oracle Advanced Queuing.
    Could you please suggest the interfaces for both system A & B to access Advanced Queuing? What is the best to use: Java, JMS or HTTP/HTTPS/SMTP?
    Many thanks,
    K.N

    So we are talking EPMA Data Synchronization here.
    Are you able to limit decimal precision?
    The number provided in the error message is not negative -- can you please provide more details?
    Thank you,
    Todd Rebner

  • Deadlock using Advanced Queueing and OC4J

    We develop an application which extensively uses JMS. We use Advanced Queueing as JMS provider (Oracle9i 9.2.0.3.0 and OC4J 9.0.3). In our application we have message driven bean which listens on cerain queue and can send messages to other queues/topics as a result of processing received message. In this scenario we sometimes get a java-level deadlock.
    An example of such deadlock is here (taken from thread dump, jvm is sun 1.4.1_01):
    Found one Java-level deadlock:
    =============================
    "TaskManager":
    waiting to lock monitor 0x8ff45c (object 0x39db898, a oracle.jdbc.driver.OracleCallableStatement),
    which is held by "ApplicationServerThread-1"
    "ApplicationServerThread-1":
    waiting to lock monitor 0x8ff43c (object 0x39e4de8, a oracle.jdbc.driver.OracleConnection),
    which is held by "TaskManager"
    Java stack information for the threads listed above:
    ===================================================
    "TaskManager":
    at oracle.jdbc.driver.OracleCallableStatement.close(OracleCallableStatement.java:980)
    - waiting to lock <039DB898> (a oracle.jdbc.driver.OracleCallableStatement)
    - locked <039E4DE8> (a oracle.jdbc.driver.OracleConnection)
    at oracle.jdbc.driver.OracleConnection.close_statements(OracleConnection.java:2333)
    - locked <039E4DE8> (a oracle.jdbc.driver.OracleConnection)
    at oracle.jdbc.driver.OracleConnection.close(OracleConnection.java:1412)
    - locked <039E4DE8> (a oracle.jdbc.driver.OracleConnection)
    at com.evermind.sql.DriverManagerPooledConnection.close(DriverManagerPooledConnection.java:247)
    - locked <039DC320> (a com.evermind.sql.DriverManagerPooledConnection)
    at com.evermind.sql.OrionPooledDataSource.removeCache(OrionPooledDataSource.java:559)
    - locked <08A67AF0> (a com.evermind.sql.OrionPooledDataSource)
    at com.evermind.sql.OrionPooledDataSource.run(OrionPooledDataSource.java:505)
    at com.evermind.sql.DriverManagerXADataSource.run(DriverManagerXADataSource.java:195)
    at com.evermind.util.TaskManager.run(TaskManager.java:181)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
    at java.lang.Thread.run(Thread.java:536)
    "ApplicationServerThread-1":
    at oracle.jdbc.driver.OracleConnection.getDescriptor(OracleConnection.java:2549)
    - waiting to lock <039E4DE8> (a oracle.jdbc.driver.OracleConnection)
    at oracle.sql.StructDescriptor.createDescriptor(StructDescriptor.java:132)
    at oracle.jpub.runtime.MutableStruct.toDatum(MutableStruct.java:128)
    at oracle.jms.AQjmsObjectMessage_C.toDatum(AQjmsObjectMessage_C.java:45)
    at oracle.jdbc.driver.OraclePreparedStatement.setORAData(OraclePreparedStatement.java:2700)
    - locked <039DB898> (a oracle.jdbc.driver.OracleCallableStatement)
    at com.evermind.sql.OrclCallableStatement.setORAData(OrclCallableStatement.java:732)
    at oracle.jms.AQjmsProducer.enqueue(AQjmsProducer.java:837)
    - locked <091DBC40> (a oracle.jms.AQjmsProducer)
    at oracle.jms.AQjmsProducer.publish(AQjmsProducer.java:1366)
    - locked <091DBC40> (a oracle.jms.AQjmsProducer)
    at oracle.jms.AQjmsProducer.publish(AQjmsProducer.java:1216)
    - locked <091DBC40> (a oracle.jms.AQjmsProducer)
    at com.abilitydev.slovalco.jms.dispatcher.alarm.AlarmMessageDispatcher.dispatchMessage(AlarmMessageDispatcher.java:229)
    at com.abilitydev.slovalco.jms.dispatcher.DispatcherWrapper.dispatchMessage(DispatcherWrapper.java:51)
    at com.abilitydev.slovalco.jms.dispatcher.DispatcherWrapper.dispatchMessage(DispatcherWrapper.java:49)
    at com.abilitydev.slovalco.jms.dispatcher.DispatcherWrapper.dispatchMessage(DispatcherWrapper.java:49)
    at com.abilitydev.slovalco.jms.dispatcher.DispatcherWrapper.dispatchMessage(DispatcherWrapper.java:49)
    at com.abilitydev.slovalco.jms.handlers.PotDataHandler.handleMessage(PotDataHandler.java:40)
    at com.abilitydev.slovalco.jms.ObjectMessageBean.onMessage(ObjectMessageBean.java:95)
    at com.evermind.server.ejb.MessageDrivenBeanInvocation.run(MessageDrivenBeanInvocation.java:141)
    at com.evermind.server.ejb.MessageDrivenHome.onMessage(MessageDrivenHome.java:769)
    at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:929)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
    at java.lang.Thread.run(Thread.java:536)
    Any suggestions?
    Thanks, Marcel

    Marcel --
    This sounds like something that you'd want to pursue with the Oracle support folks.
    Is it possible for you to test the application using the OC4J 904 Developer Preview and see if the problem reproduces?
    btw -- are you using a tool to pull the information from the thread-dump? I noticed the line "Found one Java-level deadlock:" which looks like output from a tool. Just interested that's all.
    cheers
    -steve-

  • Advanced Queueing and Propagation

    Hi all,
    I am trying to propagate messages from one queue to another in the same database.
    For this I am using DBMS_AQADM. The code is as under.
    CREATE OR REPLACE TYPE event_msg_type_surya AS OBJECT (
    name VARCHAR2(10),
    current_status NUMBER(5),
    next_status NUMBER(5)
    begin
    DBMS_AQADM.create_queue_table (
    queue_table => 'system.queue_tab_consumer',
    queue_payload_type => 'system.event_msg_type_surya');
    end;
    begin
    DBMS_AQADM.create_queue (
    queue_name => 'system.queue_consumer',
    queue_table => 'system.queue_tab_consumer');
    end;
    begin
    DBMS_AQADM.start_queue (
    queue_name => 'system.queue_consumer',
    enqueue => TRUE);
    end;
    begin
    DBMS_AQADM.create_queue_table (
    queue_table => 'system.queue_tab_producer',
    queue_payload_type => 'system.event_msg_type_surya',
    multiple_consumers => TRUE);
    end;
    begin
    DBMS_AQADM.create_queue (
    queue_name => 'system.queue_producer',
    queue_table => 'system.queue_tab_producer');
    end;
    begin
    DBMS_AQADM.start_queue (
    queue_name => 'system.queue_producer',
    enqueue => TRUE);
    end;
    BEGIN
    dbms_aqadm.add_subscriber (
    queue_name => 'system.queue_producer',
    subscriber => sys.aq$_agent('SYSTEM','system.queue_consumer',null)
    END;
    BEGIN
    dbms_aqadm.schedule_propagation(
    queue_name => 'system.queue_producer',
    latency => 0
    END;
    begin
    DBMS_AQADM.ALTER_PROPAGATION_SCHEDULE(
    queue_name => 'system.queue_producer',
    duration => '2000',
    next_time => 'SYSDATE + 1/1440',
    latency => '32');
    end;
    As per the expectation if producer_queue is populated the messages must get propagated to consumer_queue.But this is not getting done even after waiting long hours.
    Can anyone throw any light on this.
    Any help will be greatly appreciated.
    Thanks in advance.

    I am also looking for some examples of using SQL/PLSQL w/Advanced Queueing. We currently have the following scenario: One server has non-relational tables; another server has relational tables which house the same data in a relational format. We are looking for a way to migrate the non-relational data to the relational tables and keep the data updated when it changes in the non-relational tables.
    We had considered using materialized views, but, this was ruled out because the non-relational tables are created and dropped on a daily basis.
    My email: [email protected]
    Thanks for any input you may have!

  • Oracle AQ, the Advanced Queueing Facility

    Hi all,
    Does someone have first hand experience using
    Oracle AQ, the Advanced Queueing Facility?
    I am primarily interested in understanding its reliability, usability and general industry acceptance.
    thx
    Kalpana Subramanian

    DBMS_XMLQUERY and DBMS_XMLSAVE are implemented in Java. Neither are part of XQuery. However XQuery does require the java componant since the XQuery parser is currently written in Java. So while we can execute XQuery without Java we currently cannot parse XQuery statements without Java.
    DBMS_XMLGEN and DBMS_XMLSTORE should be present in XE. They are almost 100% feature equivilant to XMLQUERY and XMLSAVE but are implemented in 'C' rather than java. For XML Generation (XMLQUERY/XMLGEN) you should also consider the SQL/XML operators (XMLElement, XMLAgg, XMLForest, XMLAttributes).

  • Does Oracle Advanced Queueing support JRockit?

    Does anyone know if Oracle Advanced Queueing supports JRockit (1.5 or 1.6),
    or better still, does anyone have experience using this?

    AQ is an in-database implementation of Java Messaging Service (JMS).
    With that in mind could you please ask your question again including specifics as to what you are thinking.

  • Oracle Advanced Queueing  VS. JAVA

    Dears,
    i am facing a problem when integrating java with oracle while using advanced queueing.
    The dequeue rate is very little 26 deq/second, is there any performance tuning mechanisms to be used or optimizations?
    Thank you.

    Try http://www.akadia.com/services/ora_advanced_queueing.html
    they have some very straight forward , basic examples

  • Oracle Advanced Queueing on 10G  dequeue options  FIRST_MESSAGE

    Has anyone used the " dbms_aq.first_message " in their dequeue options when dequeueing from a queue with oracle advanced queueing?
    If so, have yoiu noticed any change in performance time ? Has it slowed processing time in anyway?
    Just looking for anyone that has actually used this and their experience with it.
    Thanks,

    Its difficult to answer without understanding what your application is trying to achieve, PLSQL notification can handle certain aspects - e.g. fire off a procedure when new messages arrive.
    Have a look at the doc to see if it might help your scenario:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14257/aq_opers.htm#sthref1315
    (10.7 Registering for Notification)
    Thanks
    Paul

  • Advanced Queueing and databases synchronization

    What kind of (application) problems could be solved by Advanced Queueing ?
    What about databases synchronization ( two Oracle Database Standard Edition One ) ?
    TANK YOU !

    AQ is intended for messaging. Messaging between applications, messaging between back-end and front-end.
    Synchronization would be a poor use of messaging. If you want synchronization then name your version number (all four places) and replication technology and we can point you in the right direction.
    For most situations I use:
    DBMS_RECTIFIER_DIFF or DBMS_COMPARISON
    http://www.morganslibrary.org/library.html

  • 10)example of errors while loading data and how do u resolve them?

    )example of errors while loading data and how do u resolve them?

    hai ram reddy this is ramprasad reddy....u can get this type of most commen errors....like below
    As the frequent failures and errors , there is no fixed reason for the load to be fail , if you want it for the interview perspective I would answer it in this way.
    a) Loads can be failed due to the invalid characters
    b) Can be because of the deadlock in the system
    c) Can be becuase of previuos load failure , if the load is dependant on other loads
    d) Can be because of erreneous records
    e) Can be because of RFC connections.....(sol: raise the ticket to BASIS team to provide the connection)
    f)can be coz of missing master data.
    g)can be coz of no data found in the source system.
    h)Time stamp error........(sol: activate the data source and replicate the data source and load)
    i)Short dump error.........(sol: delete the request and load once again)
    j)Data locking when loading in parallel.
    k)ODS activation failures.
    l)No SID found........(sol: should load masterdata before transaction data)

  • Oracle Advance Queueing

    I am using DBMS_AQ (Advanced Queueing) , when trying to dequeue the messages from it, by providing a dequeue stored procedure that is being called by a java process the number of dequeue messages per second is below expectations; arround 33/sec.
    Please can any one tell me what is wrong, find below the stored procedure, if there is any optimization that can be made on it please tell me to speed up the dequeue process.
    CREATE OR REPLACE PROCEDURE SMPP.deq (
    outputmessage OUT smpp.sms,
    priority OUT NUMBER,
    enq_time OUT VARCHAR2,
    CORR IN VARCHAR2,
    waittime IN NUMBER
    AS
    dequeue_options DBMS_AQ.dequeue_options_t;
    message_properties DBMS_AQ.message_properties_t;
    message_handle RAW (16);
    v_err VARCHAR2 (255);
    BEGIN
    dequeue_options.WAIT := waittime;
    dequeue_options.visibility := DBMS_AQ.IMMEDIATE;
    dequeue_options.correlation := CORR;
    dequeue_options.navigation := DBMS_AQ.first_message;
    DBMS_AQ.dequeue (queue_name => 'SMPP.SMSINQ',
    dequeue_options => dequeue_options,
    message_properties => message_properties,
    payload => outputmessage,
    msgid => message_handle
    priority := message_properties.priority;
    enq_time :=
    TO_CHAR (message_properties.enqueue_time, 'dd-mm-rr hh24:mm:SS');
    DBMS_OUTPUT.put_line (enq_time);
    DBMS_OUTPUT.put_line (outputmessage.msg_txt);
    DBMS_OUTPUT.put_line (message_properties.priority);
    EXCEPTION
    WHEN OTHERS
    THEN
    v_err := SUBSTR (SQLERRM, 1, 255);
    DBMS_OUTPUT.put_line (v_err);
    RAISE;
    END;
    /

    I haven't found much tuning opportunities by messing with dequeue options. Adding memory to the SGA tends to help. Also, creating mutliple queue tables for the queue tends to distribute io and may also help.

  • Start up Advanced Queueing

    Hi,
    I would like to know the setup which needs to be made with the DB in order to enable advanced queueing.
    Also, I would like to have a nice material (easy to understand) on Advanced queuing.
    Also I would like to know how the Oracle Message Gateway works and how it works in tandem with AQ.
    Thanks and Regards,

    Can anybody email me these sql scripts to my email?
    My email id is [email protected]
    aqdemo00.sql Create users, message types, and tables
    aqdemo01.sql Create queue tables, queues, subscribers, and propagation schedule
    aqdemo02.sql Enqueue messages into input queue
    aqdemo03.sql Install dequeue procedures
    aqdemo04.sql Perform blocking dequeues
    aqdemo05.sql Perform listen for multiple agents
    aqdemo06.sql Clean up users, queue tables, queues, and subscribers in aqdemo00.sql to aqdemo05.sql
    aqdemo07.sql Enqueue and dequeue to XMLType queue using XPATH expressions
    aqdemo08.sql Demonstrates server-to-server email notifications with default XML presentation
    aqdemo09.sql Set up queues and subscribers for array enqueue and dequeue (for OCI array demos also)
    aqdemo10.sql Array enqueue 10 messages
    aqdemo11.sql Array dequeue 10 messages
    aqdemo12.sql Clean up queues and subscribers for array enqueue and dequeue (for OCI array demos also)

Maybe you are looking for