Changing the R/3 system

Hello,
We are on EP7.0 and trying to connect to a different R/3 system from the one which we are currently connected to ...after creating the jco's I get the following error when trying to access ESS services:
Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Accessing System <SID1> is not possible because RFC Metadata was retrieved using System <SID2>. Please assure you have configured the RFC Connections properly. A Server restart may be necessary!
     at com.sap.tc.webdynpro.modelimpl.dynamicrfc.AiiModel.verifyClientIsConsistentWithMetadataConnection(AiiModel.java:299)
     at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModel.prepareExecute(DynamicRFCModel.java:181)
     at com.sap.pcuigp.xssfpm.wd.model.InitServiceModel.hrxss_Ser_Initservice(InitServiceModel.java:163)
     at com.sap.pcuigp.xssfpm.wd.model.Hrxss_Ser_Initservice_Input.doExecute(Hrxss_Ser_Initservice_Input.java:137)
     at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:92)
     ... 57 more
I wonder for the cause for this.  Any help would be highly appreciated.
Message was edited by:
        SubhashTripathi

Hi Subhash,
The meta data repositories are needed to get the technical description of functions and parameters used for fullfiling of RFC calls. The JCO.BasicRepository class covers the implementation of basic repository functionality such as caching and persistence of meta datas.
So the system information has been maintained in the JCO cache and has not been cleared. Thus it is not able to retrieve the name of the new system to which the JCO is now pointing to. A system restart will refresh all the cache and then should be able to point to the new R3 system successfully.
Regards,
Prathamesh

