Help on using NewObject with constructors!

Hi,All:
I want to create an object in a native method. The object is an instance of an inner class. The inner class has two constructors: one default and one with two arguments. There is no problem if I use NewObject with the default construtor. But if I use NewObject with the constructor taking two int arguments. The JVM crashes.
Can anybody give me some idea what the problem is?
Thanks!
Tao
Here is the native method, the inner class and error message:
JNIEXPORT jobject JNICALL Java_Prompt_createtp(JNIEnv *env, jobject obj)
     jobject test_ttt= 0;
     jclass cls2;
     jmethodID cid;     
     jint a,b;
     jfieldID fid;
     a = 10; b = 20;
     cls2 = (*env)->FindClass(env,"LPrompt$tp;");          
     cid = (*env)->GetMethodID(env,cls2,"<init>","(LPrompt;II)V");     
test_ttt = (*env)->NewObject(env,cls2,cid,a,b);
// However, the following codes using default constructor works well
//cid = (*env)->GetMethodID(env,cls2,"<init>","(LPrompt;)V");     
//test_ttt = (*env)->NewObject(env,cls2,cid);
(*env)->DeleteLocalRef(env,cls2);
     return test_ttt;
// here is the inner class     
class tp{
int a;
int b;
tp(){
a = 100;
b = 0;
tp(int x,int y){
a = x; b = y;
# An unexpected error has been detected by HotSpot Virtual Machine:
# Internal Error (53484152454432554E54494D450E43505001A3), pid=276, tid=640
# Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode)
# An error report file with more information is saved as hs_err_pid276.log
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#

You are getting the constructor id on a signature that looks like:
Prompt(Prompt p, int n1, int n2)I guess that your constructor signature is:
Prompt(int n1, int n2)So it should ne:
cid = (*env)->GetMethodID(env,cls2,"<init>","(II)V");Next time please paste your code between code tags exactly like this:
&#91;code&#93;
your code
&#91;/code&#93;
You may read the [url http://forum.java.sun.com/help.jspa?sec=formatting]Formatting tips for more information.
Regards

Similar Messages

  • Help on using hashtables with sub structures inside

    Hi everyone,
    I'm currently working on a script that scans Active Directory for computers, and lists current users logged, and logs to an hashtable the username as key, and a count as a value.
    After that it sends an email with the list. This part is all developed and working. Now I want to go further, and in the hash table, I would like to have as the key the username, and as the value the counter and a list of the computer names where the user
    is logged on.
    I have this code for working with the hashtable:
    ForEach ($c in $computer) {
    #Get explorer.exe processes
    $proc = gwmi win32_process -computer $c -Filter "Name = 'explorer.exe'"
    #Go through collection of processes
    ForEach ($p in $proc) {
    $temp = "" | Select Computer, Domain, User
    $temp.computer = $c
    $temp.user = ($p.GetOwner()).User
    $temp.domain = ($p.GetOwner()).Domain
    $report += $temp
    If($UsersList.ContainsKey($temp.user) -eq 1){
    $UsersList[$temp.user] = $UsersList[$temp.user] + 1
    #$UsersList
    Else {
    $UsersList.add($temp.user,1)
    Can I have it the way I'd like, or have to change my approach?
    Thanks in advance
    Nuno Silva

    Thanks for the help. One more question regarding printing the arraylist.
    I use the code below to print everything. I can print successfully the key and value but get an error on the computerlist.
    ($UsersList.GetEnumerator() |
    Sort-Object Value -descending |
    % { "{0}, {1} - {3}" -f $_.key, $_.value.Count, $_.value.ComputerList })
    Error formatting a string: Index (zero based) must be greater than or equal to zero and less than the size of the argument list..
    +     % { "{0}, {1} - {3}" -f $_.key, $_.value.Count, $_.value.ComputerList[0] })
    +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: ({0}, {1} - {3}:String) [], RuntimeException
        + FullyQualifiedErrorId : FormatError
    Error formatting a string: Index (zero based) must be greater than or equal to zero and less than the size of the argument list..
    How can I print it out?
    Thanks in advance,
    Nuno Silva

  • HELP, HELP, HELP, Problems using GridBagLayout with a BorderLayout

    I have a BorderLayout for my application. I created a JPanel that has the following items added to it:
    1)Button
    2)VisualComponent
    3)ControllerComponent
    The JPanel is then added to the WEST Pane of the BorderLayout. My problem is that I can not get my components in the JPanel to display correctly. The items should be added from top to buttom in my JPanel, but they overlap and display side by side, and some don't appear at all until my entire window application is Maximized. It seems as if all my components are trying to display in one row even though I explicitly add them to different rows as follows:
    1)addUsingGBL(openFile,0,1,2,1);
    2)addUsingGBL(visualComponent,1,1,1,3);
    3)addUsingGBL(controlsComponent,4,1,2,1);
    where addUsingGBL is as follows:
    void addUsingGBL(Component component,int row, int column, int width, int height)
    gbc. gridx = row;
         gbc.gridy = column;
         gbc.gridwidth = width;
         gbc.gridheight = height;
         gbLayout.setConstraints(component, gbc);
         mediaPanel.add(component);
         mediaPanel.doLayout();
    If anyone has any suggestions, I would greatly appreciate it. Entire code is available if needed. Thanks!

