I'm having problems Sorting Objects

Hello everyone!
I'm having problems sorting objects. Here is what I got at moment... I'm trying using "Collections.sort" with objects, and I think my problem is there but I don't know how to do in other way the sorting.
Some help will be appreciated! Thank you!
Movie.java
import java.util.ArrayList;
public class Movie
         public int itemNum;
         private String title;
         public String director;
         public Movie()
             itemNum = -1;
             title = "";
             director = "";
         public Movie(int itemNum, String title, String director)
            this.itemNum = itemNum;
            this.title = title;
            this.director = director;
         public int getItemNum()
             return itemNum;
         public String getTitle()
             return title;
         public String getDirector()
             return director;
           public void setItemNum(int a)
              itemNum = a;
         public void setTitle(String b)
             title = b;
         public void setDirector(String c)
             director = c;
         public String toString()
               String MovieInfo = title + "\t" + itemNum + "\t" + director ;
               return MovieInfo;
}MovieCollection.java
import java.util.*;
public class MovieCollection
    private ArrayList Movies;
     public MovieCollection()
            Movies = new ArrayList();
     public ArrayList getMovies()
            return Movies;
     public void add(Movie aMovie)
            Movies.add(aMovie);
}MovieCollectionMenu.java
import java.io.*;
import java.util.*;
public class MovieCollectionMenu
          private MovieCollection model;
          public MovieCollectionMenu ()
               model = new MovieCollection();
        public MovieCollection getModel()
            return model;
         private static Scanner Insert = new Scanner(System.in);
          public static void main (String[] args)
              MovieCollectionMenu menu = new MovieCollectionMenu();
               while(true)
             System.out.println("Movies Menu");
             System.out.println("");     
             System.out.println("1 - Add Movie");
             System.out.println("2 - List Movies");
             System.out.println("3 - Sort Movies");
             System.out.println("0 - Exit");
                System.out.print("\nSelect your option: ");
             int option = Insert.nextInt();
                  switch(option)
                       case 0:   System.exit(0);break;
                     case 1:   menu.addMovie(); break;
                     case 2:   menu.listMovies(); break;
                     case 3:   menu.sortMovie(); break;
                     default:  System.out.println("Invalid Selection!");
                  System.out.println("\n");
          private void addMovie()
               Movie aMovie = new Movie();
            System.out.print("\nEnter movie name: ");
               aMovie.setTitle(Insert.next());
             System.out.print("Enter number of copies: ");
            aMovie.setItemNum(Insert.nextInt());
            System.out.print("Enter director name: ");
            aMovie.setDirector(Insert.next());
            model.add(aMovie);
        private void listMovies()
               ArrayList Movies = model.getMovies();
               for (int i=0; i<Movies.size(); i++)
                    System.out.println(Movies.get(i).toString());
          private void sortMovie()
             ArrayList Movies = model.getMovies();
             Collections.sort(Movies);
}

