Guest User

Untitled

a guest
Apr 7th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.61 KB | None | 0 0
  1. <class>com.es.t.eee.domain.StuffSource</class>
  2. <class>com.es.t.eee.domain.PostalAddress</class>
  3.  
  4. Searching mapped entities in jar/par: bundleresource://34/
  5. WARN 27-07 15:30:24,235 (InputStreamZippedJarVisitor.java:doProcessElements:41):
  6. Unable to find file (ignored): bundleresource://34/
  7.  
  8. INFO 27-07 15:30:24,110 (Version.java:<clinit>:15):
  9. Hibernate Annotations 3.4.0.GA
  10. INFO 27-07 15:30:24,110 (Environment.java:<clinit>:543):
  11. Hibernate 3.3.0.SP1
  12. INFO 27-07 15:30:24,110 (Environment.java:<clinit>:576):
  13. hibernate.properties not found
  14. INFO 27-07 15:30:24,126 (Environment.java:buildBytecodeProvider:709):
  15. Bytecode provider name : javassist
  16. INFO 27-07 15:30:24,126 (Environment.java:<clinit>:627):
  17. using JDK 1.4 java.sql.Timestamp handling
  18. INFO 27-07 15:30:24,157 (Version.java:<clinit>:14):
  19. Hibernate Commons Annotations 3.1.0.GA
  20. INFO 27-07 15:30:24,157 (Version.java:<clinit>:16):
  21. Hibernate EntityManager 3.4.0.GA
  22. DEBUG 27-07 15:30:24,219 (Ejb3Configuration.java:configure:312):
  23. Processing PersistenceUnitInfo [
  24. name: unit.postgresql
  25. persistence provider classname: null
  26. classloader: BundleDelegatingClassLoader for [DatabaseObjects (DatabaseObjects)]
  27. Temporary classloader: org.springframework.instrument.classloading.SimpleThrowawayClassLoader@11b50a1
  28. excludeUnlistedClasses: true
  29. JTA datasource: null
  30. Non JTA datasource: com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 1000, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1012f6d821goxcok12zcw86|174f02c, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> org.postgresql.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1012f6d821goxcok12zcw86|174f02c, idleConnectionTestPeriod -> 0, initialPoolSize -> 5, jdbcUrl -> jdbc:postgresql://localhost:5432/test2, lastAcquisitionFailureDefaultUser -> null, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 100, maxStatements -> 100, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]
  31. Transaction type: RESOURCE_LOCAL
  32. PU root URL: bundleresource://34/
  33. Jar files URLs []
  34. Managed classes names []
  35. Mapping files names []
  36. Properties [
  37. hibernate.default_batch_fetch_size: 500
  38. hibernate.cache.provider_class: net.sf.ehcache.hibernate.EhCacheProvider
  39. hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect
  40. hibernate.max_fetch_depth: 5
  41. hibernate.query.factory_class: org.hibernate.hql.ast.ASTQueryTranslatorFactory
  42. hibernate.format_sql: false
  43. hibernate.jdbc.batch_size: 1000
  44. hibernate.use_outer_join: true
  45. hibernate.archive.autodetection: class
  46. hibernate.show_sql: false
  47. hibernate.bytecode.provider: cglib]
  48.  
  49. DEBUG 27-07 15:30:24,235 (Ejb3Configuration.java:getDetectedArtifacts:562):
  50. Detect class: true; detect hbm: false
  51. DEBUG 27-07 15:30:24,235 (Ejb3Configuration.java:getDetectedArtifacts:562):
  52. Detect class: true; detect hbm: false
  53. DEBUG 27-07 15:30:24,235 (AbstractJarVisitor.java:unqualify:116):
  54. Searching mapped entities in jar/par: bundleresource://34/
  55. WARN 27-07 15:30:24,235 (InputStreamZippedJarVisitor.java:doProcessElements:41):
  56. Unable to find file (ignored): bundleresource://34/
  57. java.lang.NullPointerException: in is null
  58. at java.util.zip.ZipInputStream.<init>(Unknown Source)
  59. at java.util.jar.JarInputStream.<init>(Unknown Source)
  60. at java.util.jar.JarInputStream.<init>(Unknown Source)
  61. at org.hibernate.ejb.packaging.InputStreamZippedJarVisitor.doProcessElements(InputStreamZippedJarVisitor.java:37)
  62. at org.hibernate.ejb.packaging.AbstractJarVisitor.getMatchingEntries(AbstractJarVisitor.java:139)
  63. at org.hibernate.ejb.Ejb3Configuration.addScannedEntries(Ejb3Configuration.java:287)
  64. at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:614)
  65. at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:360)
  66. at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:131)
  67. at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:224)
  68. at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:291)
  69. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
  70. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
  71. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
  72. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
  73. at java.security.AccessController.doPrivileged(Native Method)
  74. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
  75. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
  76. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
  77. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
  78. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
  79. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
  80. at org.springframework.beans.factory.support.AbstractBeanFactory.isSingleton(AbstractBeanFactory.java:366)
  81. at org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.afterPropertiesSet(OsgiServiceFactoryBean.java:235)
  82. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
  83. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
  84. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
  85. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
  86. at java.security.AccessController.doPrivileged(Native Method)
  87. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
  88. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
  89. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
  90. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
  91. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
  92. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
  93. at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
  94. at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
  95. at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:288)
  96. at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:145)
  97. at java.lang.Thread.run(Unknown Source)
  98.  
  99. <bean id="stuffDao" class="com.es.t.eee.domain.dao.StuffSourceDaoImpl">
  100. <property name="sessionFactory" ref="sessionFactory"/>
  101. </bean>
  102. <bean id="stuffService"
  103. class="com.es.t.eee.domain.dao.StuffServiceImpl">
  104. <property name="stuffDao" ref="stuffDao"/>
  105. </bean>
  106.  
  107. <bean id="stuffSource"
  108. class="com.es.t.eee.domain.StuffSource" scope="prototype"/>
  109.  
  110. <bean id="sessionFactory"
  111. class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
  112. <property name="hibernateProperties">
  113. <props>
  114. <!--etc-->
  115. </props>
  116. </property>
  117. <!-- set either one of these properties -->
  118. <property name="annotatedClasses">
  119. <list>
  120. <value>com.es.t.eee.domain.StuffSource</value>
  121. <value>com.es.t.eee.domain.PostalAddress</value>
  122. </list>
  123. </property>
  124. <property name="packagesToScan">
  125. <list>
  126. <value>com.es.t.eee.domain</value>
  127. </list>
  128. </property>
  129. </bean>
  130.  
  131. String serviceName = StuffService .class.getName();
  132. StuffService service =
  133. (StuffService )context.getService(context.getServiceReference(serviceName));
  134.  
  135. String stuffName = StuffSource.class.getName();
  136. StuffSource stuffSource =
  137. (StuffSource) context.getService(context.getServiceReference(stuffName ));
  138.  
  139. //do whatever with StuffSource
  140. ...
  141.  
  142. service.store(stuffSource );
Add Comment
Please, Sign In to add comment