Problem: "???" in place of string result

Hi!
I would like to use Oracle STRUCTS but after .getObject the .getAttributes method gives me only three question marks: "???" in place of the real varchar/String.
BEA WebLogic's package examples.jdbc.oracle.extensions contains a simple example to demonstrate how to use Oracle STRUCTS. Everithing works well in this example but in place of string results there are triple question marks: "???".
Here is the OUTPUT of the STRUCTs client sample execution:
G:\bea\weblogic81\samples\server\examples\src\extensions> ant run.structs
Buildfile: build.xml
run.structs:
[java] Getting employees from database...
[java] Employee#: 100
[java] Name: Alfred Chuang
[java] Address: ???
[java] ???, ???
[java] Employee#: 101
[java] Name: Joe Walker
[java] Address: ???
[java] ???, ???
[java] Employee#: 102
[java] Name: Tina Potter
[java] Address: ???
[java] ???, ???
[java] Employee#: 103
[java] Name: Fred Couples
[java] Address: ???
[java] ???, ???
[java] Inserting employee to database...
[java] Getting employees from database...
[java] Employee#: 100
[java] Name: Alfred Chuang
[java] Address: ???
[java] ???, ???
[java] Employee#: 101
[java] Name: Joe Walker
[java] Address: ???
[java] ???, ???
[java] Employee#: 102
[java] Name: Tina Potter
[java] Address: ???
[java] ???, ???
[java] Employee#: 103
[java] Name: Fred Couples
[java] Address: ???
[java] ???, ???
[java] Employee#: 105
[java] Name: David David
[java] Address: ???
[java] ???, ???
BUILD SUCCESSFUL
Can anybody help me?
Thank you very much.

Sorry i made a mistake in my query
SELECT SUPPLIER_ID || '-'<br>
FROM SUPPLIER<br>
WHERE SUPPLIER_CODE IN (SELECT SUPPLIER_CODE<br>
FROM SUPPLIER_ACCOUNT<br>
WHERE SUPPLIER_CODE IN ('5771','5790','6436','8389','416')<br>
AND COUNTRY_ID = 205 <br>
AND ACCOUNT_NUMBER='891274')<br>
AND COUNTRY_ID = 205; <br>
Usually I get the results as <br>
5678-<br>
5789-<br>
till dec 2006 But suddenly from Jan 2007 the order of the result is changed to <br>
5789-<br>
5678-.<br>
There is also no change in data.<br>
Can plz help me why the order changes? <br>
Thanks for advace help

