Interesting test case

Hi,
I played a little on my test machine and get interesting results so if someone could explain me what happens here I would be grateful.
It is obvious that some data corruption happened but still interesting situation.
OS: Linux 32bit
Oracle: 10.2.0.2.0
TEST CASE:
1. Created tablespace and one table in that tablespace:
SQL> create tablespace test_tbs datafile '/oradata/tbs01.dbf' size 75M autoextend on next 10M maxsize 512M;
Tablespace created.
SQL> create table objtab tablespace test_tbs as select * from dba_objects where 1=2;
Table created.
2. Made two more copies of tbs01.dbf datafile:
SQL> !cp tbs01.dbf tbs02.dbf
SQL> !cp tbs01.dbf tbs03.dbf
3. Insert some rows into table objtab:
SQL> insert into objtab select * from dba_objects;
50417 rows created.
SQL> /
50417 rows created.
SQL> /
50417 rows created.
SQL> commit;
Commit complete.
SQL> select count(*) from objtab;
COUNT(*)
151251
4. Deleted tbs01.dbf:
SQL> !rm tbs01.dbf
5. Insert still works:
SQL> insert into objtab select * from dba_objects;
50417 rows created.
SQL> insert into objtab select * from dba_objects;
50417 rows created.
SQL> insert into objtab select * from dba_objects;
50417 rows created.
SQL> commit;
Commit complete.
6. Renamed tbs02.dbf to tbs01.dbf:
SQL> !mv tbs02.dbf tbs01.dbf
7. Inserted new rows:
SQL> select count(*) from objtab;
COUNT(*)
302502
SQL> insert into objtab select * from dba_objects;
50417 rows created.
SQL> insert into objtab select * from dba_objects;
50417 rows created.
SQL> insert into objtab select * from dba_objects;
50417 rows created.
SQL> insert into objtab select * from dba_objects;
50417 rows created.
SQL> insert into objtab select * from dba_objects;
50417 rows created.
SQL> insert into objtab select * from dba_objects;
50417 rows created.
SQL> commit;
Commit complete.
SQL> insert into objtab select * from dba_objects;
50417 rows created.
SQL> insert into objtab select * from dba_objects;
50417 rows created.
SQL> insert into objtab select * from dba_objects;
50417 rows created.
SQL> commit;
Commit complete.
8. Check size of datafile:
SQL> !du -hs tbs01.dbf
*96M tbs01.dbf*
SQL> select count(*) from objtab;
COUNT(*)
756255
9. Deleted datafile tbs01.dbf and renamed tbs03.dbf to tbs01.dbf:
SQL> !rm tbs01.dbf
SQL> !mv tbs03.dbf tbs01.dbf
10. Insert more rows and executed "alter system checkpoint":
SQL> insert into objtab select * from dba_objects;
50417 rows created.
SQL> insert into objtab select * from dba_objects;
50417 rows created.
SQL> insert into objtab select * from dba_objects;
50417 rows created.
SQL> commit;
Commit complete.
SQL> alter system checkpoint;
System altered.
SQL> select count(*) from objtab;
COUNT(*)
907506
11. When I check the size of tbs01.dbf it is smaller then before despite of more rows I inserted. How come? Where are all this rows stored?
SQL> !du -hs tbs01.dbf
*86M tbs01.dbf*
12. Now try to offline tablespace and then I get errors in alertlog:
SQL> alter tablespace test_tbs offline normal;
alter tablespace test_tbs offline normal
ERROR at line 1:
ORA-00603: ORACLE server session terminated by fatal error
ALERT LOG
Errors in file /oracle/admin/um/udump/um_ora_501.trc:
ORA-00600: internal error code, arguments: [krhpfh_03-1208], [fno =], [6], [fecpc =], [4], [fhcpc =], [3], []
ORA-01110: data file 6: '/oradata/tbs01.dbf'
ORA-01122: database file 6 failed verification check
ORA-01110: data file 6: '/oradata/tbs01.dbf'
ORA-01208: data file is an old version - not accessing current version
Fri May 29 09:01:31 2009
ORA-600 signalled during: alter tablespace test_tbs offline normal...
Fri May 29 09:01:31 2009
Errors in file /oracle/admin/um/udump/um_ora_501.trc:
ORA-00600: internal error code, arguments: [krhpfh_03-1208], [fno =], [6], [fecpc =], [4], [fhcpc =], [3], []
ORA-01110: data file 6: '/oradata/tbs01.dbf'
ORA-00600: internal error code, arguments: [krhpfh_03-1208], [fno =], [6], [fecpc =], [4], [fhcpc =], [3], []
ORA-01110: data file 6: '/oradata/tbs01.dbf'
ORA-01122: database file 6 failed verification check
ORA-01110: data file 6: '/oradata/tbs01.dbf'
ORA-01208: data file is an old version - not accessing current version
Fri May 29 09:01:37 2009
Errors in file /oracle/admin/um/udump/um_ora_501.trc:
ORA-00600: internal error code, arguments: [krhpfh_03-1208], [fno =], [6], [fecpc =], [4], [fhcpc =], [3], []
ORA-01110: data file 6: '/oradata/tbs01.dbf'
ORA-00600: internal error code, arguments: [krhpfh_03-1208], [fno =], [6], [fecpc =], [4], [fhcpc =], [3], []
ORA-01110: data file 6: '/oradata/tbs01.dbf'
ORA-00600: internal error code, arguments: [krhpfh_03-1208], [fno =], [6], [fecpc =], [4], [fhcpc =], [3], []
ORA-01110: data file 6: '/oradata/tbs01.dbf'
ORA-01122: database file 6 failed verification check
ORA-01110: data file 6: '/oradata/tbs01.dbf'
ORA-01208: data file is an old version - not accessing current version
Fri May 29 09:01:43 2009
Errors in file /oracle/admin/um/udump/um_ora_501.trc:
ORA-00600: internal error code, arguments: [krhpfh_03-1208], [fno =], [6], [fecpc =], [4], [fhcpc =], [3], []
ORA-01110: data file 6: '/oradata/tbs01.dbf'
ORA-00600: internal error code, arguments: [krhpfh_03-1208], [fno =], [6], [fecpc =], [4], [fhcpc =], [3], []
ORA-01110: data file 6: '/oradata/tbs01.dbf'
ORA-00600: internal error code, arguments: [krhpfh_03-1208], [fno =], [6], [fecpc =], [4], [fhcpc =], [3], []
ORA-01110: data file 6: '/oradata/tbs01.dbf'
ORA-01122: database file 6 failed verification check
ORA-01110: data file 6: '/oradata/tbs01.dbf'
ORA-01208: data file is an old version - not accessing current version
13. One more check:
SQL> select tablespace_name, status from dba_tablespaces;
TABLESPACE_NAME STATUS
SYSTEM ONLINE
SYSAUX ONLINE
USERS ONLINE
UNDOTBS2 ONLINE
TMP ONLINE
TEST_TBS ONLINE
7 rows selected.
SQL> select count(*) from objtab;
COUNT(*)
907506
14. Restart database:
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup;
ORACLE instance started.
Total System Global Area 1224736768 bytes
Fixed Size 1267188 bytes
Variable Size 1006635532 bytes
Database Buffers 201326592 bytes
Redo Buffers 15507456 bytes
Database mounted.
Database opened.
15. Try to count(*) from table but it says that object no longer exists:
SQL> select count(*) from objtab;
select count(*) from objtab
ERROR at line 1:
ORA-08103: object no longer exists
SQL> select tablespace_name, status from dba_tablespaces;
TABLESPACE_NAME STATUS
SYSTEM ONLINE
SYSAUX ONLINE
USERS ONLINE
UNDOTBS2 ONLINE
TMP ONLINE
TEST_TBS ONLINE
7 rows selected.
16. If object does not exist, how come I get this results (probably leftovers in data dictionary):
SQL> desc objtab;
Name Null? Type
OWNER VARCHAR2(30)
OBJECT_NAME VARCHAR2(128)
SUBOBJECT_NAME VARCHAR2(30)
OBJECT_ID NUMBER
DATA_OBJECT_ID NUMBER
OBJECT_TYPE VARCHAR2(19)
CREATED DATE
LAST_DDL_TIME DATE
TIMESTAMP VARCHAR2(19)
STATUS VARCHAR2(7)
TEMPORARY VARCHAR2(1)
GENERATED VARCHAR2(1)
SECONDARY VARCHAR2(1)
SQL> create table objtab tablespace test_tbs as select * from dba_objects;
create table objtab tablespace test_tbs as select * from dba_objects
ERROR at line 1:
ORA-00955: name is already used by an existing object
17. To drop object (can't drop):
SQL> drop table objtab;
drop table objtab
ERROR at line 1:
ORA-08103: object no longer exists
18. Clean up:
SQL> drop tablespace test_tbs including contents and datafiles;
Tablespace dropped.
Best Regards,
Marko

Hi Uwe,
as I said before my intention was to understand behavior of Oracle and Linux in scenario like this.
I thought about what will happen if some Linux admin by mistake moves live datafile to another location and after 5-10 mins, when he realizes his mistake, he moves the datafile to old (original) location.
Will Oracle notice some errors in alert log? (In my test case I didn't receive any message in alert log)
How will I know (as a DBA) what was done with this datafile if Linux admin does not say anything to me?
Is any damage made to datbase ? (Probably)
etc...
When I am on my test machine I like to do all kind of stuff and try anything that comes on my mind. It isn't important to me if this scenario has any connection to real world problems. I enjoy doing this so I like to spend some of my time on this test cases.
Anyway thanks for your comment.
Regards,
Marko
Edited by: msutic on May 29, 2009 1:03 PM

Similar Messages

  • Test cases runs correctly on IDE but fails on the test runner

    Hi Guys,
    I have a test case here that works fine on my Mars IDE with RCPTT but fails when I run it via the Maven plugin on the same machine.
    The summary of the test case here is that it auto-generates some java files based on changes done to a DSL type language. You will see that there is a Generator project there that does this. Any changes to the type file will trigger the java file to be regenerated with whatever was defined in the Generator project. On the IDE it all works but when it's run via the test runner, it always fails for some reason.
    One interesting thing to note there is if that test case is run first, it does not fail. I initially suspected that the previous test case might have done something to the AUT workspace/environment but it's difficult to prove. The test case in question does have contexts to clear the workspace and to add projects as well as a context for setting the preferences. I did try removing all the contexts except for the workspace context that contains the project that it needs but the execution result is still the same. If I manually ran the same AUT (extracted somewhere else) with the generated test-runner aut workspace right after and made some changes to the type file, the java files are generated correctly.
    So the problem now is, we're not sure what the test runner is doing differently with the RCPTT IDE in this case. It would seem like the test runner is preventing the AUT from generating the files or there might be an error that prevents the generation from happening.
    I've attached the results folder from the test runner execution and the log file from the from the runner-workspace folder.
    cheers!
    Joseph

    Hi Folks,
    We've found out the cause of the problem and have found out that this is not entirely RCPTT related. Apologies for the disturbance. Marking this as a non-issue.
    cheers!
    Joseph

  • Test cases in Solution manager

    I have uploaded two test case documents under 'Test case' tab for a Business Process in the transaction solar02.
    But those two test documents does not appear in STWB_WORK for that Business Scenario.
    Any advices?

    Hi,
    Perhaps this might be of interest to you, if it happens that inconsistency is affecting the availability of your test documents
    You can use the program as it does not do any harm to
    your projects (it does not delete anything, it add only some entries
    to a table, if at any circumstances they are missing)
    The use of the program is quite simple.
    Start transaction SE38 and enter the program GHE_CHECK_TTREEI_ENTRIES
    and hit execute (F8).
    In the next screen enter the project you would like to check using the
    F4-help.
    There is also a field TEST. When you enter here 'X' then no modification
    will be done, but only the check whether there are entries missing
    is performed.
    If the program finds any missing entries, simply re-run the program
    without the 'X' at field TEST and the program corrects the inconsistency
    Hope this helps.
    Cheers
    SH

  • Microsoft vista OEM Test Case-5 failing for java application

    The launcher exe for my application is built in C++ that load the jvm and then the control is passed to the java class through JNI.
    My problem is that my application exe is not passing the Microsoft Vista OEM Ready Test Case Number- 5 which specifies
    Application Verifier Checks:
    Tests for app failures from common coding errors: exceptions, handles, heaps, locks, memory, thread local storage.      
    App failures, crashes, and hangs are some of the top negative factors for customers. Eliminating such failures improves app stability and responsiveness.App verifier catches common coding errors and prevents heap corruption, the cause of more than 15% of application failures.
    Interestingly..! Even a simple Hello World program is failing this test...!

    Open [http://msdn.microsoft.com/en-us/windows/cc721647.aspx] and search for the word "Java".

  • Test Cases required for BW Statistics to test in QA annd DEV.

    HI All,
    I am currently working on a support Project.  My client has completed installing of Bw statistics in DEV and transported it to QA way back in 2006.Currrently before moving the BI Statistics data to PRD we have to test it in DEV and QA.
    How to prepare sample test case for testing it in DEV and QA? Please Sugggest.

    Hi,
    this forum is for the SAP BusinessObjects BI Solution architecture. I would suggest you post your question to the BW forum.
    ingo

  • Need help in writing test cases while upgradin oracle from 10g to 11g

    hi all
    I want to write test cases for ugrading oracle 10g to 11g i have some idea but want your input.and at the same time some people taking upgrade testing as to ensure that everything works after the upgrade - stremas, jobs, procedures.but i think as 11g is backward compatible all the things should work properly.If not then how can we write a test cases for that,your help is most welcome.
    Thanks in advance

    Hi;
    Please see below notes which could give you some idea to create your test case. By the way if your components are certified wiht 11g so there should be any bad issue for your upgrade
    Minimizing Downtime During Production Upgrade [ID 478308.1]
    Master Note For Oracle Database Upgrades and Migrations [ID 1152016.1]
    Different Upgrade Methods For Upgrading Your Database [ID 419550.1]
    Please check my blog
    http://heliosguneserol.wordpress.com/2010/06/17/move-to-oracle-database-11g-release-2-wiht-mike-dietrich/
    In this pdf you can see patch of to upgrade db from x to n wiht many senerios wiht all related metalinks notes which is created by Oracle worker Mike Dietrich
    Regard
    Helios

  • How do you have a single test case run on multiple platforms in both a Deploy/Test build and via MTM?

    I am wanting to have a scheduled nightly build execute my testcases for multiple platforms/configurations.  I have multiple VMs running in these environments but the method Microsoft provided
    (without digging into customizing the build template) doesn't provide any functionality for this.  This is a basic use case for automation that I can't believe they would miss.  Has anyone run into this and found a solution.  Is it just that
    you have to completely customize the template?
    For a more complete use case...
    I have 4 customers that have different configurations and different OS platforms on top of a generic configuration.  I want the build/deploy/test build to automatically run my 152 test
    cases to at minimum those 5 environments.  I want this to run every morning at 1am and the tests should in the different environments in parallel (ie all of customer 1 tests run at the same time as customer 2 tests...). I also don't want to have to create
    152 * 5 test cases since that will bloat things and cause more management/maintenance headaches.

    I am wanting to have a scheduled nightly build execute my testcases for multiple platforms/configurations.  I have multiple VMs running in these environments but the method Microsoft provided
    (without digging into customizing the build template) doesn't provide any functionality for this.  This is a basic use case for automation that I can't believe they would miss.  Has anyone run into this and found a solution.  Is it just that
    you have to completely customize the template?
    For a more complete use case...
    I have 4 customers that have different configurations and different OS platforms on top of a generic configuration.  I want the build/deploy/test build to automatically run my 152 test
    cases to at minimum those 5 environments.  I want this to run every morning at 1am and the tests should in the different environments in parallel (ie all of customer 1 tests run at the same time as customer 2 tests...). I also don't want to have to create
    152 * 5 test cases since that will bloat things and cause more management/maintenance headaches.

  • Sequences - Test Organzer:  How to move more than 1 test case at a time

    Hello,
    I would like to be able to move multiple test cases within a sequence but I do not know how.  If I highlight multiple rows and select Move Test Case only 1 of the rows will move.  This is fine if your test package only has a few transactions but if you have many it becomes very time consuming.
    Does anyone know how to move more than one test case at a time within a sequence?
    Regards,
    Corinne Taylor

    Hi Corinne,
    Actually I do not have any solution for that either. I am also only able to move the test cases one by one, which indeed can become very time consuming. There I have a small question to you: when I am in the web-based application to change the sequence of the test cases, everything goes really slow. Selecting the test package in the browser, going to change mode, selecting the test cases, creating a test sequence...it all takes time before I can continue. Is it the same with you? Else I will need to look at what is going wrong on our side.
    Thanks and best regards,
    Kristof

  • Getting error while writing JUnit test case for RestFul Services

    Hi All,
    I have written Restful services in Netbean 6.8.
    It's running well...no issues.
    {color:#0000ff}While writing JUnit test cases for them, I am getting following error:
    {color}{color:#993300}Testcase: testGetAuthenticated(com.ct.services.LoginServicesTest): Caused an ERROR
    Implementing class{color}
    java.lang.IncompatibleClassChangeError: Implementing class
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
    at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:160)
    at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:65)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)
    at com.ct.services.LoginServices.getAuthenticated(LoginServices.java:205)
    at com.ct.services.LoginServicesTest.testGetAuthenticated(LoginServicesTest.java:84)
    Test com.ct.services.LoginServicesTest FAILED
    F:\NetbeanProjectsWorkspace\DemoProject\nbproject\build-impl.xml:972: Some tests failed; see details above.
    BUILD FAILED (total time: 11 seconds)
    {color:#0000ff}Strange thing is that when I am commenting below lines and its related calls:
    {color}
    {color:#ff0000}EntityManagerFactory mEmf = Persistence.createEntityManagerFactory("AnyName");
    EntityManager mEm = mEmf.createEntityManager();
    {color}
    {color:#0000ff}from my code, JUnit test cases are working fine.
    {color}Anybody having any idea about this ?
    Thanks
    Avi
    Edited by: Avi007 on Aug 28, 2010 5:17 AM

    Hi All,
    [http://stackoverflow.com/questions/2778295/test-driven-development-problem]
    Please refer the above link for the solution
    Thanks
    Avi
    Edited by: Avi007 on Aug 30, 2010 12:33 AM

  • Error encountered while running a test case using MTM

    Hello,
    Has anyone encountered this error while running a test case using MTM 2013? 
    When I click on OK, the message is again shown until that time wherein the popup error is no longer shown.
    When I try to continue to the next pages wherein a modal is being open and I need to enter some data on a text field, the IE would stop working and seems to crash.
    Thanks!

    Hi Kiyaruh,
    Base on the error message, the error is threw by internet explorer.
    Does it have the same issue when access that web site/page in IE directly or it just occurs when run tests through MTM?
    What’s the version of your browser? You may try it with other browser and check whether it has same issue.
    Regards
    Starain
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Exception while running a test file as JUNIT test case

    Hi,
    I am trying to build a code using Eclipse to generate an "ear" file that can be used for deployment. The ear file is generated successfully but the build is not successful as the following exception is thrown while debugging a junit test case:
    javax.naming.CommunicationException: tdk.dk:389 [Root exception is java.net.SocketTimeoutException: connect timed out]
         at com.sun.jndi.ldap.Connection.<init>(Connection.java:197)
         at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:118)
         at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1580)
         at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2616)
         at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:287)
         at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
         at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
         at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
         at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at junit.framework.TestCase.runTest(TestCase.java:154)
         at junit.framework.TestCase.runBare(TestCase.java:127)
         at junit.framework.TestResult$1.protect(TestResult.java:106)
         at junit.framework.TestResult.runProtected(TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:118)
         at junit.framework.TestSuite.runTest(TestSuite.java:208)
         at junit.framework.TestSuite.run(TestSuite.java:203)
         at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
         at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
    Kindly suggest a solution.
    P.S. : All test cases are running fine except for one test case, whose error details are given.

    No it is not. The Oracle JDeveloper and ADF forum is for development questions around development with Oracle JDeveloper and ADF.
    If you use Eclipse through OEPE, you could post the question here
    Enterprise Pack for Eclipse
    If you don't use OEPE but Eclipse, then this forum may be a great source of help: http://stackoverflow.com/
    Frank

  • Error in running juit test case for struts2 action class

    Hi,
    I am getting error when i am running my junit test case for struts2 action class. Here is the code.
    public class RoleMasterNewActionTest extends StrutsTestCase {
         public void setUp() throws Exception {
            super.setUp();
            ObjectFactory.setObjectFactory( new ObjectFactory() );
         public void testDoSomeThing()throws Exception {
              RoleMasterNewAction action = new RoleMasterNewAction();
              assertTrue(action.doSomeThing());
    }I am getting error at testDoSomeThing(). the error is
    2010-04-30 15:07:12,263 INFO [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider] - Parsing configuration file [struts-default.xml]
    2010-04-30 15:07:12,325 INFO [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider] - Parsing configuration file [struts-plugin.xml]
    2010-04-30 15:07:12,388 INFO [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider] - Parsing configuration file [struts.xml]
    2010-04-30 15:07:12,388 WARN [org.apache.struts2.config.Settings] - Settings: Could not parse struts.locale setting, substituting default VM locale
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.comman-Lookup
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.comman-label
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.comman-headings
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.comman-messages
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.comman-setup
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.common-errors
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.admin.resources.admin-label
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.admin.resources.admin-lookup
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.admin.resources.admin-headings
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.admin.resources.admin-jndinames
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.birthCertificate.resources.birth-jndinames
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.birthCertificate.resources.birth-labels
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.birthCertificate.resources.birth-headings
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.admin.resources.admin-alert
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.form
    2010-04-30 15:07:12,419 INFO [org.apache.struts2.spring.StrutsSpringObjectFactory] - Initializing Struts-Spring integration...
    2010-04-30 15:07:12,419 FATAL [org.apache.struts2.spring.StrutsSpringObjectFactory] - ********** FATAL ERROR STARTING UP STRUTS-SPRING INTEGRATION **********
    Looks like the Spring listener was not configured for your web app!
    Nothing will work until WebApplicationContextUtils returns a valid ApplicationContext.
    You might need to add the following to web.xml:
        <listener>
            <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
        </listener>but already i have the listener configuration in my web.xml.
    Thanks in advance..

    I guess it wasn't reading the right web.xml file.
    You may prove it by deleting your web.xml file (don't forget to make a backup), and then run the test again to see whether the error is the same.

  • Error in juit test case for struts2 action class using StrutsSpringTestCase

    Hi
    I am getting some error when i am running my Struts2 Action class junit test case using StrutsSpringTestCase class (which is in struts2 junit plugin 2.1.8 version)
    Here is the code....
    package ipl.admin.action.test;
    import java.sql.Timestamp;
    import java.util.Date;
    import org.apache.struts2.StrutsSpringTestCase;
    import ipl.admin.action.RoleMasterNewAction;
    import ipl.admin.beans.RoleMasterNewBeanRemote;
    import com.opensymphony.xwork2.ObjectFactory;
    public class RoleMasterNewActionTest extends StrutsSpringTestCase {
         //XmlBeanFactory bf = new XmlBeanFactory(new ClassPathResource("applicationContext.xml", getClass()));
         RoleMasterNewAction action = new RoleMasterNewAction();
         RoleMasterNewBeanRemote roleMasterBeanNewRemote;
         public RoleMasterNewBeanRemote getRoleMasterBeanNewRemote() {
              return roleMasterBeanNewRemote;
         public void setRoleMasterBeanNewRemote(
                   RoleMasterNewBeanRemote roleMasterBeanNewRemote) {
              this.roleMasterBeanNewRemote = roleMasterBeanNewRemote;
         public void setUp() throws Exception {
              super.setUp();
              ObjectFactory.setObjectFactory(new ObjectFactory());
         public void testDoSomeThing() throws Exception {
              //System.out.println(bf.getBean("loginIntercepter"));
              assertTrue(action.doSomeThing());
    }I am getting error for this code. Below is the error details.
    2010-05-03 17:28:14,671 INFO [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider] - Parsing configuration file [struts-default.xml]
    2010-05-03 17:28:14,859 INFO [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider] - Parsing configuration file [struts-plugin.xml]
    2010-05-03 17:28:14,999 INFO [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider] - Parsing configuration file [struts.xml]
    2010-05-03 17:28:15,015 WARN [org.apache.struts2.config.Settings] - Settings: Could not parse struts.locale setting, substituting default VM locale
    2010-05-03 17:28:15,015 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.comman-Lookup
    2010-05-03 17:28:15,015 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.comman-label
    2010-05-03 17:28:15,015 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.comman-headings
    2010-05-03 17:28:15,015 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.comman-messages
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.comman-setup
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.common-errors
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.admin.resources.admin-label
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.admin.resources.admin-lookup
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.admin.resources.admin-headings
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.admin.resources.admin-jndinames
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.birthCertificate.resources.birth-jndinames
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.birthCertificate.resources.birth-labels
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.birthCertificate.resources.birth-headings
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.admin.resources.admin-alert
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.form
    2010-05-03 17:28:15,140 INFO [org.apache.struts2.spring.StrutsSpringObjectFactory] - Initializing Struts-Spring integration...
    2010-05-03 17:28:15,171 FATAL [org.apache.struts2.spring.StrutsSpringObjectFactory] - ********** FATAL ERROR STARTING UP STRUTS-SPRING INTEGRATION **********
    Looks like the Spring listener was not configured for your web app!
    Nothing will work until WebApplicationContextUtils returns a valid ApplicationContext.
    You might need to add the following to web.xml:
        <listener>
            <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
        </listener> But already i have the listener configurations in my web.xml .
    Thanks in advance...

    I guess it wasn't reading the right web.xml file.
    You may prove it by deleting your web.xml file (don't forget to make a backup), and then run the test again to see whether the error is the same.

  • Moving to Surface Pro 3: Guidance on Test cases & App Comptability

    Hi all,
    I am working on a project to roll out Surface Pro 3 with Windows 8.1 from Windows 7 64-bit laptops for close to 100 users. The office has a full-fledged LAN/wireless, external connectivity through VPN with Windows Domain Controllers and many
    applications.
    I see there are 2 main parts with regards to testing. One is to test the standard windows features including network connectivity and the second is application remediation.
    Can you share any test cases for standard windows features that you may have used in similar upgrades?
    For checking application compatibility, is Application Compatibility Toolkit (ACT) sufficient to assess the need for any application remediation?
    Thanks in advance,
    Avinash

    Hi Avinash,
    The Microsoft Application Compatibility Toolkit (ACT) can be used to reduce the cost and time in resolving application compatibility issues and it can be used to quickly deploy Windows and Windows updates.
    Here is a link for reference of using Application Compatibility Toolkit:
    Application Compatibility Toolkit (ACT)
    http://msdn.microsoft.com/en-us/library/windows/desktop/dd562082(v=vs.85).aspx
    Best regards 

  • Setting Logical component for Test Case.

    Hello,
                I've created test case in SOLAR02 and I want to link my test case to Quality Assurance in my logical component (SAP ECC).How can i set this link? Now the test cases  are link to Developement system in SAP ECC. Please tell me how can i fix it.

    Hi,
       If you want to perform the testing in QA client, set your system role as "Quality system" in STWB_2 transaction.
    By default, the system role has to come as "Quality system".
    If it is not check your transport route of the logical component in t.code SMSY.
    Regards
    Senthil

Maybe you are looking for

  • How do i create a header template for ABAP programs?

    Hi all. Need a little bit of help here. When you create a new program you get a template with space for comments at the top of the program and basic stuff. If I want to change this template to add areas that we want to have comments on for every prog

  • Job log, audit log

    Hi. Are there any log files to delete manually periodic? I know the log files are deleted by standard delete job scheduled in Tr-cd SM36. How about the JOB log, and audit log? regards,

  • Have to reset PRAM on every reboot. Help

    Hello, I have a new to me Mac Pro 3,1. I did a fresh install of Yosemite. I'm having a big issue. Every time I restart the machine, it boots to a blank grey screen. Then I have to reset the pram and it boots into the OS X Utility. When I select the c

  • Changing the Owner of all Objects in Instance ?

    How to Change the Owner of all Objects in Instance, like for example the Procedure: sp_changedbowner in an MS-SQL-Database, who changed the Owner of the actual Database ! I'am looking for another possibility to do it by export the Datbase and import

  • To make PR header text as Mandatory

    hi Gurus           In ME52N (ie.Purchase requestition) I want to make the Header text as mandotary field.Any User exit or BADI available?