[Persistence, JBoss/CMP, Hibernate, Database] - problems with jdbc / datasource
by seahawk@volny.cz
Hi,
I'm trying to do some tests here - and I'm facing the following problem:
Scenario:
I do several db calls through normal JDBC - simply - each time I:
1) open connection
2) prepare statement
3) execute it
4) parse output
5) close connection
this is done from stateful session bean using JDBC calling stored procedures.
this I do 4x100.000 times but after 4x12000 times the process terminates with following exception:
1:12:04,100 WARN [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.BasicAction_58] - Abort of action id a00051a:369b:47971163:31 invoked while multiple threads active within it.
11:12:04,100 WARN [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.CheckedAction_2] - CheckedAction::check - atomic action a00051a:369b:47971163:31 aborting with 1 threads active!
11:12:04,131 INFO [STDOUT] Unable to get user: Transaction is not active: tx=TransactionImple < ac, BasicAction: a00051a:369b:47971163:31 status: ActionStatus.ABORTING >; - nested throwable: (javax.resou
ce.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: a00051a:369b:47971163:31 status: ActionStatus.ABORTING >)
11:12:04,131 INFO [STDOUT] Unable to update user: Transaction is not active: tx=TransactionImple < ac, BasicAction: a00051a:369b:47971163:31 status: ActionStatus.ABORTED >; - nested throwable: (javax.res
urce.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: a00051a:369b:47971163:31 status: ActionStatus.ABORTED >)
I'll be grateful for any advice.
Thanks
Y
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122549#4122549
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122549
18 years, 6 months
[Beginners Corner] - Re: JBoss starts but no access
by NSchweig
Good Morning,
..it is really weird...
Ok. I killed alg.exe and rapimgr.exe and Wcescomm.exe (--> they were only needed to synchronize my pda with the pc; but that does not work too...)
I did everything with the windows firewall you said. (It was not active before, but there were some things that were running I think)
I stopped the application... service
Unfortunately it does not work to get access :-(((
Here is my netstat -abn output after doing this things:
| Aktive Verbindungen
|
| Proto Lokale Adresse Remoteadresse Status PID
| TCP 0.0.0.0:135 0.0.0.0:0 ABHÃÂREN 1012
| c:\windows\system32\WS2_32.dll
| C:\WINDOWS\system32\RPCRT4.dll
| c:\windows\system32\rpcss.dll
| C:\WINDOWS\system32\svchost.exe
| C:\WINDOWS\system32\ADVAPI32.dll
| [svchost.exe]
|
| TCP 0.0.0.0:445 0.0.0.0:0 ABHÃÂREN 4
| [System]
|
| TCP 0.0.0.0:1304 0.0.0.0:0 ABHÃÂREN 1680
| [java.exe]
|
| TCP 0.0.0.0:1305 0.0.0.0:0 ABHÃÂREN 1680
| [java.exe]
|
| TCP 0.0.0.0:1307 0.0.0.0:0 ABHÃÂREN 1680
| [java.exe]
|
| TCP 0.0.0.0:3306 0.0.0.0:0 ABHÃÂREN 1140
| [mysqld-nt.exe]
|
| TCP 127.0.0.1:1098 0.0.0.0:0 ABHÃÂREN 1680
| [java.exe]
|
| TCP 127.0.0.1:1099 0.0.0.0:0 ABHÃÂREN 1680
| [java.exe]
|
| TCP 127.0.0.1:3873 0.0.0.0:0 ABHÃÂREN 1680
| [java.exe]
|
| TCP 127.0.0.1:4444 0.0.0.0:0 ABHÃÂREN 1680
| [java.exe]
|
| TCP 127.0.0.1:4445 0.0.0.0:0 ABHÃÂREN 1680
| [java.exe]
|
| TCP 127.0.0.1:4446 0.0.0.0:0 ABHÃÂREN 1680
| [java.exe]
|
| TCP 127.0.0.1:8009 0.0.0.0:0 ABHÃÂREN 1680
| [java.exe]
|
| TCP 127.0.0.1:8080 0.0.0.0:0 ABHÃÂREN 1680
| [java.exe]
|
| TCP 127.0.0.1:8083 0.0.0.0:0 ABHÃÂREN 1680
| [java.exe]
|
| TCP 127.0.0.1:8093 0.0.0.0:0 ABHÃÂREN 1680
| [java.exe]
|
| TCP 192.168.2.20:139 0.0.0.0:0 ABHÃÂREN 4
| [System]
|
| TCP 127.0.0.1:1056 127.0.0.1:1057 HERGESTELLT 292
| [firefox.exe]
|
| TCP 127.0.0.1:1057 127.0.0.1:1056 HERGESTELLT 292
| [firefox.exe]
|
| TCP 127.0.0.1:1058 127.0.0.1:1059 HERGESTELLT 292
| [firefox.exe]
|
| TCP 127.0.0.1:1059 127.0.0.1:1058 HERGESTELLT 292
| [firefox.exe]
|
| TCP 127.0.0.1:1308 127.0.0.1:8080 HERGESTELLT 292
| [firefox.exe]
|
| TCP 127.0.0.1:8080 127.0.0.1:1308 HERGESTELLT 1680
| [java.exe]
|
| TCP 192.168.2.20:1306 192.168.2.20:1304 FIN_WARTEN_2 1680
| [java.exe]
|
| TCP 192.168.2.20:1304 192.168.2.20:1306 SCHLIESSEN_WARTEN 1680
|
| [java.exe]
|
| UDP 0.0.0.0:500 *:* 772
| [lsass.exe]
|
| UDP 0.0.0.0:1094 *:* 1260
| C:\WINDOWS\system32\mswsock.dll
| c:\windows\system32\WS2_32.dll
| c:\windows\system32\DNSAPI.dll
| c:\windows\system32\dnsrslvr.dll
| C:\WINDOWS\system32\RPCRT4.dll
| [svchost.exe]
|
| UDP 0.0.0.0:1071 *:* 1260
| C:\WINDOWS\system32\mswsock.dll
| c:\windows\system32\WS2_32.dll
| c:\windows\system32\DNSAPI.dll
| c:\windows\system32\dnsrslvr.dll
| C:\WINDOWS\system32\RPCRT4.dll
| [svchost.exe]
|
| UDP 0.0.0.0:4500 *:* 772
| [lsass.exe]
|
| UDP 0.0.0.0:1026 *:* 1260
| C:\WINDOWS\system32\mswsock.dll
| c:\windows\system32\WS2_32.dll
| c:\windows\system32\DNSAPI.dll
| c:\windows\system32\dnsrslvr.dll
| C:\WINDOWS\system32\RPCRT4.dll
| [svchost.exe]
|
| UDP 0.0.0.0:445 *:* 4
| [System]
|
| UDP 127.0.0.1:123 *:* 1108
| c:\windows\system32\WS2_32.dll
| c:\windows\system32\w32time.dll
| ntdll.dll
| C:\WINDOWS\system32\kernel32.dll
| [svchost.exe]
|
| UDP 192.168.2.20:123 *:* 1108
| c:\windows\system32\WS2_32.dll
| c:\windows\system32\w32time.dll
| ntdll.dll
| C:\WINDOWS\system32\kernel32.dll
| [svchost.exe]
|
| UDP 192.168.2.20:138 *:* 4
| [System]
|
| UDP 192.168.2.20:137 *:* 4
|
Sorry for "ÃÂ". It is a german output with letters that are not available in this forum.
Thank you so much.
NSchweig
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122546#4122546
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122546
18 years, 6 months
[JBoss Seam] - Conversation Beans and Session scoped beans resulting in "Co
by limousyf
Hello,
I just had the "Could not find stateful Bean" error in my application.
After searching in the forum, I finally understand that a bean with a wider scope (Session) kept a reference of the stateful bean that cannot be find by other sessions.
Here is some snipplets of my code:
The session-scoped bean
| @Scope(ScopeType.SESSION)
| @Name("gestionaffichage")
| public class GestionAffichageBean implements GestionAffichage
|
The stateful bean
| @Stateful
| @Scope(ScopeType.CONVERSATION)
| @Name("activitesByCollaborateurCrossData")
| public class activitesByCollaborateurCrossDataBean implements activitesByCollaborateurCrossData
|
|
| bla bla bla ...
|
|
| @In
| public GestionAffichage gestionaffichage;
|
|
| yada yada ...
|
|
| public void setRealise()
| {
| this.realise = true;
| this.debut();
| gestionaffichage.afficherMenuActiviteParCollaborateur();
| }
|
Since I add the "gestionaffichage" calls in my stateful bean, "Could not find stateful Bean" errors appeared.
I temporary moved the scope of "gestionaffichage" to APPLICATION to avoid problems but it's not supposed to be shared between clients.
My question is: why does this error happen ?
I mean, I don't have a reference of my stateful bean in my session-scoped bean; I have the exact opposite: an injection of my session-scoped bean in the conversation.
So I don't get how the error is supposed to happen.
Can't I inject a "wider" scoped bean in my conversation ?
I certainly missed something here but I don't know what ...
Regards
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122543#4122543
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122543
18 years, 6 months