RE: arrg please help

2002-04-03 Thread John Creaner

thats sounds like an sql issue, are you closing your statement before you
get all the information in the resultset back??

John Creaner
Software Development,
e-Spatial Solutions,
Ireland.
Tel: 353 (0)1 867 5500
Fax: 353 (0)1 867 5599

Direct Tel: 353 (0)1 867 5508
[EMAIL PROTECTED]



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Ofur-Bjarni
Sent: 03 April 2002 08:35
To: Orion-Interest
Subject: arrg please help


I have an existing database and I am trying to make an entity bean that
retrieves data from one of it's tables.

I have set the autocreate-table to false, and everything deploys nicely, but
when I try to list the contents of the table (using findAll()) then I get
this error:

com.evermind.server.rmi.OrionRemoteException: Database error: Closed
Statement: next; nested exception is: java.sql.SQLException: Closed
Statement: next

And I have no idea what to do. I know that the datasource works, because I
have used it for other purposes.

Thanks,
Bjarni







RE: idea=$395.00USD was: RE: Java IDE?

2002-03-24 Thread John Creaner

after enjoying watching this debate for the last while I decided to check
out what all the fuss was about
so I downloaded the IDEA software. Now I will be honest, JDeveloper has been
my tool of choice for a long time
I have tried others (ie. JBuilder and I know JDeveloper is licensed from it
but I really dont like it, also used the likes of
visual cafe I hated that one and so on and so on)
back to the plot, I haven't been playing with it for too long but I dont see
what all the shouting is about so maybe someone
could give me their view who has used both IDEA and JDeveloper 9i
extensively cause I am not convinced at all that it is better that
JDev9i



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Joseph
Ottinger
Sent: 24 March 2002 12:50
To: Orion-Interest
Subject: Re: idea=$395.00USD was: RE: Java IDE?


On Sun, 24 Mar 2002, The Boss wrote:

 I usually build tools to build tools so I mostly can't afford
 to accept other people's design philosophies. Thus the tools of
 choice for me are the simplest because they have the least
 conceptual overhead.  Put it like this, I am NOT interested in
 making the most out of something like Idea, I AM interested
 in doing three or four or tens times BETTER than Idea in
 creating J2EE apps. Yes, I can use a tool like 'vi' to build the
 better stuff, but I can't use Idea to do better than Idea if you
 see what I mean. Like a dinosaur Idea has made its evolutionary
 commitment, as have the other dinosaurs of similar ilke. It
 sounds a lot better than JBuilder though for what it does ... it
 simply doesn't sound better than my tools ... ;)

Spoken (or typed) like a man who's used JBuilder and assumed IDEA's just
like it. IDEA doesn't write code for you unless you tell it to. And when
you tell it to, it writes the code you told it to. It doesn't generate
GUIs that suck. In fact, it doesn't generate GUIs at all. It's an editor.
A java editor. Not a crappy IDE like Netbeans or JBuilder. Not an editor
with Java features, like VSE or Emacs (both of which I've more than a
passing familiarity with.) It's an editor whose designers said, What do
Java people need to do? and the editor enables that. It doesn't require
the developer to do things. It enables the developer, and gets out of the
way.

Sorry for the caustic tone, but it sounds like you're rendering judgement
without a clue, based on price and misconceptions.


 regards
 goffredo



  Um, dude... you're using a commercial product. Why? Typically, because
the
  value you get out of licensing it gives you a good return on your
  investment. I *could* use Tomcat instead of Orion... but Tomcat sucks.
  It's free, but it sucks. If it didn't suck, the return on the investment
  of time would be worthwhile. I use Orion. (Do the math.)
 
  Editors work the same way. I *could* use vi, or emacs (and I used to use
  vi and emacs), but I found that IDEA boosted my productivity (the
  return) so much that I was able to justify the cost (the investment)
  easily and well. And that's after wasting my time with JBuilder, Forte,
  Kawa, JEdit, Netbeans (which is better than Forte, despite Forte being
  based on Netbeans, joe, vi, emacs, and Eclipse (and I'm sure I'm leaving
  some out in this list).
 
  If you're going to wave the It's not free flag, run back to Tomcat and
  Apache where you belong.
 
  JBuilder was a waste of time after using it
  for years, and waking up to the fact that
  I only used it to package classes anyway. I
  bet people who are recommending idea are using
  other people's money to buy idea licenses?
 
  What about Simplicity?
 
  regards ...
 
 
 
 
 
  From: Eric Hodges [EMAIL PROTECTED]
  Subject: RE: Java IDE?
  Date: 22/03/2002 14:33:50
  To: Orion-Interest [EMAIL PROTECTED]
 
  Idea for coding, Jbuilder for GUI layout.
 
 
  -Original Message-
  From: Clay Mitchell [mailto:[EMAIL PROTECTED]]
  Sent: Friday, March 22, 2002 12:55 PM
  To: Orion-Interest
  Subject: Java IDE?
 
 
  Just a question, any suggestions as to what a good IDE is?
  I've tried JBuilder, IDEA (I like IDEA) and a few others...
  any recommendations?
 
  Thanks
  -Clay
 
 
 
  This message was sent through MyMail http://www.mymail.com.au
 
 
 










RE: Where is my stderr output?

2002-03-13 Thread John Creaner

if I understand you correctly what you need to do is check in your
application.xml for the
log
file path=something.log /
/log
This will lead you to where your log file is located and if you haven't set
it then simply set it
by default I think most of the log files are kept in the ORION HOME\log
folder



John Creaner
Software Development,
e-Spatial Solutions,
Ireland.
Tel: 353 (0)1 867 5500
Fax: 353 (0)1 867 5599

Direct Tel: 353 (0)1 867 5508
[EMAIL PROTECTED]



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Sergey
Ponomarev
Sent: 13 March 2002 04:44
To: Orion-Interest
Subject: Where is my stderr output?


Hi,

I use printStackTrace() method of Exception object to print exception stack
trace from my
EJBs. But I cannot find the output. I cannot find traces in console
nor in logs. Where are they?

Orion 1.5.2

Sergey Ponomarev
mailto:[EMAIL PROTECTED]







RE: java.lang.OutOfMemoryError

2002-03-12 Thread John Creaner

Just wondering but are you allocating any of that GB to orion or are you
letting the box allocate the memory itself?
I think that the box gives a default amount of memory to java and so that
could be the reason you are running out of memory

You can allocate by giving param setting on the startup script. ie your
start up could look something like
java -jar -Xms250M -Xmx500M orion.jar

the -Xms is the min amount of memory the machine must allocate.
the -Xmx is the max amount of memory the machine can take.

Hope it helps
j

John Creaner
Software Development,
e-Spatial Solutions,
Ireland.
Tel: 353 (0)1 867 5500
Fax: 353 (0)1 867 5599

Direct Tel: 353 (0)1 867 5508
[EMAIL PROTECTED]



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of mars
Sent: 12 March 2002 07:16
To: Orion-Interest
Subject: java.lang.OutOfMemoryError


Dear orion user :

I got a problem I have a Orion Appcation Server Run on Linux
run the http service and https service then after a few hours
I got the message in server.log
*--
java.lang.OutOfMemoryError
no stack trace available
*--
and the https service down but http service still running
is the memory low to use or any possable cause?

!!!my server have 1GB Ram!!!









RE: Looking up session beans between apps

2002-03-08 Thread John Creaner

I suppose if the 2 servers are on the same machine then you could
possibly put the beans into their own directory and share that
directory between the 2 servers but then you have to think do the
beans have to share instances of the beans? Does 1 server initialize 1
bean and then can the other server reference it? I suppose you could work
around
that by saving the bean instance to disk but that might be a lot of work
(referencing it,
sharing it, etc;)
I don't really know a good secure answer to that, but I would definitely
like too


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: 07 March 2002 08:20
To: Orion-Interest
Subject: Re: Looking up session beans between apps


Hi,

try to put the remote and home interface of your bean in the app server
classpath ( server.xml ), i think it will solve your problem if Bean A and
Bean B are on the same server.

Does anybody know how to solve this problem if bean A and bean B are on
different server ??

Thanks.
Rémy.


 Gday all,

 I am currently working on porting an application
 from jboss to orion (don't ask!) and am
 having problems looking up session beans between apps.
 What i am trying to do is lookup sessionbeanA
 (in app A) from sessionbeanB (from app B).
 (Note that sessionbeanA and sessionbeanB are
 different bean classes). I am getting a class cast ecxception.

 This is how i am doing it

 So in sessionbeanB I create a context using the
 following properties..

 props.put( Context.INITIAL_CONTEXT_FACTORY,
 com.evermind.server.ApplicationClientInitialContextFactory );
 props.put( Context.PROVIDER_URL, ormi://localhost/sso-wa );
 props.put( Context.SECURITY_PRINCIPAL, guest );
 props.put( Context.SECURITY_CREDENTIALS,  );

 .. and can successfully locate an instance of sessionbeanA.
 Then i attempt to narrow it.
 The class i want to narrow to is SSOManagerHome.
 The class of the object being narrowed is
 SSOManagerHome_StatelessSessionHomeWrapper27
 It looks OK to me, but the narrow gives and exception.

 java.lang.ClassCastException
 at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(Unknown
 Source)
 at javax.rmi.PortableRemoteObject.narrow(Unknown Source)
 ..


 I have found some similar problems..
 http://www.elephantwalker.com/searchresult?id=277
 http://www.mail-archive.com/orion-interest@orionserver.com/msg17468.html
 But no solutions :(





 So where to from here??? Is there a solution?
 Will the remote access doco
 http://www.orionserver.com/docs/remote-access/remote-access.xml
 be of any help as i am going session bean to session bean?
 (as opposed to web component to session bean).

 Thanks and Regards

 Ryan







RE: JDBC connection leak

2002-03-07 Thread John Creaner

Hi,

Not sure if this is what your looking for but you should really close all
associations to the connection
cause I think that the way CMT works with orion is that the close method
merely returns it to the pool
so you should do the following before you close:

 stmt = conn.prepareStatement(sqlStatement);
  stmt.setString(1, websiteid);
  ResultSet rs = stmt.executeQuery();
  rs.next();
  siteEndDate = rs.getTimestamp(1);
  siteBeginDate = rs.getTimestamp(2);

// Here
rs.close ();
stmt.close ();

conn.close();

This means that the connection is now free for the CMT to use again (I THINK
;)


john


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Marc Lehnert
Sent: 07 March 2002 15:56
To: Orion-Interest
Subject: JDBC connection leak


Hello!
I call the following code in a Message Driven Bean in Orion 1.5.2. After the
conn.close() all entity beans I created in some code before are destroyed.
The database is empty. The sql statement gets the right result but after the
close everything is lost. No error, nothing. Without the close statement
Orion says that there is a leaked connection and that I have to close it:
==
OrionCMTConnection not closed, check your code!
LogicalDriverManagerXAConnection not closed, check your code!
(Use -Djdbc.connection.debug=true to find out where the leaked connection
was created)
==

Can anybody help me?

Thanks in advance.

Marc Lehnert,.


The code:


PreparedStatement stmt = null;
java.sql.Timestamp siteEndDate;
java.sql.Timestamp siteBeginDate;

try {

  javax.sql.DataSource ds =
(javax.sql.DataSource)jndiContext.lookup(jdbc/sapdbDS);
  Connection conn = ds.getConnection();

  //Connection conn =
ConnectionFactory.getConnection(jdbc/sapdbDS);

  String sqlStatement = select max(rw_datetime),
min(rw_datetime) from logfilerow where rw_websiteid = ?;

  stmt = conn.prepareStatement(sqlStatement);
  stmt.setString(1, websiteid);
  ResultSet rs = stmt.executeQuery();
  rs.next();
  siteEndDate = rs.getTimestamp(1);
  siteBeginDate = rs.getTimestamp(2);

conn.close();

} catch (Exception e) {
  e.printStackTrace();
  throw e;
}






RE: Problems configurating classpath

2002-02-19 Thread John Creaner



All,


I have 
a small question, I am currently having a problem with orion. The problem is 
that it doesn't seem to be taking advantage of the machine 
that
it 
situated on. 
The 
question is how or is it possible to configure orion to take advantage of the 
machine that it is placed on top of ?

Thanks


clustering

2002-02-01 Thread John Creaner



hi,

I was 
wondering if anyone out there has any solid information on clustering orion 
server

thanks