[JBoss JIRA] Created: (JBAS-9198) Cannot store reference to a stateful session bean in the HTTP session
by Andrig Miller (JIRA)
Cannot store reference to a stateful session bean in the HTTP session
---------------------------------------------------------------------
Key: JBAS-9198
URL: https://issues.jboss.org/browse/JBAS-9198
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Web (Tomcat) service
Affects Versions: 7.0.0.Beta1
Reporter: Andrig Miller
Assignee: Remy Maucherat
Fix For: 7.0.0.Beta2
I have ported an application from AS 5/EAP 5.1 to AS 7 (a snapshot of Beta 2 actually), and in that application I am looking up a reference to a stateful session bean, to store it in the HTTP session, and the actual storage of the reference, gets the following:
javax.servlet.ServletException: java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute sfsbOrderInquiry
services.web.OrderInquiryServlet.doGet(OrderInquiryServlet.java:78)
javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
root cause
java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute sfsbOrderInquiry
org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1289)
org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1250)
org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:130)
services.web.OrderInquiryServlet.doGet(OrderInquiryServlet.java:74)
javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
It's saying that my attribute is not serializable, but the OrderInquiryBean in the lookup implements Serializable.
The code in the servlet is as such, and it fails on the session.setAttribute("sfsbOrderInquiry", orderInquiry):
HttpSession session = request.getSession();
OrderInquiry orderInquiry = (OrderInquiry) session.getAttribute("sfsbOrderInquiry");
if (orderInquiry == null) {
InitialContext context = null;
try {
context = new InitialContext();
orderInquiry = (OrderInquiry) context.lookup("java:app/OrderManagerEJB/OrderInquiryBean!services.ejb.OrderInquiry");
session.setAttribute("sfsbOrderInquiry", orderInquiry);
} catch(Exception lookupError) {
logger.log(Level.ERROR, lookupError.getStackTrace().toString());
response.setStatus(500);
throw new ServletException(lookupError);
}
}
The top of OrderInquireBean looks like:
@Stateful
public class OrderInquiryBean implements OrderInquiry, Serializable {
/** The serialVersionUID */
private static final long serialVersionUID = -9113338082170911949L
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 3 months
[JBoss JIRA] Created: (JBAS-9148) ModelCombiner does not deal with deployments or system properties
by Brian Stansberry (JIRA)
ModelCombiner does not deal with deployments or system properties
-----------------------------------------------------------------
Key: JBAS-9148
URL: https://issues.jboss.org/browse/JBAS-9148
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Brian Stansberry
Priority: Critical
The host controller logic for creating the boot operations for a server isn't dealing with deployments or system properties.
addSocketBindings(updates, portOffSet, socketBindingRef);
addSubsystems(updates);
//TODO deployments
// TODO system properties
return updates;
When fixing this, check the status of JBAS-9147, since the ideal operations to generate depend on whether that's done (i.e. deployment "add" w/ "enabled"=>true vs "add" + "deploy")
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 3 months
[JBoss JIRA] Created: (JBAS-9138) Upgrade to JBossWS-CXF 4.0.0.Alpha3
by Alessio Soldano (JIRA)
Upgrade to JBossWS-CXF 4.0.0.Alpha3
-----------------------------------
Key: JBAS-9138
URL: https://issues.jboss.org/browse/JBAS-9138
Project: JBoss Application Server
Issue Type: Component Upgrade
Security Level: Public (Everyone can see)
Components: Web Services
Reporter: Alessio Soldano
Assignee: Alessio Soldano
Fix For: 7.0.0.Beta2
Move to JBossWS-CXF 4.0.0.Alpha3 and patched Apache CXF 2.3.3; initial restore of WS-* feature support through optional spring module, improved jaxws client side module dependencies
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 3 months
[JBoss JIRA] Created: (JBAS-9199) connection properties are being improperly quoted
by Andrig Miller (JIRA)
connection properties are being improperly quoted
-------------------------------------------------
Key: JBAS-9199
URL: https://issues.jboss.org/browse/JBAS-9199
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: JCA service
Affects Versions: 7.0.0.Beta1
Reporter: Andrig Miller
Assignee: Jesper Pedersen
Fix For: 7.0.0.Beta2
I placed two connection property elements into my standalone.xml configuration for my data source, which is MySQL (5.5.9).
When every I first try to execute anything I get the following error:
17:31:42,646 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/Order].[CreateData]] (http-192.168.1.22%2F192.168.1.22-8080-1) Servlet.service() for servlet CreateData threw exception: java.sql.SQLException: The connection property 'rewriteBatchedStatements' only accepts values of the form: 'true', 'false', 'yes' or 'no'. The value '("rewriteBatchedStatements" => "true")' is not in this set.
The entry in standalone.xml is as follows:
<connection-property name="rewriteBatchedStatements">true</connection-property>
As you can see it is the correct value that is enumerated in the error message from MySQL, but it complains that "true" is not valid. It appears the code is adding the double quotes around the value, instead of leaving it unquoted.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 3 months
[JBoss JIRA] Created: (JBAS-9170) Create schema for jgroups extension
by Paul Ferraro (JIRA)
Create schema for jgroups extension
-----------------------------------
Key: JBAS-9170
URL: https://issues.jboss.org/browse/JBAS-9170
Project: JBoss Application Server
Issue Type: Sub-task
Security Level: Public (Everyone can see)
Components: Clustering
Affects Versions: 7.0.0.Beta1
Reporter: Paul Ferraro
Assignee: Paul Ferraro
Fix For: 7.0.0.CR1
Required features:
* Socket binding injection for relevant protocol properties (UDP/TCP, FD_SOCK, MPING, etc.)
* Socket binding manager registration of all jgroups sockets
* Thread pool injection from thread extension
* Thread factory injection from thread extension
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 3 months