Similar Messages

  • Ho to change the old Logical System in the new Client?

    Hi All,
    after a Client copy, I've to change the old Logical System in all the relevant SAP tables in the new client.
    In the Co tables too, such as CSKS.
    Could anyone tell me hoq to do it?
    Thanks
    G.Rossi

    Hi,
    So the only solution would be to rename the SID of one portal.-> Yes,Rename the SID of on portal
    Can this be done ? -> Yes,It can be done
    How is it done ? -> Use Export/Import method.Export the database of one SID. Import the same with different SID.
    Thanks and Regards,

  • HT201364 since I updated my system to Mavericks my computer colour is always grey. I have tried to change the colour via system preference without any success. What should I do to so that my screen will be colourful?

    since I updated my system to Mavericks my computer colour is always grey. I have tried to change the colour via system preference without any success. What should I do to so that my screen will be colourful?

    Please post a screenshot that shows what you mean. Be careful not to include any private information.
    Start a reply to this message. Drag the image file into the editing window to upload it. You can also include text in the reply.

  • How to change the IOS operating system

    how do you change the IOS operating system from 2 to a more modern in my ipod touch?

    It is very simple, see here: http://www.apple.com/ios/.
    Updating is easy.
    Just connect your device to your Mac or PC and follow the onscreen instructions in iTunes.

  • How do you change the directory of system exec after it has ran once in the current vi

    Hi all,
    Attached is the sub vi that i am running in my main application.  I run it twice and change the directory of the file to run.  It appears that after i run this vi that i cant change the directory and it tries to run a file from the incorrect directory.  Does anyone have any advice on how to fix this issue?
    Attachments:
    system execute command.vi ‏41 KB

    matt198717 wrote:
    Hi all,
    Attached is the sub vi that i am running in my main application.  I run it twice and change the directory of the file to run.  It appears that after i run this vi that i cant change the directory and it tries to run a file from the incorrect directory.  Does anyone have any advice on how to fix this issue?
    I am not sure, if I understand exactly the problem, but do you really need the cmd /c start some_executable.exe. This executes a command prompt window, which executes another command prompt window, where your executable runs.
    You can just use cmd /c some_executable.exe some_parameters_if_needed, and you don't need any quotation marks, even if the executable has command line parameters. I you want that the executable runs in particular directory, wire this path to the 'working directory' of System Exec.vi

  • How to change the ECC Source system in SAP BI

    Dear Experts,
    In my BI development system instead of showing ECC development system as a source system it is showing ECC production system.
    Now in my BI system I want to change the source system from ECC Production to ECC development.
    Kindly explain me step by step to change the source system from ECC Production to ECC development.
    Regards,
    Suresh.

    Hi,
    Ask your basis team to change source system entries.
    They knows how to assign logical mappings.
    Tx - BDLS.
    Tables - RSLOGSYSMAP.
    Try this way.
    Bw, Tx - RSA1-->source system, Menu Tools - Conversion of logical system name and Assignment of source system to source system ID.
    Thanks

  • How to change the SID during system copy

    This blog /people/johannes.heinrich/blog/2006/07/07/new-features-in-db2-udb-v9--part-3 (i.e.  the "new feature of V9" in this group) only
    talk about the system copy without changing the SID.
    In reality, we often want to change the SID during the system copy. Can we modify the script mentioned in above blog
    to make SID change possible?
    Thanks!

    Hi Christy,
    if you´re using export/import which is prefered you can change the sid during the parameter setting for export and import. You´ll be asked by the old sid and the new sid. For the tablespace names it is not so important because db2 is using tablespace id not the name for the internal administration.
    Regards
    Olaf

  • Changing the default logical system names for adaptive RFC models

    Hello,
    When I create an Adaptive RFC model the dialog that asks me to specify the model name, package, source folder, etc. has default values in the "Default logical system name for model instances" and "... RFC metadata".
    I know I can type in another name there but I'd like to change the default name to something that fits our naming conventions. Can I change that? If so, can someone tell me where?
    Thanks in advance!
    David.

    Suresh,
    Thank you for your response. However, that is not what I was looking for. Sorry if my post was not clear.
    I knew that I could change it AFTER the import. I also know that I can type in something else besides the default DURING the import.
    What I am asking is if there is a way to change some configuration setting so that the 'default' that comes up in the drop down DURING the import is something different than what comes 'out-of-the-box' with NWDS.
    Hope that clears up what I'm looking for.
    David.
    Message was edited by:
            David Z. Pantich

  • After updating to Yosemite audio is monophonic unless I change the balance in System Prefs

    After updating to Yosemite I have to go into System Prefs after every reboot to change the balance in sound to make sound stereo, always defaults to the right speaker.  Anyone know what the fix for this is?  Repair perms? External audio device conflict?  Using Logitech speaker system w/ 2 satellite speakers and a sub-woofer and never had a problem w/ them over the past 10 yrs.

    Hello worldofkane,
    It may help to reset your Mac's PRAM.
    Reset your computer’s PRAM
    http://support.apple.com/kb/HT1379
    Cheers,
    Allen

  • [C\C++ 11 - win32] - how change the get menus system item MENUINFO structure?

    i have these code for change the menu system item MENUINFO structure:
    MENUINFO mnInfo;
    mnInfo.cbSize=sizeof(MENUINFO);
    mnInfo.fMask=MIM_STYLE;
    if(systmenu==false)
    GetMenuInfo(GetMenu(MainHWND),&mnInfo);
    else
    GetMenuInfo(GetSystemMenu(MainHWND,false),&mnInfo);
    mnInfo.cbSize=sizeof(MENUINFO);
    mnInfo.fMask=MIM_STYLE;
    mnInfo.dwStyle=MNS_NOTIFYBYPOS;
    if(systmenu==false)
    SetMenuInfo(GetMenu(MainHWND),&mnInfo);
    else
    SetMenuInfo(GetSystemMenu(MainHWND,false),&mnInfo);
    MessageBox(NULL,to_string(GetLastError()).c_str(),"erro", MB_OK);
    but the message box give me 87: "The parameter is incorrect."
    what i'm doing wrong?
    (the menu system item is added without problems. my problem is changing it for i use the WM_MENUCOMMAND message)

    with more work and tests i resolve it ;)
    else if(GetMenuState((HMENU)lParam,LOWORD(wParam),MF_BYCOMMAND)==0xFFFFFFFF && Last_Menu_ID != -1 )
    i'm testing if the menu item is valid or not and test if the Last_Menu_ID is diferent than -1 ;)
    heres then menu code message:
    //for get the menu click event
    //i'm using menu notifications
    case WM_MENUCOMMAND:
    MENUITEMINFO menuInfo;
    menuInfo.cbSize = sizeof(MENUITEMINFO);
    menuInfo.fMask=MIIM_DATA;
    if(GetMenuItemInfo((HMENU)lParam,(UINT) wParam, true, &menuInfo )!=0)
    Menu *mMenu = (Menu *) menuInfo.dwItemData;
    if(mMenu!=NULL)
    mMenu->Click();
    menuhandle=NULL;
    break;
    //when the mouse move, enter, leave and leave the menu
    case WM_MENUSELECT:
    static int Last_Menu_ID = -1;
    if(((HIWORD(wParam) & MF_HILITE) || (HIWORD(wParam) & MF_MOUSESELECT)) && GetMenuState((HMENU)lParam,LOWORD(wParam),MF_BYCOMMAND)!=0xFFFFFFFF)
    //mouse leave the previous menu item
    if(GetMenuState((HMENU)lParam,Last_Menu_ID,MF_BYCOMMAND)!=0xFFFFFFFF)
    MENUITEMINFO menuInfo;
    menuInfo.cbSize = sizeof(MENUITEMINFO);
    menuInfo.fMask=MIIM_DATA;
    GetMenuItemInfo((HMENU)lParam,Last_Menu_ID, FALSE, &menuInfo );
    Menu *mMenu = (Menu *) menuInfo.dwItemData;
    if (mMenu!=NULL)
    mMenu->Leave();
    //Mouse Enter on actual menu item
    MENUITEMINFO menuInfo1;
    menuInfo1.cbSize = sizeof(MENUITEMINFO);
    menuInfo1.fMask=MIIM_DATA;
    GetMenuItemInfo((HMENU)lParam,LOWORD(wParam), FALSE, &menuInfo1 );
    Menu *mMenu = (Menu *) menuInfo1.dwItemData;
    if (mMenu!=NULL)
    mMenu->Enter();
    Last_Menu_ID = LOWORD(wParam);
    //testing if the menu item is valid and the Last_Menu_ID isn't -1
    else if(GetMenuState((HMENU)lParam,LOWORD(wParam),MF_BYCOMMAND)==0xFFFFFFFF && Last_Menu_ID != -1 )
    //mouse live the menu
    MENUITEMINFO menuInfo;
    menuInfo.cbSize = sizeof(MENUITEMINFO);
    menuInfo.fMask=MIIM_DATA;
    GetMenuItemInfo(menuhandle,Last_Menu_ID, FALSE, &menuInfo );
    Menu *mMenu = (Menu *) menuInfo.dwItemData;
    if (mMenu!=NULL)
    mMenu->Leave();
    Last_Menu_ID = -1;
    return DefWindowProc(HandleWindow, msg, wParam, lParam);
    break;
    //the popup menu is open
    //so i can get the menu handle
    case WM_INITMENUPOPUP:
    menuhandle=(HMENU)wParam;
    return DefWindowProc(HandleWindow, msg, wParam, lParam);
    break;
    //some menus items are on system menu control
    case WM_SYSCOMMAND:
    //testing if the menu handle isn't null and if the menu item is valid
    if (menuhandle!=NULL && GetMenuState(menuhandle,wParam,MF_BYCOMMAND)!=0xFFFFFFFF )
    MENUITEMINFO menuInfo;
    menuInfo.cbSize = sizeof(MENUITEMINFO);
    menuInfo.fMask=MIIM_DATA;
    GetMenuItemInfo(menuhandle,(UINT) wParam, FALSE, &menuInfo );
    Menu *mMenu = (Menu *) menuInfo.dwItemData;
    if (mMenu!=NULL)
    mMenu->Click();
    menuhandle=NULL;
    return DefWindowProc(HandleWindow, msg, wParam, lParam);
    break;
    if the readers have problems with code, please tell me ;)
    thanks for all Igor

  • How to change the category of system messages in PS

    Hi All,
    Is it possible to change the category (i.e from information to warning/error) of the system messages like CN707 in PS? If yes how?

    Hi,
    You will have to go for development. Use userexit CNEX0009.
    Refer similar thread:Re: CN707, SE721
    Regards
    Edited by: Shrikant Rakate on Jan 14, 2009 4:57 PM
    Edited by: Shrikant Rakate on Jan 14, 2009 4:58 PM
    Edited by: Shrikant Rakate on Jan 15, 2009 12:37 PM
    Edited by: Shrikant Rakate on Jan 15, 2009 12:38 PM

  • [SOLVED] - Changing the root file system to a different disk

    Hi,
    I ran out of disk space on my / partition so I decided to buy a new hard drive, and copy everything over (but with different sized partitions). Hoewever, Arch is still using the old / partition rather than the new one.
    My new home partition is mounted on /home, as I expect. But for some reason, both the old and the new root partitions are mounted on /. Furthermore, I know that the old disk is being used for the root filesystem because conky tells my that it's 94% full, which is how full the old / on my old disk was.
    Here are the things I tried:
    First of all, I changed my fstab so that the root partition on my new disk gets mounted as /. (I also changed it for my /home partition similarly). Here are the relevant lines from my fstab:
    LABEL=new-hitachi-root / ext3 defaults 0 1
    LABEL=new-hitachi-home /home ext3 defaults 0 1
    UUID=3c1c1940-693f-4428-aa89-65e1403241f7 /old-home ext3 defaults 0 1
    UUID=4a84f8ae-4bad-4acf-8573-1a7b244b416c /old-root ext3 defaults 0 1
    After this, gparted reported that my old root partition was mounted under both / and /old-root. My new root partition is mounted under /, also. (So I have two partitions mounted under /, my old and new root partitions. However, the system is using the old root partition, since conky still tells my that / is 94% full).
    I'm not sure what else to try. I tried messing around with /boot/grub/menu.list, but I'm not sure how to modify it, I keep making my system unbootable. At the moment it looks like
    title Arch Linux
    root (hd0,0)
    kernel /vmlinuz26 root=/dev/disk/by-uuid/4a84f8ae-4bad-4acf-8573-1a7b244b416c ro
    initrd /kernel26.img
    (or it did look like that, before I modified it). That seems to be right, because the root entry says (hd0,0), which is the same as /dev/sda, which is the disk where my new root partition is.
    Cheers for any help! I'm pretty stuck until I can get some more space on my root partition.
    Last edited by ElKatrina (2011-11-08 02:06:54)

    karol, thanks. Any idea how to get it to point to my new disk? I tried
    root=/dev/disk/by-label/new-hitachi-root ro
    but I couldn't boot from that, I got loads of errors... it couldn't find proc, it didn't even know the host name, loads of other errors. What is the new naming scheme?
    bangkok_manouel, do you mean grub? I modified /boot/grub/menu.list as described above, is there anything else I should do?
    Edit: I didn't post the whole fstab file, but boot is definetly in there. Actually, I'm still booting from the old disk, since I didn't want to boot from the new one until I got root and home right. (Is this bad?)
    My whole fstab:
    devpts /dev/pts devpts defaults 0 0
    shm /dev/shm tmpfs nodev,nosuid 0 0
    LABEL=callisto /callisto ext3 defaults 0 1
    LABEL=thebe /thebe ext3 defaults 0 1
    LABEL=new-hitachi-boot /new-boot ext3 defaults 0 1
    LABEL=new-hitachi-root / ext3 defaults 0 1
    LABEL=new-hitachi-home /home ext3 defaults 0 1
    UUID=3c1c1940-693f-4428-aa89-65e1403241f7 /old-home ext3 defaults 0 1
    UUID=4795b52b-f849-4bcd-8032-d1634550afdc /boot ext2 defaults 0 1
    UUID=4a84f8ae-4bad-4acf-8573-1a7b244b416c /old-root ext3 defaults 0 1
    Last edited by ElKatrina (2011-11-07 07:52:34)

  • How to change the co-ordinayte system?

    Hello to all,
    I am working on a java project in which i want to display Earth's longitudes and latitudes. Right now my program giving me cartesian means the applet's own co-ordinate but i want the co-ordinates in degrees to solve some communication equations .
    please help me to solve this problem.
    I will be very thankfull to you all...
    My code is given as:
    import java.awt.*;
    import java.applet.*;
    import javax.swing.JApplet;
    import javax.swing.JPanel;
    import java.awt.event.*;
    public class DrawEarth extends JApplet implements MouseListener
         public void mouseClicked (MouseEvent me) {
              xpos = me.getX();
                ypos = me.getY();
                // Check if the click was inside the Earth area.
                if ((xpos >50 && xpos < 450 && ypos >50 &&  ypos < 450)||(xpos >450 && xpos < 850 && ypos >50 &&  ypos < 450)) {
                     mouseClicked = true;
                // if it was not then mouseClicked is false;
                else
                     return ;
                repaint();
          public void mouseEntered (MouseEvent me) {}
          public void mousePressed (MouseEvent me) {}
          public void mouseReleased (MouseEvent me) {} 
          public void mouseExited (MouseEvent me) {}
         boolean mouseClicked;
         int  xpos,ypos;
         String msg;
        public void init() {
             //addMouseListener(this);
             super.init();
             addMouseListener(this);
            setContentPane(new JPanel() {
                final Dimension size = new Dimension(1000, 1000);
                final GradientPaint backgradient = new GradientPaint(0, 0, Color.WHITE, 0, 350, Color.BLACK);
                final GradientPaint earthgradient = new GradientPaint(0, 50, Color.CYAN, 0, 450, Color.GREEN);
                protected void paintComponent(Graphics g) {
                    super.paintComponent(g);
                    Graphics2D g2 = (Graphics2D) g;
                    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
                    g2.setPaint(backgradient);
                    g2.fillRect(0, 0, 1000, 1000);
                    g2.setPaint(backgradient);
                    g2.setPaint(earthgradient);
                    g2.fillOval(50, 50, 400, 400);
                    g2.fillOval(450, 50, 400, 400);
                    g2.setColor(Color.BLUE);
                    g2.setColor(Color.BLUE);
                    g.drawString("270",35,250);
                    g.drawString("300",70,250);
                    g.drawString("330",145,250);
                      g.drawString("(0,0)",245,250);
                      g.drawString("30",345,250);
                      g.drawString("60",415,250);
                      g.drawString("90",445,250);
                      g.drawString("120",470,250);
                      g.drawString("150",545,250);
                         g.drawString("(180,0)",645,250);
                         g.drawString("210",745,250);
                         g.drawString("240",815,250);
                         g.drawString("270",850,250);
                         g.drawString("90",255,48);
                         g.drawString("60",255,77);
                         g.drawString("30",255,150);
                         g.drawString("-30",255,350);
                         g.drawString("-60",255,425);
                         g.drawString("-90",255,460);
                         g.drawString("90",650,48);
                         g.drawString("60",650,77);
                         g.drawString("30",650,150);
                         g.drawString("-30",650,350);
                         g.drawString("-60",650,425);
                         g.drawString("-90",650,460);
                    for (int i = 0; i <= 180; i += 10) {
                        int widthlong = (int) (200 * Math.cos(Math.toRadians(i)));
                        g2.drawOval(250 - widthlong, 50, 2 * widthlong, 400);
                        g2.drawOval(650 - widthlong, 50, 2 * widthlong, 400);
                        int widthlat = (int) (200 * Math.sin(Math.toRadians(i)));
                        g2.drawLine(250 - widthlat, 250 - widthlong, 250 + widthlat, 250 - widthlong);
                        g2.drawLine(650 - widthlat, 250 - widthlong, 650 + widthlat, 250 - widthlong);
                    double xco = xpos/22.22;
                    double yco = ypos/22.22;
                        if(xpos >50 && xpos < 450 && ypos >50 && ypos < 250){
                             g.drawString("("+xpos+","+ypos+")",xpos,ypos);
                        if(xpos >450 && xpos < 850 && ypos >50 && ypos < 250){
                             g.drawString("("+xpos+","+ypos+")",xpos,ypos);
                        if(xpos >50 && xpos < 450 && ypos >250 && ypos < 450){
                             g.drawString("("+xpos+","+ypos+")",xpos,ypos);
                        if(xpos >450 && xpos < 850 && ypos >250 && ypos < 450){
                             g.drawString("("+xpos+","+ypos+")",xpos,ypos);
                        if((xpos==250&&ypos==50)  || (xpos== 650 && ypos==450 )){
                             g.drawString("("+xpos+","+ypos+")",xpos,ypos);
                        if(xpos >=50 && xpos <= 850 && ypos ==250 ){
                             g.drawString("("+xpos+","+ypos+")",xpos,ypos);
               /* public Dimension getPreferredSize()
                    return size;
       

    =)
    For the boundaries of the globe you can test if the click was outside the globes by comparing the radius and the calculated distance from the center of each globe for each globe separately. The transform of the drawing the OP made is not a standard one so I'm having to comprehend the calculus of transformations I picked up last year and combine it with the linear algebra I learned this year ( might take until next week =( ). I tried implementing it by using weighted average procedures
    i.e.
    >
    delta = ( 1 - t )*P + tQ>
    where t is time in fraction of the total time and P and Q are two different points on a line. But there is also the effect of moving away from the equator for the longitude where the effect on the rate of change is increased when moving sideways ( longitude measures degrees around the earth from the prime meridian ) and when I tried to implement those two effects together, they seem to work for some parts but fail as I go diagonally (simply put) from 0deg,0deg which give false results in that the lat or lon (can remember which) is greater than the possible amount allowed ( i.e. abs_value > 180 for longitude or > 90 for latitude ).
    Here's the code so far if you want to take a look at it:
    I wasn't trying to worried too much about anything else but the algorithm for transforming the coords. I added the JLabel on the north side so I wouldn't have to look at the command prompt.
    import java.awt.Dimension;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    import java.awt.Color;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.GradientPaint;
    import java.awt.RenderingHints;
    import java.awt.Point;
    import java.awt.event.MouseListener;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import java.awt.BorderLayout;
    import javax.swing.JLabel;
    public class DrawEarthPanel extends JPanel
         public static final long serialVersionUID = 1L;
         private static final Dimension size = new Dimension(900, 500); // width, height
         private static final GradientPaint backgradient = new GradientPaint(0, 0, Color.WHITE, 0, 350, Color.BLACK);
         private static final GradientPaint earthgradient = new GradientPaint(0, 50, Color.CYAN, 0, 450, Color.GREEN);
         private boolean mouseClicked;
         private int xpos = 0;
         private int ypos = 0;
         public DrawEarthPanel()
              addMouseListener( new MouseEvents() );
         public Dimension getPreferredSize()
              return DrawEarthPanel.size;
         public void paintComponent( Graphics g )
              super.paintComponent(g);
              Graphics2D g2 = (Graphics2D) g;
              g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
              g2.setPaint(backgradient);
              g2.fillRect(0, 0, 1000, 1000);
              g2.setPaint(earthgradient);
              g2.fillOval(50, 50, 400, 400);
              g2.fillOval(450, 50, 400, 400);
              g2.setColor(Color.BLUE);
              g.drawString("270",35,250);
              g.drawString("300",70,250);
              g.drawString("330",145,250);
              g.drawString("(0,0)",245,250);
              g.drawString("30",345,250);
              g.drawString("60",415,250);
              g.drawString("90",445,250);
              g.drawString("120",470,250);
              g.drawString("150",545,250);
              g.drawString("(180,0)",645,250);
              g.drawString("210",745,250);
              g.drawString("240",815,250);
              g.drawString("270",850,250);
              labelLatitudes( g, 255 );
              labelLatitudes( g, 650 );
              for ( int i=0; i<=180; i+=10 )
                   int wLon = (int) (200 * Math.cos(Math.toRadians(i)));
                   g2.drawOval(250-wLon, 50, 2*wLon, 400);
                   g2.drawOval(650-wLon, 50, 2*wLon, 400);
                   int wLat = (int) (200 * Math.sin(Math.toRadians(i)));
                   g2.drawLine(250-wLat, 250-wLon, 250+wLat, 250-wLon);
                   g2.drawLine(650-wLat, 250-wLon, 650+wLat, 250-wLon);
         private static final Point left_globe_origin = new Point( 250, 250 );
         private static final Point right_globe_origin = new Point( 650, 250 );
         private static final int globe_radius = 200;
         private void labelLatitudes(Graphics g, int x)
              g.drawString("90",x,48);
              g.drawString("60",x,77);
              g.drawString("30",x,150);
              g.drawString("-30",x,350);
              g.drawString("-60",x,425);
              g.drawString("-90",x,460);
         class MouseEvents extends MouseAdapter implements MouseListener
              public void mouseClicked( MouseEvent evt )
                   xpos = evt.getX();
                   ypos = evt.getY();
                   System.err.println("DEBUG: xpos="+xpos+", ypos="+ypos);
                   double lat = 0.0;
                   double lon = 0.0;
                   if ( xpos>50 && xpos<450 && distance(left_globe_origin,xpos,ypos) <= globe_radius ) // left globe
                        Point origin = left_globe_origin;
                        double radius = globe_radius;
                        double dx = xpos-origin.x;
                        double dy = -ypos+origin.y;
                        lat = (dy/(radius-dx))*90;
                        lon = (dx/(radius-dy))*90;
                   //     lat = ypos - 250;
                   //     lon = xpos - 250;
                        setLabel( String.format( "longitude >>> %.3f, latitude >> %.3f", lon, lat ) );
                        System.err.println( "DEBUG: lat=" + lat + ", lon=" + lon );
                   else if ( xpos>450 && xpos<850 && distance( right_globe_origin,xpos,ypos) <= globe_radius ) // right globe
                        Point origin = right_globe_origin;
                        int radius = globe_radius;
                        int dx = xpos-origin.x;
                        int dy = ypos-origin.y;
                        lat = (1d*dx/radius+1d*dy/radius)*90;
                        lon = (1d*dx/radius+1d*dy/radius)*90;
                   //     lat = ypos - 250;
                   //     lon = xpos - 650;
                        setLabel( String.format( "longitude >>> %3.3f, latitude >> %3.3f", lon, lat ) );
                        System.err.println( "DEBUG: lat=" + lat + ", lon=" + lon );
                   repaint();
         private static JLabel output = new JLabel( "Output of Longitude and Latitude" );
         public static void setLabel( String text )
              output.setText( text );
         public static double distance( Point origin, int x, int y )
              return Math.pow( Math.pow((x-origin.x),2)+Math.pow((y-origin.y),2), 0.5 );
         private static void createAndShowGUI()
              JFrame frame = new JFrame( "DrawEarthPanel" );
              frame.setLayout( new BorderLayout() );
              frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
              frame.setLocation(10, 10);
              frame.setContentPane(new DrawEarthPanel());
              frame.add( output, BorderLayout.NORTH );
              frame.pack();
              frame.setVisible(true);
         public static void main( String[] args )
              javax.swing.SwingUtilities.invokeLater(
                   new Runnable()
                        public void run()
                             createAndShowGUI();
    }The transform isn't a regular one since the OP kept his lat. lines straight so it's kind of weird to me right now.
    Happy coding

  • Changing the root file system device to another device.

    Hi all,
    I have my arch root file system on /dev/sda1  ext4 and /home on /dev/sda6 , I need to change root device to /dev/sda5. Can I do it just by copying / to
    /dev/sda6 and reinstalling grub? Please help me if anyone tried it.
    Thanks & Regards

    boot up a (any) live CD, cp -a, generate a new grub.cfg/adjust menu.lst and don't forget to update your fstab - done.
    Just done it myself.

  • Change of the backend logical system server

    Hi all,
    Our client is changing the backend logical system's server which is of ECC 6.0 moving all the transports in production from ECC system to another.
    Can anyone explain what will be the impact to the SRM server? We have SRM 5.0( two clients one for EBP and another for SUS) and ECC 6.0 as the backend.
    Do anyone else share their experience while changing the backend server in this case?
    Our client says they will use the same name of the logical system so that all the config with that logical system name is taken care of.
    Any thoughts on this please.
    Best regards,
    Sridhar.

    Hi Dinesh,
    Yes we are using backend material groups and materials. I hope you are speaking about the CRMPRLS (in R3) and CRMMLSGUID (in SRM) tables GUID entry for the backend logical system. We will verify that entry.
    But can anyone has come across the same scenario,
    You mean to say we have to follow the steps and do material replication again for the new backend server.
    We have a plan to use same logical system name for the new production server also.
    Any clues/suggestions.
    Best regards,
    Sridhar

Maybe you are looking for