GUI_GET_DESKTOP_INFO return is null

Hi all,
      if any one change sap data( eg, material data, plan order...), we want to get windows id.   I add sap code in "LSCD0F04'.   so have any issue.
1. when user change plan order, GUI_GET_DESKTOP_INFO can get windows ID,
2. when user change material data, the function can't get the windows ID. 
3. when I  run LSCD0F04 in se38, then program can get windows ID.
I debug the program. the variable can;t  get  memory  data.
thanks.

any have the same case?

Similar Messages

  • Help. HTMLDocument.getElement(id) doesn't work, return me null.

    i think the method getElement(String id) would get me the whole tag with the specific id, but it returns me null value. The following is my html and a test program. What's wrong with it? Please Help. Thank you very much.
    here is my boo.html file
    <html>
    <body>
    <p id=abc> hello </p>
    </body>
    </html>
    here is my little test program
    import javax.swing.JEditorPane;
    import javax.swing.text.Element;
    import javax.swing.text.html.HTMLDocument;
    import javax.swing.text.html.HTMLEditorKit;
    import javax.swing.text.html.StyleSheet;
    public class Boo{
    private JEditorPane editorpane = new JEditorPane();
    private HTMLDocument doc;
    public Boo(){
         try{
    editorpane.setPage(getClass().getResource("boo.html"));
    } catch (Exception e) {e.printStackTrace();}
         doc = (HTMLDocument) editorpane.getDocument();
         System.out.println(doc);
         Element el = doc.getElement("abc");
         System.out.println(el);
    public static void main(String[] args) {
    Boo bo = new Boo();
    System.exit(0);
    here is the result:
    ey@troy:/work/ey> java -version
    java version "1.5.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
    Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)
    ey@troy:/work/ey> java Boo
    javax.swing.text.html.HTMLDocument@b753f8
    null

    thanks hiwa, i saw you replied my thread from javaworld as well.
    and i tried your code, which utilises a JFrame to make my program a GUI program. but it turns out still not working, still return me null value.
    and i tried the following code, which will definitely return me the right thing:
    try{
              editorpane.setPage("file:///work/ams/bightml.html");
                 doc = (HTMLDocument) editorpane.getDocument();
          } catch (Exception e) {e.printStackTrace();}
         System.out.println(doc);
         Element el = null;
         el = doc.getElement("D");
            int i=0;
         while (el == null){
              try{
                   Thread.sleep(i*500);
                   el = doc.getElement("D");
                   } catch (Exception e) {e.printStackTrace();}
                    i++;       
         System.out.println(el);From the code, the "bightml.html" is an html file which has a table with 1000 lines. and i tagged some of the <td> with IDs. i found out it will take more time for the program to locate the tag towards the end of the html.
    And i also find out: in the following codes, if you make the thread sleep some time after the first line, the result of the second line will give you more:
          doc = (HTMLDocument) editorpane.getDocument();
          System.out.println(doc.getText(0, doc.getLength()));and this also make me think, the " doc = (HTMLDocument) editorpane.getDocument();" is not thread save as well.
    anyone knows something about this?
    oh, did i mention my machine? it's a P4 2.4G running under Suse 9.1 with java 1.5.0_01.
    Thanks.

  • DECODE to return a null value

    I would like to know how to return a Null value for a number based on users input.
    Somethingh like where A = DECODE(:input,'any',return is not null,:input)
    A is a number datatype.
    Thank you in advance
    -P

    Like if the input variable is 'any' then decode should return 'is not null' i.e. the query should return all the records where a particular column is not null.
    select * from EXAMPLE_TABLE where EXAMPLE_COLUMN =
    decode( :input, 'any', is not null, :input )
    Thanks for the quick response.
    -P

  • Some java code returns a null resultset from 10.2.0.1 DB, but works w/ 9.2

    I am a Java noob guys, but we have java code the calls an Oracle Function. This code is unchanged from what successfully runs against an Oracle 9.2 database returning, in this case, one row from the database. A ref cursor is used. When the same Java code calls the same ref cursor function from a 10.2.0.1 database, a null resultset occurs. The function correctly returns a single row when executed by the same database user via sql-plus. So it must be a java thing. Does the jdbc driver need to be upgraded to correctly run against a 10.2 database? And is this null resultset type of anomaly a potential result of having a wrong version of ojdbc14.jar? Nothing else has changed except pointing the code to the same package and tables in a 10.2 database.
    Thanks in advance for your comments.
    Phil McDermott

    I realize now that this is the wrong forum to post in, but I was linked here from a google search on the issue.
    I downloaded the 10.2.0.1 ojdbc14.jar from oracle, but the problem persists.
    yeesh! now what?

  • Why CreateNewFrame() returns as NULL after successful created 136 child frame window and trying to create 137th child frame window in MDI application

    I am working on MDI application which was developed in VC++ in VS 2012. When my application is launched, it will display a Tree. Under a tree there are 254 nodes. Basically
    these nodes data are read from Configuration xml file and loaded into the Tree. By double clicking on each node, first it will create object for document class ( By calling CreateNewDocument() method) after that member variables for that
    document class will be initialized and then it will create the new frame window (by calling
    CreateNewFrame(pDoc,NULL). New child frame window will show under Main window to the user.
    User able to see the data from child frame window.
    Similarly by double clicking on each node it will create another object for the same document class and new child frame window will be opened for that node. Each child frame window runs
    in different data and showed under the Main window.
    Existing requirement by double clicking on each node, node data shall show in separate child window and there is no requirement for all 254 child windows opened simultaneously.
    But current requirement is , all 254 child windows shall open simultaneously by double clicking on each node one by one.
    In debug mode I have tried double clicking on each node. I able to open up to 50 nodes. After 50th child windows are opened, I unable to access to the application
    (Unable to open further node data window since application is getting hanged).
    Each child window is having tree, multiple splitter window and some additional controls (static text, ...).
    Same I have tried in release mode, I able to open up to 136 child windows. After that the application fail to create the new frame window in VS 2012. i.e CreateNewFrame() return
    NULL after successful created 136 child frame window. Debug purpose I have added the code to retrieve last error code by calling GetLastError() method. I got the value as "0". By closing any existing child window then I able to open remaining nodes.
    At any point of time I can reach maximum of 136 child frame window that can be opened under Main window. Failing to open all 254 child frame window
    simultaneously,  currently I fail to meet the current requirement.
    current Requirement is all 254 child frame window are opened simultaneously. Please let me know what may be the reason fail to create new frame window after 136 frame window that are
    opened already. In Microsoft site, mentioned that there is no limitation for creating frame  window in MDI application. I have tried another sample MDI application having limited number of controls, in which I able to create "n"
    number of child frame windows. why not able to create more than 136 child frame window in my actual application?
    Is there any possibility by changing project settings allow me to create 254 child frame window??
    Code Snippet as below:
    CDiagBaseDoc * CDiagBaseMDocTemplate::OpenDiagView( ...)
         CDiagBaseDoc* pDoc = NULL;
        if (pDoc == NULL)
            pDoc = (CDiagBaseDoc*)CreateNewDocument();
        if ( pDoc )
           CFrameWnd* pFrame = NULL;
           if (bAlreadyOpen)
                  // If Child frame window already opened, then handling the code here.
         else
               pFrame = CreateNewFrame(pDoc, NULL);
               if (pFrame == NULL)
                  ASSERT(FALSE);
                  delete pDoc;       // explicit delete on error
                 pDoc = NULL;
              ASSERT_VALID(pFrame);
              if( pDoc != NULL ) //VS2012
                 if ( !pDoc->OnNewDocument() )
                    TRACE0("CDocument::OnNewDocument returned FALSE\n");
                    delete pDoc;       // explicit delete on error
                    pDoc = NULL;
                    pFrame->DestroyWindow();
                     pFrame = NULL;
           if (pFrame)
               InitialUpdateFrame(pFrame, pDoc);
               ShowWindow( pFrame->GetSafeHwnd(), SW_MAXIMIZE ); //when opening node for the 1st time, maximize it
    }<o:p></o:p>

    Hi MuruganK,
    Have you checked how much memory your application used? You could check it by Task Manager. Maybe your application reach Memory Limits for Windows.
    https://msdn.microsoft.com/en-us/library/windows/desktop/aa366778%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
    Is it possible that there are some memory leaks in your application? It would better if you have made a simple sample to reproduce and narrow down this issue.
    Best regards,
    Shu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • AJAX - How do we check if the response text returns a null value

    Hello,
    Could someone please help me with this issue?
    I am trying to disable a select box based on my responseText value.
    I need to check if my responseText is a null and disable my select if it is a null.
    Here is my code:
    if (xmlHttp.readyState==4)
              if(xmlHttp.status==200)     
              var getVal = xmlHttp.responseText;
              alert(getVal); //MY ALERT SHOWS A NULL     
              if(getVal == null) //but my null comparison fails
              document.all[ajaxBean.ajaxId2].disabled = true;               var valarray=getVal.split(",");
    else
                   for (var i=0; i < valarray.length;++i)
         var valarrayinner = valarray.split("|");               addOption(document.getElementById("secondBox"), valarrayinner[1], valarrayinner[0]);
    could someone tell me if its the right way to check for null value in responseText? or an alternative way to do the same
    Your help is appreciated!
    Thanks
    Priya

    Hello,
    Thank you for your promt response...I tried doing them as well. but nothing seems to work.
    It returns a length value of 1. It appears to be strange. I even tried to catch the null and set some junk text. When i try to check for the returned text again it returns a false.
    I dont know if this is the way responseText works. I tried setting a form variable but it doesnt do that too. Is there a specific way to check for the values in returned responseText?
    Thanks
    Priya

  • EJB P.R.O.narrow method returns a null reference though object is valid

    All,
    I'm trying to deploy a simple stateless session bean to SUN server. The client code keeps failing because PortableRemoteObject.narrow returns null, even though the reference is located in JNDI tree.
    I read somewhere that turning on RMI stub generation might help, but it didn't do it in my case.
    This is a local server (SUN App Server, as downloaded from java.sun site).
    JNDI tree contains the following entries:
    UserTransaction
    test.Dummy
    jdbc
    ejb
    test.Server
    Neither test.Dummy nor test.Server (the beans I deployed) want to load.
    Any help would be appreciated.
    Thanks!
    Mark

    Never mind. For some reason changing initial context creation from:
    Properties p=new Properties();
    p.put(Context.INITIAL_CONTEXT_FACTORY,"whatever factory");
    p.put(Context.PROVIDER_URL,"whatever url");
    InitialContext context=new InitialContext(p);
    to:
    InitialContext context=new InitialContext();
    fixed the problem. Which is strange, since JNDI tree was listing both objects, and they both could be resolved when using the first code snippet. Only the actual object creation was failing.
    If anyone knows why this is so, please explain.
    Cheers,
    Mark

  • Text Content of Document is returned as null

    Hi All,
    I am trying to use the JTidy parser to parse an input HTML string. But when I am trying to type the content of the Document, it is returning null. I am new to DOM parsing, so is there anything that I am doing wrong? Any pointer will be very helpful.
    Here is my code:
    public static void main(String[] args) {
              String rawHtml = "<p class=\"MsoNormal\" style=\"text-autospace:none;\"><font color=\"black\"><span style=\"color:black;\">???</span></font><b><font color=\"#7f0055\"><span style=\"color:#7f0055;font-weight:bold;\">private</span></font></b><font color=\"black\"><span style=\"color:black;\"> String parseDescription</span></font><font>";
              Tidy tidy = new Tidy();     //obtain a new Tidy parser instance
              tidy.setPrintBodyOnly(true);
              ByteArrayOutputStream baos = new ByteArrayOutputStream();
              PrintStream ps = new PrintStream(baos);
              byte[] bytes = rawHtml.getBytes();
              ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
              //returns HTML Document
              Document htmlDoc = tidy.parseDOM(bais, ps);
              String docText = htmlDoc.getTextContent();
              try {
                   System.out.print(baos.toString("UTF8"));
                   System.out.println();
                   try {
                        System.out.print(docText);
                   } catch (DOMException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
              } catch (UnsupportedEncodingException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    Here is the output:
    line 1 column 302 - Warning: missing </font>
    line 1 column 302 - Warning: trimming empty <font>
    line 1 column 303 - Warning: inserting missing 'title' element
    InputStream: Document content looks like HTML 4.01 Transitional
    3 warnings, no errors were found!
    You are recommended to use CSS to specify the font and
    properties such as its size and color. This will reduce
    the size of HTML files and make them easier to maintain
    compared with using <FONT> elements.
    <p class="MsoNormal" style="text-autospace:none;"><font color=
    "black"><span style="color:black;">???</span></font><b><font color=
    "#7F0055"><span style=
    "color:#7f0055;font-weight:bold;">private</span></font></b><font
    color="black"><span style="color:black;">String
    parseDescription</span></font></p>
    null

    getTextContent() is a dom level 3 recommendation, it may not be supported by every dom parser - and it is not by JTidy (yet). One way to do it is to write your own method to get the same. But you sure can chain the now well-formed output of JTidy to a full-fledged dom parser, say, such as oracle.xml.parser.v2.DomParser. The detail can be done like this.
    [0] Add oracle xdk's xmlparserv2.jar to the classpath.
    [1] Add the import to the program for convenience.
    import import oracle.xml.parser.v2.*;[2] Then the chaining to get the getTextContent() available.
    DOMParser parser=new DOMParser();
    try {
        parser.parse(new ByteArrayInputStream(baos.toByteArray()));
        Document xdoc=parser.getDocument();
        System.out.println(xdoc.getDocumentElement().getTextContent());
    } catch (Exception e) {
        e.printStackTrace();
    }[3] With xdoc, you can do more things to your liking as it is now a full-fledged dom tree.

  • CFQUERY results return a null value for a varchar(MAX) field in SQL

    I'm using ColdFusion 9 and SQL Server 2008.
    One the fields in a table is defined as a varchar(MAX). Other fields in the table are ints, varchar(8000) varchar(256), etc.
    When doing a query for records in the table and displaying the results using the cfdump tag, I see values in all fields in a row EXCEPT for the data in the varchar(MAX) field. The varchar(MAX) field shows a null value.  Yet, I can verify through the SQL interface or through Microsoft Access querying the database that the varchar(MAX) fields have data.
    How can I retrieve data from this field type?
    Thanks in advance for your help.

    I'm wrong. I AM getting query results, but not what I expect. I had maxrows set as a variable in my original query, so when it returned 5 rows, the first row always showed as [empty string]. I've tried numerous queries now (where UID >100, where UID >200, where UID> 300, etc.) When I use <CFDUMP> to return the query, the first records always shows empty strings.
    Here's an example of some records retrieved from this simple query:
    <CFQUERY NAME="BuildBack" DATASOURCE="STORBASE">
    SELECT *
    FROM CallUnit
    WHERE CCU_ID>172
    </CFQUERY>
    Any ideas?
    173
    P
    tuse
    322
    340
    174
    E
    323
    340
    175
    P
    tuses.
    324
    341
    176
    E
    325
    341
    177
    P
    tuses.SCStat_ID) á àh\  (9~ Hbb l_Products ON SupCall_MetaData.Product = SupCall_Products.SCPL_ID) LEFT JOIN SupCall_Priorities ON SupCall_MetaData.Priority = SupC
    326
    342
    178
    P
    tuses.SCStat_ID) á àh\  (9~ Hbb l_Products ON SupCall_MetaData.Product = SupCall_Products.SCPL_ID) LEFT JOIN SupCall_Priorities ON SupCall_MetaData.Priority = SupCa
    327
    343
    179
    E
    328
    344
    180
    E
    329
    345
    181
    P
    tuses.SCStat_ID) á àh\  (9~ Hbb l_Products ON SupCall_MetaData.Product = SupCall_Products.SCPL_ID) LEFT JOIN SupCall_Priorities ON SupCall_MetaData.Priority = SupCall_
    330
    346
    182
    P
    331
    347
    183
    E
    332
    348
    184
    P
    333
    349
    185
    P
    tuses.SCStat_ID)
    334
    350
    186
    P
    tuses.SCStat_ID) á àh\  (9~ Hbb l_Products ON SupCall_MetaData.Product = SupCall_Products.SCPL_ID) LEFT JOIN SupCall_Priorities ON SupCall_MetaData.Priority = SupCall_Prior
    335
    352
    187
    E
    336
    353
    188
    P
    337
    354
    189
    P
    tuses.SCStat_ID) á àh\  (9~ Hbb l_Products ON SupCall_MetaData.Product = SupCall_Products.SCPL_ID) LEFT JOIN SupCall_Priorities ON SupCall_MetaData.Priority = SupCall_Priorities.SCPriority_ID) LEFT JOIN SupCall_CommTypes ON SupCall_MetaData.CommunicationType = SupCall_CommTypes.SCComm_ID) INNER JOIN SupCall_CallStages ON SupCall_
    338
    355
    190
    P
    tuses.SCStat_ID) á àh\  (9~ Hbb l_Products ON SupCall_MetaData.Product = SupCall_Products.SCPL_ID) LEFT JOIN SupCall_Priorities ON SupCall_MetaData.Priority = SupCall_Priorities.SCPriority_ID) LEFT JOIN SupCall_CommTypes ON SupCall_MetaData.CommunicationType = SupCall_CommTypes.SCComm_ID) INNER JOIN SupCall_CallStages ON SupCall_M
    339
    356
    191
    P
    tuses.SCStat_ID) á àh\  (9~ Hbb l_Products ON SupCall_MetaData.Product = SupCall_Products.SCPL_ID) LEFT JOIN SupCall_Priorities ON SupCall_
    340
    357
    192
    P
    tuses.SCStat_ID) á àh\  (9~ Hbb l_Products ON SupCall_MetaData.Product = SupCall_Products.SCPL_ID) LEFT JOIN SupCall_Priorities ON SupCall_MetaData.Priority = SupCall_Priorities.SCPriority_ID) LEFT JOIN SupCall_CommTypes ON SupCall_MetaData.CommunicationType = SupCall_CommTypes.SCComm_ID) INNER JOIN SupCall_CallSta
    341
    358
    193
    P
    tuses.SCStat_ID) á àh\

  • One of the Column returned as NULL from SQL Server 2008

    Hi,
    I have written a stored procedure in SQL server 2008. The procedure reads data into a temporary table @MeterWiseConsumptionBetwDates as shown
    SELECT @sqlstatement =     'SELECT '''@MeterName''', CAST ( MAX('@Meterfield') AS FLOAT )-CAST ( MIN('@Meterfield') AS FLOAT )
                                  FROM KWH
                                  WHERE     KWH.timestamp BETWEEN @StDate AND @EndDate'
    INSERT INTO @MeterWiseConsumptionBetwDates(MeterName,Consumption)
    EXEC sp_executesql @sqlstatement, N'@StDate datetime, @EndDate datetime', @StDate, @EndDate
    Now when I execute the stored procedure in SQL Server Management Studio it returns all the columns from the table @MeterWiseConsumptionBetwDates, but when I execute the procedure in MII it returns the values in the Consumption column as null. The MeterName column is returned correctly in both the cases.
    Please help.
    Thanks

    Glad to hear that it is working.  You should be able to use
    execute <proc name> '[SD]'
    [SD] and [ED]
    are the query date tokens, so whatever you have assigned on the Date Range tab will be passed to the query.
    Jamie
    Edited by: Jamie Cawley on May 9, 2011 9:40 AM

  • Delete after trigger returns a NULL value for the old primary key??

    I am creat an After trigger that I was using to delete a row from another table. However, the OLD value returned for my primary key is a NULL value. I have an UPDATE and an INSERT portion to this same trigger that work fine with just grabbing NEW values, but this OLD value cannot be grabbed for some reason, although it seems to work on other tables when the owner is me, the problem table is not owned by me though. Has anyone run into this before? Is there a view that I need access to from this table or perhaps a setting I need to turn on? I am at a loss. Thanks.

    Cannot reproduce with this modified trigger code … right now I believe the problem is in this part:
    BEGIN
      col_ret := vpack.vOPCollectIO(tpid, User, 'SCOTT.OINFTABL', dmltype, vdata);
    EXCEPTION
      WHEN lost_connection OR lost_connection2 THEN
        col_ret := vpack.vOPCollectIO(tpid, User, 'SCOTT.OINFTABL', dmltype, vdata);
    END;
    In schema CORE:
    SQL> create table oinftabl
      2  ( akey     number(9) primary key
      3   ,astring  varchar2(10)
      4   ,astring2 varchar2(10)
      5  );
    Table created.
    SQL>
    SQL> grant all on oinftabl to flip;
    In schema FLIP (which has “CREATE ANY TRIGGER”):
    flip@FLOP> CREATE OR REPLACE TYPE VDAT AS VARRAY(100000) OF VARCHAR2(50);
    2     /
    create or replace trigger sbt3_system_oinftabl_x
    after insert or update or delete on core.oinftabl
    REFERENCING NEW as n OLD as o
    FOR EACH ROW
    DECLARE
      col_ret INT;
      dmltype CHAR(1);
      tpid VARCHAR2(30);
      vdata VDAT; --varray datatype I created;
      lost_connection EXCEPTION;
      lost_connection2 EXCEPTION;
      already_there EXCEPTION;
      PRAGMA EXCEPTION_INIT(lost_connection, -28576);
      PRAGMA EXCEPTION_INIT(lost_connection2, -28579);
      PRAGMA EXCEPTION_INIT(already_there,-1);
    BEGIN
      tpid := SYS.DBMS_TRANSACTION.LOCAL_TRANSACTION_ID();
      IF INSERTING THEN dmltype := 'I';
      ELSIF UPDATING THEN dmltype := 'U';
      ELSE dmltype := 'D';
      END IF;
      IF INSERTING OR UPDATING THEN
        dbms_output.put_line('new akey='||nvl(to_char(:n.akey),'null'));
        dbms_output.put_line('new astring='||:n.astring);
        vdata := VDAT(
        to_char(:n.AKEY),
        :n.ASTRING,
        :n.ASTRING2,
        NULL);
      ELSIF DELETING THEN
        dbms_output.put_line('old akey='||nvl(to_char(:o.akey),'null'));
        vdata := VDAT(
          to_char(:o.AKEY),
          NULL);
      END IF;
      for i in 1..vdata.count
      loop
        dbms_output.put_line('vdata('||i||')='||nvl(vdata(i),'null'));
      end loop;
    --BEGIN
    --  col_ret := vpack.vOPCollectIO(tpid, User, 'SCOTT.OINFTABL', dmltype, vdata);
    --EXCEPTION
    --  WHEN lost_connection OR lost_connection2 THEN
    --    col_ret := vpack.vOPCollectIO(tpid, User, 'SCOTT.OINFTABL', dmltype, vdata);
    --END;
    END;
    Trigger created.
    flip@FLOP> show errors
    No errors.
    flip@FLOP> insert into core.oinftabl values (1,'abc',null);
    new akey=1
    new astring=abc
    vdata(1)=1
    vdata(2)=abc
    vdata(3)=null
    vdata(4)=null
    1 row created.
    flip@FLOP>  update core.oinftabl set akey=2, astring='cba' where akey=1;
    new akey=2
    new astring=cba
    vdata(1)=2
    vdata(2)=cba
    vdata(3)=null
    vdata(4)=null
    1 row updated.
    flip@FLOP> delete from core.oinftabl where akey=2;
    old akey=2
    vdata(1)=2
    vdata(2)=null
    1 row deleted.
    So the trigger has the OLD AKEY value when DELETING and it does successfully store it in the VARRAY.
    Hence the problem is in that pl/sql block at the end.
    What are you doing in there?

  • Webservicecontext always being returned as null.. help needed

    Hi,
    I am trying to get the WebServiceContext below in the webservice below (JAX-WS), but i think the resource injection isnt working.
    I am using oracle enterprise pack for eclipse, weblogic 11g server.
    Need help with what i am doing wrong. Do i need to configure something else
    Thank you
    Code always prints "error1" in the console (so webservice context always null).
    package test;
    import javax.annotation.Resource;
    import javax.jws.WebService;
    import javax.xml.ws.WebServiceContext;
    @WebService
    public class Hello
    @Resource private WebServiceContext wsContext;
    public int getCounter()
    if(wsContext == null)
    System.out.println("Error");
    else
    System.out.println("Success");
    return 1;
    }

    Hello,
    Unfortunately, I wasn't able to reproduce your problem. However, I'll talk about my setup:
    1. Created a Web Service Project: File->New->Web Service Project
    2. Created a 11gR1(10.3.5) Runtime
    3. Created the WebService exactly as above.
    4. Right Clicked the WebService and Selected RunAs->Run On Server
    Once the WebLogic Test Client is Launched Selected the getCounter method.
    Is your execution similar? Any additional info ie pertinent logs etc may help in getting things going.
    You shouldn't need any addition setup to access the WebServiceContext and have it correctly injected other than being invoked by the client side correctly.
    Thanks, Chris

  • X:parse returning [#document: null]

    the following code is outputting [#document: null]
         <c:import var="sampleXML" url="../common/sample.xml" />
         <x:parse xml="${sampleXML}" var="parsedXML" />
    yet, if it c:out the variable sampleXML, it spits out the xml I have in the sample.xml file. any thoughts why this might be happening?
    thanks.

    ya, it's valid, and im just using <c:out value="${parsedXML}" />
    it's weird though. on my local i copy and pasted whats done here:
    http://www.java2s.com/Code/Java/JSTL/JSTLparseXMLdocument.htm
    and it still doesn't work, which would lead me to believe that it must be some config on my server? any thoughts?

  • Problem with select query when it returns a NULL value

    Hi all,
    I have a d/b table called QMEL and i picked VBELN from that table. Now if the VBELN value in that table is NULL i have to wtite an if condition.
    Can i say it like this
    IF VBELN = ' '.
    write: enter into the if condition.
    ELSE.
    write: enter into the else condition.
    ENDIF.
    or should is say some thing else? my objective is ..i should execute some statments if VBELN has no value and i should execute some othet statements if VBELN has a value.
    Kindly help..as even though i put above condition..it deosnot work
    Regards,
    Jessica Sam

    hi
    check this
    if u r using selection optins  use this code
    IF NOT s_material[] IS INITIAL.
        SELECT material                             
        FROM marc
               INTO  l_material
             WHERE material IN s_material.                     
        ENDSELECT.
        IF sy-subrc NE 0 AND l_material IS INITIAL.
          MESSAGE e302 WITH space.
        ENDIF.
      ENDIF.
    if u r using parameter then
    IF NOT P_material IS INITIAL.
        SELECT material                             
        FROM marc
               INTO  l_material
             WHERE material EQ P_material.                     
        ENDSELECT.
        IF sy-subrc NE 0 AND l_material IS INITIAL.
          MESSAGE e302 WITH space.
        ENDIF.
      ENDIF.
    ~linganna
    Edited by: katigiri linganna on Apr 8, 2009 5:58 AM

  • How do I handle NULL returns from prepared statement?

    Thanks in advance to all those who respond. As a beginner with Java/JSP/JDBC, I need all the help I can get!
    Here's the problem...
    I'm using a prepared statement in JSP to query a MySQL database.
    If there is a value to return, everything works properly.
    If the query returns a NULL (empty set) value, I get the following error:
    javax.servlet.ServletException: Before start of result set
    Here's the code (no negative comments please...I know I'm violating some conventions! I'll restructure it later. Right now I just need help with handling the NULL case):
    <%
    Driver DriverAppt = (Driver)Class.forName(MM_test_DRIVER).newInstance();
    Connection ConnAppt = DriverManager.getConnection(MM_test_STRING,MM_test_USERNAME,MM_test_PASSWORD);PreparedStatement StatementAppt = ConnAppt.prepareStatement("SELECT lastname FROM appts_pid1 WHERE user_id = " + Recordset1__MMColParam + " AND year = " + yy + " AND month = '" + months[mm] + "' AND date = " + dates[dd] + " AND appttime = '16:15:00'");
    ResultSet Appt = StatementAppt.executeQuery();
    boolean Appt_isEmpty = !Appt.first();
    boolean Appt_hasData = !Appt_isEmpty;
    Object Appt_data;
    int Appt_numRows = 0;
    %>
    Thanks for the help!!!

    I think I have a better handle on what's occurring here. To cut to the heart of the problem, I'm going to give a very simple example that illustrates what type of error handling I need.
    HERE'S THE EXAMPLE:
    Let's say that I have a database of users. There are only two columns in the database: user_id and lastname. There are only 2 users, user_id "1" has lastname "Jones" and user_id "2" has lastname "Smith".
    I built a very simple web interface that let's a user enter a number to see if there's a lastname associated with that record. The user has no way of knowing if the user_id exists or not, so they may or may not enter a valid number.
    If the user enters a valid user_id (in this case "1" or "2"), then the correct lastname is displayed. If the user enters an invalid user_id (in this case, anything other than "1" or "2") then I get the same "Before start of result set" error that I'm getting in my real application.
    So, the question is: WHERE IN THIS CODE WOULD I HANDLE THE RETURN OF AN EMPTY SET?
    The goal here is to have the sentence say "The user's lastname is .", basically returning null. If there has to be a value, then have the last sentence say "The user's lastname is unknown."
    If you can solve this simple example, you'll have also solved the problem with my main application!!!! :-)
    Here's the example code:
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <%@ include file="Connections/example.jsp" %>
    <%
    String Recordset1__MMColParam = "1";
    if (request.getParameter("user_id") !=null) {Recordset1__MMColParam = (String)request.getParameter("user_id");}
    %>
    <%
    Driver DriverRecordset1 = (Driver)Class.forName(MM_example_DRIVER).newInstance();
    Connection ConnRecordset1 = DriverManager.getConnection(MM_example_STRING,MM_example_USERNAME,MM_example_PASSWORD);
    PreparedStatement StatementRecordset1 = ConnRecordset1.prepareStatement("SELECT * FROM test_table WHERE user_id = " + Recordset1__MMColParam + "");
    ResultSet Recordset1 = StatementRecordset1.executeQuery();
    boolean Recordset1_isEmpty = !Recordset1.next();
    boolean Recordset1_hasData = !Recordset1_isEmpty;
    Object Recordset1_data;
    int Recordset1_numRows = 0;
    %>
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body>
    <form action="test.jsp" method="get" enctype="application/x-www-form-urlencoded" name="form1" target="_self">
    <p> Submit a user id and a lastname will be displayed.</p>
    <p>
    <input type="text" name="user_id">
    <input type="submit" name="" value="Submit">
    </p>
    </form>
    <p>The User's lastname is <%=(((Recordset1_data = Recordset1.getObject("lastname"))==null || Recordset1.wasNull())?"":Recordset1_data)%>.</p>
    </body>
    </html>
    <%
    Recordset1.close();
    StatementRecordset1.close();
    ConnRecordset1.close();
    %>
    A huge "THANK YOU!!!!" to all those who've helped me here!!!

Maybe you are looking for

  • WRT54G2 - The Strangest Problem I have ever encountered

    Ok, this will take a bit of explaining but I hope someone will be able to help me out. I've set up lots of networks but never run into anything like this before. I may be including more info than necessary, if so sorry but I am not sure if it is impo

  • Leopard vs Leopard Server

    I'm interested in learning Mac Server and Mac development. I have a G5 iMac with OS 10.5.8 installed, but I didn't get the OS installation disk with the computer (used off of eBay). Therefore, I need the disk to install the developer tools (Xcode, et

  • Photoshop Elements 10.exe

    I just installed PSE10 and wwhen I tried to update it the updater told me to close Photoshop Elements 10.exe.  I have not the slightest idea what they are asking (or telling) me to do.  How can a program as robust as PSE10 have such a lousy install/u

  • Macbook pro, windows 7 upgrade version, help needed

    hello, I'm trying to install windows 7 parallel onto my newly purchaced macbook pro (my 1st Apple). Problem is that I only have original full xp and original win 7 upgrade version. With no os on boot camp partition upgrading does not work "invalid pr

  • Get rid of update metadata arrow

    How did I get rid of the arrow telling to me update metadata. I have write to xmp sidecar turned off, and I don't want to create sidecars, but LR is telling me the files need to be updated. All the metadata is in the db already. I don't need or want