Results 1 to 2 of 2
  1. #1
    mathgram8 is offline Member
    Join Date
    Sep 2012
    Posts
    1
    Rep Power
    0

    Angry Help String Error :[Ljava.lang.String;@121b26b6

    Need help. I am totally new.

    I am reading a delimited file. There is a colunm called "Role" that has several items in it and they are all separated by a comma (,). So I am trying to list each item in a new column called "PV Roles". So when I run the script, I see "[Ljava.lang.String;@121b26b6" in the PV Roles column. Can you help me?

    Raw Data
    Roles (Note: each line is separate record)
    FI_CSR_ATM_Lead,FI_Inquiry_Only,New_Hire_Call_Cent er_Branch
    MC_Auto_PV_Monitor,


    Script
    HashMap map = (HashMap)DelimitedFileConnector.defaultBuildMap(co ls, record);

    if (schema.getObjectType().compareTo(Connector.TYPE_A CCOUNT) == 0){

    String Roles = (String)map.get("Roles");
    String delims =",";
    String[] tokens = Roles.split(delims);

    map.put("PV Roles",tokens);

    }else if (schema.getObjectType().compareTo(Connector.TYPE_G ROUP) == 0){}


    return map;

    Results: [Ljava.lang.String;@121b26b6

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,560
    Blog Entries
    7
    Rep Power
    21

    Default Re: Help String Error :[Ljava.lang.String;@121b26b6

    That thing is how an array of Strings shows its String form; arrays are way too stupid to properly dislay all their elements; look at the Arrays class for that.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Replies: 3
    Last Post: 05-02-2011, 07:51 AM
  2. Replies: 5
    Last Post: 03-17-2011, 02:26 PM
  3. error [Ljava.lang.String.... when compiling
    By pipikrk in forum New To Java
    Replies: 11
    Last Post: 01-04-2011, 09:18 AM
  4. [SOLVED] Ljava.lang.String;@923e30 at runtime
    By Jerome in forum New To Java
    Replies: 6
    Last Post: 12-31-2008, 11:08 AM
  5. Replies: 2
    Last Post: 09-18-2008, 07:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •