[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Software caused connection abort: recv failed
I have an application running on JBoss 4.0.2 using Hibernate 3.0 and MySQL Connector 3.1.10 all using the 1.5_04 JDK. I'm seeing this on Windows XP with MySQL 4.0.26 and RedHat Linux 7.1 with MySQL 3.23.58. I'm getting the following stack trace: | | java.net.SocketException: Software caused connection abort: recv failed | at java.net.SocketInputStream.socketRead0( | 01:21:46,709 INFO [STDOUT] Native Method) | at java.net.SocketInputStream.read(SocketInputStream.java:129) | at com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:105) | at com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:148) | at com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:176) | at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1899) | at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2348) | at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2858) | at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1570) | at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1665) | at com.mysql.jdbc.Connection.execSQL(Connection.java:2978) | at com.mysql.jdbc.Connection.execSQL(Connection.java:2902) | at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:930) | at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1024) | at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:120) | at org.hibernate.loader.Loader.getResultSet(Loader.java:1272) | at org.hibernate.loader.Loader.doQuery(Loader.java:391) | at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:218) | at org.hibernate.loader.Loader.doList(Loader.java:1593) | at org.hibernate.loader.Loader.list(Loader.java:1577) | at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:395) | at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:271) | at org.hibernate.impl.SessionImpl.list(SessionImpl.java:844) | at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74) | at com.caughey.gameman.db.GameDB.getGameList(GameDB.java:79) | Here's the configuration I'm using to configure my Datasource: | datasources | local-tx-datasource | jndi-nameGameManagerDS/jndi-name | connection-urljdbc:mysql://localhost:3306/gameman?autoReconnect=true/connection-url | driver-classcom.mysql.jdbc.Driver/driver-class | user-namemyuser/user-name | passwordmypassword/password | min-pool-size5/min-pool-size | max-pool-size20/max-pool-size | idle-timeout-minutes5/idle-timeout-minutes | exception-sorter-class-namecom.mysql.jdbc.integration.jboss.ExtendedMysqlExceptionSorter/exception-sorter-class-name | valid-connection-checker-class-namecom.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker/valid-connection-checker-class-name | new-connection-sqlselect count(*) from Game/new-connection-sql | check-valid-connection-sqlselect count(*) from Game/check-valid-connection-sql | /local-tx-datasource | | MySQL Time out variables are set accordingly: | connect_timeout = 5 | interactive_timeout = 28800 | wait_timeout = 28800 | I've googled, I've search these forums, reviewed the books Mastering MySQL 4 and JBoss 4.0 Official Guide to no avail. It only happens after a night of the application sitting idle. So I suspect one of the two 8 hour (28800) settings are kicking in. How ever, according to everything I've read the autoReconnect=true and setting the idle-timeout-minutes should do the trick. Well it hasn't. Is there something i'm missing. I did see that I should set the 28800 settings to 5. Setting longer isn't going to help. I may even want to set them shorter in which case I could expect the connections to go away faster. Any help will be appericiated. Thanks, Michael View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3904271#3904271 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3904271 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration Deployment] - Combine Log4J of JBoss and JDK-Log of own EJBs
Hi *, my EJBs use JDK-Logging. It's possible to configure it by usage of a propperties file assigned at server start (VMArg). JBoss uses Log4J. In the log4j.xml file the location of log folder is set. param name=File value=${jboss.server.home.dir}/log/server.log/ Now the question: How can my beans log to the folder defined for JBoss Logging? The JDK Switches for location configuration are very limited. Is it possible to achieve this without code-changes in EJBs or exchanging JDK-API by Log4J-API (I don't want to use AOP or something like that)? Would be nice if someone could help me. Thx. Per View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3904274#3904274 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3904274 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Custom parameter in wsdd
Have you looked at javax.xml.rpc.server.ServiceLifecycle? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3904276#3904276 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3904276 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration Deployment] - Re: Combine Log4J of JBoss and JDK-Log of own EJBs
You can use log4j for logging from the EJBs. There's one log4j.xml in server/default/conf where you can specify the settings for log4j. However, if you want a specific log4j.xml for your application, you can also do that. Please, have a look at: http://wiki.jboss.org/wiki/Wiki.jsp?page=Logging View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3904284#3904284 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3904284 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Can a DII client access a WSDL locked down by basic HTTP aut
Hello, I was wondering if there is an easy way to pass authentication information to the ServiceFactoryImpl class before it creates a service? I cannot seem to find an easy way to get access to a WSDL that requires BASIC authentication. Once I have the stub I am fine because I can add information into the HTTP header and the SOAP header by setting properties on the stub. I know I should probably be using a different type of client since DII is limiting but I was hoping someone could help me. Thanks in advance, Chris View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3904286#3904286 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3904286 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Javassist user questions] - Re: cast errors
I think that problem is due to your inappropriate use of class loaders. Section 3.2 of Javassist tutorial might help you. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3904287#3904287 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3904287 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Can a DII client access a WSDL locked down by basic HTTP
Been awhile since using DII. Have you tried setting the USERNAME_PROPERTY and PASSWORD_PROPERTY on the Call object? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3904295#3904295 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3904295 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Deploy a new portal instance on JBP2.2 alpha
I'm at the same point: trying to deploy a custom portal in JBoss Portal 2.2 Alpha. My portal is a very simple HelloWorld Portal that works fine in JBoss Portal 2.01RC1. When I depoy the same *.war in 2.2Alpha JBoss does not complain but I can't reach my portal with any URL I can imagine.. (obviously I tryed the one used in 2.0.1 RC1 and doesn't work neither) I've tryed to use diferent instance paths but none worked! Please, could someone share a very simple Portal that works on JBoss Portal 2.2? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3904296#3904296 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3904296 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Can a DII client access a WSDL locked down by basic HTTP
Sorry, just noticed that you were talking about accessing the WSDL.Maybe a URL with the user/password specified in it would work. Something like: | http://user:[EMAIL PROTECTED]/webservice?wsdl | Not sure if this will actually work, plus it limits the characters allowed for the password. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3904300#3904300 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3904300 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Deploy a new portal instance on JBP2.2 alpha
looks in the forums war files and copy it. I am working on a better format for deployment of things such like that. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3904302#3904302 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3904302 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Can a DII client access a WSDL locked down by basic HTTP
That is a great idea but unfortunately I tried that and it didn't work. Now, if I do that from firefox it works fine but I think the client has to support such a feature. Here is my relevant client code: | ServiceFactoryImpl factory = (ServiceFactoryImpl)ServiceFactory.newInstance(); | URL wsdlURL = new URL(WSDL_LOCATION); | QName serviceName = new QName(NAMESPACE, SERVICE_NAME); | | Service service = factory.createService(wsdlURL, new URL(JAX_RPC_MAPPING_LOCATION), null, serviceName, PORT_NAME); | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3904307#3904307 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3904307 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Deploy a new portal instance on JBP2.2 alpha
Thanks Julien, I built the forums portal and deployed it in my JBoss server. To reach that portal I need to point my browser to: http://localhost:8080/portal/local/forums Is this the only one posible?. I tryied http://localhost:8080/portal/forums with no luck... I also checked the internal files against the files in my helloworl portal and have a few questions: 1) The forums-pages.xml file: Is obsolete? It used the old structure for referencing instances and in the portal-name node its value is default 2) Do I need to build an EAR or it's enought with a WAR File 3)Is there any dependencies between War filename, jboss-app.xml app-name element value, and so on? My HelloWorld Portal still fails to be reached.. And finally, Can I e-mail you my helloworld.war file (just 5 KB) to some address? Thanks a lot David View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3904308#3904308 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3904308 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: dynamic axis serializer generation fails on 4.0.2+EJB3RC
By the way, axis fails to properly serialize agregated arrays on server side if POJO is declared with field access level. For example, it serializes an String[] as if it were a single String object but multiple times (multiplicitly is coincident) If POJO is declared with method level access (private fields), then it works as expected. This works | public class POJO | { | String[] strings; | public String[] getStrings() | { | return strings; | public void setStrings(String[] strings) | { | this.strings = strings; | } | } This does NOT work public class POJO | { | public String[] strings; | } @REMEBERNOTE Update this post with the tcpmon captured packages for both cases. Looks like a punishment for lazy people like my self :-). It is also interesting to note that auto generated client code(axis-wsdl2java) does not explicitly fails on this behavior, it just deserializes wrongly. This problem was first dicovered when testing with a .net client. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3904310#3904310 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3904310 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - getSingleResult behaviour mismatch for count() and sum() whe
Is is normal that Number num | = (Number)entityManager.createQuery( |select count(*) from X x;) |.getSingleResult(); works ok, and Number num | = (Number)entityManager.createQuery( | select sum(x.id) from X x) | .getSingleResult(); throws EntityNotFoundException when X has no entities at all? I expected (since both functions are agregated) none will rice an exception and just return zero. @Manifest Too sorry in advance if this is documented else where. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3904311#3904311 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3904311 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: getSingleResult behaviour mismatch for count() and sum()
TITLE IS : getSingleResult behaviour mismatch for count() and sum() when no entities found and I am using 4.0.2 + EJB3RC2 on gentoo with sun-jdk-1.5.05 on postgresql 8.0.3 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3904312#3904312 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3904312 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - How do I hack un-jared classes into my ear file...
I'm migrating from weblogic (maybe). An ear file in weblogic has an APP-INF/lib directory for jarred up libraries and an APP-INF/classes directory, the contents of which eg. com/acme/MyClass.class get loaded ahead of the contents of APP-INF/lib and overide it, this very useful as it allows to test changes with having to incorporate them in a jar first. What is the equivalent behaviour in JBoss ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3904315#3904315 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3904315 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration Deployment] - Can't find starting URL for JBoss web app deployed with ear
I inherited a JBoss web app but can't find the login page. I figured out how to start the server, that seemed to go well. I can log in to http://:8080. My ear file is in the default/deploy directory. I just can't find the correct URL to get me to the start page! Any ideas how to find the URL that will get me to the start page? Dave View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3904316#3904316 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3904316 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user