Problem with HelloWorld

Hello,
I am a new user to BPEL. I understand all the concepts, so I downloaded the latest and greatest dev tools (Jdeveloper) and I am trying to complete the hello world example (http://www.oracle.com/technology/products/ias/bpel/pdf/orabpel-Tutorial1-HelloWorldTutorial.pdf). The first thing I have noticed is that the example is that it is written for us with eclipse in mind, but i figure I can work it out using jdeveloper. I am up to building the example, but I keep getting an error in this line;
concat( “Hello ”, bpws:getVariableData( 'input', 'payload', '/SyncHelloWorldRequest/input' ))
The compiler is giving the following error;
Attribute bpws:getVariableData not defined on element from
Here is the full snippet of code;
<assign name="createReturnStr">
<copy>
<from expression=concat(“Hello ”, bpws:getVariableData('input','payload','/SyncHelloWorldRequest/input' )) />
<to variable="outputVariable" part="payload" query="/client:SynchHelloWorldProcessResponse/client:result"/>
</copy>
</assign>
Any hints or ideas would be appreciated
Regards
Ben
Message was edited by:
[email protected]

Are you typing the expression your own?
Please look at the namespace prefix,
Oracle BPEL require namespace prefix at the "query"
To correct the error, please change
<from expression=concat(“Hello ”, bpws:getVariableData('input','payload','/SyncHelloWorldRequest/input' )) />
to
<from expression=concat(“Hello ”, bpws:getVariableData('input','payload','/client:SyncHelloWorldRequest/client:input' )) />
Roy

Similar Messages

  • Problem with HelloWorld tutorial

    As I created HelloWorld process based on tutorial http://st-curriculum.oracle.com/obe/fmw/obpm/11g/r1/firstProcess/firstprocess_obpm11g.htm
    Deployment fails with exception. Anybody can help with this?
    java.lang.RuntimeException: oracle.bpm.metadata.exception.MetadataException: BPM
    -70812: Process 'HelloWorldProcess' not found. Cause: The specified process was
    not found. Action: Check that the name of the process is correct
    at oracle.bpm.bpmn.engine.model.ModelCreator_FromMetadata.createModel(Mo
    delCreator_FromMetadata.java:66)
    at oracle.bpm.bpmn.engine.model.deploy.schema.BpmnDesignSchema.init(Bpmn
    DesignSchema.java:203)
    at oracle.bpm.bpmn.engine.service.BPMNServiceEngine.deploy(BPMNServiceEn
    gine.java:406)
    at oracle.bpm.bpmn.engine.service.BPMNServiceEngine.deploy(BPMNServiceEn
    gine.java:104)

    Im facing the same problem, the same stack trace but I'm trying to deploy two BPMN processes into my composition. Any idea??
    <Nov 1, 2010 5:40:45 PM CST> <Error> <oracle.integration.platform.blocks.deploy.servlet> <SOA-21037> <Sending back error message: Error during deployment: Deployment Failed: Error occurred during deployment of component: Resguardo to service engine: implementation.bpmn, for composite: PSDProcesses: java.lang.NullPointerException..>
    java.lang.RuntimeException: oracle.bpm.metadata.exception.MetadataException: BPM-70812: Process 'Process2' not found.  Cause: The specified process was not found.  Action: Check that the name of the process is correct

  • New to Jdev: having problem with Helloworld class and the jsp

    Please, i went through the beginner's tour at oracle site and it has been interesting.
    After putting the class name as Hello, the package name as "mypackage1" as in the example, then the extend field as java.lang.object There is always an error saying that "java.lang.object is not a valid base class for this option". Please what can i do, cos it's delaying my practise.
    secondly, practising the jsp stuff is also interesting, but it's not showing the web preview. i mean after designing the stuff myself, it's giving some compilation error.
    What can I do.
    Thanks

    Hello,
    1- Are you running the "Building Your First Program with JDeveloper 10g" located at
    http://www.oracle.com/technology/obe/obe9051jdev/FirstStep/FirstStep.htm
    If not, is it working for you ?
    2- Which exact version of JDeveloper are you running ? (Help -> About)
    You should be running JDeveloper 10.1.2.x.x
    You can get Oracle JDeveloper 10g (Version 10.1.2.1, build 1913) at
    http://www.oracle.com/technology/software/products/jdev/index.html
    look for the chapter "Oracle JDeveloper 10g Production".
    3- Try re-installing JDeveloper (uncompressing the zip file) into a different
    path (ex: C:\JDeveloper10g) and retry the first steps.
    I've retested the "First Steps" against my Windows XP SP2 and it works just fine.
    Regards,
    Steff

  • OpenMHP problem with HelloWorld

    Hello
    I've just installed OpenMHP and also jmf 2.1.1 (I've got jre 1.6.0_03) but helloworld example doesn't work...
    Please could anyone help me?
    THX

    Hi,
    How to use Open-Mhp, I am trying to run a sample xLet but getting the following error in GUI as well as Command Line.
    java.io.IOException: CreateProcess: java -Djava.security.manager "-Djava.securit
    y.policy=D:\MHP Resources\Mhp-Application-Development (X-Let Related)\Tools & Si
    mulators\openmhp104_bin\policy\0.0.policy" -classpath ".;.;D:\MHP Resources\MHP
    1.1.2 Resources\code4tv-MHP-1.1.2-stubs-v1.1\libs\javatv1.0-jmf\javatv10.jar;D:\
    MHP Resources\Mhp-Application-Development (X-Let Related)\Tools & Simulators\xle
    tview-0.3.6\JMF2.1.1\lib\jmf.jar;D:\MHP Resources\Mhp-Application-Development (X
    -Let Related)\Tools & Simulators\openmhp104_bin" org.openmhp.system.RunXlet . in
    .cdac.interactivetvservices.examples.awt.BlankXlet 0 0 . error=267
    Thank in Advance,
    Shubhanshu Gupta

  • Problem with compilation of HelloWorld.java

    hi,
    getting problem with compilation of HelloWorld.java
    CLASSPATH--- C:\java
    PATH--- C:\j2sdk1.4.2_04\bin
    HelloWorld.java source code in: C:\java
    On cmd prompt:
    C:\java>javac HelloWorld.java
    error: cannot read: HelloWorld.java
    1 error
    pls help me with this
    rgds,
    sanlearns

    What does this command yield?
    dir HelloWorld.java

  • Problem with build_samples.bat in java_card_kit-2_1_2

    Hi,
    I have installed jdk1.3.1_20 and have setup java_card_kit-2_1_2. Following the website, I could compile Wallet.java. But some reason the build_samples.bat is not working properly. Looking through the code, when i reach to the line:
    %JAVA_HOME%\bin\jar -xvf %JC21_HOME%\lib\api21.jar (line 46 of the build_samples.bat) it gives me this error:
    java.io.FileNotFoundException: c:\Java\java_card_kit-2_1_2 (Access is denied)
    at java.io.FileInputStream.open (Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:91)
    at java.io.FileInputStream.<init>(FileInputStream.java:54)
    at sun.tools.jar.Main.run(Main.java:181)
    at sun.tools.jar.Main.main(Main.java:899)
    The system cannot find the file specified.
    Why is this happening:
    FYI this is my javacard_env.bat (the file that I start the javacard environment):
    set classpath=.;
    set JAVA_HOME=C:\Java\jdk1.3.1_20
    set path=C:\Java\jdk1.3.1_20\bin;
    set JC21_HOME=c:\Java\java_card_kit-2_1_2
    set path=%path%;%JC21_HOME%\bin;
    set classpath=%classpath%;%JC21_HOME%\lib\api21.jar;
    Can someone please help.
    Regards,
    Zeallous

    I'm actually ok with that part now,
    I'm now having problems with converting Samples section:
    once it reaches the line (whilst running build_samples.bat):
    call %JC21_HOME%\bin\converter -config ..\src\com\sun\javacard\samples\HelloWorld\HelloWorld.opt
    it gives me this error:
    Exception in thread "main" java.lang.NoClassDefFoundError: \lib\apduio/jar;C:\Java\java_card_kit-2_1_2
    I have already put in this as my javacard_env.bat before i ran everything:
    @echo off
    set classpath=.;
    set JAVA_HOME=C:\Java\jdk1.3.1_20
    set path=C:\Java\jdk1.3.1_20\bin;
    set JC21_HOME=C:\Java\java_card_kit-2_1_2
    set path=%path%;%JC21_HOME%\bin;
    set classpath=%classpath%;C:\Java\java_card_kit-2_1_2\lib\api21.jar;%CLASSPATH%;
    set classpath=%classpath%;C:\Java\jdk1.3.1_20\jre\lib\ext\apduio.jar;%CLASSPATH%;
    What is wrong with this?
    Regards,
    Zeallous

  • Loading EJB problem with deployejb !

    I am working with Oracle 8.1.5 and jdk 1.1.6,
    when I am running the deployejb tool with the HelloWorld example of the demo directory, I have a problem when loadind EJB files into the database:
    deployejb -v -u workuser ...
    done
    Compiling Stubs...done
    Generating Jar File...done
    Loading EJB Jar file adn Comm Stubs Jar file...loading: helloServer/HelloBean
    ORA-01552: cannot use system rollback segment for non-system tablespace USERS
    SQL Error in loading : helloServer/HelloBean
    ORA-06502: PL/SQL : numeric or value error
    ORA-06512: at "SYS.DBMS_LOB", line 700
    ORA-06512: at "WORKUSER.LOADLOBS", line 1
    ORA-06512: at line 1
    ... [same problem with all objects]
    Can you HELP me ?

    Hard to say, looks like a database configuration problem. Check with your DBA...
    Matthieu

  • Siemens TC 65 - Problem with Debbuging

    Hello!
    I�m new here in that forum a newbie at Java ME and my english could be better. So don�t punish me for some mistakes! ;-)
    Back to the point: Hopefully you can help me with my current problem.
    First of all, i try to use the Siemens Terminal TC65 and it�s java functions. I�m working with the Eclipse Environment and i also installed the whole software package (Eclipse ME+SDK from Siemens).
    Everything is doing well, except the debbuging of the program - i use the example of "helloworld".
    Debbuging Error at the Console is as follows:
    "Initialize module for debugging ....
         Wrong initialization response received from the module.
         Please insert a SIM and enter PIN.
         No initialization for module debugging is possible!
         Debugging aborted! "
    First of all: Is it necessary to have a Sim-Card plugged in to run a Midlet?
    Second: I add some code to use the AT+CPIN command to enter the pin in the protected void startApp() - part. But still problems with the Initialization of the module!
    Third: The Midlet runs, if i connect before with the Hyperterminal, enter the pin code, close the connection, and debug my Mitlet. But MY Midlet should do it and not with help of the Hyperterminal!
    Last thing: When i use f.i. System.out.println("Pin wird gesendet"); shouldn�t it be displayed at the Console-Window?
    So it seems i have several problems with my Emulator! Maybe you cn help me...thx in advance!
    C-man
    Message was edited by:
    C-man

    Hello, I've solved your first problem.
    Edit WM_Debug_config.ini and correct initialization sequence. I have:
    AT-Cmd1=S:ATE1
    AT-Cmd2=R:OK
    AT-Cmd3=S:at^scfg=userware/debuginterface,"192.168.0.2","192.168.0.1","0"
    AT-CMd4=R:^SCFG: "Userware/DebugInterface","192.168.0.2","192.168.0.1","0"
    AT-Cmd5=R:OK
    AT-Cmd6=S:at^scfg=userware/mode,"debug","a:/","2000"
    AT-Cmd7=R:^SCFG: "Userware/Mode","debug","a:/"," 2000"
    AT-Cmd8=R:OK
    AT-Cmd9=S:at^scfg=userware/stdout,UDP,
    AT-Cmd10=R:^SCFG: "Userware/Stdout","UDP","
    AT-Cmd11=R:OK
    (removed PIN checking)
    Edit: THIS WONT WORK, I SEE PIN I REQUIRED TO DEBUG APPLICATION :/
    To see System.out messages uncomment also:
    UDPport=12345
    Hope I've helped. Beter later than never.
    Edited by: p.gasidlo on Oct 20, 2007 8:53 AM

  • Problems with quotes when using processXSL...

    Hi!
    I need some help solving a problem with getting processXSL to output the quote (") character in a text file.
    (Oracle Release 9.2.0.6.0)
    CREATE TABLE tmp_lob(tmp_clob clob);
    SET SCAN OFF
    DECLARE
    l_xml_doc dbms_xmldom.DOMDocument;
              l_xsl_doc dbms_xmldom.DOMDocument;
              l_file CLOB;
              l_xsl_pro dbms_xslprocessor.Processor;
              l_xsl dbms_xslprocessor.Stylesheet;
    BEGIN
    l_xsl_doc := dbms_xmldom.newDOMDocument(xmltype.createXML(
    '<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="text" encoding="UTF-8"/>
    <xsl:variable name="qt" select="'"'"/>
    <xsl:template match="//WORD">
    <xsl:value-of select="concat($qt,.,$qt)"/>
    </xsl:template>
    </xsl:stylesheet>')
    l_xml_doc := dbms_xmldom.newDOMDocument(xmltype.createXML(
    '<DOCUMENT>
    <WORD>Hello World</WORD>
    </DOCUMENT>')
    l_xsl := dbms_xslprocessor.newStylesheet(l_xsl_doc, null);
    l_xsl_pro := dbms_xslprocessor.newProcessor;
    dbms_xslprocessor.processXSL(l_xsl_pro, l_xsl, l_xml_doc, l_file);
    dbms_xslprocessor.freeProcessor(l_xsl_pro);
    INSERT INTO tmp_lob(tmp_clob)
    VALUES (l_file);
    COMMIT;
    END;
    SELECT * FROM tmp_lob;
    TMP_CLOB
    Hello World
    Desired output is "Hello World" (with the quotes)!
    FYI...
    SELECT *
    FROM nls_database_parameters
    WHERE parameter LIKE '%CHARACTERSET%'
    PARAMETER VALUE
    NLS_CHARACTERSET WE8ISO8859P1
    NLS_NCHAR_CHARACTERSET AL16UTF16
    Can anyone help?
    Thanks,
    Nick
    Message was edited by:
    nbeer

    Does this help...
    SQL> set define off
    SQL> select xmltransform(xmltype('<Foo><WORD>Hello World</WORD></Foo>'),xmltype('<xsl:stylesheet ver
    sion="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    2 <xsl:output method="text" encoding="UTF-8"/>
    3 <xsl:template match="//WORD">
    4 <xsl:text>&quot;</xsl:text><xsl:value-of select="."/><xsl:text>&quot;</xsl:text>
    5 </xsl:template>
    6 </xsl:stylesheet>')) from dual
    7 /
    XMLTRANSFORM(XMLTYPE('<FOO><WORD>HELLOWORLD</WORD></FOO>'),XMLTYPE('<XSL:STYLESH
    &quot;Hello World&quot;
    SQL> set define off
    SQL> select extractValue(xmltransform(xmltype('<Foo><WORD>Hello World</WORD></Foo>'),xmltype('<xsl:s
    tylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    2 <xsl:output method="text" encoding="UTF-8"/>
    3 <xsl:template match="//WORD">
    4 <xsl:text>&quot;</xsl:text><xsl:value-of select="."/><xsl:text>&quot;</xsl:text>
    5 </xsl:template>
    6 </xsl:stylesheet>')),'/text()') from dual
    7 /
    EXTRACTVALUE(XMLTRANSFORM(XMLTYPE('<FOO><WORD>HELLOWORLD</WORD></FOO>'),XMLTYPE(
    "Hello World"
    SQL>

  • Code generation problem with deployejb !

    I am working with Oracle 8.1.5 and jdk 1.1.6,
    when I am running the deployejb tool with the HelloWorld example of the demo directory, I have a problem with the code generation of the EJBHome and EJBObject:
    deployejb -u ...
    ... [deployejb found HelloHome.class]
    done
    Generating EJBHome and EJBObject on the server...
    An exception occured during code generation: Class not found : hello.HelloHome.class
    Note my CLASSPATH variable is correctly set.
    Can you HELP me ?
    null

    Adding -W2,-Rcond_elim to the existing flags does make both the small example and the original code compile correctly.
    --David                                                                                                                                                                                                                                                               

  • Problems with classpath and comiling an easy program

    Hello everyone:
    I have downloaded jsdk1.3.1_03, (Windows xp)? what do i type in the class path?
    Once I am done with setting the classpath. I typed the helloworld program, and it give me an error specified path not found).
    Please help, through this.
    Sincerely
    Johanna

    it is problems with compiling and running!!! ,
    everytime I try to comile the helloworld program, it
    state an error like :specific path not found. I set
    the path and classpath to C:\jsdk1.3.1\bin
    is that correct? If you installed the developer's kit into c:\jsdk1.3.1 then that is correct. You need to include the directory where you installed java. Typically, that is c:\jdk1.3.1 for example (and add \bin). You can try to "cd c:\jsdk1.3.1\bin" and try javac again. You must have NO spaces in your Path setting.

  • A problem with initiating a BPEL process through its web service interface

    hi,
    i am trying to initiate the helloWorld BPEL process through its web service interface. i use a proxy class that i wrote and i use it from J#.net.
    this is the relevant code part:
    hello.HelloWorldBinding wsProxy = new hello.HelloWorldBinding();
    wsProxy.initiate("Hello");
    and the server shows the following message:
    ORABPEL-05002
    Message handle error.
    An exception occurred while attempting to process the message "com.collaxa.cube.
    engine.dispatch.message.invoke.InvokeInstanceMessage"; the exception is: Cannot
    decode properties.
    The process domain was unable to decode the properties for message guid 10, whic
    h are stored in column String index out of range: 3094; the exception reported i
    s: {2}.
    sql statement: SELECT conv_id, message_guid, domain_ref, process_id, revision_ta
    g, operation_name, receive_date, state, priority, properties FROM invoke_message
    WHERE message_guid = ?
    at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(Dispatc
    hHelper.java:152)
    at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseSche
    duledWorker.java:70)
    at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java
    :86)
    at com.evermind.server.ejb.MessageDrivenBeanInvocation.run(MessageDriven
    BeanInvocation.java:123)
    at com.evermind.server.ejb.MessageDrivenHome.onMessage(MessageDrivenHome
    .java:755)
    at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:
    928)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)
    <2006-05-10 21:21:15,171> <ERROR> <default.collaxa.cube.engine.data> <BaseDeliveryPersistenceAdaptor::loadInvokeMetaDa
    java.lang.StringIndexOutOfBoundsException: String index out of range: 3094
    at java.lang.String.substring(String.java:1441)
    at com.collaxa.common.util.LVDecoder.decodeElement(LVDecoder.java:152)
    at com.collaxa.common.util.LVDecoder.decodeToMap(LVDecoder.java:45)
    at com.collaxa.cube.engine.adaptors.common.BaseDeliveryPersistenceAdaptor.loadInvokeMetaData(BaseDeliveryPersi
    r.java:2186)
    at com.collaxa.cube.engine.adaptors.common.BaseDeliveryPersistenceAdaptor.__loadInvoke(BaseDeliveryPersistence
    :2112)
    at com.collaxa.cube.engine.adaptors.common.BaseDeliveryPersistenceAdaptor.loadInvoke(BaseDeliveryPersistenceAd
    079)
    at com.collaxa.cube.engine.data.DeliveryPersistenceMgr.loadInvoke(DeliveryPersistenceMgr.java:357)
    at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:465)
    at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:335)
    at ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.handleInvoke(ICubeDeliveryLocalBean_StatelessSessionBe
    java:1796)
    at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHa
    7)
    at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:125)
    at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
    at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
    at com.evermind.server.ejb.MessageDrivenBeanInvocation.run(MessageDrivenBeanInvocation.java:123)
    at com.evermind.server.ejb.MessageDrivenHome.onMessage(MessageDrivenHome.java:755)
    at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:928)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)
    what is the problem? how come i can't initiate the process?
    i will be happy if i could get help..
    thanks in advance

    can you initate the process from the bpel console successfully?
    if so can you use obtunnel from the installation to trace the soap message (that goes over the wire), my best guess in this case is a problem with a header (holding the wsa information) ..
    after starting obtunnel it will liesten to a custom port, and will forward the request to the engine, so you need to point your client to this new port..
    hth clemens

  • Problem with retrieving Data

    I am reading the JBDC basic tutorial on Sun website.
    Yesterday, i had problems with connecting the driver and to the database.
    Now many folks on Sun forums help me to figure it out already.
    Now i wanna retrieve the data from the database i have created. But i got error.
    Exception in thread "main" java.sql.SQLSyntaxErrorException: Table/View 'COFFEES' does not exist.
         at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
         at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
         at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
         at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
         at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
         at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
         at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
         at org.apache.derby.impl.jdbc.EmbedStatement.executeQuery(Unknown Source)
         at HelloWorld.main(HelloWorld.java:36)
    Caused by: java.sql.SQLException: Table/View 'COFFEES' does not exist.
         at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
         at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
         ... 9 more
    Caused by: ERROR 42X05: Table/View 'COFFEES' does not exist.
         at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
         at org.apache.derby.impl.sql.compile.FromBaseTable.bindTableDescriptor(Unknown Source)
         at org.apache.derby.impl.sql.compile.FromBaseTable.bindNonVTITables(Unknown Source)
         at org.apache.derby.impl.sql.compile.FromList.bindTables(Unknown Source)
         at org.apache.derby.impl.sql.compile.SelectNode.bindNonVTITables(Unknown Source)
         at org.apache.derby.impl.sql.compile.DMLStatementNode.bindTables(Unknown Source)
         at org.apache.derby.impl.sql.compile.DMLStatementNode.bind(Unknown Source)
         at org.apache.derby.impl.sql.compile.CursorNode.bindStatement(Unknown Source)
         at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
         at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
         at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown Source)
         ... 3 moreI wonder whether we need a reference to the database we have created in our project( I am using eclipse).
    If so, how could we do that ?
    Please help me !!!
    Thanks in advance!!!!

    Here is my code. It's just something following what the tutorial on sun said:
    import java.sql.*;
    import org.apache.derby.client.am.SqlException;
    public class HelloWorld {
         private static Connection con;
          * @param args
          * @throws SQLException
         public static void main(String[] args) throws SQLException, SqlException{
              // TODO Auto-generated method stub
              String url = "jdbc:derby:COFFEEBREAK";
         try{
              Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
              System.out.println("Driver connected...");
         }catch(java.lang.ClassNotFoundException e){
              System.err.print("ClassNotFoundException : ");
              System.err.println(e.getMessage());
         try{
              con = DriverManager.getConnection(url);
              System.out.println("Database connected..");
         }catch(Exception e){
              System.err.print("Connection Error:");
              System.out.println(e.getMessage());
         // Retrieve the data from the database
         Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY);
         ResultSet srs = stmt.executeQuery("SELECT * FROM COFFEEBREAK.COFFEES");
         while (srs.next()){
              String name = srs.getString("COF_NAME");
              float price = srs.getFloat("PRICE");
              System.out.println(name+ "               "+ price);
    }PS: you could move this thread to the suitable category. I am sorry for asking through this ...

  • Problems with SoapMessage Handler in SJS AS 8.1

    Hi!
    I try to post it in this forum as well, since there is no response in the WebService forum, and it also seems to be a problem with the application server.
    I have problems with execution of standard soap message handler.
    Both webservice and handler is of "HelloWorld" and is generated in the NetBeans 4.1 IDE and follows the standards of WebService and GenericHandler
    When I try the WebService Runtime testtool integrated in NetBeans, the handler and webservice works fine on the localhost SJS AS 8.1. Then I try to execute the same wsdl from other test environment(like soapscope) and I receive an error from the SJS AS(JAXRPC.TIE.04: Internal Server Error (JAXRPCTIE01: caught exception while handling request: java.lang.ClassCastException: com.sun.xml.messaging.saaj.soap.impl.TextImpl))
    Then I try to deploy without references to the handler in the webservice.xml, and then webservice works fine.(also through soapscope).
    Is there some server settings that I have missed??
    I also have the latest build of NetBeans 4.1 and a standalone version of SunAppserver 8.1(Sun Java System Application Server Platform Edition 8.1 2005Q2 UR2)
    Stacktrace from the server:
    [#|2005-06-16T14:11:09.546+0200|WARNING|sun-appserver-pe8.1_02|javax.enterprise .system.container.web|_ThreadID=16;|preWebHandlerError
    java.lang.ClassCastException: com.sun.xml.messaging.saaj.soap.impl.TextImpl
    at com.sun.xml.rpc.server.StreamingHandler.getOpcodeForRequestMessage(StreamingHan dler.java:628)
    at com.sun.enterprise.webservice.WsUtil.getInvMethod(WsUtil.java:943)
    at com.sun.enterprise.webservice.ServletPreHandler.handleRequest(ServletPreHandler .java:55)
    at com.sun.xml.rpc.client.HandlerChainImpl.handleRequest(HandlerChainImpl.java:86)
    at com.sun.xml.rpc.server.StreamingHandler.callRequestHandlers(StreamingHandler.ja va:918)
    at com.sun.xml.rpc.server.StreamingHandler.preHandlingHook(StreamingHandler.java:8 31)
    at no.vsusdag.ws.DagWSEPSEI_Tie.preHandlingHook(DagWSEPSEI_Tie.java:236)
    at com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:102)
    at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate. java:443)
    at com.sun.enterprise.webservice.JAXRPCServlet.doPost(JAXRPCServlet.java:50)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:257)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterCha in.java:55)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.ja va:161)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 263)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextVal ve.java:225)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 173)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:13 2)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.ja va:653)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.ja va:534)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.jav a:403)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
    |#]
    [#|2005-06-16T14:11:09.546+0200|SEVERE|sun-appserver-pe8.1_02|com.sun.xml.rpc.s erver|_ThreadID=16;|com.sun.xml.messaging.saaj.soap.impl.TextImpl
    java.lang.ClassCastException: com.sun.xml.messaging.saaj.soap.impl.TextImpl
    at com.sun.enterprise.webservice.WsUtil.throwSOAPFaultException(WsUtil.java:972)
    at com.sun.enterprise.webservice.ServletPreHandler.handleRequest(ServletPreHandler .java:68)
    at com.sun.xml.rpc.client.HandlerChainImpl.handleRequest(HandlerChainImpl.java:86)
    at com.sun.xml.rpc.server.StreamingHandler.callRequestHandlers(StreamingHandler.ja va:918)
    at com.sun.xml.rpc.server.StreamingHandler.preHandlingHook(StreamingHandler.java:8 31)
    at no.vsusdag.ws.DagWSEPSEI_Tie.preHandlingHook(DagWSEPSEI_Tie.java:236)
    at com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:102)
    at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate. java:443)
    at com.sun.enterprise.webservice.JAXRPCServlet.doPost(JAXRPCServlet.java:50)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:257)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterCha in.java:55)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.ja va:161)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 263)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextVal ve.java:225)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 173)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:13 2)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.ja va:653)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.ja va:534)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.jav a:403)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
    |#]
    Hope someone have some tips and can help me.
    thanks
    Dag Arvola

    Hi,
    I too use SOAPScope and have faced the same problem.
    With some trial and error figured out that the problem is possibly with the way the XML string is parsed by the Message Handler classes.
    Here is the detail and hope it helps you too. The work around is to remove any white spaces / new line chars following the <Body> tag.
    Rgds, Rajasekhar
    I uploaded a SOAPScope workspace with different message invocations, with the "Message Handler" configured.
    The work space is @
    http://www.mindreef.net/tide/shared/workspace/e36d678cbb35389dd238fa16a8cdeb14
    The 1st Message is the one captured in SOAPScope, while invoked from the NetBeans IDE itself.
    If you observe the 3rd message that failed and the 4th Message that works, the only difference is the string that is posted to the Web Service URI.
    From Resend > Preview Edit
    3rd Message is a properly formatted xml document with the third line reading as just
    <soap:Body>
    where as
    4th Message is not a properly formatted xml document with the third line reading as
    <soap:Body><mrns0:createCustomer>
    Even a <Space> as in "<soap:Body> <mrns0:createCustomer>" causes a SOAP Fault to occur.
    *********************

  • Problem with debug XT75

    Hello
    I have problem with debug program for XT75. I work in XP , install java j2sdk1.4.2_09 (from CD) , eclipse (with EclipseMEplugin_123) ,SMTK and connect terminal TC65 with XT75 module.
    When I want to debug my simple Midlet HelloWorld under celipse I get error:
    =========================================================================
         Starting XT75 emulator for debugging application. Please wait ...
         =========================================================================
         COM port used for "emulator session": COM1
         Used baud rate for the module "115200 baud"..
         >>> Emulator is set to no download of Jar and Jad file! <<<
         Initialize module for debugging ...
         The module is now initialized for debugging!
         >>> Establishing TCP/IP connection "IP connection for remote debugging"... <<<
         Please wait ...
         Done.
         >>> Starting Debug Agent ... <<<
         The debug agent is not started!
    File WM_Debug_config.ini in WTK for XT75 is:
    # This ini file is used to configure emulator.exe
    # Hints:
    # Store this ini file into the directory where the emulator.exe is located!
    [Module type]
    # Define the used module type
    ModuleType=XT75
    [AT command]
    # These AT commands are used for initialising the module for debugging!
    # Hints:
    # The IP address range 10.x.x.x is not supported for configuration of debugging!
    AT-Cmd1=S:ATE1
    AT-Cmd2=R:OK
    AT-Cmd3=S:at+cpin?
    AT-Cmd4=R:+CPIN: READY
    AT-Cmd5=R:OK
    AT-Cmd6=S:at^scfg=userware/debuginterface,"192.168.0.21","192.168.0.22","0"
    AT-CMd7=R:^SCFG: "Userware/DebugInterface","192.168.0.21","192.168.0.22","0"
    AT-Cmd8=R:OK
    AT-Cmd9=S:at^scfg=userware/mode,"debug","a:/","2000"
    AT-Cmd10=R:^SCFG: "Userware/Mode","debug","a:/","2000"
    AT-Cmd11=R:OK
    AT-Cmd12=S:at^scfg=userware/stdout,UDP,2000
    AT-Cmd13=R:^SCFG: "Userware/Stdout","UDP","2000"
    AT-Cmd14=R:OK
    [System.out port]
    # used UDP port number range: 1024 ... 65535
    # comment out the following line for switching off Java "System.out" displaying in the IDE window
    #UDPport=12345
    [DebugAgent delay timer]
    # settings for Debug Agent delay timer in ms
    #DATimer=2000
    I send At command to terminal AT^SCFG? and get answer:
    ^SCFG: "AutoExec","0","0","0","0",""
    ^SCFG: "AutoExec","0","1","0","0","","000:00:00","000:00:00"
    ^SCFG: "AutoExec","0","1","1","0","","000:00:00","000:00:00"
    ^SCFG: "AutoExec","0","1","2","0","","000:00:00","000:00:00"
    ^SCFG: "GPRS/ATS0/withAttach","on"
    ^SCFG: "GPRS/AutoAttach","disabled"
    ^SCFG: "GPRS/PersistentContexts","0"
    ^SCFG: "GPRS/RingOnIncomingData","off"
    ^SCFG: "MEopMode/Airplane","off"
    ^SCFG: "MEopMode/Airplane/OnStart","off"
    ^SCFG: "MEShutdown/OnIgnition","off"
    ^SCFG: "PowerSaver/Mode9/Timeout","20"
    ^SCFG: "Radio/Band","3","15"
    ^SCFG: "Radio/OutputPowerReduction","3"
    ^SCFG: "Serial/USB/DDD","0","0","0409","0681","0034","Siemens AG Wireless Modules","XT75",""
    ^SCFG: "Tcp/BufSize","5200"
    ^SCFG: "Tcp/IRT","3"
    ^SCFG: "Tcp/MR","10"
    ^SCFG: "Tcp/OT","6000"
    ^SCFG: "Tcp/SAck","1"
    ^SCFG: "Tcp/TTcp","0"
    ^SCFG: "Tcp/WithURCs","on"
    ^SCFG: "Trace/Syslog/OTAP","0"
    ^SCFG: "Userware/Autostart","0"
    ^SCFG: "Userware/Autostart/AppName",""
    ^SCFG: "Userware/Autostart/Delay","0"
    ^SCFG: "Userware/DebugInterface","192.168.0.21","192.168.0.22","0"
    ^SCFG: "Userware/Passwd"
    ^SCFG: "Userware/Mode","debug","a:/Project02.jar","2000"
    ^SCFG: "Userware/Stdout","UDP","2000"
    ^SCFG: "URC/CallStatus/CIEV","restricted"
    ^SCFG: "URC/CallStatus/SLCC","verbose"
    ^SCFG: "URC/Datamode/Ringline","off"
    ^SCFG: "URC/Ringline","local"
    ^SCFG: "URC/Ringline/ActiveTime","2"
    OK
    Please help me.
    Thanks.

    Hello,
    I would like to know if you could debug?
    That's the same problem what I have.
    At the moment I have the DSB75 and the XT75 module I don't know what else I can to to run the program under debug.
    OS: Win XP
    eclipse-SDK-3.3.1.1
    eclipseme.feature_1.7.7
    Regards,
    NOVI

Maybe you are looking for

  • Text node in the Charac Hierarchy sums up

    Hi, I am working on IP. I had created an hierarchy for a specific consumption data with the top node as a text node, which should appear only once in the report. But when i use the Input ready query, the system shows multiple rows of the text node fo

  • How to modify Logical database Selection screen

    I am using PNP logical database , it is giving one selection screen , after executioni can able to change the selection screen but i want to change default selection screen so that when i execute i want specific fields in selection. How to modify it?

  • Can someone download photos from web gallery?

    Can someone download individual photos from my web gallery? I am posting about 40 photos in the web gallery.I want people that visit to be able to download the photos they want. I tried it and it is set to download the entire album compressed. The vi

  • CiscoWorks Shadow Directory File Name After Device Rename

    I have noticed that when a Device is renamed through Common Services --> Device and Credentials --> Device Management --> Edit Identity, it does not rename the config archive file name in the shadow directory.  Changing the Display Name, Host Name, a

  • Jittery video playback

    I'm not sure where to post this, but I'll try here. Hope someone can help. Lately I've been having issues with stuttering, jittery playback of video materials whether it's on Vimeo, Youtube, full episodes of television shows, HD videos, whatever. Non