AW: java.lang.OutOfMemoryError

2001-03-28 Thread Jens Stutte

Just because there where several different (and some misleading) answers:

The problem described is solved with the newest orion version (i don't
rember, if since 1.4.5, .6 or .7, i am using .7). As Kevin described, you
must set the max-instances attribute for _each_ entity bean that is supposed
to have much instances.

Unfortunately, there is no overall server setting like "If the VM uses X MB
of memory, kick some least used entity beans out of the cache". Therefore
one has to play around with the settings to find a combination, that fits
the needs (note, that every time you add an entity bean type, the possible
maximum overall amount of memory increases, too, which sadly, sadly cannot
be said of the physical memory in your machine...).

BTW: code like creating 100.000 _entity_ beans in a loop is generally
supposed to work - entity beans must be only deleted, if you want to delete
their persistence (the database entry). Instead it would be no good coding
practice, to create tons of _session_ beans without deleting them after use.

Best regards,

Jens Stutte

 -Ursprngliche Nachricht-
 Von: Kevin A. Palfreyman [mailto:[EMAIL PROTECTED]]
 Gesendet am: Dienstag, 27. Mrz 2001 17:25
 An: Orion-Interest
 Cc: [EMAIL PROTECTED]
 Betreff: RE: java.lang.OutOfMemoryError
 
 We found we could force passivation in the later orion 
 builds - not sure exactly whch builds it works in, but 
 its OK in 1.4.7.
 
 Create a directory called orion in the root of your ejb jar 
 (i.e. as a sibling of your META-INF directory).
 
 In the orion folder, create a file orion-ejb-jar.xml
 (The easy way is to copy the one that was auto created on a previous 
 deployment - look in the $ORION_ROOT\application-deployments and 
 the correct sub-folder.)
 
 Edit the file so that there is a max-instances="100" attribute on 
 each of the entity-deployment entities.
 
 Delete the previous deployment directory (otherwise 
 the new file will not be copied over), and repackage/deploy.
 
 Seems to work for us.
 
   Kev
 
 -Original Message-
 From: theo van niekerk [mailto:[EMAIL PROTECTED]]
 Sent: 27 March 2001 15:31
 To: Orion-Interest
 Subject: java.lang.OutOfMemoryError
 
 
 Hi there
 
 Orion is a great application server for small web apps. (We have
 deployed 2
 small sites using orion with success).
 
 But the moment you start thinking of using it for bigger more serious
 apps
 it will always throw a java.lang.OutOfMemoryError
 
 The problem: Orion does not passivate EJB's.
 
 Attached an EAR file that will show this.
 
 How to deploy..
 
 Change your server.xml file to include something like..
 
   application name="orionTest"
 path="file://C:/work/oriontest.ear" /
 
 Start orion the normal way..
 
   java -jar orion.jar
 
 Well, I don't know how to execute an external client that reference
 classes
 inside a jar that is inside an ear, but the following works fine..
 
 Unjar/Unzip the EAR
 Unjar/Unzip the JARS
 
 (I've used the directory structures..
   c:\work\oriontest
   c:\work\oriontest\test-ejb
   c:\work\oriontest\test-client
 
   and orion.jar is in..
 
   c:\PRG\orion)
 
 execute..
   c:\work\oriontest\test-client\test.cmd
 
 or cd to..
   c:\work\oriontest
 
 and execute..
   c:\java\jdk1.3\bin\java -cp
 .;test-client;test-ejb;c:\PRG\orion\orion.jar
 tests.TestClient 1 10 2000
 
 
 PARAMS..
 index of first bean to create = 1
 create 10 beans
 refresh home reference every 2000 creations (thought it could make a
 difference)
 
 and after 6410 creations..
 
 Created bean...6410
 Exception in thread "main" java.lang.OutOfMemoryError
 at com.evermind.server.rmi.bb.invokeMethod(JAX)
 at com.evermind.server.rmi.a2.invoke(JAX)
 at com.evermind.server.rmi.a3.invoke(JAX)
 at __Proxy0.create(Unknown Source)
 at tests.TestClient.loopTest(TestClient.java:33)
 at tests.TestClient.main(TestClient.java:39)
 
 And about 7 seconds later on the server side..
   a single bean gets passivated
 
 Good Luck
 
 
 
 
 
 
 




