[EJB 3.0] - Problem when persisting Entity
by philipp.tiedt
Hi All,
I have an entity with a compound primary key. Each key field again is a foreign key to another entity.
The entity is implemented like this
@Entity
| @Table(name = "jobitems")
| @IdClass(JobItemId.class)
| public class JobItem implements Serializable {
|
| @ManyToOne
| @JoinColumn(name = "forumId")
| private Forum forum;
|
| @ManyToOne
| @JoinColumn(name = "parsingJobId")
| private ParsingJob parsingJob;
|
| @Id
| @Column(name = "forumId", insertable = false, updatable = false)
| private int forumId;
|
| @Id
| @Column(name = "parsingJobId", insertable = false, updatable = false)
| private int parsingJobId;
|
| private String server;
| private String comments;
|
| /**
| * @param forum
| * @param parsingJob
| */
| public JobItem(Forum forum, ParsingJob parsingjob) {
| super();
| setForumId(forum.getId());
| setParsingJobId(parsingjob.getId());
|
| }
I get the following exception when I create an instance and persist the same. It says index out of range for the parameter so I guess it tries to add 6 parameters (for my 6 fields) instead of 4. Am I missing some annotations?
Any Ideas ?
I run on JBoss 4.2 and MySql
the error message is as follows
|
| 2007-07-19 17:19:15,968 DEBUG [org.hibernate.SQL] insert into jobitems (server, comments, forumId, parsingJobId) values (?, ?, ?, ?)
| 2007-07-19 17:19:15,968 INFO [org.hibernate.type.IntegerType] could not bind value '1' to parameter: 5; Parameter index out of range (5 > number of parameters, which is 4).
| 2007-07-19 17:19:15,968 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
| 2007-07-19 17:19:15,968 DEBUG [org.hibernate.jdbc.ConnectionManager] skipping aggressive-release due to flush cycle
| 2007-07-19 17:19:15,968 DEBUG [org.hibernate.util.JDBCExceptionReporter] could not insert: [com.vico.software.tools.parsing.entities.JobItem] [insert into jobitems (server, comments, forumId, parsingJobId) values (?, ?, ?, ?)]
| java.sql.SQLException: Parameter index out of range (5 > number of parameters, which is 4).
| at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910)
| at com.mysql.jdbc.PreparedStatement.setInternal(PreparedStatement.java:2740)
| at com.mysql.jdbc.PreparedStatement.setInternal(PreparedStatement.java:2771)
| at com.mysql.jdbc.PreparedStatement.setInt(PreparedStatement.java:2722)
| at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.setInt(WrappedPreparedStatement.java:117)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065873#4065873
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065873
18Â years, 9Â months
[JBoss Seam] - Unable to run a test
by michaelcourcy
Hi
I'm unable to run a single test
I use seam gen
seam setup
seam new-project
seam new-action
I use all the default value (ear, hsql and so on), I don't touch the code
I can deploy it on JBoss every thing work fine.
But when I try to run the test
I get a deployment error
| [testng] FAILED CONFIGURATION: @BeforeClass init
| [testng] org.jboss.deployers.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
| [testng] *** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
|
Do you meet the same problem
My config :
jdk 1.5, seam 2.0 Beta, JBoss 4.2
Here is the conplete output
| Buildfile: C:\Projects\michael\build.xml
| compiletest:
| copytestclasses:
| buildtest:
| [copy] Copying 1 file to C:\Projects\michael\test-build\META-INF
| [copy] Copying 1 file to C:\Projects\michael\test-build
| test:
| [testng] [Parser] Running:
| [testng] C:\Projects\michael\test-build\MicTest.xml
| [testng] WARN 19-07 17:46:07,265 [org.jboss.mx.loading.UnifiedLoaderRepository3.addClassLoader():675] Tried to add non-URLClassLoader. Ignored
| [testng] INFO 19-07 17:46:16,078 [com.arjuna.ats.jbossatx.jta.TransactionManagerService.startService():126] JBossTS Transaction Service (JTA version) - JBoss Inc.
| [testng] INFO 19-07 17:46:16,078 [com.arjuna.ats.jbossatx.jta.TransactionManagerService.startService():128] Setting up property manager MBean and JMX layer
| [testng] WARN 19-07 17:46:16,859 [com.arjuna.ats.arjuna.coordinator.TxControl.<clinit>():266] [com.arjuna.ats.arjuna.coordinator.TxControl_1] - Name of XA node not defined. Using -3f57fda0:59b:469f8748:0
| [testng] INFO 19-07 17:46:17,296 [com.arjuna.ats.arjuna.recovery.TransactionStatusManager.addService():110] [com.arjuna.ats.arjuna.recovery.TransactionStatusManager_1] - Starting service com.arjuna.ats.arjuna.recovery.ActionStatusService on port 1435
| [testng] INFO 19-07 17:46:17,312 [?.?():?] TransactionStatusManagerItem - host: 192.168.2.96 port: 1435
| [testng] INFO 19-07 17:46:17,437 [com.arjuna.ats.arjuna.recovery.TransactionStatusManager.start():161] [com.arjuna.ats.arjuna.recovery.TransactionStatusManager_3] - TransactionStatusManager started on port 1435 with service com.arjuna.ats.arjuna.recovery.ActionStatusService
| [testng] INFO 19-07 17:46:17,640 [?.?():?] Registering mbean for module 'arjuna'
| [testng] INFO 19-07 17:46:17,703 [?.?():?] Initialising JMX agent com.arjuna.ats.internal.jbossatx.agent.LocalJBossAgentImpl
| [testng] INFO 19-07 17:46:18,046 [com.arjuna.ats.jbossatx.jta.TransactionManagerService.startService():163] Starting recovery manager
| [testng] INFO 19-07 17:46:18,140 [?.?():?]
| [testng] --- Start RecoveryActivators
| [testng] INFO 19-07 17:46:18,234 [com.arjuna.ats.internal.arjuna.recovery.RecoveryManagerImple.<init>():142] [com.arjuna.ats.internal.arjuna.recovery.ready] RecoveryManagerImple is ready on port 1 436
| [testng] INFO 19-07 17:46:18,250 [com.arjuna.ats.jbossatx.jta.TransactionManagerService.startService():168] Recovery manager started
| [testng] INFO 19-07 17:46:18,312 [com.arjuna.ats.jbossatx.jta.TransactionManagerService.startService():191] Binding TransactionManager JNDI Reference
| [testng] INFO 19-07 17:46:37,078 [org.jboss.jms.server.ServerPeer.<init>():187] ServerPeer[0] creating server peer with ID 0
| [testng] FAILED CONFIGURATION: @BeforeClass init
| [testng] org.jboss.deployers.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
| [testng] *** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
| [testng] jboss.jca:name=DefaultDS,service=DataSourceBinding
| [testng] -> jboss.jca:name=DefaultDS,service=LocalTxCM{Start:Configured}
| [testng] -> jboss.jca:name=DefaultDS,service=LocalTxCM{Create:Configured}
| [testng] jboss.jca:name=DefaultDS,service=LocalTxCM
| [testng] -> jboss.jca:name=DefaultDS,service=ManagedConnectionPool{Create:Configured}
| [testng] -> jboss.jca:name=DefaultDS,service=ManagedConnectionPool{Start:Configured}
| [testng] jboss.jca:name=DefaultDS,service=ManagedConnectionFactory
| [testng] -> jboss.jca:name='jboss-local-jdbc.rar',service=RARDeployment{Create:** NOT FOUND **}
| [testng] -> jboss.jca:name='jboss-local-jdbc.rar',service=RARDeployment{Start:** NOT FOUND **}
| [testng] jboss.jca:name=DefaultDS,service=ManagedConnectionPool
| [testng] -> jboss.jca:name=DefaultDS,service=ManagedConnectionFactory{Start:Configured}
| [testng] -> jboss.jca:name=DefaultDS,service=ManagedConnectionFactory{Create:Configured}
| [testng] jboss.jca:name=JmsXA,service=DataSourceBinding
| [testng] -> jboss.jca:name=JmsXA,service=TxCM{Create:Configured}
| [testng] -> jboss.jca:name=JmsXA,service=TxCM{Start:Configured}
| [testng] jboss.jca:name=JmsXA,service=ManagedConnectionFactory
| [testng] -> jboss.jca:name='jms-ra.rar',service=RARDeployment{Start:** NOT FOUND **}
| [testng] -> jboss.jca:name='jms-ra.rar',service=RARDeployment{Create:** NOT FOUND **}
| [testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
| [testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
| [testng] jboss.jca:name=JmsXA,service=ManagedConnectionPool
| [testng] -> jboss.jca:name=JmsXA,service=ManagedConnectionFactory{Start:Configured}
| [testng] -> jboss.jca:name=JmsXA,service=ManagedConnectionFactory{Create:Configured}
| [testng] jboss.jca:name=JmsXA,service=TxCM
| [testng] -> jboss.jca:name=JmsXA,service=ManagedConnectionPool{Create:Configured}
| [testng] -> jboss.jca:name=JmsXA,service=ManagedConnectionPool{Start:Configured}
| [testng] jboss.messaging.connectionfactory:service=ConnectionFactory
| [testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
| [testng] -> jboss.messaging:service=PostOffice{Create:Configured}
| [testng] -> jboss.messaging:service=PostOffice{Start:Configured}
| [testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
| [testng] jboss.messaging.destination:name=DLQ,service=Queue
| [testng] -> jboss.messaging:service=PostOffice{Start:Configured}
| [testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
| [testng] -> jboss.messaging:service=PostOffice{Create:Configured}
| [testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
| [testng] jboss.messaging.destination:name=ExpiryQueue,service=Queue
| [testng] -> jboss.messaging:service=PostOffice{Start:Configured}
| [testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
| [testng] -> jboss.messaging:service=PostOffice{Create:Configured}
| [testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
| [testng] jboss.messaging.destination:name=PrivateDLQ,service=Queue
| [testng] -> jboss.messaging:service=PostOffice{Start:Configured}
| [testng] -> jboss.messaging:service=PostOffice{Create:Configured}
| [testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
| [testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
| [testng] jboss.messaging.destination:name=PrivateExpiryQueue,service=Queue
| [testng] -> jboss.messaging:service=PostOffice{Create:Configured}
| [testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
| [testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
| [testng] -> jboss.messaging:service=PostOffice{Start:Configured}
| [testng] jboss.messaging.destination:name=QueueWithOwnDLQAndExpiryQueue,service=Queue
| [testng] -> jboss.messaging:service=PostOffice{Start:Configured}
| [testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
| [testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
| [testng] -> jboss.messaging:service=PostOffice{Create:Configured}
| [testng] jboss.messaging.destination:name=QueueWithOwnRedeliveryDelay,service=Queue
| [testng] -> jboss.messaging:service=PostOffice{Create:Configured}
| [testng] -> jboss.messaging:service=PostOffice{Start:Configured}
| [testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
| [testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
| [testng] jboss.messaging.destination:name=TopicWithOwnDLQAndExpiryQueue,service=Topic
| [testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
| [testng] -> jboss.messaging:service=PostOffice{Start:Configured}
| [testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
| [testng] -> jboss.messaging:service=PostOffice{Create:Configured}
| [testng] jboss.messaging.destination:name=TopicWithOwnRedeliveryDelay,service=Topic
| [testng] -> jboss.messaging:service=PostOffice{Create:Configured}
| [testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
| [testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
| [testng] -> jboss.messaging:service=PostOffice{Start:Configured}
| [testng] jboss.messaging:service=JMSUserManager
| [testng] -> jboss.jca:name=DefaultDS,service=DataSourceBinding{Create:Configured}
| [testng] -> jboss.jca:name=DefaultDS,service=DataSourceBinding{Start:Configured}
| [testng] jboss.messaging:service=PersistenceManager
| [testng] -> jboss.jca:name=DefaultDS,service=DataSourceBinding{Create:Configured}
| [testng] -> jboss.jca:name=DefaultDS,service=DataSourceBinding{Start:Configured}
| [testng] jboss.messaging:service=PostOffice
| [testng] -> jboss.jca:name=DefaultDS,service=DataSourceBinding{Start:Configured}
| [testng] -> jboss.jca:name=DefaultDS,service=DataSourceBinding{Create:Configured}
| [testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
| [testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
| [testng] jboss.messaging:service=ServerPeer
| [testng] -> jboss.messaging:service=PersistenceManager{Start:Configured}
| [testng] -> jboss.messaging:service=JMSUserManager{Create:Configured}
| [testng] -> jboss.messaging:service=PersistenceManager{Create:Configured}
| [testng] -> jboss.messaging:service=JMSUserManager{Start:Configured}
| [testng] jboss.mq:service=DestinationManager
| [testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
| [testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
| [testng] *** CONTEXTS IN ERROR: Name -> Error
| [testng] jboss.jca:name='jms-ra.rar',service=RARDeployment -> ** NOT FOUND **
| [testng] jboss.jca:name='jboss-local-jdbc.rar',service=RARDeployment -> ** NOT FOUND **
| [testng] at org.jboss.embedded.Bootstrap.checkIncomplete(Bootstrap.java:144)
| [testng] at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:169)
| [testng] at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:201)
| [testng] at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:214)
| [testng] at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:919)
| [testng] at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:856)
| [testng] at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
| [testng] ... Removed 22 stack frames
| [testng] SKIPPED CONFIGURATION: @BeforeMethod begin
| [testng] SKIPPED CONFIGURATION: @AfterMethod end
| [testng] SKIPPED CONFIGURATION: @AfterClass cleanup
| [testng] SKIPPED: test
| [testng] ===============================================
| [testng] Mic Test
| [testng] Tests run: 1, Failures: 0, Skips: 1
| [testng] Configuration Failures: 1, Skips: 3
| [testng] ===============================================
| [testng] ===============================================
| [testng] Mic Tests
| [testng] Total tests run: 1, Failures: 0, Skips: 1
| [testng] Configuration Failures: 1, Skips: 3
| [testng] ===============================================
| BUILD SUCCESSFUL
| Total time: 55 seconds
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065869#4065869
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065869
18Â years, 9Â months
[JBoss Seam] - Re: EntityQuery.refresh() doesn't clear the result list??
by ASavitsky
First, thanks for the pointers. I'll look up the "after transaction" event in the CVS. It must have been a freshly added one, as it's not listed in the Seam 2B docs... yet.
Now, in regards to anonymous wrote : How about using your debugger to find out why ? Sheesh! where did I say that I didn't use one? Just tried to spare everyone the gory details, as my concern was mainly whether I use the components in a correct way - but since you asked, here goes...
To trace the problem, I used a modified EntityQuery class, with some logging added to the methods that manipulate resultList. Only modified methods are shown for brewity.
package org.jboss.seam.framework;
| public class EntityQuery extends Query<EntityManager> {
| private static final Log log = LogFactory.getLog(EntityQuery.class);
| private List resultList;
|
| private void initResultList() {
| log.warn("Entered initResultList(), ejbql " + getEjbql()
| + ", hashcode " + this.hashCode() + ", list size "
| + (resultList == null ? "null" : resultList.size()));
| if (resultList == null) {
| javax.persistence.Query query = createQuery();
| resultList = query == null ? null : query.getResultList();
| }
| log.warn("Exited initResultList(), ejbql " + getEjbql() + ", hashcode "
| + this.hashCode() + ", list size "
| + (resultList == null ? "null" : resultList.size()));
| }
| @Transactional
| @Override
| public List getResultList() {
| log.warn("Entered getResultList(), ejbql " + getEjbql() + ", hashcode "
| + this.hashCode() + ", list size "
| + (resultList == null ? "null" : resultList.size()));
| if (isAnyParameterDirty()) {
| refresh();
| }
| initResultList();
| try {
| return truncResultList(resultList);
| } finally {
| log.warn("Exited getResultList(), ejbql " + getEjbql()
| + ", hashcode " + this.hashCode() + ", list size "
| + (resultList == null ? "null" : resultList.size()));
| }
| }
| @Override
| @Transactional
| public boolean isNextExists() {
| log.warn("Entered isNextExists(), ejbql " + getEjbql() + ", hashcode "
| + this.hashCode() + ", list size "
| + (resultList == null ? "null" : resultList.size()));
| return resultList != null && resultList.size() > getMaxResults();
| }
| @Override
| public void refresh() {
| log.warn("Entered refresh(), ejbql " + getEjbql() + ", hashcode "
| + this.hashCode() + ", list size "
| + (resultList == null ? "null" : resultList.size()));
| super.refresh();
| resultCount = null;
| resultList = null;
| singleResult = null;
| log.warn("Exited refresh(), ejbql " + getEjbql() + ", hashcode "
| + this.hashCode() + ", list size "
| + (resultList == null ? "null" : resultList.size()));
| }
| }
And here's the log output during the execution of controller's save() method for a new record:
WARN [org.jboss.seam.framework.EntityQuery] - Entered refresh(), ejbql FROM Account WHERE closed = false AND familyExemption = false AND user = #{principal}, hashcode 10610605, list size 5
| WARN [org.jboss.seam.framework.EntityQuery] - Exited refresh(), ejbql FROM Account WHERE closed = false AND familyExemption = false AND user = #{principal}, hashcode 10610605, list size null
| WARN [org.jboss.seam.framework.EntityQuery] - Entered getResultList(), ejbql FROM Account WHERE closed = false AND familyExemption = false AND user = #{principal}, hashcode 10610605, list size 5
| WARN [org.jboss.seam.framework.EntityQuery] - Entered initResultList(), ejbql FROM Account WHERE closed = false AND familyExemption = false AND user = #{principal}, hashcode 10610605, list size 5
ejbql and hashcode output is mainly to make sure we're dealing with the right query, and that it stays the same object during execution (i.e., not dropped and re-created).
As you can see, refresh() resets the resultList to null all right, yet the next time query gets accessed, it still contains the same old result list (refreshed one would contain 6 items, as one was added)! There are no modifications to resultList in between these calls, as evident from both the logs, and from the breakpoints I've been placing. My suspicions were at the javassist, that with the bytecode enhancement on EntityQuery not all modifications to resultList would be caught by debugger, but since I don't know jack about javassist and bytecode, I didn't investigate those.
Now, I hope I explained that it's not because I'm lazy to use a debugger, that I'm running out of ideas on why is this problem happening?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065867#4065867
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065867
18Â years, 9Â months
[JBoss Portal] - Re: security constraint template/dashboard
by cpage
ok, thank you.
that raises a second point in my uses cases.
the fact that the template portal could be updated with new portlets.
in that case, the user has to pull the portlet in his dashboard with the dashboardConfiguratorPortlet.
I need a way to give to administrators the possibility to push the new portlet(s) in the dashboard of an user, a group of users or every users.
anyway, i will remake the DashboardConfiguratorPortlet for my specific needs and i think i'll include this stuff, when an admin update the portal Template, give him the possibility to push the updates to users dashboards.
and also
- disable page adding
- disable theme changing
- title of portlet instead of instance name and group the portlets in a treeview thanks to keywords(<portlet-info>) to help users to find the right portlet to add
- name of the page in the resource bundle and not the logic name
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065866#4065866
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065866
18Â years, 9Â months
[JNDI/Naming/Network] - Re: Exception while Storing records in Database : Could not
by smaskar
"smaskar" wrote : I am persisting data into the MSSQL Server 2005 database using the JNDI lookup. I can insert the single record at a time, but when I ran the test program for 10 or 20 records i am getting the following exception on Jboss
|
| Configuration details : JBoss, Spring, MSSQL server 2005, Jdk 5
|
| JNDI mapping from JBOSS
|
| <?xml version="1.0" encoding="UTF-8"?>
|
|
| <local-tx-datasource>
| <jndi-name>jdbc/miramar</jndi-name>
| <!-- allows DS to be accessed remotely -->
| <use-java-context>false</use-java-context>
| <connection-url>jdbc:inetdae7:localhost:1434?database=miramar&secureLevel=0</connection-url>
| <driver-class>com.inet.tds.TdsDriver</driver-class>
| <user-name>sa</user-name>
| admin123
| <min-pool-size>5</min-pool-size>
| <max-pool-size>50</max-pool-size>
|
| <type-mapping>MS SQLSERVER2000</type-mapping>
|
| </local-tx-datasource>
|
|
|
|
| Exception :
|
| 14:07:06,812 INFO [myMDB] Exception while Storing Event in Database : Could not get JDBC Connection; nested exception is org.jboss.util.Neste
| dSQLException: Could not create connection; - nested throwable: (com.inet.tds.r: java.net.SocketExceptionjava.net.SocketException: Connection reset); - neste
| d throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (com.inet.tds.r: java.net.SocketExceptionjava.net.S
| ocketException: Connection reset))
| 14:07:06,812 INFO [STDOUT] org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (com.inet.tds.r: java.net.SocketExceptionjava
| .net.SocketException: Connection reset); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (co
| m.inet.tds.r: java.net.SocketExceptionjava.net.SocketException: Connection reset))
| 14:07:06,812 INFO [STDOUT] at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:107)
| 14:07:06,812 INFO [STDOUT] at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:112)
| 14:07:06,812 INFO [STDOUT] at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)
| 14:07:06,812 INFO [STDOUT] at org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:177)
| 14:07:06,812 INFO [STDOUT] at org.springframework.orm.ibatis.SqlMapClientTemplate.insert(SqlMapClientTemplate.java:356)
| 14:07:06,812 INFO [STDOUT] at com.org.project.gen.MyDAOImpl.insert(MyDAOImpl.java:25)
| 14:07:06,812 INFO [STDOUT] at com.org.project.geo.MyTabletDAO.addEvent(MyTabletDAO.java:137)
| 14:07:06,812 INFO [STDOUT] at com.org.project.mdb.myMDB.onMessage(myMDB.java:72)
| 14:07:06,812 INFO [STDOUT] at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
| 14:07:06,812 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 14:07:06,812 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:585)
| 14:07:06,812 INFO [STDOUT] at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
| 14:07:06,812 INFO [STDOUT] at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:475)
| 14:07:06,812 INFO [STDOUT] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
| 14:07:06,812 INFO [STDOUT] at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:87)
| 14:07:06,812 INFO [STDOUT] at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
| 14:07:06,812 INFO [STDOUT] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
| 14:07:06,812 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
| 14:07:06,812 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
| 14:07:06,812 INFO [STDOUT] at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:94)
| 14:07:06,812 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
| 14:07:06,812 INFO [STDOUT] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
| 14:07:06,812 INFO [STDOUT] at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:389)
| 14:07:06,812 INFO [STDOUT] at org.jboss.ejb.Container.invoke(Container.java:873)
| 14:07:06,812 INFO [STDOUT] at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:1090)
| 14:07:06,812 INFO [STDOUT] at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1392)
| 14:07:06,812 INFO [STDOUT] at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:256)
| 14:07:06,812 INFO [STDOUT] at com.tibco.tibjms.TibjmsSession._submit(TibjmsSession.java:3567)
| 14:07:06,812 INFO [STDOUT] at com.tibco.tibjms.TibjmsSession._dispatchAsyncMessage(TibjmsSession.java:1963)
| 14:07:06,812 INFO [STDOUT] at com.tibco.tibjms.TibjmsSession._run(TibjmsSession.java:3054)
| 14:07:06,812 INFO [STDOUT] at com.tibco.tibjms.TibjmsSession.run(TibjmsSession.java:4204)
| 14:07:06,812 INFO [STDOUT] at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)
| 14:07:06,812 INFO [STDOUT] at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
| 14:07:06,812 INFO [STDOUT] at java.lang.Thread.run(Thread.java:595)
| 14:07:06,812 INFO [STDOUT] Caused by: org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (com.inet.tds.r: java.net.
| SocketExceptionjava.net.SocketException: Connection reset)
| 14:07:06,812 INFO [STDOUT] at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.
| java:161)
| 14:07:06,812 INFO [STDOUT] at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnection
| Pool.java:508)
| 14:07:06,812 INFO [STDOUT] at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:207)
| 14:07:06,812 INFO [STDOUT] at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:534
| )
| 14:07:06,812 INFO [STDOUT] at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:395)
| 14:07:06,812 INFO [STDOUT] at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:297)
| 14:07:06,812 INFO [STDOUT] at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:447)
| 14:07:06,812 INFO [STDOUT] at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManage
| r2.java:874)
| 14:07:06,812 INFO [STDOUT] at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:103)
| 14:07:06,812 INFO [STDOUT] ... 33 more
| 14:07:06,812 INFO [STDOUT] Caused by: com.inet.tds.r: java.net.SocketExceptionjava.net.SocketException: Connection reset
| 14:07:06,812 INFO [STDOUT] at com.inet.tds.k.createSQLException(Unknown Source)
| 14:07:06,812 INFO [STDOUT] at com.inet.tds.TdsConnection.a(Unknown Source)
| 14:07:06,812 INFO [STDOUT] at com.inet.tds.TdsConnection.a(Unknown Source)
| 14:07:06,812 INFO [STDOUT] at com.inet.tds.TdsConnection.(Unknown Source)
| 14:07:06,812 INFO [STDOUT] at com.inet.tds.q.(Unknown Source)
| 14:07:06,812 INFO [STDOUT] at com.inet.tds.k.createConnection(Unknown Source)
| 14:07:06,812 INFO [STDOUT] at com.inet.tds.TdsDriver.connect(Unknown Source)
| 14:07:06,812 INFO [STDOUT] at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.
| java:151)
| 14:07:06,812 INFO [STDOUT] ... 41 more
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065865#4065865
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065865
18Â years, 9Â months