Similar Messages

  • Problem with conversion of strings like THISStr - this_str capitalization

    Problem with conversion of strings like. THISStr -> this_str
    Can anybody pass on the reverse code. I have one, but its faulty.
    public static String convertFromPolycaps(String str) {
              Pattern pattern = Pattern.compile("\\p{Upper}+");
              Matcher matcher = pattern.matcher(str);
              StringBuffer result = new StringBuffer();
              // We do manual replacement so we can change case
              boolean notFirst = false;
              int grpP = 0, grpA = 0;
              String last = "";
              String now = "";
              while (matcher.find()) {
                   grpA = matcher.end();
                   if (notFirst) {
                        now = matcher.group().substring(0).toLowerCase();
                        if (grpA - grpP > 1) {
                             matcher.appendReplacement(result, now);
                             result =
                                  new StringBuffer(
                                       result.substring(0, (result.length() - 1))
                                            + "_"
                                            + result.substring(result.length() - 1));
                        } else {
                             matcher.appendReplacement(result, "_" + now);
                   } else {
                        matcher.appendReplacement(result, matcher.group().substring(0).toLowerCase());
                        notFirst = true;
                   grpP = matcher.end();
                   ////index++;
                   last = now;
              matcher.appendTail(result);
              System.err.println(str + " : " + result.toString());
              return result.toString();
         }succesfully converts :
    AccountNmnc : account_nmnc
    CustNameJ : cust_name_j
    Resume : resume
    BeneBrCode : bene_br_code
    ApprovedPerson : approved_person
    but fails for:
    GLCode : glcode
    VISHALErrCode : vishalerr_code
    GHASUNNAcNo : ghasunnac_no

    Can anybody pass on the reverse code. I have one, but
    its faulty.Post it, I'm sure we can fix it...

  • Problem in Coverting XML String into Document

    Hi,
    I am getting some problem while parsing a String XML in to Document object.
    CODE :
    public static Document converDocument(String xml){
    DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = null;
    try {
    builder = factory.newDocumentBuilder();
    } catch (ParserConfigurationException e) {
    e.printStackTrace();
    Document document = null;
    try {
    document = builder.parse(new InputSource(new StringReader(xml)));
    System.out.println("Document is after parsing ====>>>"+document);
    } catch (SAXException e1) {
    // TODO Auto-generated catch block
    e1.printStackTrace();
    } catch (IOException e1) {
    e1.printStackTrace();
    return document;
    The xml which I am passing is :
    <?xml version="1.0" encoding="UTF-8"?>
    <note>
    <to>Tove</to>
    <from>Jani</from>
    <heading>Reminder</heading>
    <body>abc</body>
    </note>
    It is giving the document as null;
    Can anybody please help?
    Regards,
    sheeetal.

    >
    Vikas Sridharan wrote:

    >       CALL TRANSFORMATION ('ID')
    >       SOURCE XML = lv_output_str "<============ ERRONEOUS = HERE
    >       RESULT ref = <fst_dyn_table> .
    >
    Remove the "=" sign, this code will work :
          CALL TRANSFORMATION ('ID')
          SOURCE XML lv_output_str
          RESULT ref = <fst_dyn_table> .

  • Facing Problem in parsing a string to date

    Hi,
    I was trying to change a string into date with date format ("EEEE,MMM,d,h:mm") but I always get the year as 1970.
    here is my code
    String strDate="Saturday,Jan 19 7:31";
    String dateFormat3="EEEE,MMM,d,h:mm";
         try {
         DateFormat myDateFormat = new SimpleDateFormat(dateFormat3);
         result1=myDateFormat.parse(strDate);
    catch(ParseException pe) {
                System.out.println("ERROR: could not parse date in string \"" +
            }any solution for it.

    This is my actual code
    import java.text.DateFormat;
    import java.text.ParseException;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import java.util.Locale;
    public class TestingDate {
          * @param args
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              String dateFormat="EEEE, MMM d h:mm a";
              Date test=new Date(2007,0,19, 19, 31);
              System.out.println(" original date is "+test);
              String stringResult=DateToString(test,dateFormat);
              System.out.println("Date to string is "+stringResult);
              Date dateResult=stringToDate(stringResult,dateFormat);
              System.out.println(" String to date is "+dateResult);
              String stringResult2=DateToString(dateResult,dateFormat);
              System.out.println(" Date to string  is "+stringResult2);
    public static String DateToString(Date test, String dateFormat) {
             String result = null;
             try {
                  DateFormat myDateFormat = new SimpleDateFormat(dateFormat);
                     result = myDateFormat.format(test);
                     //System.out.println(" reslut date is "+result);
              } catch (Exception e) {
                   System.out.println(" Exception is "+e);
              return result;
    public static Date stringToDate(String strDate,String dateFormat1){
         Date result1=null;
         try {
              DateFormat myDateFormat = new SimpleDateFormat(dateFormat1);
              result1=myDateFormat.parse(strDate);
         catch(Exception e){
              System.out.println(" exception is "+e);
         return result1;
    }I am facing problem in getting the actual date. Please suggest the solution.

  • Problem in copy a string to a message parameter

    Hi all,
    I have a problem in copy a static string into a message as its parameter.
    I use the default function in creating the copy rules...
    <copy xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
         <from expression="string(WS1-PSC4-KUY2)">
         </from>
         <to variable="geo_in" part="parameters" query="/ns0:GetLocationByIP/ns0:LicenseKey"/>
    </copy>
    as the string is a liscence key to use this web service.
    However, the string is not copied to anywhere of the outgoing message.
    If I use the default type 'literal' and copy to the variable parameter,
    it looks like this...
    <copy xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
         <from>
                                  WS1-PSC4-KUY2
                        </from>
         <to variable="geo_in" part="parameters" query="/ns0:GetLocationByIP/ns0:LicenseKey"/>
    </copy>
    it gives me an error...
    [bpelc] BPEL source validation failed, the errors are:
    [bpelc]
    [bpelc] [Error]: Element 'from' must have no character [children], because the types content type is element-only.
    [bpelc] [Description]: in line 43 of "C:\eclipse\workspace\ip_locate\ip_locate.bpel", Element 'from' must have no character [children], because the types content type is element-only..
    [bpelc] [Potential fix]: .
    [bpelc] .
    Could anybody give me a hint on what's going wrong?

    This is my actual code
    import java.text.DateFormat;
    import java.text.ParseException;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import java.util.Locale;
    public class TestingDate {
          * @param args
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              String dateFormat="EEEE, MMM d h:mm a";
              Date test=new Date(2007,0,19, 19, 31);
              System.out.println(" original date is "+test);
              String stringResult=DateToString(test,dateFormat);
              System.out.println("Date to string is "+stringResult);
              Date dateResult=stringToDate(stringResult,dateFormat);
              System.out.println(" String to date is "+dateResult);
              String stringResult2=DateToString(dateResult,dateFormat);
              System.out.println(" Date to string  is "+stringResult2);
    public static String DateToString(Date test, String dateFormat) {
             String result = null;
             try {
                  DateFormat myDateFormat = new SimpleDateFormat(dateFormat);
                     result = myDateFormat.format(test);
                     //System.out.println(" reslut date is "+result);
              } catch (Exception e) {
                   System.out.println(" Exception is "+e);
              return result;
    public static Date stringToDate(String strDate,String dateFormat1){
         Date result1=null;
         try {
              DateFormat myDateFormat = new SimpleDateFormat(dateFormat1);
              result1=myDateFormat.parse(strDate);
         catch(Exception e){
              System.out.println(" exception is "+e);
         return result1;
    }I am facing problem in getting the actual date. Please suggest the solution.

  • Decimal places on the result row is incorrect

    Dear Expert,
    I met a problem that decimal places on the result row is incorrect.Anyone can help me?
    On key figure balance,we do the currencies translation,also we set the key figure should have two decimal places.
    We set a fomular to calculate the total result of Account A,B,C.
    (Total result = account Aaccount Baccount C).
    If we manually sum up the balance of account A,B,C displayed on analyzer,which are rounded to 2 decimal places,the result should be 601.25(100.61200.38300.26),but the actual total result executed by query is 601.24.
    In fact we need the result 601.25 instead of 201.24.
    I take the example as following:
    Account      Balance
    Account A  100.61
    Account B  200.38
    Account C  300.26
    Total result 601.24
    Thank you in advance.
    Best Regards,
    Maggie
    Edited by: Maggie Ma on Sep 25, 2008 9:17 AM

    your "problem" is, that BEx is not totalling the "displayed" values but the real values
    try a summation on the following in Excel:
    100,605
    200,375
    300,26
    then format the cells to show 2 decimal places only
    do you see the result changing?

  • String result of component method has newline

    I really have a strange problem when returning a String as a
    result from a component's method and trying to output this. I
    always get an extra newline. Stripping does not help. Here is the
    minimal code to reproduce this behaviour:
    -Component Definintion:
    <cfcomponent name="strtest" >
    <cffunction name="test" returntype="String" >
    <cfreturn "be">
    </cffunction>
    </cfcomponent>
    -CFM
    <cfset com=CreateObject("component","strtest")>
    <cfoutput>
    This should #com.test()# a single line
    </cfoutput>
    When I execute the script via my browser (IE or FF) and I
    have a look at the source code then there will be a line break even
    there shouldn't.
    This only occurs when calling a method of a component...
    calling a simple function or even temporarily store the result in a
    variable does not bring up this behaviour.

    I recommend you read through the other posts on these forums
    before posting
    your own questions, in case your issue is well-trod ground.
    I answered someone else having this exact same issue only
    yesterday: you
    need to add output="false" into you <cffunction>
    declaration.
    Adam

  • How to use Browser Control for displaying String Results..

    Hi All,
    I m new to java. I am developing desktop application for java getting problem at some stage , i hav some string Results which i got some how by searching in some text files. Now i want to show / format this string in Browser control.
    Please help me in this...
    Thanks in Advance
    Nicky

    i m sonu could u piz tell me how to read integer from keyboard

  • Smartform Problem in Displaying a string data

    Hi Friends,
                     I am facing a problem while displaying a string data in smartform. Actually it is a one of the field's data in an internal table. It is a STRING field type of length 0. While populating in an internal table it is having a all the data(Around 700 char data). But while displaying in a smartform surprizingly only few characters(Around 225 char data). How can i overcome this problem?
    Regards,
    Sekhar.J

    Hi
    try this and see
    Declare some Variables of 72 char each and split that long string data of internal table text field into them and display these variables strings one below other in smartform
    var1 = itab-text+0(72)
    var2 = itab-text+72(72)
    var3 = itab-text+144(72)
    like that
    and display one below other in smartform.
    &VAR1&
    &VAR2&
    &VAR3&
    Reward points for useful Answers
    Regards
    Anji

  • Problem in displaying long string in JTextField

    Hi All,
    I got problem in displaying long String in JtextField. It does center alignment & I can see middle part of string where length of JTextfield is 6 char. How can I do left alignement so that I can see starting 6 character?
    --Harish                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    you may try this:
    yourTextFieldName.setHorizontalAlignment(JTextField.LEFT);
    or
    yourTextFieldName.setHorizontalAlignment(JTextField.LEADING);
    hth.

  • Problems assigning places in photo 11

    I am having problems adding place location to photos. Using iphoto11. I click on "assign a place" and the google map comes up but no way to create or select a new place for this photo. I could do it fine in iphoto 09.

    sorry. i finally figured it out.

  • Place a String in a JTextArea

    Hello NG !!
    I want to place a string in the center of my textarea, how can I do it ?
    How can I change the text size and style ?
    Thank you

    afaik u cant place the text in the center of a textarea. u must use a JEditorPane to set text alignment for each line / multiple lines / all lines.
    change the text size etc u can do via textare.setFont (Font)
    see the docs for detailed informations about "Font".
    for example:
    textarea.setFont(new java.awt.Font("DialogInput", Font.BOLD, 18));
    would set the font of textarea to "DialogInput" which is bold and has a size of 18.
    elmar weber

  • I don't know who will see this, but i'm writing this here, because i cound't find any problem report places anywhere.

    I don't know who will see this, but i'm writing this here, because i cound't find any problem report places anywhere. Your site are too confusing. I just wanna say that css3 isn't working properly in mozilla. It lags. Other transitions doesn't work at all. Check this site http://css3exp.com/moon/ on your and on chrome browser to see differences. Could you write me a reply to this... question...? [email protected]

    It appears you have accidentally subscribed to a community and were getting e-mails for all related posts. I have removed the subscriptions, so you should be getting no more e-mails. Thank you for bringing this to our attention. I'm sorry you recieved so many e-mails you did not want.

  • Refreshment problem when place image.

    Hi Experts,
    When I insert image using script then there is a refreshment problem.
    In place of second image there place first image.
    while if I debug this it place in correct order. But in Run case script not place image in order.
    There is a refreshment problem After place First image it not refresh  and have first image.
    How solve this problem That i place image in proper order in Script Run mode.
    #target indesign
    var myDocument=app.activeDocument;        //Active document have 10 spread with text frame
    for(int i=0; i<10;i++)
    var ImagePath="D:\Indesign\" + i + ".indd";         // There are 0.indd to 9.indd, 10 image in "D:\Indesign\"
    var myTextFrame=myDocument.spreads.item(i).textFrames.firstItem();
    myTextFrame.place(File(ImagePath)); // ImagePath is path of image
    Thanks.

    My problem is like this :
    I want place image in a text box
    File(menu)-->place....-->(Dialog open then Select Image file then click on open)->then image is attach  with cursor. (I do not click on .indd open screen).
    Now I run the script from ExtendedTool Kit
    #target indesign
    var myDocument=app.activeDocument;
    var myTextFrame=myDocument.spreads.item(0).textFrames.firstItem();
    $.sleep(2000);
    myTextFrame.place(File("/C/DOCUME~1/ADMINI~1/LOCALS~1/Temp/temp.jpg"));
    $.sleep(2000);
    var graphic=myTextFrame.allGraphics[0];
    graphic.select(SelectionOptions.REPLACE_WITH);
    graphic.geometricBounds =["-47.853527","-157.370275","1231.018230","709.576702"];
    When this script run then it place the image which I am select from File(menu)-->place....-->(Dialog open then Select Image file then click on open).
    Not from the path "/C/DOCUME~1/ADMINI~1/LOCALS~1/Temp/temp.jpg"
    This is the problem to place image.  So there is image duplicasy and some image missing.
    Is there is solution of this problem ?
    How remove image which is already attach with cursor ?
    Thanks.

  • I have problems to place my site on google. It still says business-catalys and not the site name.

    I have problems to place my site on google. It still says business-catalys and not the site name. What do I need to do?

    What is your site address?

Maybe you are looking for

  • Payment PLD - Missing table

    The RCT4 and VPM4 (Accounts Details) is missing on the print layout designer for payments. This is causing a lot of problems with all my clients. Tayo

  • Applescript to change permissions of added files

    This is probably really simple but I need a folder action that will alter all added files permissions to R-R-R or alternatively to change the name of the group to "admin" The reason for this is because I have been experimenting with setting the globa

  • Dynamic sql in SQL field

    hello, I need execute an SQL dynamic as field's SQL: select field1, '(select field2 from table2)' from table1; And this field2 as output number. It's possible?

  • HT1657 Where to see the movie I rent from AppleTV

    I rent this movie from Apple TV movies section. I clicked rent and watch now, but it said "I have already rented this item but it has not been downloaded. To download it, go to the Settings menu, select Downloads, then Check for Downloads." First, th

  • Is there a way to automate GSS backups?

    I would like to automate full (config/database) GSS backups. Is there a way to do it with CiscoWorks or otherwise? Thanks.