Re: ejb in other application ?

2001-03-28 Thread Klaus Thiele

Hi Eddi,

yesterday i read in the docu to server.xml:

   application [...] parent="anotherApplication" [...] /
 [...]
 parent - Optional 'parent' application, the default is the global application.
  Children see the namespace of it's parent application.
  This is used in order to share services such as EJBs among multiple 
applications.

but i don't try it myself.

perhaps it helps 
  klaus

ps: if you manage it to work, please drop me a mail.

Am Mittwoch, 28. Mrz 2001 09:39 schrieben Sie:
 Hellu,
 What (extra) do I need to do to be able to call a bean in another
 application (from a servlet/bean in another application)?
 When I call the bean in the same application, everything is ok.
 However when I do the same in another application, Orion isn't able
 to find the Bean. Hh

 I think I need to configure something extra, but can't find what.
 Some help please ?

 Eddie

--
Klaus Thiele - Personal  Informatik AG
mailto:[EMAIL PROTECTED]

 "Your mouse has moved.
  Windows must be restarted for the change to take effect."




Any sugesstions please

2001-03-28 Thread waheed_rahuman



Hi all,

I need a clarification regarding orion, my application is an ecommerce
website
which is build fully with JSP .

When i tried to send form fields with form method='post' action='123.jsp'
then 123.jsp is not receiveing any fields and giving me a blank page
sometimes and partial page sometimes


When  method='get' it works good.

This is only happens in the site (that is in my remote orion server)
When i tried in the local machine its working good what i can do for this
any suggestion

regards
waheed





_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





No answer yet........ please let me know

2001-03-28 Thread waheed_rahuman





Hi all,

I need a clarification regarding orion, my 
application is an ecommerce websitewhich is build fully with JSP 
.

When i tried to send form fields with form 
method='post' action='123.jsp'then 123.jsp is not receiveing any fields 
and giving me a blank page sometimes and partial page sometimes

When method='get' it works 
good.

This is only happens in the site (that is in my 
remote orion server)When i tried in the local machine its working good what 
i can do for thisany suggestion

regardswaheed









Please let me know .....

2001-03-28 Thread waheed_rahuman





Hi all,

I need a clarification regarding orion, my 
application is an ecommerce websitewhich is build fully with JSP 
.

When i tried to send form fields with form 
method='post' action='123.jsp'then 123.jsp is not receiveing any fields 
and giving me a blank page sometimes and partial page sometimes

When method='get' it works 
good.

This is only happens in the site (that is in my 
remote orion server)When i tried in the local machine its working good what 
i can do for thisany suggestion

regardswaheed









Please let me know.......this details please..........

2001-03-28 Thread waheed_rahuman






Hi all,

I need a clarification regarding orion, my application is an ecommerce 
websitewhich is build fully with JSP .

When i tried to send form fields with form method='post' 
action='second.jsp' from first.jsp.second.jsp is not receiveing any 
fields and giving me a blank page with "Done" in the status bar.

The total number of line in the first.jsp is more than 3565 linesand in 
second.jsp total number of line is more than 2149 lines.

Does the number of  lines will do anything with this ??.

Wheni change method='get' same jsp file works good.

This is only happens in the site (that is in my remote orion server)

When i tried in the local machine its working good what i can do for 
thisany suggestion.


Just of this problem i want to switch my server to JRun Isit 
right...What you will do when you are in the same situation. ??
Please let me know how i can solve this problem.
Does anythird party API available for this post method.

If my question was not clear please let me know i will send you once 
again clearly.

Please help me in this regards..I am expecting your reply.

Advance thankings for your valuable reply.

Best regardswaheed








Please help me....

2001-03-28 Thread waheed_rahuman



Hi all,

I need a clarification regarding orion, my 
application is an ecommerce websitewhich is build fully with JSP 
.

When i tried to send form fields with form 
method='post' action='second.jsp' from first.jsp.second.jsp is not 
receiveing any fields and giving me a blank page with "Done" in the status 
bar.

