[Design of Messaging on JBoss (Messaging/JBoss)] - Re: new QueueBrowser implementation
by ataylor
anonymous wrote : Looking at your latest commit, I notice you added a method on the public client session api "createQueueCopy" - why is this necessary?
|
| Whilst, as a temporary measure the queue needs to be copied before browsing, there is no need for this to be exposed on the client or the wireformat, this should just be an internal implementation detail, when creating the browser on the server.
Ok I'll change this.
anonymous wrote : 1) The copy queue was being created using the createQueue method which would also bind it in the post office. This is unnecessary - all we want is a simple in memory copy we can browse
This is so any new messages routed to that address are received by the browser. If we're only bothered about whats in a queue at a certain point in time then We don't need to do it.
anonymous wrote : 2) The queueCopyLock was unnecessary - the list() method on Queue is already synchronized.
Again, this was so no new messages were delivered to the queue after the list method was called.
anonymous wrote : We also need some core integration tests that test the new browsing implementation.
I'm in the process of writing these.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4183138#4183138
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4183138
16 years, 2 months
[Design of the JBoss EJB Container] - NPE in JDBCStoreManager
by scott.stark@jboss.org
With the conf/jboss-service.xml refactoring, I'm seeing the following NPE for some tests (org.jboss.test.hello.test.HelloTimingStressTestCase).
| 00:28:25,855 ERROR [AbstractKernelController] Error installing to Start: name=jboss.j2ee:module="hello.jar",service=EjbModule state=Create mode=Manual requiredState=Installed
| java.lang.NullPointerException
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:415)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:368)
| at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:172)
| at org.jboss.ejb.EjbModule.startService(EjbModule.java:511)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
| ...
|
It looks like the EjbModule is starting the pm before the entity container has been started. Why don't we start the pm from the EntityContainer.startService?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4183129#4183129
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4183129
16 years, 2 months
[Design of JBoss Portal] - Re: Portal 2.7 with Postgres
by sdomsta
I have also received this error (using PostgreSQL 8.1):
JBoss Portal Release: jboss-portal-2.7.0.CR1
Using JDBC3 library: postgresql-8.1-404.jdbc3.jar
13:18:17,744 INFO [RepositoryImpl] Starting repository...
| 13:18:18,488 INFO [NodeTypeRegistry] no custom node type definitions found
| 13:18:18,625 INFO [JBossCachePersistenceManager] Pre-loading the PersistenceManager Cache in the background (started).......
| 13:18:18,633 INFO [JBossCachePersistenceManager] Pre-loading the PersistenceManager Cache for/wsp_prop (finished).......
| 13:18:18,634 INFO [JBossCachePersistenceManager] Pre-loading the PersistenceManager Cache for/version_prop (finished).......
| 13:18:18,643 INFO [JBossCachePersistenceManager] Pre-loading the PersistenceManager Cache for/version_node (finished).......
| 13:18:18,643 INFO [JBossCachePersistenceManager] Pre-loading the PersistenceManager Cache for/wsp_ref (finished).......
| 13:18:18,644 INFO [JBossCachePersistenceManager] Pre-loading the PersistenceManager Cache for/wsp_node (finished).......
| 13:18:18,657 INFO [JBossCachePersistenceManager] Pre-loading the PersistenceManager Cache for/version_ref (finished).......
| 13:18:20,636 INFO [JBossCachePersistenceManager] -------------------------------------------------
| 13:18:20,636 INFO [JBossCachePersistenceManager] JBossCachePersistenceManager is fully loaded.....
| 13:18:20,636 INFO [JBossCachePersistenceManager] -------------------------------------------------
| 13:18:20,746 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null
| 13:18:20,746 ERROR [JDBCExceptionReporter] Batch entry 0 insert into jbp_cms_version_node (NODE_ID, NODE_DATA, PK) values (deadbeef-face-babe-cafe-babecafebabe, <stream of 109 bytes>, 30) was aborted. Call getNextException to see the cause.
| 13:18:20,746 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: 42804
| 13:18:20,746 ERROR [JDBCExceptionReporter] ERROR: column "node_data" is of type oid but expression is of type bytea
| 13:18:20,747 ERROR [AbstractFlushingEventListener] Could not synchronize database state with session
| org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update
| at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
| at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
| at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:253)
| at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:92)
| at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:87)
| at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:222)
| at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2224)
| at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2660)
| ...
|
I haven't found a solution to this yet.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4183100#4183100
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4183100
16 years, 2 months