Re: too many clients error

2000-12-03 Thread Thomas Sundberg

Hi!

How many simultanious clients are you allowed to have connected to you
database? The error you are receiving hints about a problem like that.

/Thomas

Seung Bang wrote:
> 
> Hello!
> 
> I am having a SQLException with an orion message saying "Sorry, too many
> clients already."
> What on earth is that supposed to mean
> The beans work for the first several times and stop working all of a
> sudden, producing the error.
> I was testing the beans with PostgreSQL on Linux.
> Any clue? Here is the portion of the error message:
> Thank you very much.
> 
> Seung
> 
> Something unusual has occured to cause the driver to fail. Please report
> this exception: java.sql.SQLException: Sorry, too many clients already
>  at org.postgresql.Driver.connect(Driver.java:125)
>  at com.evermind.sql.DriverManagerDataSource.getConnection(JAX)
>  at
> com.evermind.sql.DriverManagerConnectionPoolDataSource.getPooledConnection(JAX)
> 
>  at com.evermind.sql.OrionPooledDataSource.eh(JAX)
>  at com.evermind.sql.OrionPooledDataSource.d3(JAX)
>  at com.evermind.sql.OrionPooledDataSource.getConnection(JAX)
>  at com.evermind.sql.DriverManagerXADataSource.ep(JAX)
>  at com.evermind.sql.aj.em(JAX)
>  at com.evermind.sql.an.prepareStatement(JAX)
>  at com.evermind.sql.an.prepareStatement(JAX)
>  at
> com.freightstream.ejb.BookingStatusBean.ejbCreate(BookingStatusBean.java:159)
> 
>  at
> 
>BookingStatusHome_EntityHomeWrapper19.create(BookingStatusHome_EntityHomeWrapper19.java:289)
> 
>  at
> com.freightstream.ejb.EJBManagerBean.addBookingStatus(EJBManagerBean.java:150)
> 
>  at
> 
>EJBManager_StatelessSessionBeanWrapper11.addBookingStatus(EJBManager_StatelessSessionBeanWrapper11.java:858)
> 
>  at
> com.freightstream.servlet.BookingStatusAdd.service(BookingStatusAdd.java:40)
> 
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java)
>  at com.evermind.server.http.d1.si(JAX)
>  at com.evermind.server.http.d1.forward(JAX)
>  at com.evermind.server.http.ed.sp(JAX)
>  at com.evermind.server.http.ed.so(JAX)
>  at com.evermind.util.f.run(JAX)
> ..
> ...

-- 
Thomas Sundberg
Goyada AB
Kontoret: 08 - 555 17 200  Office:   +46 8 555 17 200
Direkt:   08 - 555 17 232  Direct:   +46 8 555 17 232
Mobil:070 - 453 11 36  Cellular: +46 70 453 11 36  
mailto:[EMAIL PROTECTED]
http://www.goyada.com




RE: OR mapping with Oracle

2000-12-03 Thread Hegyi Tibor

Thanks for your reply.

My PK class implements the Serializable interface (see code snippet in my
first mail) but this does not help since Orion maps Serializable objects to
blob datatypes in relation with Oracle data source and blobs cannot be
indexed.

Integer object works fine but how can I implement compound primary keys
then?

Tibor

-Original Message-
From: J Davis [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 01, 2000 9:38 PM
To: Orion-Interest
Subject: RE: OR mapping with Oracle


I beleive primary keys must be Serializalble.  Try using an Integer object
instead.

Later 

Greg





RE: Passing an object to an remote EJB method

2000-12-03 Thread Byron du Preez
Title: RE: Passing an object to an remote EJB method






>I'm trying to execute a method in a remote EJB. This method receives an 
>serializable object. But when I execute it, I get this error message in the 
>console:
>
>System/communication error: Method invocation failed (Invalid return command: 
>6)


We have seen something that gives a similar error ...


If you are passing a serializable object as an argument to the remote EJB method, 
make sure that Orion has access to the class of the serializable object.


If Orion does not have access to the class, it simply takes your argument, 
containing a reference to your serializable object and "turns" it into a reference 
to null inside the method without throwing any exceptions  This unexpected null 
value then invariably causes problems further on inside the method.


Regards 
Byron du Preez





Re[2]: class cast exception

2000-12-03 Thread Rafael Alvarez

Hello!

ML> This makes no difference. The exception is thrown, too. 
ML> But I found a solution: The Exception is thrown everytime after redeploying 
ML> my application. When I restart the server after redeploying everything is ok. 
ML> But I can't restart the server everytime something changes

I found that problem with servlets and javabeans. Looking at the code
from a compiled jsp (in the javabeans case) I found that the problem
is in the JavaBean instantiation (Beans.instantiate), and it happens
when the .class is changed. What puzzles me is that sometimes it
happens, and sometimes it don't.

-- 
Best regards,
 Rafaelmailto:[EMAIL PROTECTED]






More than one InitialContext

2000-12-03 Thread Guilherme Ceschiatti

Hi.

I'd like to konw if it's possible to have more than on InitialContext in the 
same app, one for each app server I have.

-- 

[]s
Guilherme Ceschiatti
http://listando.net
[EMAIL PROTECTED]




Re: Log Analysis

2000-12-03 Thread Robert Krueger

At 14:47 02.12.00 , you wrote:

> Anybody using standard tools to analyze logs?  Anybody have the 
> format string for apache's combined format set up?  So it is a quick fix?
>
>David
>

this is what we use and it works with standard analyzer tools like webtrends

 


btw. have you checked the archive? I think this has been posted before.

HTH

robert



(-) Robert Krüger
(-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH
(-) Brüder-Knauß-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665401, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.de





Re: class cast exception

2000-12-03 Thread Marcus Lankenau

Hi!

>> > PhoneEntryHome home = (PhoneEntryHome) boundObject;
>should be :
>PhoneEntryHome home =
>(PhoneEntryHome)javax.rmi.PortableRemoteObject.narrow(boundObject,
>PhoneEntryHome);

This makes no difference. The exception is thrown, too. 
But I found a solution: The Exception is thrown everytime after redeploying 
my application. When I restart the server after redeploying everything is ok. 
But I can't restart the server everytime something changes

Any idears???


Marcus Lankenau