The total number of line in the first.jsp is more 
than 3500 linesand in second.jsp total number of line is more than 2500 
lines.

Does the number lines will do with 
this.

When method='get' same jsp file works 
good.

This is only happens in the site (that is in my 
remote orion server)When i tried in the local machine its working good what 
i can do for thisany suggestion



Just of this problem i want to switch my server to 
JRun Is is it right...What you will do when you are in the same 
situation.Please let me know how i can solve this problem.

Does anythird party API available for this post 
method.

If my question was not clear please let me know i 
will send you once again clearly.

Please help me in this regards..I am expecting 
your reply.

Advance thankings for your valuable 
reply.

Best regardswaheed











Antigen found WScript/Kak.A.Worm (CA(InoculateIT),Sophos) virus

2001-03-28 Thread ANTIGEN_EXCHANGE

Antigen for Exchange found Unknown infected with WScript/Kak.A.Worm
(CA(InoculateIT),Sophos) virus.
The file is currently Removed.  The message, "Please let me know...this
details please..", was
sent from waheed_rahuman  and was discovered in IMC Queues\Inbound
located at CHANCERY/CHANCERY/EXCHANGE.




Virus Alert

2001-03-28 Thread interscan

Have detected a virus (VBS_KAKWORM.A) in your mail traffic on 03/28/2001 12:33:05 with 
an action move.




Virus Alert

2001-03-28 Thread interscan

Have detected a virus (VBS_KAKWORM.A) in your mail traffic on 03/28/2001 12:37:05 with 
an action move.




Antigen found WScript/Kak.A.Worm (CA(InoculateIT),Sophos) virus

2001-03-28 Thread ANTIGEN_EXCHANGE

Antigen for Exchange found Unknown infected with WScript/Kak.A.Worm
(CA(InoculateIT),Sophos) virus.
The file is currently Removed.  The message, "Please help me", was
sent from waheed_rahuman  and was discovered in IMC Queues\Inbound
located at CHANCERY/CHANCERY/EXCHANGE.




Virus Alert

2001-03-28 Thread interscan

Have detected a virus (VBS_KAKWORM.A) in your mail traffic on 03/28/2001 12:50:37 with 
an action move.




Let me clear this doubt.......please

2001-03-28 Thread waheed rahuman



Hi all,

I need a clarification regarding orion, my application
is an ecommerce website
which is build fully with JSP .

When i tried to send form fields with form
method='post' action='second.jsp' from first.jsp.
second.jsp is not receiveing any fields and giving me
a blank page with "Done" in the status bar.

The total number of line in the first.jsp is more than
3500 lines
and in second.jsp total number of line is more than
2500 lines.

Does the number lines will do with this.

When  method='get' same jsp file works good.

This is only happens in the site (that is in my remote
orion server)
When i tried in the local machine its working good
what i can do for this
any suggestion



Just of this problem i want to switch my server to
JRun 
Is is it right...What you will do when you are in the
same situation.
Please let me know how i can solve this problem.

Does anythird party API available for this post
method.

If my question was not clear please let me know i will
send you 
once again clearly.

Please help me in this regards..I am expecting
your reply.

Advance thankings for your valuable reply.

Best regards
waheed






__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text




Virus Alert

2001-03-28 Thread interscan

Have detected a virus (VBS_KAKWORM.A) in your mail traffic on 03/28/2001 13:03:08 with 
an action move.




SV: Please help me....

2001-03-28 Thread Magnus Rydin
Title: SV: Please help me





You've got viruses.


Please don't send me any more private mails on this subject. Such mails should be directed to the Orion List, JSP List or [EMAIL PROTECTED]

WR



-Ursprungligt meddelande-
Från: waheed_rahuman [mailto:[EMAIL PROTECTED]]
Skickat: den 28 mars 2001 02:21
Till: Orion-Interest
Ämne: Please help me




Hi all,


I need a clarification regarding orion, my application is an ecommerce website
which is build fully with JSP .


When i tried to send form fields with form method='post' action='second.jsp' from first.jsp.
second.jsp is not receiveing any fields and giving me a blank page with Done in the status bar.


