The Artima Developer Community
Sponsored Link

Java Answers Forum
Injecting fault in JVM

2 replies on 1 page. Most recent reply: Aug 16, 2005 5:28 AM by Thomas SMETS

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
sunil anand

Posts: 1
Nickname: javakababa
Registered: Aug, 2005

Injecting fault in JVM Posted: Aug 10, 2005 7:08 AM
Reply to this message Reply
Advertisement
This is regarding Injecting fault in JVM, to test robustness of your application.

I Want to carry low level test with application by injecting faults in JVM,like I want the JVM to execute a a' instead of a function a where it a' throws some unknown exception.

How can I go about that?
What are possible architectures for Fault Injection?
What are problems with JVM security?
What if I want to implement the same for an application packaged in jar
file?
How do I go about changing the class-loading mechanism externally and get the application call-tree so as to plug my testing module?

If I want to do the same without changing the JVM, so I am independent of vendor specific JVM dependencies.How can I do that?

regds
SA


Thomas SMETS

Posts: 307
Nickname: tsmets
Registered: Apr, 2002

Re: Injecting fault in JVM Posted: Aug 16, 2005 5:07 AM
Reply to this message Reply
Zero<sup>th</sup> :
I think your approach is definitively wrong... or at least should almost NEVER be used... You make clusters, use redundancy (hardware, software, power supply, networking, human, ...), etc... but at some point you have to stop.
If your system is capable of doing a hot node removal ... I think you are as far as most major telco expect. If you have to go further, you should then consider to have your system "voting"... but then you are also in considering buying very special hardware, maybe...

Anyway, if you consider this being part of system testing, I would strongly recommand you to firstly reconsider the following :

1°. See the possibility to measure your level of code coverage with your unit tests.
2°. Ensure that your in the big sftware layer, there are some places where you catch all Exceptions (Runtime ones, I mean).

Now as part of your system tests you may introduce some weird aspects that will generate emulations of those mistakes ... This would be AFAI can imagin a nice leap ahead... but you also have to be able to admit that your software has a price and then at some point, you have to stop testing what others have tested for you ...

\T,

Thomas SMETS

Posts: 307
Nickname: tsmets
Registered: Apr, 2002

Re: Injecting fault in JVM Posted: Aug 16, 2005 5:28 AM
Reply to this message Reply
One more detail, though ...
I would definitively consider running the unit tests on various OSes and/or VM-specs and/or VM-vendors, but only if your product is to be shipped...

\T,

Flat View: This topic has 2 replies on 1 page
Topic: Netbeans Installation Problem Previous Topic   Next Topic Topic: Java Help

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use