Announcement Announcement Module
No announcement yet.
What's happened to my app? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • What's happened to my app?

    I try to run the spring sample app with the Tester which contains:

    ApplicationContext ctx = new ClassPathXmlApplicationContext("spring.xml");

    and results the infinite loops as seen by log4j.

    I can't figure it out.... what can cause this weird problem?

  • #2
    Can you provide stack trace /thread dump or log4j output, please?


    • #3
      INFO org.springframework.orm.hibernate3.LocalSessionFac toryBean.buildSessionFactory(LocalSessionFactoryBe : Building new Hibernate SessionFactory
      DEBUG org.hibernate.cfg.Configuration.buildSessionFactor y( : Preparing to build session factory with filters : {}
      DEBUG org.hibernate.cfg.Configuration.secondPassCompile( : processing extends queue
      DEBUG org.hibernate.cfg.Configuration.secondPassCompile( : processing collection mappings
      DEBUG org.hibernate.cfg.Configuration.secondPassCompile( : processing native query and ResultSetMapping mappings
      DEBUG org.hibernate.cfg.Configuration.secondPassCompile( : processing association property references
      DEBUG org.hibernate.cfg.Configuration.secondPassCompile( : processing foreign key constraints
      WARN org.hibernate.cfg.Environment.verifyProperties(Env : Property [hibernate.cglib.use_reflection_optimizer] has been renamed to [hibernate.bytecode.use_reflection_optimizer]; update your properties appropriately
      INFO org.hibernate.connection.ConnectionProviderFactory .newConnectionProvider(ConnectionProviderFactory.j ava:72) : Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSource ConnectionProvider
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se : RDBMS: Microsoft SQL Server, version: 09.00.3054
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se : JDBC driver: jTDS Type 4 JDBC Driver for MS SQL Server and Sybase, version: 1.2
      INFO org.hibernate.dialect.Dialect.<init>( 152) : Using dialect: org.hibernate.dialect.SQLServerDialect
      INFO org.hibernate.transaction.TransactionFactoryFactor y.buildTransactionFactory(TransactionFactoryFactor : Using default transaction strategy (direct JDBC transactions)
      INFO org.hibernate.transaction.TransactionManagerLookup Factory.getTransactionManagerLookup(TransactionMan : No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se : Automatic flush during beforeCompletion(): disabled
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se : Automatic session close at end of transaction: disabled
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se : Scrollable result sets: enabled
      DEBUG org.hibernate.cfg.SettingsFactory.buildSettings(Se : Wrap result sets: disabled
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se : JDBC3 getGeneratedKeys(): enabled
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se : Connection release mode: on_close
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se : Default batch fetch size: 1
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se : Generate SQL with comments: disabled
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se : Order SQL updates by primary key: disabled
      INFO org.hibernate.cfg.SettingsFactory.createQueryTrans latorFactory( : Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
      INFO org.hibernate.hql.ast.ASTQueryTranslatorFactory.<i nit>( : Using ASTQueryTranslatorFactory
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se : Query language substitutions: {}
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se : JPA-QL strict compliance: disabled
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se : Second-level cache: enabled
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se : Query cache: disabled
      INFO org.hibernate.cfg.SettingsFactory.createCacheProvi der( : Cache provider: org.hibernate.cache.NoCacheProvider
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se : Optimize cache for minimal puts: disabled
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se : Structured second-level cache entries: disabled
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se : Statistics: disabled
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se : Deleted entity synthetic identifier rollback: disabled
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se : Default entity-mode: pojo
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se : Named query checking : enabled
      INFO org.hibernate.impl.SessionFactoryImpl.<init>(Sessi : building session factory
      DEBUG org.hibernate.impl.SessionFactoryImpl.<init>(Sessi : Session factory constructed with filter configurations : {}
      DEBUG org.hibernate.impl.SessionFactoryImpl.<init>(Sessi : instantiating session factory with properties: {.....}
      DEBUG org.hibernate.persister.entity.AbstractEntityPersi ster.logStaticSQL( 8) : Static SQL for entity: com.robotsoft.User
      DEBUG org.hibernate.impl.SessionFactoryObjectFactory.add Instance( : registered: 402881eb1341cafd011341cb234c001c (unnamed)
      INFO org.hibernate.impl.SessionFactoryObjectFactory.add Instance( : Not binding factory to JNDI, no JNDI name configured
      DEBUG org.hibernate.impl.SessionFactoryImpl.<init>(Sessi : instantiated session factory
      DEBUG org.hibernate.impl.SessionFactoryImpl.checkNamedQu eries( : Checking 0 named HQL queries
      DEBUG org.hibernate.impl.SessionFactoryImpl.checkNamedQu eries( : Checking 0 named SQL queries
      DEBUG ingletonBeanRegistry.getSingleton(DefaultSingleton : Creating shared instance of singleton bean 'userDAOHibernate'
      DEBUG AutowireCapableBeanFactory.createBean(AbstractAuto : Creating instance of bean 'userDAOHibernate' with merged definition [Root bean: class [com.robotsoft.dao.hibernate.UserDAOHibernate]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [spring-bean.xml]]
      INFO ationContext.prepareRefresh(AbstractApplicationCon : Refreshing plicationContext@152853d: display name [ plicationContext@152853d]; startup date [Tue Jun 19 09:23:58 ICT 2007]; root of context hierarchy
      DEBUG org.hibernate.util.DTDEntityResolver.resolveEntity ( : located [] in classpath
      INFO org.hibernate.cfg.HbmBinder.bindRootPersistentClas sCommonValues( : Mapping class: com.robotsoft.User -> UserTable
      DEBUG org.hibernate.cfg.HbmBinder.bindProperty(HbmBinder .java:1270) : Mapped property: id -> UserId
      DEBUG org.hibernate.cfg.HbmBinder.bindProperty(HbmBinder .java:1270) : Mapped property: name -> UserName
      DEBUG org.hibernate.cfg.HbmBinder.bindProperty(HbmBinder .java:1270) : Mapped property: password -> Password
      DEBUG org.hibernate.cfg.HbmBinder.bindProperty(HbmBinder .java:1270) : Mapped property: email -> Email

      These were printed out in the loops.


      • #4
        Can you provide, please, whole log file in attachment? I am sorry, but from this part I can't get context


        • #5
          Are you still having problems with this? If so as the other poster said, more logging would be useful. Wrapping it in [code] [ /code] tags would help as well.
          Last edited by karldmoore; Aug 29th, 2007, 12:11 PM.