Java Result: -1073740791

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #16
    Post the error messages here, don't attach files.

    Comment

    • PreethiGowri
      New Member
      • Oct 2012
      • 126

      #17
      WARNING [org.netbeans.mo dules.java.sour ce.tasklist.Inc orrectErrorBadg es]: Incorrect error badges detected, file=C:\Users\O ffice User\AppData\Lo cal\NetBeans\Ca che\7.2\index\s 15\java\14\gens rc\jpcap\packet \Packet.java.
      WARNING [org.netbeans.mo dules.java.sour ce.tasklist.Inc orrectErrorBadg es]: The file is not on its own source classpath, ignoring.
      INFO [org.netbeans.mo dules.parsing.i mpl.TaskProcess or]: Task: class org.netbeans.mo dules.java.sour ce.JavaSourceAc cessor$Cancelab leTaskWrapper ignored cancel for 93 ms.
      WARNING [org.netbeans.mo dules.java.sour ce.tasklist.Inc orrectErrorBadg es]: Incorrect error badges detected, file=C:\Users\O ffice User\AppData\Lo cal\NetBeans\Ca che\7.2\index\s 15\java\14\gens rc\jpcap\JpcapS ender.java.
      WARNING [org.netbeans.mo dules.java.sour ce.tasklist.Inc orrectErrorBadg es]: The file is not on its own source classpath, ignoring.
      INFO [org.netbeans.mo dules.parsing.i mpl.TaskProcess or]: Task: class org.netbeans.mo dules.java.sour ce.JavaSourceAc cessor$Cancelab leTaskWrapper ignored cancel for 81 ms.
      INFO [org.netbeans.mo dules.java.navi gation.ElementS canningTask]: Duplicate top level class: <error>
      INFO [org.netbeans.mo dules.java.navi gation.ElementS canningTask]: Duplicate top level class: <error>
      INFO [org.netbeans.mo dules.java.navi gation.ElementS canningTask]: Duplicate top level class: <error>
      INFO [org.netbeans.mo dules.java.navi gation.ElementS canningTask]: Duplicate top level class: <error>
      INFO [org.netbeans.mo dules.java.navi gation.ElementS canningTask]: Duplicate top level class: <error>
      INFO [org.netbeans.mo dules.java.navi gation.ElementS canningTask]: Duplicate top level class: <error>
      INFO [org.netbeans.mo dules.java.navi gation.ElementS canningTask]: Duplicate top level class: <error>
      INFO [org.netbeans.mo dules.java.navi gation.ElementS canningTask]: Duplicate top level class: <error>
      INFO [org.netbeans.mo dules.java.navi gation.ElementS canningTask]: Duplicate top level class: <error>
      INFO [org.netbeans.mo dules.java.navi gation.ElementS canningTask]: Duplicate top level class: <error>
      INFO [org.netbeans.mo dules.parsing.i mpl.TaskProcess or]: Task: class org.netbeans.mo dules.java.sour ce.JavaSourceAc cessor$Cancelab leTaskWrapper ignored cancel for 61 ms.
      INFO [org.netbeans.mo dules.parsing.i mpl.TaskProcess or]: Task: class org.netbeans.mo dules.java.sour ce.JavaSourceAc cessor$Cancelab leTaskWrapper ignored cancel for 91 ms.
      INFO [org.netbeans.mo dules.parsing.i mpl.TaskProcess or]: Task: class org.netbeans.mo dules.java.sour ce.JavaSourceAc cessor$Cancelab leTaskWrapper ignored cancel for 81 ms.
      INFO [org.netbeans.mo dules.java.navi gation.ElementS canningTask]: Duplicate enclosed element: <error>
      INFO [org.netbeans.mo dules.java.navi gation.ElementS canningTask]: Duplicate enclosed element: <error>
      INFO [org.netbeans.mo dules.java.navi gation.ElementS canningTask]: Duplicate enclosed element: <error>
      INFO [org.netbeans.mo dules.parsing.i mpl.TaskProcess or]: Task: class org.netbeans.mo dules.java.sour ce.JavaSourceAc cessor$Cancelab leTaskWrapper ignored cancel for 69 ms.
      INFO [org.netbeans.mo dules.parsing.i mpl.TaskProcess or]: Task: class org.netbeans.mo dules.java.sour ce.JavaSourceAc cessor$Cancelab leTaskWrapper ignored cancel for 80 ms.
      INFO [org.netbeans.mo dules.java.navi gation.ElementS canningTask]: Duplicate top level class: <error>
      INFO [org.netbeans.mo dules.java.navi gation.ElementS canningTask]: Duplicate top level class: <error>
      INFO [org.netbeans.mo dules.java.navi gation.ElementS canningTask]: Duplicate top level class: <error>
      INFO [org.netbeans.mo dules.java.navi gation.ElementS canningTask]: Duplicate top level class: <error>
      INFO [org.netbeans.mo dules.parsing.i mpl.TaskProcess or]: Task: class org.netbeans.mo dules.java.sour ce.JavaSourceAc cessor$Cancelab leTaskWrapper ignored cancel for 77 ms.
      INFO [org.netbeans.mo dules.parsing.i mpl.TaskProcess or]: Task: class org.netbeans.mo dules.java.sour ce.JavaSourceAc cessor$Cancelab leTaskWrapper ignored cancel for 104 ms.
      WARNING [org.netbeans.mo dules.java.sour ce.tasklist.Inc orrectErrorBadg es]: Incorrect error badges detected, file=C:\Users\O ffice User\AppData\Lo cal\NetBeans\Ca che\7.2\index\s 15\java\14\gens rc\jpcap\JpcapS ender.java.
      WARNING [org.netbeans.mo dules.java.sour ce.tasklist.Inc orrectErrorBadg es]: The file is not on its own source classpath, ignoring.
      INFO [org.netbeans.mo dules.parsing.i mpl.TaskProcess or]: Task: class org.netbeans.mo dules.java.sour ce.JavaSourceAc cessor$Cancelab leTaskWrapper ignored cancel for 66 ms.
      INFO [org.netbeans.mo dules.parsing.i mpl.TaskProcess or]: Task: class org.netbeans.mo dules.java.sour ce.JavaSourceAc cessor$Cancelab leTaskWrapper ignored cancel for 89 ms.
      INFO [org.netbeans.mo dules.parsing.i mpl.TaskProcess or]: Task: class org.netbeans.mo dules.java.sour ce.JavaSourceAc cessor$Cancelab leTaskWrapper ignored cancel for 65 ms.
      INFO [org.netbeans.mo dules.parsing.i mpl.TaskProcess or]: Task: class org.netbeans.mo dules.java.sour ce.JavaSourceAc cessor$Cancelab leTaskWrapper ignored cancel for 100 ms.
      INFO [org.netbeans.mo dules.parsing.i mpl.TaskProcess or]: Task: class org.netbeans.mo dules.java.sour ce.JavaSourceAc cessor$Cancelab leTaskWrapper ignored cancel for 86 ms.
      INFO [org.netbeans.mo dules.parsing.i mpl.TaskProcess or]: Task: class org.netbeans.mo dules.java.sour ce.JavaSourceAc cessor$Cancelab leTaskWrapper ignored cancel for 104 ms.
      INFO [org.netbeans.mo dules.parsing.i mpl.TaskProcess or]: Task: class org.netbeans.mo dules.java.sour ce.JavaSourceAc cessor$Cancelab leTaskWrapper ignored cancel for 68 ms.

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #18
        Most of those are info messages from your IDE that have nothing to do with your application. Put the e.printStackTra ce() in the catch blocks and check your application's console to see what the full error message is from your application.

        Comment

        • PreethiGowri
          New Member
          • Oct 2012
          • 126

          #19
          i get no error in my console. This is my output

          "$295:CRM software:0:no offer:19890:560 $296:charting software:0:no offer:19978:120 $297:web browsers:0:no offer:20065:120 $298:smart card software:0:no offer:20153:120 $299:content management software:0:no offer:20241:120 $300:infrastruc ture virtua:0:no offer:20329:120 $551:digital cameras:1:upto 5% off:42264:152 $552:hand-held camcorders:1:up to 5% off:42351:152 $553:webcams:1: upto 5% off:42439:152 $554:binoculars :1:upto 5% off:42527:152 $555:straps:1:u pto 5% off:42615:152 $556:action sports cameras:1:upto 5% off:42702:152 $557:telescopes :1:upto 5% off:42790:152 $558:telescope accessories:1:u pto 5% off:42878:152 $559:film cameras:1:upto 5% off:42966:152 $560:rifle scopes:1:upto 5% off:43053:152 $561:spotting scopes:1:upto 5% off:43141:152 $562:microscope s:1:upto 5% off:43229:152 $563:microscope accessories:1:u pto 5% off:43317:152 $564:rangefinde rs:1:upto 5% off:43404:152 $565:monoculars :0:no offer:43492:152 $566:eyepieces: 0:no offer:43580:152 $567:eyepice accessories:0:n o offer:43667:152 $568:document cameras:0:no offer:43755:152 $569:optics cases:0:no offer:43843:152 $570:opera glasses:1:buy 2 get 1 free:43931:152 $571:drive recorders:1:buy 2 get 1 free:44018:152 $572:instant print cameras:1:buy 2 get 1 free:44106:152 $573:folders:1: buy 2 get 1 free:44194:152 $574:folders:0: no offer:44282:152 $575:picture frames:0:no offer:44369:152 $~
          Java Result: -1073740791
          BUILD SUCCESSFUL (total time: 55 seconds) "

          Comment

          • r035198x
            MVP
            • Sep 2006
            • 13225

            #20
            Why is your program printing out all that data? Anyway you need to pinpoint the source of the problem (if any) perhaps by running it outside of Netbeans because right now you seem to be confused about what is Netbeans' own logging and what your application's logging is.

            Comment

            • PreethiGowri
              New Member
              • Oct 2012
              • 126

              #21
              i got the below lines printed from the printstacktrace -

              java.lang.NullP ointerException
              at dao.DAO.getBay( DAO.java:79)
              at pkgnew.New.send BayNo(New.java: 252)
              at pkgnew.New.rece ivePack(New.jav a:322)
              at pkgnew.New.main (New.java:495)

              where line 495 as:
              Code:
               j.receivePack();
              how do i avoid null point exception here?!

              Comment

              • r035198x
                MVP
                • Sep 2006
                • 13225

                #22
                So what code is at DAO.java:79? Something there is null.

                Comment

                • PreethiGowri
                  New Member
                  • Oct 2012
                  • 126

                  #23
                  Code:
                   String query = "select * from table_name";
                              System.out.println(query);
                              PreparedStatement st = con.prepareStatement(query);
                  line 79 is preparedStateme nt

                  Comment

                  • r035198x
                    MVP
                    • Sep 2006
                    • 13225

                    #24
                    So con is null at that point then.

                    Comment

                    • PreethiGowri
                      New Member
                      • Oct 2012
                      • 126

                      #25
                      I resolved the null Pointer exception. now again i get "Java Result: -1073740791" and the code terminates:(
                      After googling alot i learnt that, The number "-1073740791" is an exit code, which indicate a bug in the executed software that causes stack overflow leading to abnormal termination of the software.

                      If this is the actual case, how do i avoid stack buffer overflow??

                      Comment

                      • r035198x
                        MVP
                        • Sep 2006
                        • 13225

                        #26
                        Again, add logging around the code and e.printStackTra ce statements to pin point the exact line that is causing it and full error message.

                        Comment

                        • PreethiGowri
                          New Member
                          • Oct 2012
                          • 126

                          #27
                          i have used this below block, still does not show up any warning or error at any line

                          Code:
                          catch (UnknownHostException ex) {
                                      Logger.getLogger(New.class.getName()).log(Level.SEVERE, null, ex);
                                  } catch (IOException|RuntimeException e) {
                                      e.printStackTrace();
                                  }

                          Comment

                          • r035198x
                            MVP
                            • Sep 2006
                            • 13225

                            #28
                            1.) How do you know that is the line that is reporting the error?
                            2.) Add e.printStackTra ce() before Logger.getLogge r(New.class.get Name()).log(Lev el.SEVERE, null, ex); during this debugging (you can remove it after you identify the source of your problem)

                            Comment

                            • PreethiGowri
                              New Member
                              • Oct 2012
                              • 126

                              #29
                              Not Working:(:( I have completely lost with this, i'm going nuts tracking the reason behind this abnormal termination of the code:(

                              Comment

                              • r035198x
                                MVP
                                • Sep 2006
                                • 13225

                                #30
                                You still haven't said whether you have pinpointed the source of the error using printlines and printstacktrace s yet. You need to know the exact line that is throwing the error first.

                                Comment

                                Working...