Click here to Skip to main content
15,921,837 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:

I'm really terrible for all day with this error!
applicationContext.xml Checked !
I don't konw where is wrong!
Help me!

    at org.springframework.core.env.AbstractEnvironment.suppressGetenvAccess(
    at org.springframework.core.env.AbstractEnvironment.getSystemEnvironment(
    at org.springframework.core.env.StandardEnvironment.customizePropertySources(
    at org.springframework.core.env.AbstractEnvironment.<init>(
    at org.springframework.core.env.StandardEnvironment.<init>(
    at org.ctw.tabs.dao.test.PassengerDaoTest.Test1(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at org.junit.internal.runners.TestMethod.invoke(
    at org.junit.internal.runners.MethodRoadie.runTestMethod(
    at org.junit.internal.runners.MethodRoadie$
    at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(
    at org.junit.internal.runners.MethodRoadie.runTest(
    at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(
    at org.junit.internal.runners.JUnit4ClassRunner.runMethods(
    at org.junit.internal.runners.JUnit4ClassRunner$
    at org.junit.internal.runners.ClassRoadie.runUnprotected(
    at org.junit.internal.runners.ClassRoadie.runProtected(
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
Caused by: java.lang.NullPointerException
    at org.springframework.core.SpringProperties.<clinit>(
    ... 34 more
Updated 7-Jul-15 6:28am
Richard MacCutchan 7-Jul-15 12:35pm    
The key is the message at the end:
Caused by: java.lang.NullPointerException
at org.springframework.core.SpringProperties.<clinit>(

This suggests that you code is missing some parameter on a library method call. Check your startup routines.
Member 11820084 8-Jul-15 5:45am    
Thanks! I will try ! I think maybe lost some of *.jar in the lib document.Now checking.....
I copy my code,please help me to find out the worng thing.

Richard MacCutchan 8-Jul-15 6:06am    
You seem to be posting random pieces of code in the hope that the problem will somewhow show itself. You need to run your code in the debugger to find exactly where the fault occurs and which parameter is missing.
Member 11820084 8-Jul-15 6:25am    
="" base-package="org.ctw.tabs">

<bean id="template"
="" class="org.springframework.orm.hibernate3.HibernateTemplate">
<property name="sessionFactory" ref="sessionfactory">

<bean id="sessionfactory"
="" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource" ref="dbcp">
<property name="mappingLocations">
<property name="hibernateProperties">
<prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.format_sql">true</prop>

<bean id="dbcp" class="org.apache.commons.dbcp.BasicDataSource">
<property name="username" value="root">
<property name="password" value="root">
<property name="url" value="jdbc:mysql:///t_abs">
<property name="driverClassName" value="com.mysql.jdbc.Driver">

Member 11820084 8-Jul-15 7:13am    
Can you tell me your email.I saw your summary.
I was a Software Support Engineer for many years using various legacy enterprise systems before learning UNIX and Windows programming - the latter largely in my own time. In my last few years of employment I spent more time in actual development.

Since retiring I have been learning some of the newer technologies (C#, .NET, WPF, LINQ, SQL ...) that I never used in my professional life, and am actually able to understand some of it.

One day I hope to become a real programmer.

I think i agree with your last sentence.Steve Jobs say:Stay hungry Stay foolish.
Your spirit inspires me.
I admire you a lot.I want to make friend! Thanks!

1 solution

There is something wrong but i can not find it!
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900