JBStonehenge, Melanie_Green, paulcw thank u so much for ur support!!!!
I did many changes in my code, and I think in a simple way... I can sort the strings, but I'm having problems to sort the integers from the array I created..
I read a lot of sorting and this was the best I could do, please can you change my code to sort the integers?
Thank u people!
Here it is my code:
import java.io.*;
import java.util.*;
public class MyMovies {
     public static void main(String[] args) {
          MyMovies Movies = new MyMovies();
          Movies.runEverything();
     private static final int MAX_SIZE = 100;
     private static int numberOfMovies = 0;
     private static Movie[] array = new Movie[MAX_SIZE];
     public void runEverything(){
          Scanner input = new Scanner(System.in);
          while (true) {
               Menu();
               int option;
               try {
                    option = Integer.parseInt(input.nextLine());
               } catch (NumberFormatException e) {
                    System.out.println("You must enter a number!");
                    continue;
switch (option) {
               case 1:
                    addMovie(input);
                    System.out.println("\nThis movie was added:");
                    printMovie(numberOfMovies - 1);
                    break;               
               case 2:
                    sortMoviesByTitle();
                    break;
               case 3:
                    sortMoviesByYear();
                    break;
               case 4:
                    sortMoviesByDirector();
                    break;
               case 5:
                    printAllMovies();
                    break;
               case 6:
                    System.out.println("You logout with success!");
                    input.close();
                    System.exit(0);
                    break;
          default:
                    System.out.println("You entered a wrong option! Please try again.");
                    break;
     private static void Menu() {
          System.out.println("\n1 - Add a movie");
          System.out.println("2 - Sort movies by name");
          System.out.println("3 - Sort movies by year");
          System.out.println("4 - Sort movies by director");
          System.out.println("5 - Display movies");
          System.out.println("6 - Quit");
          System.out.print("\nPlease enter an option:");
          private static void printMovie(int i) {
          if (i < numberOfMovies) {
               System.out.println("\"" + array.getTitle() + "\", " + array[i].getYear() + ", \"" + array[i].getDirector() + "\"");
     private void printAllMovies() {
          for (int i = 0; i < numberOfMovies; i++) {
               System.out.print(String.valueOf(i+1) + "-");
               printMovie(i);
     private static void addMovie(Scanner input) {
          System.out.print("Enter movie:");
          String title = input.nextLine();
          int year = 0;
          while (true) {
               try {
                    System.out.print("Enter the year of movie:");
                    year = Integer.parseInt(input.nextLine());
                    break;
               } catch (NumberFormatException e) {
                    System.out.println("You must enter an integer!");
                    continue;
          System.out.print("Please enter the director:");
          String director = input.nextLine();
          array[numberOfMovies] = new Movie(title, year, director);
          numberOfMovies++;
     private void sortMoviesByTitle(){
     boolean swapped = true;
          int i = 0;
          String tempTitle, tempDirector;
          int tempYear;
          while (swapped) {
               swapped = false;
               i++;
               for (int j = 0; j < numberOfMovies - i; j++) {
                    if ( array[j].getTitle().compareToIgnoreCase(array[j + 1].getTitle()) > 0) {   
                         tempTitle = array[j].getTitle();
                         tempYear = array[j].getYear();
                         tempDirector = array[j].getDirector();
                         array[j].setTitle(array[j + 1].getTitle());
                         array[j].setYear(array[j + 1].getYear());
                         array[j].setDirector(array[j + 1].getDirector());
                         array[j + 1].setTitle(tempTitle);
                         array[j + 1].setYear(tempYear);
                         array[j + 1].setDirector(tempDirector);
                         swapped = true;
          System.out.println("The movies are sorted by title.");
     private void sortMoviesByYear(){
     boolean swapped = true;
          int i = 0;
          String tempTitle, tempDirector;
          int tempYear;
          while (swapped) {
               swapped = false;
               i++;
               for (int j = 0; j < numberOfMovies - i; j++) {
                    if ( array[j].getYear().compareToIgnoreCase(array[j + 1].getYear()) > 0) {   
                         tempTitle = array[j].getTitle();
                         tempYear = array[j].getYear();
                         tempDirector = array[j].getDirector();
                         array[j].setTitle(array[j + 1].getTitle());
                         array[j].setYear(array[j + 1].getYear());
                         array[j].setDirector(array[j + 1].getDirector());
                         array[j + 1].setTitle(tempTitle);
                         array[j + 1].setYear(tempYear);
                         array[j + 1].setDirector(tempDirector);
                         swapped = true;
          System.out.println("The movies are sorted by year.");
     private void sortMoviesByDirector(){
     boolean swapped = true;
          int i = 0;
          String tempTitle, tempDirector;
          int tempYear;
          while (swapped) {
               swapped = false;
               i++;
               for (int j = 0; j < numberOfMovies - i; j++) {
                    if ( array[j].getDirector().compareToIgnoreCase(array[j + 1].getDirector()) > 0) {   
                         tempTitle = array[j].getTitle();
                         tempYear = array[j].getYear();
                         tempDirector = array[j].getDirector();
                         array[j].setTitle(array[j + 1].getTitle());
                         array[j].setYear(array[j + 1].getYear());
                         array[j].setDirector(array[j + 1].getDirector());
                         array[j + 1].setTitle(tempTitle);
                         array[j + 1].setYear(tempYear);
                         array[j + 1].setDirector(tempDirector);
                         swapped = true;
          System.out.println("The movies are sorted by director.");
/* ----- My Movie Class ----- */
class Movie {
     private String title;
     private int year;
     private String director;
     public Movie(String title, int year, String director) {
          setTitle(title);
          setYear(year);
          setDirector(director);
     public String getTitle() {
          return title;
     public void setTitle(String title) {
          this.title = title;
     public int getYear() {
          return year;
     public void setYear(int year) {
          this.year = year;
     public String getDirector() {
          return director;
     public void setDirector(String director) {
          this.director = director;
}Edited by: AntiSignIn on Mar 24, 2010 7:30 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Collections problem - Sorting object (not key) in treemap

    Hello everyone,
    I don't know if TreeMap is the right thing for what I want to do, but I haven't found anything better yet. What I want to do is have a tree map like that
    index -- value (Double)
    1        500
    2        450
    3        500   (Multiple value)
    4        123so I used a TreeMap, but what I want to do is get the indexes with the highest 5 values for example. Should I still use TreeMap? Is there a simple way to keep the values sorted rather than the keys (indices)?
    Thanx

    My problem is though, I want to sort them but then get the index of the minimum for example and with the LinkedList, I lose the mapping. With the treemap, I also cannot get the key (index) given an object, only the other way round. Is there a way to handle this?

  • Oracle 9i with Forms6i (having problems with objects)

    I am using Oracle 9i server and dev 6i (forms6i).
    i have a form based on Object tables (including REF's items). when i try to insert update, delete the reocrd in the form, it gives error.
    Insert/Update/Delete failed because of OCI_22132: hexadecimal string does not corresopond to a valid REF.
    when i remove REFs items from form (not from database) then it does all functions (insert,update,delete,query).
    Actually i haved used this form with Oracle 8i and it did all functions(insert,update,delete,query). i am using the same tables and types definations in Oracle 9i but it is not working.
    Note: Insert, Update, Delete, or Query is not being done through forms when using REFs items. Others tools like sql*plus are performing the same actions very well.
    Please help.
    I will be thankful to you.
    M. Faisal.

    Not laughing here. This is a long shot, and I have almost no experience with database links, but could you maybe keep an 8.1.7 server running for the Forms 3 forms, and create database links and synonyms on the 8.1.7 server linking to the data on the 9.2 server?

  • After downloading photos from camera ... having problems sorting them ...

    Once I have downloaded an assortment of photos from my camera, I place them into separate folders according to the category I have named. In so doing, the photos are in the album, but remain in the import file which for some reason did not do so whenever I performed this task. What now occurs, is when I go to remove the photos in the imported file, it also removes them from the album.
    I am confused with what I am doing to cause this occurrence. I used to perform this task successfully when in the import screen without losing the photos once I placed them in their respective albums.
    Need help to sort myself out. I am a stickler for categorizing my photos according to the occasion. It makes it so easy to retrieve them whenever I want to send them to friends or to groups.
    Hope I can resolve my confusion in what I am doing wrong.
    Thanks!
    Message was edited by: kananaskis
    I used to be able to sort my imported photos without the aforementioned occurrence. It appears to occur using a new camera.

    Thank you, Terence, for the information. I'm going to mull this over because what you have mentioned is rather abstract to my diminishing grey cells. When I returned to iPhoto, in the Photos' List, the photos I had categorized were in tact and none of the other photos were included.
    Much for me to consider when importing photos and my placing them into folders but forget about 'trashing' what is in the Import file, because as you say, this is only a shortcut.
    Again, thanks for shedding some light on my dimly lit understanding of iPhoto and its importing photos.

  • Having problem connecting objects in new keynote.

    I used to do it in old version but not possible anymore. What shall I do?

    I found the answer

  • HI, I'm having problems initializi​ng object for CNiFgen class.

    Hello, I'm having problems initializing object for CNiFgen class, I declare a pointer *m_pFgen to the CNiFgen class, then m_pFgen = new CNiFgen(m_driver, true, true) and then it gives me an error message Primary Error: (Hex 0xBFFA000C) Invalid attribute.

    Here is how to make a call to initialize a session to niFgen:
    //Create a new session on the device
    _session = new CNiFgen(m_resourcename);
    Also. I'm attaching an example on how to generate standard waveforms with the class interface for Fgen.
    Let me know if you have any other questions,
    Jack Arnold
    Applcation Engineer
    National Instruments
    Attachments:
    niFgen_Function_Generator_Ex.zip ‏5569 KB

  • I'm having problems in a GOOP applicatio​n with multiple instances of the same object running simultaneo​usly.

    I?ve written an application to control a system with multiple lamps. Each lamp in the system has its own power supply. Each lamp object contains a reference to its power supply. The application contains an array with the references to all the lamps in the system. Each lamp is in charge of monitoring itself and setting its power supply?s voltage according to the applications commands, therefore each lamp needs that its ?run me? method will run as long as the application is running i.e. the run method has to be reentrant. Because there are multiple lamps and because the ?run me? methods for each lamp run simultaneously, to over come this problem each lamp has a met
    hod ?run? that calls ?run me? with ?RUN VI? invoke node with the ?Wait until done? set to false. When I run the application, it seems to work but if I check the AO there is no change in the output, and the lamps seem to be reading their input from the same channel. I can?t seem to find the problem, I think that the fact that the method is reentrant causes some sort of mix-up in the separate object references. Also because the method is reentrant I can?t debug it (with one lamp it seems to work ok). Does anyone have any idea what could be causing this problem.
    P.S I'm having problems attaching my sample program to this message. You can contact me at [email protected] to recive the sample program I wrote.

    Jean, Thanks for your answer, I've tried checking the invoke node that calls the "Run VI" method but it doesnt return an error any of the times its called even that the Vi that it called is still running. I also tried your solution of changing the object's "Run" method to a template but that doesnt work either. I can't seem to post the sample progam that demonstrates the problem, is it possible to send it to you by email, contact me at [email protected]
    Attachments:
    Sample_program.zip ‏926 KB

  • How do I uninstall an application from my Macbook Pro? I have been having all sorts of problems with Adobe products, and need to uninstall so I can re-install them

    How do I uninstall an application or software from my Macbook Pro? I have been having all sorts of problems updating Adobe Reader and Flash player on my mac that I need to uninstall them so I can re-install them.

    Uninstall Flash
    http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-mac-os.html
    For Reader search "unistall adobe reader mac" for the version you are running
    https://forums.adobe.com/message/4793407  XI
    http://helpx.adobe.com/acrobat/kb/installing-uninstalling-acrobat-x-mac.html  X

  • Really having problems with organising documents in pages. For example, deleting pages deletes the whole section and I cannot insert a section break as its greyed out & sending an object to background deletes several pages - what the **** is going on???

    Really having problems with organising documents in pages. For example, deleting pages deletes the whole section and I cannot insert a section break as its greyed out & sending an object to background deletes several pages and trying to insert a text box autmatically creates new pages- what the **** is going on??? Is this programme really this badly thought out? I thought everything apple was supposed to be intuitive!?!?!? Help.

    You can not insert a section break into a textbox.
    You appear to have a lot of objects with wrap set, that once you take them out of the flow of text (by sending them to the background) causes the text to reflow and contract into fewer pages. Pages is almost unique in the way it forms up pages in Word Processing mode only so long as there is text on them.
    I suspect you probably have hammered away at returns, spaces and tabs as well to position things, which only works to add to the mess.
    Download the Pages09_UserGuide.pdf available under the Help menu and swot up a bit on how it works.
    You may find this a usueful resource as well:
    http://www.freeforum101.com/iworktipsntrick/
    Peter
    PS There is quite a lot of programming in OSX that is far from "intuitive". Pages is easy at one level, when using the templates, otherwise it can be quite frustrating.

  • I am having problems with my itunes, when plugging my iphone or ipod to the laptop - i can see iphone/ipod in the top right corner of itunes but when i click this to the see what is on theis iphone/ipod the option is no longer there, this was working

    I am having problems with the new itunes set up ........
    when i plug in my iphone or ipod touch it shows in the top right hand corner of itunes
    BUT when i click on the shown iphone/ipod the icon its no longer there, i was useing this fine yesterday and it was showing yesterday what is on this ipod and would allow me to add/remove music, but now this option is no longer availlable - i have added a couple of albums to my itunes i can listen to the music from the laptop but cannot sync the ipods to trancefer these albums to the handheld devices -
    i have been trying to sort this all day with no luck not sure if there is a problems with itunes or is it something i am doing ????
    HELP !!!!!!!!!!!!

    BOB we need you urgently
    Perhaps Bob will see this thread, he is the professor in these cases.
    You do not use a WEP password but wpa/wpa2 on router and equipment.
    All equipment connects to WiFi, but for your iPad.
    Even with all other equipment WiFi off, you cannot connect your iPad.
    Your iPad connects to other WiFi nets correctly.
    All resets etc done on iPad and Router.
    Still I am not sure it is your router for sure, frustrating...
    I want to test 2 other things:
    1. in your iPad, set everything OFF in Settings/Cellular, turn off/then/on your WiFi, and see whether it will still not connect...
    2. If that does not do it: disconnect the router as well as the modem from the power, for 15 seconds, then reconnect the modem, let it fully start, then reconnect the routet let it fully start, turn of your WiFi in iPad, then on, and see whether it will connect.

  • Still having problems with VPN access

    Hello!
    I am having problems with my VPN clients getting access to the networks over a MPLS infrastruture. I can reach these resources form my Core network (172.17.1.0/24) and my Wifi (172.17.100.0/24) but not from my VPN network (172.17.200.0/24). From the VPN I can reach the Wifi network (which is behind a router) and the rule that allows that also allows access to the other networks but for some reason it is not working.
    When I ping inside the core network from VPN I can connect and get responses. When I ping to the Wifi network, I can get responses and connect to resources there. A tracert to the wifi network shows it hitting the core switch (a 3750 stack) @ 172.17.1.1, then the Wifi router (172.17.1.3) and then the host. A tracert to a resource on the MPLS network from the VPN shows a single entry (the destination host) and then 29 time outs but will not ping that resource nor connect.
    I've posted all the info I can think of below. Any help appreciated.
    *** Here is a tracert from a core network machine to the resource we need on the MPLS:
    C:\Windows\system32>tracert 10.2.0.125
    Tracing route to **************** [10.2.0.125]
    over a maximum of 30 hops:
      1     1 ms    <1 ms    <1 ms  172.17.1.1
      2     1 ms    <1 ms    <1 ms  172.17.1.10
      3     5 ms     5 ms     5 ms  192.168.0.13
      4    31 ms    30 ms    31 ms  192.168.0.5
      5    29 ms    30 ms    29 ms  192.168.0.6
      6    29 ms    29 ms    29 ms  192.168.20.4
      7    29 ms    29 ms    29 ms  RV-TPA-CRMPROD [10.2.0.125]
    Trace complete.
    172.17.1.10 is the mpls router.
    **** Here is the routing table (sh ip route) from the 3750 @ 172.17.1.1
    Gateway of last resort is 172.17.1.2 to network 0.0.0.0
    S    192.168.30.0/24 [1/0] via 172.17.1.10
         172.17.0.0/24 is subnetted, 3 subnets
    S       172.17.200.0 [1/0] via 172.17.1.2
    C       172.17.1.0 is directly connected, Vlan20
    S       172.17.100.0 [1/0] via 172.17.1.3
         172.18.0.0/24 is subnetted, 1 subnets
    S       172.18.1.0 [1/0] via 172.17.1.10
    S    192.168.11.0/24 [1/0] via 172.17.1.10
         10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
    S       10.2.0.0/24 [1/0] via 172.17.1.10
    S       10.10.10.0/24 [1/0] via 172.17.1.10
    S       10.20.0.0/24 [1/0] via 172.17.1.10
    S       10.3.0.128/25 [1/0] via 172.17.1.10
    S    192.168.1.0/24 [1/0] via 172.17.1.10
    S*   0.0.0.0/0 [1/0] via 172.17.1.2
    *** Here is the firewall config (5510):
    ASA Version 8.4(1)
    hostname RVGW
    domain-name ************
    enable password b5aqRk/6.KRmypWW encrypted
    passwd 1ems91jznlfZHhfU encrypted
    names
    interface Ethernet0/0
    nameif Outside
    security-level 10
    ip address 5.29.79.10 255.255.255.248
    interface Ethernet0/1
    nameif Inside
    security-level 100
    ip address 172.17.1.2 255.255.255.0
    interface Ethernet0/2
    shutdown
    no nameif
    no security-level
    no ip address
    interface Ethernet0/3
    shutdown
    no nameif
    no security-level
    no ip address
    interface Management0/0
    nameif management
    security-level 100
    ip address 172.19.1.1 255.255.255.0
    management-only
    banner login RedV GW
    ftp mode passive
    dns server-group DefaultDNS
    domain-name RedVector.com
    same-security-traffic permit inter-interface
    same-security-traffic permit intra-interface
    object network WiFi
    subnet 172.17.100.0 255.255.255.0
    description WiFi 
    object network inside-net
    subnet 172.17.1.0 255.255.255.0
    object network NOSPAM
    host 172.17.1.60
    object network BH2
    host 172.17.1.60
    object network EX2
    host 172.17.1.61
    description Internal Exchange / Outbound SMTP
    object network Mail2
    host 5.29.79.11
    description Ext EX2
    object network NETWORK_OBJ_172.17.1.240_28
    subnet 172.17.1.240 255.255.255.240
    object network NETWORK_OBJ_172.17.200.0_24
    subnet 172.17.200.0 255.255.255.0
    object network VPN-CLIENT
    subnet 172.17.200.0 255.255.255.0
    object-group service DM_INLINE_TCP_1 tcp
    port-object eq www
    port-object eq https
    object-group network DM_INLINE_NETWORK_1
    network-object object BH2
    network-object object NOSPAM
    object-group network VPN-CLIENT-PAT-SOURCE
    description VPN-CLIENT-PAT-SOURCE
    network-object object VPN-CLIENT
    object-group network LAN-NETWORKS
    network-object 10.10.10.0 255.255.255.0
    network-object 10.2.0.0 255.255.255.0
    network-object 10.3.0.0 255.255.255.0
    network-object 172.17.100.0 255.255.255.0
    network-object 172.18.1.0 255.255.255.0
    network-object 192.168.1.0 255.255.255.0
    network-object 192.168.11.0 255.255.255.0
    network-object 192.168.30.0 255.255.255.0
    object-group network VPN-POOL
    network-object 172.17.200.0 255.255.255.0
    object-group protocol DM_INLINE_PROTOCOL_1
    protocol-object ip
    protocol-object icmp
    access-list Outside_access_in extended permit tcp any object-group DM_INLINE_NETWORK_1 eq smtp
    access-list Outside_access_in extended permit tcp any object BH2 object-group DM_INLINE_TCP_1
    access-list global_mpc extended permit ip any any
    access-list Inside_access_in extended permit object-group DM_INLINE_PROTOCOL_1 any any
    pager lines 24
    logging enable
    logging asdm informational
    no logging message 106015
    no logging message 313001
    no logging message 313008
    no logging message 106023
    no logging message 710003
    no logging message 106100
    no logging message 302015
    no logging message 302014
    no logging message 302013
    no logging message 302018
    no logging message 302017
    no logging message 302016
    no logging message 302021
    no logging message 302020
    flow-export destination Inside 172.17.1.52 9996
    mtu Outside 1500
    mtu Inside 1500
    mtu management 1500
    ip local pool VPN 172.17.1.240-172.17.1.250 mask 255.255.255.0
    ip local pool VPN2 172.17.200.100-172.17.200.200 mask 255.255.255.0
    no failover
    icmp unreachable rate-limit 1 burst-size 1
    no asdm history enable
    arp timeout 14400
    nat (Inside,Outside) source static EX2 Mail2
    nat (Inside,Outside) source static any any destination static NETWORK_OBJ_172.17.1.240_28 NETWORK_OBJ_172.17.1.240_28
    nat (Inside,Outside) source static any any destination static NETWORK_OBJ_172.17.200.0_24 NETWORK_OBJ_172.17.200.0_24
    nat (Inside,Outside) source static inside-net inside-net destination static NETWORK_OBJ_172.17.1.240_28 NETWORK_OBJ_172.17.1.240_28
    nat (Inside,Outside) source static LAN-NETWORKS LAN-NETWORKS destination static VPN-POOL VPN-POOL
    object network inside-net
    nat (Inside,Outside) dynamic interface
    object network NOSPAM
    nat (Inside,Outside) static 5.29.79.12
    nat (Outside,Outside) after-auto source dynamic VPN-CLIENT-PAT-SOURCE interface
    access-group Outside_access_in in interface Outside
    access-group Inside_access_in in interface Inside
    route Outside 0.0.0.0 0.0.0.0 5.29.79.9 1
    route Inside 10.2.0.0 255.255.255.0 172.17.1.1 1
    route Inside 10.3.0.0 255.255.255.128 172.17.1.1 1
    route Inside 10.10.10.0 255.255.255.0 172.17.1.1 1
    route Inside 172.17.100.0 255.255.255.0 172.17.1.3 1
    route Inside 172.18.1.0 255.255.255.0 172.17.1.1 1
    route Inside 192.168.1.0 255.255.255.0 172.17.1.1 1
    route Inside 192.168.11.0 255.255.255.0 172.17.1.1 1
    route Inside 192.168.30.0 255.255.255.0 172.17.1.1 1
    timeout xlate 3:00:00
    timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
    timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
    timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
    timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
    timeout tcp-proxy-reassembly 0:01:00
    dynamic-access-policy-record DfltAccessPolicy
    aaa-server RedVec protocol ldap
    aaa-server RedVec (Inside) host 172.17.1.41
    ldap-base-dn DC=adrs1,DC=net
    ldap-group-base-dn DC=adrs,DC=net
    ldap-scope subtree
    ldap-naming-attribute sAMAccountName
    ldap-login-password *****
    ldap-login-dn CN=Hanna\, Roger,OU=Humans,OU=WPLAdministrator,DC=adrs1,DC=net
    server-type microsoft
    aaa authentication ssh console LOCAL
    http server enable
    http 192.168.1.0 255.255.255.0 management
    http 172.17.1.0 255.255.255.0 Inside
    http 24.32.208.223 255.255.255.255 Outside
    snmp-server host Inside 172.17.1.52 community *****
    snmp-server location Server Room 3010
    snmp-server contact Roger Hanna
    snmp-server community *****
    snmp-server enable traps snmp authentication linkup linkdown coldstart warmstart
    crypto ipsec ikev1 transform-set ESP-AES-256-MD5 esp-aes-256 esp-md5-hmac
    crypto ipsec ikev1 transform-set ESP-DES-SHA esp-des esp-sha-hmac
    crypto ipsec ikev1 transform-set ESP-DES-MD5 esp-des esp-md5-hmac
    crypto ipsec ikev1 transform-set ESP-AES-192-MD5 esp-aes-192 esp-md5-hmac
    crypto ipsec ikev1 transform-set ESP-3DES-MD5 esp-3des esp-md5-hmac
    crypto ipsec ikev1 transform-set ESP-AES-256-SHA esp-aes-256 esp-sha-hmac
    crypto ipsec ikev1 transform-set ESP-AES-128-SHA esp-aes esp-sha-hmac
    crypto ipsec ikev1 transform-set ESP-AES-192-SHA esp-aes-192 esp-sha-hmac
    crypto ipsec ikev1 transform-set ESP-AES-128-MD5 esp-aes esp-md5-hmac
    crypto ipsec ikev1 transform-set ESP-3DES-SHA esp-3des esp-sha-hmac
    crypto dynamic-map SYSTEM_DEFAULT_CRYPTO_MAP 65535 set ikev1 transform-set ESP-AES-128-SHA ESP-AES-128-MD5 ESP-AES-192-SHA ESP-AES-192-MD5 ESP-AES-256-SHA ESP-AES-256-MD5 ESP-3DES-SHA ESP-3DES-MD5 ESP-DES-SHA ESP-DES-MD5
    crypto map Outside_map 65535 ipsec-isakmp dynamic SYSTEM_DEFAULT_CRYPTO_MAP
    crypto map Outside_map interface Outside
    crypto ikev1 enable Outside
    crypto ikev1 policy 10
    authentication pre-share
    encryption 3des
    hash sha
    group 2
    lifetime 86400
    crypto ikev1 policy 30
    authentication crack
    encryption 3des
    hash sha
    group 2
    lifetime 86400
    telnet 172.17.1.0 255.255.255.0 Inside
    telnet timeout 5
    ssh 172.17.1.0 255.255.255.0 Inside
    ssh timeout 5
    console timeout 0
    dhcpd address 172.17.1.100-172.17.1.200 Inside
    dhcpd dns 172.17.1.41 172.17.1.42 interface Inside
    dhcpd lease 100000 interface Inside
    dhcpd domain adrs1.net interface Inside
    threat-detection basic-threat
    threat-detection statistics
    threat-detection statistics tcp-intercept rate-interval 30 burst-rate 400 average-rate 200
    webvpn
    group-policy RedV internal
    group-policy RedV attributes
    wins-server value 172.17.1.41
    dns-server value 172.17.1.41 172.17.1.42
    vpn-tunnel-protocol ikev1
    default-domain value ADRS1.NET
    group-policy RedV_1 internal
    group-policy RedV_1 attributes
    wins-server value 172.17.1.41
    dns-server value 172.17.1.41 172.17.1.42
    vpn-tunnel-protocol ikev1
    split-tunnel-policy tunnelspecified
    default-domain value adrs1.net
    username rparker password FnbvAdOZxk4r40E5 encrypted privilege 15
    username rparker attributes
    vpn-group-policy RedV
    username mhale password 2reWKpsLC5em3o1P encrypted privilege 0
    username mhale attributes
    vpn-group-policy RedV
    username dcoletto password g53yRiEqpcYkSyYS encrypted privilege 0
    username dcoletto attributes
    vpn-group-policy RedV
    username rhanna password Pd3E3vqnGmV84Ds2 encrypted privilege 15
    username rhanna attributes
    vpn-group-policy RedV
    tunnel-group RedV type remote-access
    tunnel-group RedV general-attributes
    address-pool VPN2
    authentication-server-group RedVec
    default-group-policy RedV
    tunnel-group RedV ipsec-attributes
    ikev1 pre-shared-key *****
    class-map global-class
    match access-list global_mpc
    class-map inspection_default
    match default-inspection-traffic
    policy-map type inspect dns preset_dns_map
    parameters
      message-length maximum client auto
      message-length maximum 512
    policy-map global_policy
    class inspection_default
      inspect dns preset_dns_map
      inspect ftp
      inspect h323 h225
      inspect h323 ras
      inspect rsh
      inspect rtsp
      inspect esmtp
      inspect sqlnet
      inspect skinny 
      inspect sunrpc
      inspect xdmcp
      inspect sip 
      inspect netbios
      inspect tftp
      inspect ip-options
      inspect icmp
    class global-class
      flow-export event-type all destination 172.17.1.52
    service-policy global_policy global
    prompt hostname context
    call-home
    profile CiscoTAC-1
      no active
      destination address http https://tools.cisco.com/its/service/oddce/services/DDCEService
      destination address email [email protected]
      destination transport-method http
      subscribe-to-alert-group diagnostic
      subscribe-to-alert-group environment
      subscribe-to-alert-group inventory periodic monthly
      subscribe-to-alert-group configuration periodic monthly
      subscribe-to-alert-group telemetry periodic daily
    hpm topN enable
    Cryptochecksum:202ad58ba009fb24cbd119ed6d7237a9

    Hi Roger,
    I bet you already checked it, but does the MPLS end router has route to VPN client subnet 172.17.200.x (or default) pointing to core rtr)?
    Also, if the MPLS link has any /30 subnet assigned, you may need to include that as well in Object group LAN-NETWORKS.
    Thx
    MS

  • So earlier today I updated to the newest version of itunes and ever since I've been having problems syncing devices. I have plugged my iphone in and it will say its sync in the menu list on the left side of itunes but isn't working

    I downloaded the newest version of itunes and ever since I've been having problems. When I connect my iphone to itunes, it will say its synced up, however when i'm trying to add music its just not allowing it to happen.
    Also when I try to restore the Iphone or check for updates, It says connect via USB to check for updates or restore. The same with attemting to sync apps
    I've reinstalled itunes several times and removed and reinstalled my portable devices. And still nothing. When I first plug the iphone in, it will to that auto play Windows 7 does and allows pictures to be saved onto the PC.
    It seems like the syncing is working with some things and now others. Any idea's would be delightful??

    I feel its more of my sync drivers for itunes/iphone not working if that makes sense. Its not my itunes that stops responding, its more of that if the phone syncs up it fails to anything further.
    I've tried sync another iphone to the same itunes and windows autoplayer will allow the photos sorted on the iphone to be saved to the laptop but itunes won't even recongise the device is plugged in.
    Although it will charge the battery

  • Having problem with UDF, getting unwanted result Ljava.lang.String;@25c560

    Hi,
    This is atually a follow-up to other post in the same forum: <b>Sending XMl message as text (Mail body) by receiver mail adapter</b>
    We are having problem with UDF to get correct output.
    We are getting <b>result of UDF</b> as below:
    [[Ljava.lang.String;@f37573 [Ljava.lang.String;@1a409ed [Ljava.lang.String;@87c011 [Ljava.lang.String;@52a077 [Ljava.lang.String;@a4e8e5<BR>[Ljava.lang.String;@f37573 [Ljava.lang.String;@1a409ed [Ljava.lang.String;@87c011 [Ljava.lang.String;@52a077 [Ljava.lang.String;@a4e8e5<BR>[Ljava.lang.String;@f37573 [Ljava.lang.String;@1a409ed [Ljava.lang.String;@87c011 [Ljava.lang.String;@52a077 [Ljava.lang.String;@a4e8e5<BR>[Ljava.lang.String;@f37573 [Ljava.lang.String;@1a409ed [Ljava.lang.String;@87c011 [Ljava.lang.String;@52a077 [Ljava.lang.String;@a4e8e5<BR>]
    Does any body know what it mean?
    Following are the source ans target XSD's:
    Here is the <b>source xsd:</b>
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://NameSpace" targetNamespace="NameSpace">
    <xsd:complexType name="row">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    5e090470385011db9654000e7f22e9d4
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:sequence>
    <xsd:element name="DeliveryNumber">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    9d3ac0a0377b11db91dbf237ac102206
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:length value="10" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="DeliveryLineItem">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    9d3ac0a1377b11db98aaf237ac102206
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:length value="6" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="OrderNumber">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    9d3ac0a2377b11dbc5c4f237ac102206
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:length value="10" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="OrderLineItem">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    9d3ac0a3377b11db9d84f237ac102206
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:length value="6" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="BillToID">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    9d3ac0a4377b11dbb49bf237ac102206
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:length value="17" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="BillToName">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    9d3ac0a5377b11dbb38ff237ac102206
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:length value="40" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="ShipToID">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    9d3ac0a6377b11db9370f237ac102206
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:length value="17" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="ShipToName">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    9d3ac0a7377b11dbb66cf237ac102206
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:length value="40" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="ProductCode">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    9d3ac0a8377b11db8f94f237ac102206
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:length value="18" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="ProductDesc">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    9d3ac0a9377b11db929ff237ac102206
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:length value="40" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="ScheduledLoadDate">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    9d3ac0aa377b11db8d1df237ac102206
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:length value="8" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="ScheduledLoadTime">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    9d3ac0ab377b11dba57ff237ac102206
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:length value="6" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="Carrier">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    9d3ac0ac377b11dbcc03f237ac102206
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:length value="40" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="CustomerPO">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    9d3ac0ad377b11dbb5a2f237ac102206
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:length value="35" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="OutYard">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    9d3ac0ae377b11dbcc51f237ac102206
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:length value="16" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="OrderedQty">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    9d3ac0af377b11dbbe6cf237ac102206
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:length value="15" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="OrderUofM">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    9d3ac0b0377b11db9264f237ac102206
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:length value="3" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="LabConc">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    9d3ac0b1377b11dbb0e7f237ac102206
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:length value="50" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="GrossMT">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    9d3ac0b2377b11db99f1f237ac102206
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:length value="4" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="GrossST">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    9d3ac0b3377b11db9b6ff237ac102206
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:length value="4" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="BilledQty">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    9d3ac0b4377b11db8a9af237ac102206
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:length value="8" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="Status">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    9d3ac0b5377b11dba39cf237ac102206
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:length value="10" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="resultset">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    5e044980385011dbb2d3000e7f22e9d4
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:sequence>
    <xsd:element name="row" type="row" maxOccurs="unbounded">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    c1cb8fd0377b11db912af237ac102206
    </xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    <b>Target xsd:</b>
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://sap.com/xi/XI/Mail/30" targetNamespace="http://sap.com/xi/XI/Mail/30">
    <xsd:element name="Mail">
    <xsd:annotation>
    <xsd:documentation>
    Mail package for XI - Mail Adapter
    </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="Subject" type="xsd:string" minOccurs="0" />
    <xsd:element name="From" type="xsd:string" minOccurs="0" />
    <xsd:element name="To" type="xsd:string" minOccurs="0" />
    <xsd:element name="Reply_To" type="xsd:string" minOccurs="0" />
    <xsd:element name="Content_Type" type="xsd:string" minOccurs="0" />
    <xsd:element name="Date" type="xsd:dateTime" minOccurs="0" />
    <xsd:element name="Message_ID" type="xsd:string" minOccurs="0" />
    <xsd:element name="X_Mailer" type="xsd:string" minOccurs="0" />
    <xsd:element name="Content" minOccurs="0" maxOccurs="unbounded">
    <xsd:annotation>
    <xsd:documentation>
    any type
    </xsd:documentation>
    </xsd:annotation>
    </xsd:element>
    </xsd:sequence>
    <xsd:attribute name="encoding" type="xsd:string" />
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    And <b>following is the UDF we are using</b>:
      =========================================
    String mailBody = new String();
    int inta, intb, intc, intd, inte;
    inta = a.length;
    intb = b.length;
    intc = c.length;
    intd = d.length;
    inte = e.length;
    for(int i = 0;  i < a.length; i++)
      mailBody = mailBody + a + " " + b + " " + c + " " + d + " " + e + "<BR>";
    result.addValue(mailBody);
    ====================================
    <b>Any help to resolve this would be very helpful.</b>
    Thanx
    Sue

    Hi Bhavesh,
    We are getting following error if we use the UDF you given below:
    Check Result for Object test   Source code has syntax error:  D:/usr/sap/XID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapf2026120390a11db9d1f000e7f22e9d4/source/com/sap/xi/tf/_test_.java:75: a is already defined in testUDF$(java.lang.String[],java.lang.String[],java.lang.String[],java.lang.String[],java.lang.String[],com.sap.aii.mappingtool.tf3.rt.ResultList,com.sap.aii.mappingtool.tf3.rt.Container) int a = a.length(); ^ D:/usr/sap/XID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapf2026120390a11db9d1f000e7f22e9d4/source/com/sap/xi/tf/_test_.java:75: int cannot be dereferenced int a = a.length(); ^
    We have no knowledge of java at all.
    We did some modifications to it as below:
    String mailBody = new String();
    int a = a.length();
    int b = b.length();
    int c = c.length();
    int d = d.length();
    int e = e.length();
    for(int i = 0; i < a.length(); i++)
    mailBody = mailBody + a + " " + b + " " + c + " " + d + " " + e + "<BR>";
    result.addValue(mailBody);
    It it didn't work. Think we are missing something. Can please help us to figure it out.
    Thanx
    Sue

  • Having problem with change of name in the datagrid Coding

    I am having problem with changing the name of the datagrid header text name for one of the data either in the flash file or the php file.
    The thing is i want to change the Course_Name to Course Name that has no underscore so that it will look nicer in the datagrid but if I change it in the php file like SELECT Course_Name as 'Course Name' ....., it will not turn out in the datagrid when I CTRL ENTER the flash file but the others like Price,description and display is shown.
    There is no problem with my php code but I do not know how to change the Course_Name into Course Name so please help me resolve this error that I am having.
    This is my flash code
      function goCourse(e : MouseEvent):void
      gotoAndStop(5);
      refreshResponder = new Responder (refreshSuccess, onFault);
      connection = new NetConnection ();
      connection.connect (gateway);
      dataDG.addEventListener (Event.CHANGE, gridItemSelected);
      refreshData (true);
      function gridItemSelected (e: Event): void {
      ID = e.target.selectedItem.ID;
      courseTxt.text = e.target.selectedItem.Course_Name;
      priceTxt.text = e.target.selectedItem.Price;
      descTxt.text = e.target.selectedItem.Description;
      private function getParams () {
      var param: Object = new Object ();
      param.ID = ID;
      param.Course_Name = courseTxt.text;
      param.Price = priceTxt.text;
      param.Description = descTxt.text;
      return param;
      private function refreshData (refresh: Boolean): void {
      if (refresh)
      connection.call ("Course.viewCourse", refreshResponder);
      private function refreshSuccess (result: Object): void {
      dataDG.dataProvider = RecordSetDP.toDataProvider (result);
         dataDG.columns = ["Course_Name","Price","Description","Display"];
      private function onFault (fault: Object): void {
      trace (String (fault.description));
    This is my php file code.
      function viewCourse()
      $this->connect();
      $sql = "SELECT Course_Name,Price,Description,Display
      FROM coursetb";
      return mysql_query($sql,$this->_connection);

    i don't see where you're calling your php file in your code, but change 'Course Name' to 'Course_Name' (or vice-versa) there.

  • Anyone having problems with Snow Leopard

    I have bought the new software but I just wanted to check on the forum whether anyone is having problems when they upgrade to Snow Leopard. I am running 10.5.8 on my MBP. I currently have a very full disk which I am trying to sort out but I am wondering whether it would help me to have the Snow Leopard running. Any advise gratefully received!!

    No.
    http://www.macmaps.com/diskfull.html
    First solve the full disk problem,
    then determine if you are ready to upgrade*
    http://www.macmaps.com/upgradefaq.html
    - * links to my pages may give me compensation

Maybe you are looking for

  • Dynamically updating members in SmartView

    Hi all, I've got a pretty simple requirement that I've been trying to thrash out in SmartView with Smart Slices and Queries but I'm just missing something obvious I'm sure. I'm trying to show my hierarchy in the columns with 2 unnecessary generations

  • All Messages in Apple Mail Now Blank

    Hi, I use Apple Mail with my Yahoo email account. Starting today, every I open an email in Apple Mail (including every existing email that I have ever downloaded) gives me an error message, saying that the message was not downloaded from the server a

  • Format values: DB View or anything in ADF ViewObject?

    Hi. I have a DB table with a field called PERSON_ID, which is the ID of one person.My JDeveloper version is 11.1.1.7.0 With an Oracle funcion in DB, I pass this ID and get Mr. John Smith Smith ready to show in the application. Other field in the tabl

  • Mounting and Unmounting USB drives [Solved]

    HI there: I want a program like in KDE that will automaticly mount and allow me to click to unmount my usb drives. I am building machines and I need them to be user friendly and fast. I am running openbox 3.5 with a lxpanel right now. Also how do you

  • 2lis_11_vaitm vs 2lis_11_vahdr

    Hi gurus, I need to enhance 2lis_11_vaitm with VDATU field (sold-to party's Requested Delivery Date.) Actually this extractor contain field with same name and different meaning (Update date for statistics update). The reason is we've done it with bad