The total number of line in the first.jsp is more than 3500 lines
and in second.jsp total number of line is more than 2500 lines.


Does the number lines will do with this.


When method='get' same jsp file works good.


This is only happens in the site (that is in my remote orion server)
When i tried in the local machine its working good what i can do for this
any suggestion




Just of this problem i want to switch my server to JRun 
Is is it right...What you will do when you are in the same situation.
Please let me know how i can solve this problem.


Does anythird party API available for this post method.


If my question was not clear please let me know i will send you 
once again clearly.


Please help me in this regards..I am expecting your reply.


Advance thankings for your valuable reply.


Best regards
waheed











How to determine the number of Http sessions

2001-03-28 Thread Tibor Hegyi

Hi,

How can I determine the number of Http sessions currently active within
Orion? I have a kind of solution (using HttpSessionBindingListener) but I
think it's ugly and there should be a more reliable way of doing this.

Regards,

Tibor






Antigen found JS/Kak@M (McAfee4,CA(InoculateIT)) virus

2001-03-28 Thread ANTIGEN_SESTOMSX02

Antigen for Exchange found Unknown infected with JS/Kak@M
(McAfee4,CA(InoculateIT)) virus.
The file is currently Removed.  The message, "No answer yet please
let me know", was
sent from waheed_rahuman  and was discovered in IMC Queues\Inbound
located at Icon Medialab AB/ICONSE/SESTOMSX02.




RE: Paged search results

2001-03-28 Thread cybermaster

"application" is an instance of javax.servlet.ServletContext which is
available in JSPs; this object has application scope and therefore is a good
place to store objects [with:  application.setAttribute(name, object) ]
which you want to make available to servlets/JSPs throughout an application.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Andy Chapman
Sent: Wednesday, March 28, 2001 2:39 AM
To: Orion-Interest
Subject: Re: Paged search results

Johan,

Please enlighten me - what is the application object that you refer to? Is
it just a single entity EJB that maintains common state - ie caches,
application settings etc? Is there some discussion of it anywhere as an
element of J2EE application design?

Thanks,
Andy

- Original Message -
From: "Johan Fredriksson" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Wednesday, March 28, 2001 8:17 AM
Subject: Re: Paged search results


 My first thought is that a cache should not be stored in a session, since
 that would only be available in that session and "cannot" be shared...
 Better to store a searchresult in the application object ( if the result
is
 static and is the same for all users). If the searchresult is specific to
a
 certain user, then you could store it in a session.

 For multibrowser usage, there will be separate sessions for those. There
is
 probably a way to get them to use the same session, but I haven't tried
 this. In this case I suggest a hashtable in the application object and an
id
 string ( key in hashtable ) in the session.

 Hope this at least gives you a couple of ideas on how to get started.

 regards



 Johan






RE: Who's wrong?

2001-03-28 Thread Nimret Sandhu

according to the jsp spec, there should be no ';' at the end afaik .. jrun
is in violation imo.

from:
http://java.sun.com/products/jsp/tags/syntaxref.fm4.html

When you use the Java language for scripting, remember these points: 
. You cannot use a semicolon to end an expression (however, the same
expression within scriptlet tags requires the semicolon; see Scriptlet). 
. The expression tag can contain any expression that is valid according to
the Java Language Specification

regs ~
nimret

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Ing. Nicola Folino
Sent: Wednesday, March 28, 2001 8:19 AM
To: Orion-Interest
Subject: Who's wrong?


Orion don't agree on this line of code in a jsp page:
%=variable;%
The semicolon is an error? But JRun accepts it! Who's wrong?
Thanx...




RE: Who's wrong?

2001-03-28 Thread Jason Smith

There is another way to resolve problems like this:
Look at the technical specification instead of blindly trusting 3rd parties!

From the JSP 1.1 Specification,  look at Chapter 2 "Standard Syntax and
Semantics", or more specifically at Section 2.10.3 "Expressions".  You will
get a nice paragraph description and an example:
%= (new java.util.Date()).toLocaleString() %
as well as Syntax:
%= expression %

