Occasionally Orion throws a following exception, whem I am creating
a new Entity bean in the JSP page (code is below). After restarting
the Orion Server, the problem usually disappears.

java.lang.ArrayIndexOutOfBoundsException
        at com.evermind.util.ExternalHashMap.get(JAX, Compiled Code)
        at ag.start(JAX, Compiled Code)
        at com.evermind.server.ApplicationServerTransaction.getConnection(JAX,
Compiled Code)
        at EntityHomeWrapper1.create(EntityHomeWrapper1.java:426)
        at __jspPage12._jspService(__jspPage12.java:47)
        at com.evermind.server.http.EvermindHttpJspPage.service(JAX)
        at com.evermind.server.http.HttpApplication.oc(JAX)
        at com.evermind.server.http.JSPServlet.service(JAX)
        at cv.kt(JAX)
        at cv.forward(JAX)
        at c4.mu(JAX, Compiled Code)
        at c.run(JAX, Compiled Code)

Sometimes I get a similar kind (ArrayIndexOutOfBOundsExceptions) when
Orion loads an existing entity bean from the database (EJBLoad method).

My database is MySql.

Can anyone tell me, what the problem is?

Juha Lehtonen

JSP CODE:

<%@ taglib uri="ejbtags" prefix="ejb" %>

<ejb:useHome id="home" type="com.positionanalyst.positions.ejb.DealHome"
location="DealEJB" />
<%
        String userId = request.getParameter("userId");
        String dealId = request.getParameter("dealId");
        int securityId = new
nteger(request.getParameter("securityId")).intValue( );
        String portfolioId = request.getParameter("portfolioId");
        double price = new Double(request.getParameter("price")).doubleValue( );
        double amount = new Double(request.getParameter("amount")).doubleValue( );
        double cost = new Double(request.getParameter("cost")).doubleValue( );
        java.util.Date date =
java.text.DateFormat.getDateInstance().parse(request.getParameter("date"));
        String type = "NEW";

home.create(dealId,portfolioId,securityId,userId,date,amount,price,cost,type
);
%>
<jsp:forward page="add_deal.jsp" />

Reply via email to