SIGBUS 10 bus error is java

I am trying to run my java program and below is the error that I experienced.Could you please tell me what this means...Thanks for your help.

SIGBUS 10 bus error
    si_signo [10]: BUS
    si_errno [0]:
    si_code [1]: BUS_ADRALN [addr: 0x405]

        stackpointer=FFBEE988
g46905Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

 
sciuriwareCommented:
Impossible to program that: your machine or your JAVA JRE is very bad.

Run a memory test, then re-install JAVA JRE or JDK.

;JOOP!
0

Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
 
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
http://swforum.sun.com/jive/thread.jspa?threadID=12476&messageID=27045

http://forum.java.sun.com/thread.jspa?threadID=624076&messageID=3546170

I don't think any one knows about this but tell me which version of java ru using and what program is causing this error.

Thank You.
0
 
g46905Author Commented:
I am currently using the below mentioned version. Could you please help me with this issue?

Solaris VM (build Solaris_JDK_1.2.2_10, native threads, sunwjit)
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
for all the programs you get the same Error????
0
 
g46905Author Commented:
No, Only for particular application.

Thanks,
0
 
Mayank SAssociate Director - Product EngineeringCommented:
You mean any Java application?
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Can you try downloading 1.4 or higher? 1.2 is EOL (end of life): http://java.sun.com/products/archive/eol.policy.html 
0
 
g46905Author Commented:
I mean a particular java application.I will see if it helps using 1.4 or higher and run the application.

Thanks,


0
 
Mayank SAssociate Director - Product EngineeringCommented:
Does that program make any JNI calls on start-up? What parameters do you specify for running it and what does the program do?
0
 
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
any way what application is that can you put forward the code?
0
 
g46905Author Commented:
After debugging the code....Now I know that it is due to the memory usage. Below is when the error is being thrown.Please look for "<<----" to know the place where the error is occuring.Any suggestions would greatly be appreciated.

try{
            
      java.util.List list = new Vector();
      File in_dir = new File(filePath);
      File filelist[] = in_dir.listFiles(); //<<----- the application doesn't proceed further after this statement and throws the error mentioned.
            
      for(int x = 0; x < filelist.length; x++)
         {                                                             
            if(filelist[x].getName().equals(fileName)== true)
                     {                                                                              
                        FileInputStream fis = null;
                        fis = new FileInputStream(filePath + "/" + fileName);
                        BufferedReader bin = new BufferedReader(new InputStreamReader(fis));
                            updateLineCount(bin,curProfile,direction);
                             fis.close();                                    
                        bin.close();
                        bin = null;      
                        } // if
        
                 } // for
      
         } catch (IOException e){ System.out.println("readFilesFromProcessed..... " );
                                                    e.printStackTrace();
                                        } // end try/catch
                                          
} // readFilesFromProcessed
0
 
Mayank SAssociate Director - Product EngineeringCommented:
What is filePath?
0
 
g46905Author Commented:
It is the path for the directory from where I am trying to read the files. Please let me know if you have additional questions.

Thanks,
0
 
sciuriwareCommented:
Are you sure it's just a String? That is m.'s question.

;JOOP!
0
 
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
I think you are trying to list all the files in a particular directory its better you check the existance of that directory and also check if the given input is directory or not & then proceed.

http://javaalmanac.com/egs/java.io/GetFiles.html
http://www.kickjava.com/780.htm

check out.
0
 
Mayank SAssociate Director - Product EngineeringCommented:
I meant what is the value?
0
 
g46905Author Commented:
This application was working fine from past one year and this started happening since yesterday. I will give you the exact value within few minutes. Thanks for your help.
0
 
g46905Author Commented:
Like I mentioned..........it sjust a string and the value is mentioned below.I am guessing it is running out of memory while loading the files

filePath =  ../../report/app/inbound/processed

Can you please help me with your suggestions?

Thanks
0
 
sciuriwareCommented:
Can you show us the result of this added code:

File f = new File("../../report/app/inbound/processed");

System.out.println(f.getCanonicalPath());

Because I suspect something changed on your disk or your initial directory.
;JOOP!
0
 
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
how many files are there in that folder approx???
0
 
g46905Author Commented:
Number of files = 11189 ( the files will change every two minutes as our processes run every two minutes )

 ----->>> f value : /vol17/app/gnsuser/report/app/inbound/processed

Please let me know if you have any questions. Thanks for your help.
0
 
sciuriwareCommented:
11189 is not very much: that's not the problem.
The path looks also find.

Remains: what happened 2 weeks ago.

I'll give you a hint: 2 weeks ago several security updates were spread,
both over Windows and LINUX.
How about your system?

;JOOP!
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Check for any other changes in the system that could have happened of late (like spyware installation, etc) if any.
0
 
sciuriwareCommented:
Spyware: unlikely on Solaris.
I'd rather go for recent patches.

;JOOP!
0
 
g46905Author Commented:
I am trying to run this application on Unix environment. Please let me know if it has to do with the file...

Thanks,
0
 
sciuriwareCommented:
UNIX is a good JAVA platform. B.t.w.: I send you this comment from LINUX (with JAVA).

;JOOP!
0
 
sciuriwareCommented:
I think we did our best.

;JOOP!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.