-jason

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Kemp Randy-W18971
Sent: Wednesday, March 28, 2001 10:07 AM
To: Orion-Interest
Subject: RE: Who's wrong?


There are three ways to resolve a dispute:
1. Subject matter experts from this list.
2. See what experts in the books say
3. Download another free JSP engine, like Tomcat (jakarta.apache.org), or
LiteWebServer (http://www.gefionsoftware.com/), and see what you get.
-Original Message-
From: Ing. Nicola Folino [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 10:19 AM
To: Orion-Interest
Subject: Who's wrong?


Orion don't agree on this line of code in a jsp page:
%=variable;%
The semicolon is an error? But JRun accepts it! Who's wrong?
Thanx...





Re: Paged search results

2001-03-28 Thread Holden Glova

I guess my confusion comes into a lack
of terminology and understanding of how
to approach this problem. What we would
like to do is be able to perform a
search on the DB, but only show the user
10 of the results at a time. Initially
we have thought that sessions might be
the key to this, but then wondered what
would happen if the user had more than
one browser window open, clearly they
would be clobbering each others cached
search results, no?

So we have also thought about perhaps
using another table to store the results
from each search performed associated
with each browser window through
attempting to add a unique value to a
query string which will also be the PK
in the table of search results. This way
we can move the current record pointer
forward and backwards at will and allow
for people having more than one browser
window open while doing searches.

Do these concerns/strategies sound sane?
If not, maybe it is a reflection of my
own state of mind (i.e. insane :)

Many thanks to those that have currently
contributed to this discussion.

-- 
Holden Glova, [EMAIL PROTECTED]
Software Engineer
Alchemy Group Limited
Level 6 Royal Sun Alliance Bldg
PO Box 2386
Christchurch
New Zealand
Phone: +64 3 962-0382
Fax: +64 3 962-0388




Re: Paged search results

2001-03-28 Thread luar

En la fecha Thu, Mar 29, 2001 at 09:45:21AM +1200, Holden Glova escribio:
 I guess my confusion comes into a lack
 of terminology and understanding of how
 to approach this problem. What we would
 like to do is be able to perform a
 search on the DB, but only show the user
 10 of the results at a time. Initially
 we have thought that sessions might be
 the key to this, but then wondered what
 would happen if the user had more than
 one browser window open, clearly they
 would be clobbering each others cached
 search results, no?

Hi, well I think that you can use many ways to approach your objetive.

One can be: Use a DB that allows "limit", and move forward and backwards
with this function (I tested it in mySQL and it works great!), as you
can tell "from", and "how many" results to show... It's quite easy...

Another way can be using a Session Bean, controlling all the searches,
and then you can use a Collection, List, everything you want. The
SessionBean has to be Stateful for using it in many searches;
you can regroup by "search" words, so you can have one Collection
for each search, and paginate in each, individually...

 
 So we have also thought about perhaps
 using another table to store the results
 from each search performed associated
 with each browser window through
 attempting to add a unique value to a
 query string which will also be the PK
 in the table of search results. This way
 we can move the current record pointer
 forward and backwards at will and allow
 for people having more than one browser
 window open while doing searches.
 
Are you talking about BMP or CMP?


 Do these concerns/strategies sound sane?
 If not, maybe it is a reflection of my
 own state of mind (i.e. insane :)

I don't know... I'm a beginner... :)


Sorry for my english, if you need a "Luar to english" traductor, just
tell me! (Luar it's my name, not an extrange language :)

Well, see ya!

Luar Rojí
CompuService S.R.L.
Montevideo - Uruguay




RE: Who's wrong?

2001-03-28 Thread Juan Lorandi (Chile)



ciao 
ingenieri,

%= 
% is the jsp literal, it shows an expression; if it ends with a semicolon 
(";"), then it is a statement

HTH

JP

  -Original Message-From: Ing. Nicola Folino 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, March 28, 2001 
  12:19 PMTo: Orion-InterestSubject: Who's 
  wrong?
  Orion don't agree on this line of code in a jsp 
  page:
  %=variable;%
  The semicolon is an error? But JRun accepts it! 
  Who's wrong?
  Thanx...