    Here is the code, sorry, didn't see that part before.
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.media.*;
    public class MediaPlayerDemo extends JFrame /*implements ControllerListener*/{
    private Player player;
    private File file;
    public static JPanel mediaPanel;
    public static JScrollPane scrollableMediaPanel;
    //public static JFrame navigation = new JFrame("Lessons");
    public static Component visualComponent;
    public static Component controlsComponent;
    private static ImageIcon background = new ImageIcon("c:/Tony.jpg");
    public static GridBagConstraints gbc;
    public static GridBagLayout gbLayout;
    //public static panel column;
    //public static Container c;
    // inner class to handler events from media player
    private class EventHandler implements ControllerListener
         public void controllerUpdate( ControllerEvent e )
              if ( e instanceof EndOfMediaEvent)
              //if ( player == null )
              //return;
              player.close();
              //if ( visualComponent != null )
              mediaPanel.remove( visualComponent );
              //if ( controlsComponent != null )
              mediaPanel.remove( controlsComponent );
              mediaPanel.doLayout();
              // doLayout();
              if ( e instanceof RealizeCompleteEvent )
                   //c = getContentPane();
                   // load Visual and Control components if they exist
                   visualComponent =
                   player.getVisualComponent();
                   //visualComponent.setSize(5,5);
                   mediaPanel.doLayout();
                   //**Sets the layout for mediaPanel as GridLayout**
                   //**GridLayouts set the rows and col, **
                   //**& adds contentslt to rt **
                   //scrollableMediaPanel= new JScrollPane(mediaPanel);
                   //scrollableMediaPanel= new JScrollPane(mediaPanel);
                   gbc.weightx = 0;
                   gbc.weighty = 0;
                   gbc.fill = GridBagConstraints.NONE;
                   if ( visualComponent != null )
                   //add comp #2
                   addUsingGBL(visualComponent,1,1,1,3);
                   controlsComponent =
                   player.getControlPanelComponent();
                   if ( controlsComponent != null )
                   //add comp #3
                   //mediaPanel.add(controlsComponent);
                   addUsingGBL(controlsComponent,1,1,1,3);
                   controlsComponent =
                   player.getControlPanelComponent();
                   /*if ( controlsComponent != null )
                   //add comp #3
                   addUsingGBL(controlsComponent,4,1,2,1);
              doLayout();//after all components are added, you must redo your layout
              //**The following is for adding the a container only **
              //**getContentPane().add(mediaPanel,BorderLayout.WEST);**
              //**getContenPane().doLayout(); **
              //**setSize(200,700);//(width, Height) **
              //**show(); **
              }//if
         }//controllerUpdate
    }//eventHandler
    public MediaPlayerDemo()
         //**Title for a container **
         //**super( "Demonstrating the Java Media Player" );**
         mediaPanel = new panelBack(background);//instantiate JPanel Object
         gbLayout = new GridBagLayout();
         mediaPanel.setAlignmentY(TOP_ALIGNMENT);
         mediaPanel.setLayout(gbLayout);
                   gbc = new GridBagConstraints();
                   gbc.fill = GridBagConstraints.NONE;
                   //gbc.anchor = GridBagConstraints.NONE;
         //instatiate JButton object
         JButton openFile = new JButton( "Open file to play" );
         //openFile.setBounds(0, 0, 25, 25);
         //openFile.setVisible(true);
         //JBUTTON ActionListener
         openFile.addActionListener
              new ActionListener()
                   public void actionPerformed( ActionEvent e )
                   openFile();
                   createPlayer();
         );//addActionListener
         //add comp #1
         addUsingGBL(openFile,0,1,2,1);
         //set scrollPane
         scrollableMediaPanel = new JScrollPane(mediaPanel,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
                   JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS );
         //Set Border
         scrollableMediaPanel.setViewportBorder(new BevelBorder(BevelBorder.RAISED));
    }//Constructor
    private void createPlayer()
         if ( file == null )
              return;
         removePreviousPlayer();
         try
              // create a new player and add listener
              player = Manager.createPlayer( file.toURL() );
              player.addControllerListener( new EventHandler() );
              player.start(); // start player
         catch ( Exception e )
              JOptionPane.showMessageDialog( this,
                   "Invalid file or location", "Error loading file",
                   JOptionPane.ERROR_MESSAGE );
    //Main only useful if creating a container to hold menuPanel
    public static void main(String args[])
         MediaPlayerDemo app = new MediaPlayerDemo();
         app.getContentPane().setLayout(new BorderLayout(0,0));
              app.getContentPane().setBackground(Color.white);
              app.getContentPane().add(scrollableMediaPanel, BorderLayout.WEST);
         app.getContentPane().validate();//re-layout a container for which the layout has changed
         app.setSize(1000,700);//(width, height)
         app.show();
         app.addWindowListener
              new WindowAdapter()
                   public void windowClosing( WindowEvent e )
                   System.exit(0);
    private void openFile()
         JFileChooser fileChooser = new JFileChooser();
         fileChooser.setFileSelectionMode(
              JFileChooser.FILES_ONLY );
         int result = fileChooser.showOpenDialog( this );
         // user clicked Cancel button on dialog
         if ( result == JFileChooser.CANCEL_OPTION )
              file = null;
         else
              file = fileChooser.getSelectedFile();
    private void removePreviousPlayer()
         if ( player == null )
              return;
         player.close();
         if ( visualComponent != null )
              mediaPanel.remove( visualComponent );
         if ( controlsComponent != null )
              mediaPanel.remove( controlsComponent );
         //set background for the JPanel
         public class panelBack extends JPanel
              ImageIcon image;
              panelBack(ImageIcon image)
                   super();
                   this.image=image;
              public void paintComponent(Graphics g)
                   image.paintIcon(this,g,0, 0);
         }//panelback
    void addUsingGBL(Component component,int row, int column, int width, int height)
    gbc = new GridBagConstraints();
         gbc. gridx = row;
         gbc.gridy = column;
         gbc.gridwidth = width;
         gbc.gridheight = height;
         gbLayout.setConstraints(component, gbc);
         mediaPanel.add(component);
         mediaPanel.doLayout();
    }//MediaPlayerDemo

  • Looking for examples/help on using Ethernet with Keithley 2701 DMM

    All of the example code utilizing their IVI driver is based on GPIB or RS232. I specifically bought the 2701 to utilize the Ethernet port, but cannot find CVI examples on how to do this. Can anyone point me to an ethernet example using their driver and the Ethernet port? Or perhaps post a non-Keithley ehternet driver and examples on its use?

    Hi Paul,
    What you have been told is exactly what you need to do.
    Here is a document in NI web that explains about it:
    How Can I Communicate With a Keithley 2701 DMM?
    There is also an Instrument driver that NI built for these DMM:
    LabVIEW Certified Plug and Play Instrument Driver
    To find this documents you need to go to NI.com and at the top on the search box enter 2701. That will give you all the documents related to this.
    Thank you
    Ricar
    do S.
    National Instruments.

  • Can you help me use PSE9 with CS5 as an external editor?

    Hello,
    I much prefer the Elements Organizer to Bridge, and have a large catalog with tags that I don't want to give up.  95% of the time, I am perfectly happy with the PSE9 editor.  However, for the other 5% of the time, CS5 is the ticket (even if only for the better Camera RAW processing).  However, I can't seem to save the resulting edited photo in a version set with the original, and for that matter, it seems to get lost somewhere in the ether but PSE9 continues to believe that the file is being edited.
    Any help would be appreciated.
    Thanks in advance,
    Claude

    In the Organizer go to Edit >>Preferences >>Editing
    Under supplementary editing browse to the CS5 editing application and select it, then click OK.
    To edit an image select it in Organizer and click Edit >>With CS5.
    A new image will be launched automatically and when saved in CS5 will be found next to the original in a version set in the Organizer.
     

  • Need help on using Tuxedo with Oracle 8

    Hi friends,
    I wrote a simple tuxedo server with embedded sql that has only the task to insert
    a string passed by the client into a table in oracle DB.
    The Server is logged on to the database correctly during tmboot. When I start the
    client the service function will be invoked and it returns TPSUCCESS. But somehow
    my sql statements are ignored. No record is added to the table and I got no sql errors.
    Here is my service function (AUTOTRAN=Y):
    void INSERT(TPSVCINFO *msg){
    EXEC SQL insert into ABC values ('some data');
    EXEC SQL COMMIT WORK;
    if (SQLCODE != SQL_OK){
    tpreturn(TPFAIL, 0, msg->data, 0L, 0);
    tpreturn(TPSUCCESS, 0, msg->data, 0L, 0);
    Thanks in advance.
    Kevin

    Thanks for your help.
    Kevin
    "Manoj SASIDHARAN" <[email protected]> wrote:
    >
    Hi Kevin,
    Oracle Docs has the following to say abt SQL Error -36:
    ORA-00036 maximum number of recursive SQL levels (string)
    exceeded
    Cause: An attempt was made to go more than the specified
    number
    of recursive SQL levels.
    Action: Remove the recursive SQL, possibly a recursive
    trigger.
    Pl check if u have some triggers on the table... and also
    determine
    the level of their nesting... That shld probably solve
    ur probs.
    Good Luck
    MS
    "Kevin" <[email protected]> wrote:
    Hi, thanks for your answer.
    But I am not sure of the error message...is the error
    code what
    I got an ORA error code or something else (e.g. why -36
    and not
    36)?
    Please have a look to my source code.
    Hope you can give me more information.
    Thanks in advance
    Kevin
    #include <stdio.h> /*operation system*/
    #include <Uunix.h> /*Tuxedo*/
    #include <errno.h> /*operation system*/
    #include <atmi.h> /*TPSVCINFO, TPFAIL, TPSUCCESS,
    etc.*/
    #include <sqlcode.h> /*SQL related*/
    #include <sqlca.h>
    void
    #if defined(__STDC__) || defined(__cplusplus)
    MSK2MANTA(TPSVCINFO *msg)
    #else
    MSK2MANTA(msg)
    TPSVCINFO *msg;
    #endif
    printf("MSK2MANTA Service started\n");
    if(msg->data == NULL){
    printf("received message is NULL!\n");
    tpreturn(TPFAIL, 0, msg->data, 0L, 0);
    printf("Transaction-Status = %d\n", tpgetlev());
    EXEC SQL insert into BUF values ('sysdate', 'msk2manta
    data');
    if ((sqlca.sqlcode != 0) || (SQLCODE != SQL_OK)){
    printf("Failed to insert! SQLCODE1 = %d\n", SQLCODE);
    printf("Failed to insert! sqlca.sqlcode = %d\n",sqlca.sqlcode);
    printf("Failed to insert! sqlca.sqlerrm.sqlerrmc=
    %s\n", sqlca.sqlerrm.sqlerrmc);
    tpreturn(TPFAIL, 0, msg->data, 0L, 0);
    EXEC SQL COMMIT WORK;
    if (SQLCODE != SQL_OK){
    printf("Failed to commit! SQLCODE2 = %d\n", SQLCODE);
    tpreturn(TPFAIL, 0, msg->data, 0L, 0);
    tpreturn(TPSUCCESS, 0, msg->data, 0L, 0);
    Output: tpgetlev()=1, SQLCODE=-36, sqlca.sqlcode=0, sqlerrmc=""
    Scott Holland <[email protected]> wrote:
    Also... print out the remainder of the sqlca structure.
    You will have
    error text in that structure describing what the actual
    error is.
    sdh
    Kevin wrote:
    Hi Manoj,
    thanks for your answer.
    I added an extra SQLCODE check after the insert andget following
    error:
    "SQLCODE = -36"
    Do you know how to find out what the error is stangfor?
    Thanks
    Kevin
    "Manoj SASIDHARAN" <[email protected]>
    wrote:
    Hi Kevin,
    Could u pl put an extra SQLCODE (or sqlca.sqlcode)check
    after the INSERT statement
    as shown in the modified code and try...
    Currently the check verifies the sqlcode of the COMMIT
    statement and not the INSERT
    statement executed just before.
    HTH
    Regards
    /MS
    "Kevin" <[email protected]> wrote:
    Hi friends,
    I wrote a simple tuxedo server with embedded sql
    that
    has only the task
    to insert
    a string passed by the client into a table in oracleDB.
    The Server is logged on to the database correctly
    during
    tmboot. When I
    start the
    client the service function will be invoked and
    it
    returns
    TPSUCCESS. But
    somehow
    my sql statements are ignored. No record is added
    to
    the table and I got
    no sql errors.
    Here is my service function (AUTOTRAN=Y):
    void INSERT(TPSVCINFO *msg){
    EXEC SQL insert into ABC values ('some data');
    //// MS CHANGES - START
    printf("SQLCODE = %ld", sqlca.sqlcode);
    if (sqlca.sqlcode != 0) {
    ////// Handle the case
    //// MS CHANGES - STOP
    EXEC SQL COMMIT WORK;
    if (SQLCODE != SQL_OK){
    tpreturn(TPFAIL, 0, msg->data, 0L, 0);
    tpreturn(TPSUCCESS, 0, msg->data, 0L, 0);
    Thanks in advance.
    Kevin

  • HELP, HELP, HELP, Problems using GridBagLayout with BorderLayout

    I have a BorderLayout for my application. I created a JPanel that has the following items added to it:
    1)Button
    2)VisualComponent
    3)ControllerComponent
    The JPanel is then added to the WEST Pane of the BorderLayout. My problem is that I can not get my components in the JPanel to display correctly. The items should be added from top to buttom in my JPanel, but they overlap and display side by side, and some don't appear at all until my entire window application is Maximized. It seems as if all my components are trying to display in one row even though I explicitly add them to different rows as follows:
    1)addUsingGBL(openFile,0,1,2,1);
    2)addUsingGBL(visualComponent,1,1,1,3);
    3)addUsingGBL(controlsComponent,4,1,2,1);
    where addUsingGBL is as follows:
    void addUsingGBL(Component component,int row, int column, int width, int height)
    gbc. gridx = row;
    gbc.gridy = column;
    gbc.gridwidth = width;
    gbc.gridheight = height;
    gbLayout.setConstraints(component, gbc);
    mediaPanel.add(component);
    mediaPanel.doLayout();
    If anyone has any suggestions, I would greatly appreciate it. Entire code is available if needed. Thanks!

    void addUsingGBL(Component component,int row, int column, int width, int height)
    gbc. gridx = row;
    gbc.gridy = column;
    gbc.gridwidth = width;
    gbc.gridheight = height;
    gbLayout.setConstraints(component, gbc);
    mediaPanel.add(component);
    mediaPanel.doLayout();
    }I see that the problem is that you are using the same gridbagconstraints reference to add all your components. In effect, all your components refer to the same gridbagconstraints , you are getting all the components on a single row. The solution to this is simple - Try this out and tell me whether that works...
    void addUsingGBL(Component component,int row, int column, int width, int height)
    //Add this line in the beginning...
    gbc = new GridBagConstraints();
    gbc. gridx = row;
    gbc.gridy = column;
    gbc.gridwidth = width;
    gbc.gridheight = height;
    gbLayout.setConstraints(component, gbc);
    mediaPanel.add(component);
    mediaPanel.doLayout();

  • Help needed - using AG241 with WRT54GS

    Hey,recently i had successfully been using this set up.The wireless worked perfectly without any problems.However,setting it up to work was not so easy.
    And now my wireless routers setting were restored to default and I am unable to get the two working together.Can you guys give me some advice please?
    ie Should the WRT54GS be operating in router mode or gateway mode and should both have DHCP turned on?
    thanks for your time.
    -Ian

    and I forgot to mention I'd like to be able to send and recieve audio and midi between the 3 daws like using one to sequence another and say be able to export midi/audio to ableton and start it playing.
    I also dj so I would ultimately prefer to be creating and compiling drum and synth loops and easily pass them to ableton whether in the studio or at a gig.

  • Help using -replace with wildcard characters, specifically braces

    Hello all,
    Needing help in using -replace with literal wildcard characters, specifically the braces characters. From reading old posts online this seems to have been a notorious shortcoming of PowerShell, but not sure if it's been resolved or not. My simple
    code tries to remove the braces as follows (would like to keep the foreach loop and everything as is if possible):
    $string = "test[]"
    $braces = @("``[","``]")
    Foreach($brace in $braces){
    If($string -like "*$brace*"){
    $string = $string -replace ($brace,"")
    write-host $string
    This code gives an error at the -replace line, saying "The regular expression pattern `] is not valid." I'm not sure how to pass the literal brace characters to the -replace parameter? Can this be done?

    -like is a wildcard operator (it recognized wildcard patterns like * ,? and [a-z].
    For a regular expression you use the -match operator.  
    Wildcard patterns and regular expressions are not interchangeable.
    See:
    get-help about_wildcards
    get-help about_regular_expressions
    for an explanation and examples of each one, and 
    get-help about_comparison_operators
    for examples of using -like and -match.
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • Can we use an overloaded constructor of a Java Bean with Session Tracking

    Hi Friends,
    If any one can solve my query.... It would be helpful.
    Query:
    I have a Java Bean with an overloaded constructor in it. I want to use the overloaded constructor in my JSP.
    1. One way of doing that is to use it directly in the "Scriptlets" (<% %>). But then I am not sure of the way to do session tracking. I think I can use the implicit objects like "session", "request" etc. but not sure of the approach or of the implementation method.
    2. Another way is through the directive <jsp: useBean>. But I cannot call an overloaded constructor with <jsp: useBean>. The only alternative way is to use the directive <jsp: useBean> where I have to write getter and setter methods in the Java Bean and use the <jsp: setProperty> and <jsp: getProperty> standard actions. Then with this approach I cannot use the overloaded constructor.
    Can any one suggest me the best approach to solve this problem ?
    Thanks and Regards,
    Gaive.

    My first reaction is that you can refactor your overloaded constructor into an init(arguments...) method. Instead of overloaded constructor, you can call that init method. This is the ideal solution if possible.
    As to the two choices you listed:
    1. This is OK, I believe. You can use scriplet to define the bean and put it into session scope of the pageContext. I am not sure exactly what you meant by session tracking; whatever you meant, it should be doable using HttpSessionAttributeListener and/or HttpSessionBindingListener.
    2. Agreed. There is no way that <jsp:useBean> can call a constructor that has non-empty arguments.
    Please tell me how it works for you.

  • My iPhone 4 will not sync my new voice memos from the "Voice Memos" app to my computer. This is frustrating, should not be so hard, can someone please help. I use PC with windows 7 with iPhone version 6.1.3 and iTunes most recent. Thanks.

    My iPhone 4 will not sync my new voice memos from the "Voice Memos" app to my computer. This is frustrating, should not be so hard, can someone please help. I use PC with windows 7 with iPhone version 6.1.3 and iTunes most recent. Thanks.

    In the Music tab of iTunes, do you have 'Include Voice Memos' checked?

  • I'm hooked up to the ethernet using DHCP with manual address. It's running (green) but my internet (Safari, messenger, email) doesn't work! Help!

    I'm running an iMac with Mountain Lion. Not only do we do accounting work on this computer with AccountEdge, but the computer functions as a server to another computer in a different state.
    Anyway, I set a static IP address (Using DHCP with manual address) on it (to allow for a VPN to the computer in the different state) and it is connected (green dot) - meaning that the other computer in the different state can connect to us via that ethernet line - but for some reason Safari, Messanger, and Apple Email won't work.
    But if I switch a dynamic IP (DHCP auto), I can use the internet (Safari, messanger, email), but the computer in the different state can't connect to this computer.
    How can I fix this so that the computer in the different state can connect to this computer and that the internet (Safari, messanger, and email) can work at the same time?
    Much thanks!

    No but if they are using a VPN Tunnel for the connection that restricts all internet traffic over the tunnel. Which means you can't use that same computer to broswe the internet or connect to other computers or devices on your LAN.
    I'd need to see the actual setup, router and the IP addresses you are using.
    Networking and remote networking is fairly easy when you are in front of the systems you are working on. Doing it over the internet on a forum is almost impossible. Tha is why I suggested you get local help, like the person that originally set it up.

  • Help with using itunes with 4s library after i upgraded to iPhone 5 and computer power supply went

    long story hopefully an easy fix....
    on wensday my power supply went and had to ship computer across country to Puget Computer Systems as we weren't sure if it was power supply or mobo...luckily it was power supply.
    i daily backed up iphone 4s with itunes (10.7) as i do all music manually, playlists, etc. have like 3,000 plus songs, videos, audiobooks, mail aaccts and about 48 apps.
    so next day (sept 19th) apple comes out with iOS 6 which i update my 4s to with no problem. I wanted a day to play with it to learn my way around.
    next day i wait in line for 8 hours overnite and was #2 in line at apple store for my ATT 32gb white iPhone 5. while at apple store I get my icloud backup which gets all paid music,apps, etc since itunes version 10.3 (i always did both backups so as not to lose my contacts more than anything.
    I have other paid stuff that is in library on computer along with audiobooks and about 2700 more songs.
    my icloud backup put the playlists on iPhone but not most of the music for them as lots were ripped from my cd's.as i double them up making a copy on iPhone and a copy on itunes.
    So I have been using iPhone 5 with no problems just don't have all of itunes library on it. My computer is coming back this week how do I plug in iPhone 5 via USB (which will be seen as new phone even though it has same name) and use my existing iTunes 10.7 library which the backups in iTunes still has iOS 5.1.1 on it?
    There must be an easy way of doing it as i don't want to wipe off iphone 5 again as i don't see any purpose my library is all organized perfectly. I know my way around windows 7 pro 64 bit pretty well just don't know what itunes is going to say once it sees "joe's iPhone" again and installs the usb drivers and icon for it. what will it ask in regards to library and how do i use it with previous iOS on it?
    Thank you very much for the help as I am going to need it.
    yes i broke the cardinal rule of cross posting and apoligize  for it just amazed i couldn't find answer via google nor any apple store genius knew it either.

    Hi All,
    Any help?
    No one has any answers here amoungst all this apple knowledge?
    Thank you

  • I recently updated my Ipod Touch to the ios 6 and now, i cant seem to use it with my itunes! A notification keeps coming up whenever i connect my ipod to itunes that a new version of itunes is required but it is the latest version alrdy. HELP!

    Hi all, I've recently updated my ipod touch to the ios 6 and now i cant seem to use it with my itunes
    whenever i connect my ipod to itunes, a notification saying that i need a newer version of itunes. However, when i check itunes for software updates, it seems i have the current version of itunes
    I am at a lost of what to do as i can no longer sync my ipod touch with my itunes.
    Help Pls!
    thanks

    You might tell us many more things so we don't have to guess and might be able to help.
    What computer do you have?
    What iTunes are you running now?
    What OS X system are you running are your computer now? Or is this a Windows machine?
    Let us know a little more info.

  • Dear Apple,  I have an iPhone 4 32GB (black), i bought from softbank, japan. Now, I have recently finished a graduate and i'll comeback home in Laos. But i can't continue to use my iphone. Could you please help me to unlock my phone so I can use it with o

    Dear Apple,
    I have an iPhone 4 32GB (black), i bought from softbank, japan. Now, I have recently finished a graduate and i'll comeback home in Laos. But i can't continue to use my iphone.
    Could you please help me to unlock my phone so I can use it with other carrier Sims. I would appreciate it.
    Please let me know if you could help me out. Thanks again.
    <Edited by Host>

    Like ckuan said, Apple does not unlock iPhone; your carrier does, provided that the carrier offers this service.
    Unfortunately, SoftBank does not offer authorized unlocking of iPhone.
    Your best option is to sell this phone and buy another iPhone from the carrier of your choice or better buy a factory unlocked iPhone so you would be able to use it with any compatible GSM carrier around the world.

Maybe you are looking for

  • What is the best way to allow one to send an email? Confused.

    Hi, I researched on the forum for the ability to have someone click a button and be able to have a blank email pop up.  I use to use this all the time. However my question is since Outlook Express (and for that matter now Windows mail) are no longer

  • Enqueue works fine Dequeue works when run manually but not via Notification

    Hi, My Enqueue works fine. My Dequeue procedure works fine when run manually. But when I register a notification the procedure is not called. The log file shows: ORACLE_HOME = /u01/app/oracle/product/10.2.0 System name: Linux Node name: gooch.com Rel

  • Xquery: Element to Attribute Mapping - remove empty attribute tags

    Hi, I have a requirement to map source schema xml elements to target schema xml element attributes i have done it like below <Spd minimumvalue = "{ xs:decimal(data($Test/*:A)) }" maximumvalue = "{ xs:decimal(data($Test/*:B)) }" averagevalue = "{ xs:d

  • How to connect and query the sql database in mobile application

    Hello, Can any one say how to connect the sql database from the j2me application. I have got some info that only through servlet or jsp only we can connect the database and from their we should get the info or query in mobile application. Is it true?

  • Configuration not possible

    hi i am getting a error message configaration not possible for reason:3 when i am saving the sales order in make to order process. Can anyone please answer this question. regards, venkat