Results 1 to 8 of 8
  1. #1
    dbashby's Avatar
    dbashby is offline Senior Member
    Join Date
    Mar 2009
    Posts
    223
    Rep Power
    6

    Question Netbeans errors when transferring file

    I have a project running fine on 1 pc within netbeans 6.5, when I put it on my other pc it will not generate the .txt file so in turn wont let me add a record to the file.

    I am running the same jdk, same version of netbeans so I cant work out why I am having this problem. Could someone give me an idea of what is going on please as I havent got a clue.

    The errors generated on the second pc are

    Java Code:
    Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: empty String
            at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:994)
            at java.lang.Double.parseDouble(Double.java:510)
            at assessment3bmi.frmBmi.cmdAddActionPerformed(frmBmi.java:535)
            at assessment3bmi.frmBmi.access$400(frmBmi.java:63)
            at assessment3bmi.frmBmi$5.actionPerformed(frmBmi.java:176)
            at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
            at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
            at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
            at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
            at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
            at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
            at java.awt.Component.processMouseEvent(Component.java:6216)
            at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
            at java.awt.Component.processEvent(Component.java:5981)
            at java.awt.Container.processEvent(Container.java:2041)
            at java.awt.Component.dispatchEventImpl(Component.java:4583)
            at java.awt.Container.dispatchEventImpl(Container.java:2099)
            at java.awt.Component.dispatchEvent(Component.java:4413)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4556)
            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4220)
            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4150)
            at java.awt.Container.dispatchEventImpl(Container.java:2085)
            at java.awt.Window.dispatchEventImpl(Window.java:2475)
            at java.awt.Component.dispatchEvent(Component.java:4413)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
            at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    BUILD SUCCESSFUL (total time: 2 minutes 4 seconds)
    any ideas


    The app is meant to generate a file allowing you to add members details to the .txt file, as I say it works fine on the pc that I wrote it on.
    :confused::confused:

    Thanks in advance

  2. #2
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    450
    Rep Power
    6

    Default

    Why dont you use Jar file instead of source file in PC 2?

    I feel that some properties of your project might be changed while you transfer your file ..

    So you Jar file in Pc 2 to run
    Mak
    (Living @ Virtual World)

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by makpandian View Post
    I feel that some properties of your project might be changed while you transfer your file ..
    I think so. May be he's using some formatting on a string object.

  4. #4
    dbashby's Avatar
    dbashby is offline Senior Member
    Join Date
    Mar 2009
    Posts
    223
    Rep Power
    6

    Default

    so working with an IDE is not always as straight forward as they make you believe then, that is what you are saying?

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    No what I'm saying is, using the files in different PCs on the same working conditions (as you said) must work fine. And it works for me too. What I want to point you see portion of your code may be missing, deleted by mistake.

  6. #6
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    450
    Rep Power
    6

    Default

    What i am thinking about this is,The properties file for your project might be damaged.This is a normal thing...
    Mak
    (Living @ Virtual World)

  7. #7
    dbashby's Avatar
    dbashby is offline Senior Member
    Join Date
    Mar 2009
    Posts
    223
    Rep Power
    6

    Default

    Well as a test I Zipped my file, deleted the original project then rebooted just to make doubly sure I emailed back the copy from my other pc, unzipped on the original pc and everything worked as it should.

    I don't know what is happening but the application runs on the second pc but as soon as i press the button to create file this is when it breaks down, it throws one of the exceptions.

    is this a common thing or am I just unlucky with this one?

  8. #8
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    450
    Rep Power
    6

    Default You are lucky man!

    I feel that the problem you are having is a common one for all IDE and in all platforms such windows,Linux and so on.
    The reasons i think for that are,
    1.Change of version.
    2. Platform dependecies.
    3. Project functional complexities.

    I think you might be suffering by third one.
    If you are strong in your logic just recreate it instead of copying it.

    Thank you.
    Mak
    (Living @ Virtual World)

Similar Threads

  1. Replies: 3
    Last Post: 03-08-2009, 01:51 AM
  2. How to create .war file in NetBeans 6.1
    By shuklajayb in forum NetBeans
    Replies: 0
    Last Post: 12-21-2008, 03:58 PM
  3. Replies: 7
    Last Post: 12-08-2008, 06:20 PM
  4. Transferring Over Network
    By qwerty in forum Advanced Java
    Replies: 2
    Last Post: 08-01-2008, 01:40 PM
  5. file not found outside of Netbeans
    By annie in forum NetBeans
    Replies: 0
    Last Post: 06-21-2008, 10:10 PM

Posting Permissions

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