Announcement Announcement Module
Collapse
No announcement yet.
What's happened to my app? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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?

    Comment


    • #3
      INFO org.springframework.orm.hibernate3.LocalSessionFac toryBean.buildSessionFactory(LocalSessionFactoryBe an.java:743) : Building new Hibernate SessionFactory
      DEBUG org.hibernate.cfg.Configuration.buildSessionFactor y(Configuration.java:1285) : Preparing to build session factory with filters : {}
      DEBUG org.hibernate.cfg.Configuration.secondPassCompile( Configuration.java:1120) : processing extends queue
      DEBUG org.hibernate.cfg.Configuration.secondPassCompile( Configuration.java:1124) : processing collection mappings
      DEBUG org.hibernate.cfg.Configuration.secondPassCompile( Configuration.java:1135) : processing native query and ResultSetMapping mappings
      DEBUG org.hibernate.cfg.Configuration.secondPassCompile( Configuration.java:1143) : processing association property references
      DEBUG org.hibernate.cfg.Configuration.secondPassCompile( Configuration.java:1165) : processing foreign key constraints
      WARN org.hibernate.cfg.Environment.verifyProperties(Env ironment.java:498) : 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 ttingsFactory.java:89) : RDBMS: Microsoft SQL Server, version: 09.00.3054
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se ttingsFactory.java:90) : JDBC driver: jTDS Type 4 JDBC Driver for MS SQL Server and Sybase, version: 1.2
      INFO org.hibernate.dialect.Dialect.<init>(Dialect.java: 152) : Using dialect: org.hibernate.dialect.SQLServerDialect
      INFO org.hibernate.transaction.TransactionFactoryFactor y.buildTransactionFactory(TransactionFactoryFactor y.java:31) : Using default transaction strategy (direct JDBC transactions)
      INFO org.hibernate.transaction.TransactionManagerLookup Factory.getTransactionManagerLookup(TransactionMan agerLookupFactory.java:33) : 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 ttingsFactory.java:143) : Automatic flush during beforeCompletion(): disabled
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se ttingsFactory.java:147) : Automatic session close at end of transaction: disabled
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se ttingsFactory.java:162) : Scrollable result sets: enabled
      DEBUG org.hibernate.cfg.SettingsFactory.buildSettings(Se ttingsFactory.java:166) : Wrap result sets: disabled
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se ttingsFactory.java:170) : JDBC3 getGeneratedKeys(): enabled
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se ttingsFactory.java:178) : Connection release mode: on_close
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se ttingsFactory.java:205) : Default batch fetch size: 1
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se ttingsFactory.java:209) : Generate SQL with comments: disabled
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se ttingsFactory.java:213) : Order SQL updates by primary key: disabled
      INFO org.hibernate.cfg.SettingsFactory.createQueryTrans latorFactory(SettingsFactory.java:382) : Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
      INFO org.hibernate.hql.ast.ASTQueryTranslatorFactory.<i nit>(ASTQueryTranslatorFactory.java:24) : Using ASTQueryTranslatorFactory
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se ttingsFactory.java:221) : Query language substitutions: {}
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se ttingsFactory.java:226) : JPA-QL strict compliance: disabled
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se ttingsFactory.java:231) : Second-level cache: enabled
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se ttingsFactory.java:235) : Query cache: disabled
      INFO org.hibernate.cfg.SettingsFactory.createCacheProvi der(SettingsFactory.java:369) : Cache provider: org.hibernate.cache.NoCacheProvider
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se ttingsFactory.java:250) : Optimize cache for minimal puts: disabled
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se ttingsFactory.java:259) : Structured second-level cache entries: disabled
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se ttingsFactory.java:286) : Statistics: disabled
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se ttingsFactory.java:290) : Deleted entity synthetic identifier rollback: disabled
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se ttingsFactory.java:305) : Default entity-mode: pojo
      INFO org.hibernate.cfg.SettingsFactory.buildSettings(Se ttingsFactory.java:309) : Named query checking : enabled
      INFO org.hibernate.impl.SessionFactoryImpl.<init>(Sessi onFactoryImpl.java:161) : building session factory
      DEBUG org.hibernate.impl.SessionFactoryImpl.<init>(Sessi onFactoryImpl.java:173) : Session factory constructed with filter configurations : {}
      DEBUG org.hibernate.impl.SessionFactoryImpl.<init>(Sessi onFactoryImpl.java:177) : instantiating session factory with properties: {.....}
      DEBUG org.hibernate.persister.entity.AbstractEntityPersi ster.logStaticSQL(AbstractEntityPersister.java:273 8) : Static SQL for entity: com.robotsoft.User
      ..
      ..
      ..
      DEBUG org.hibernate.impl.SessionFactoryObjectFactory.add Instance(SessionFactoryObjectFactory.java:76) : registered: 402881eb1341cafd011341cb234c001c (unnamed)
      INFO org.hibernate.impl.SessionFactoryObjectFactory.add Instance(SessionFactoryObjectFactory.java:82) : Not binding factory to JNDI, no JNDI name configured
      DEBUG org.hibernate.impl.SessionFactoryImpl.<init>(Sessi onFactoryImpl.java:308) : instantiated session factory
      DEBUG org.hibernate.impl.SessionFactoryImpl.checkNamedQu eries(SessionFactoryImpl.java:392) : Checking 0 named HQL queries
      DEBUG org.hibernate.impl.SessionFactoryImpl.checkNamedQu eries(SessionFactoryImpl.java:412) : Checking 0 named SQL queries
      DEBUG org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:152) : Creating shared instance of singleton bean 'userDAOHibernate'
      DEBUG org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:345) : 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 org.springframework.context.support.AbstractApplic ationContext.prepareRefresh(AbstractApplicationCon text.java:378) : Refreshing org.springframework.context.support.ClassPathXmlAp plicationContext@152853d: display name [org.springframework.context.support.ClassPathXmlAp plicationContext@152853d]; startup date [Tue Jun 19 09:23:58 ICT 2007]; root of context hierarchy
      ..
      ..
      DEBUG org.hibernate.util.DTDEntityResolver.resolveEntity (DTDEntityResolver.java:50) : located [http://hibernate.sourceforge.net/hib...pping-3.0.dtd] in classpath
      INFO org.hibernate.cfg.HbmBinder.bindRootPersistentClas sCommonValues(HbmBinder.java:300) : 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.

      Comment


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

        Comment


        • #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.

          Comment

          Working...
          X