[JCA/JBoss] - Is it a JBoss Bug ...?
by mandarkul
Hi
I am using a custom JCA Resource Adapter for Siebel.We are running our application on JBoss 4.0.5(Production Release).
We are experiencing a Strange problem of connection pooling.Here is the simulation of the problem
1) We have written a servlet that obtains a "valid" Siebel connection from the pool.
2) It performs "n" number of queries with the same connection object(in a for loop).
3) Suddenly a "NullpointerException" is thrown during the execution.Going to the root cause of the exception we have analysed that the "ManagedConnection(SiebelManagedConnection)" object associated with the connection(SiebelConnection) handle becomes null.
4) Digging into the JCA code we found that such an even can take place only if you call a "close" method on the connection object.
5) However the "for loop" or the code that is called from the for loop does not give any evidence of "close" method being called on the connection object.
6) So we are quite sure that our application code is not closing the connection in between of the execution.
7) Is JBoss's connection pooling mechanism responsible for this ?
8) To make the problem more strange the "NullPointerException" is thrown only when we give 20 concurrent requests to the servlet.
The "max-pool-size" is set to "18".But the blocking time-out is set to 30Sec.The for loop will not take more than 10Sec to execute.
Even if the connections in the pool gets exhausted, we should get the exception message like "No ManagedConnection Available" in the beginning of the execution.JBoss does throw an exception in the situation like this.
But the server should not do anything with the connection object that is already held by the calling thread.
Can anyone help me in resolving the issue?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041615#4041615
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041615
17 years, 8 months
[JBoss Seam] - Re: Mathematical captcha & Email obfuscator
by Homer J.
@Pete Muir:
At first let me thank you for your response but some part I don't get so let us fiddle this out ;).
You said:
anonymous wrote : * the source for your changes need to be submitted in diff format, ideally fairly fine grained (obfuscator seam component, mathematical captcha component, email address JSF component, obfuscator JSF component)
| * MathCaptchaResponseValidator appears to be unused
| * Patch should be against seam source tree (not com.example, another faces-config etc)
|
| Further, we are currently trying to work out what the role of JSF components is in Seam. I think we need to hold on commiting the JSF components for now.
1. I purposefully didn't use the patch format because I thought it's easier for you to integrate this way and my code doesn't rely on existing seam code. Further my code is "fine grained" - like you demanded. So all you / the seam developers have to do is to rename the classes & merge faces-config.xml, jsf-ui.taglib.xml, taglib.tld into JBossSeam/src/ui.
2. I might be wrong but AFAIK MathCaptchaResponseValidator does the same job as org.jboss.seam.captcha.CaptchaResponseValidator - that means it gets called by the hibernate validator and relays validation to the MathCaptcha component.
3. please see 1.
4. This part I don't understand: "Further, we are currently trying to work out what the role of JSF components is in Seam. I think we need to hold on commiting the JSF components for now." My hopes just were that you include it in jboss-seam-ui.jar so it can be used like s:link, s:cache, ...
However: My intention was to give you a working example as proof of concept but if you insist on using the patch format I can give it a try (I haven't used it before but I have trust in my eclipse so this will probably work ;)).
I'm looking forward to your response.
Regards
Stephan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041610#4041610
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041610
17 years, 8 months
[JBoss Seam] - Example: OneToMany & Composite Key
by umk
Hello: i'm trying to put together a working Seam example showing a OneToMany relationship using a composite primary key. Something like Order & LineItems from the Java EE 5 tutorial. My attempts have been unsuccessful so I'm hoping someone can tell me where I can find a Seam deployable example that actually works.
I have tried the Java EE 5 tutorial code (\javaeetutorial5\examples\ejb\order) and it fails with the following (against an Oracle database):
20:56:11,991 INFO [STDOUT] Hibernate: insert into EJB_ORDER_ORDER (status, lastUpdate, discount, shipmentInfo, orderId) values (?, ?, ?, ?, ?)
| 20:56:12,084 INFO [STDOUT] Hibernate: insert into EJB_ORDER_LINEITEM (ORDERID, VENDORPARTNUMBER, quantity, orderId, itemId) values (?, ?, ?, ?, ?)
| 20:56:12,240 WARN [JDBCExceptionReporter] SQL Error: 957, SQLState: 42000
| 20:56:12,240 ERROR [JDBCExceptionReporter] ORA-00957: duplicate column name
|
| 20:56:12,240 WARN [JDBCExceptionReporter] SQL Error: 957, SQLState: 42000
| 20:56:12,240 ERROR [JDBCExceptionReporter] ORA-00957: duplicate column name
|
| 20:56:12,240 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:249)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)
Notice that orderId is listed twice in the second insert statement above?? The code is available here: http://java.sun.com/javaee/5/docs/tutorial/information/download.html
Please help! I really want to use Seam.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041606#4041606
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041606
17 years, 8 months