RE: simple questions
can i also use the tool for deploying the app i created using jbuilder? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kemp Randy-W18971 Sent: Thursday, May 17, 2001 4:09 AM To: Orion-Interest Subject: RE: simple questions Thanks for helping out. I have been using the Sun GUI, and forgot the beautiful power of Ant. -Original Message- From: Stan Ng [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 2:35 PM To: Orion-Interest Subject: Re: simple questions The addressbook example uses the Ant build tool to build the project. It's available at http://jakarta.apache.org/ant/ It's pretty easy to set-up, just follow the instructions at http://jakarta.apache.org/ant/manual/index.html Once it's setup, you should be able to build the project by typing the following at the command line: ant This will cause ant to build project using the default build.xml file in the addressbook project. This will create the C:\test\addressbook\lib for you. - Original Message - From: Kemp Randy-W18971 [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 6:14 AM Subject: RE: simple questions It has been a while since I have worked on the address book example, but please clarify the lib directory question. I have looked at the doc again at www.jollem.com, and it says The generated Java .class files will be placed in the lib/java/ subdirectory. This directory will be created automatically during the build process, in step 9. I don't know if ejbdoclet (spelling?), the freeware tool, in conjunction with ant, would build xml files, but that would be a good place to start looking. Anyone else have any ideas? -Original Message- From: Hasan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 9:00 PM To: Orion-Interest Subject: RE: simple questions hi, i have downloaded the addressbook example. however, i wonder where i should create the lib directory. i put all the example in the C:\TEST\addressbook folder while my orion is C:\orion. is there any tool that can help you to build the xml from the ones created by jbuilder?
asking for ur two dollars :)
can anyone give me the consideration when to use ejb and ordinary beans? thanks
java.util.ConcurrentModificationException
Hello everybody, I recently switched over from Apache Tomcat v3.2.1 to Orion v1.4.5. I deployed an application (that I had developed with Tomcat) using Orion and did the necessary configuring. The application works fine until the point when I logout. Tomcat never gave any trouble, but Orion keeps throwing a java.util.ConcurrentModificationException. This exception occurs when I remove all the attributes in my session object. Can anybody tell me why this happens and how to remove it? Thanks and regards, Arun Jayaprakash. __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
PetStore - Session State in a Cluster
Hi, I have the (J2EE Blueprint) PetStore application clustered on two Orion instances running on the same machine. When I connect through the LoadBalancer, I can see my session state get replicated across the two nodes. When I kill the primary node, the load balancer automatically connects me to the secondary node and takes me through the rest of the shopping cart experience, however any items I had in my cart (ie. Session state!) aren't there anymore. I know that for clustering to work, objects should be Serializable AND placed in the session/servlet context for it to be replicated. So my *real* questions are: 1) I haven't dived into the PetStore code - but is this a design issue with the PetStore or do I need some configuration pointers? 2) Has ANYBODY got PetStore working properly in a Clustered environment where you can kill the primary server and continue shopping (with your existing cart) on the secondary node? My Environment:Win2K, JDK 1.3, PetStore 1.1.2, Orion 1.4.5 NB: The SessionServlet example works FINE for me. When the primary goes down, the secondary node picks up with the same counter number as before the failure. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Object as a parameter in a CMP-Finder
Title: Object as a parameter in a CMP-Finder Hi, is it possible to declare a java-Object as a finder parameter? The container should have access on this object by java-methods. For example I would like to do following in orion-ejb-jar.xml: ... finder-method query=$1.getName() = $bean-attribute method ejb-nameTarifBean/ejb-name method-namefindByAnbieter/method-name method-params method-paramnet.interway.project.ValueObject/method-param /method-params /method /finder-method ... In weblogic e.g. you would define a so called finder-expression: finder-query![CDATA[ (= $0 bean-attribute) ]]/finder-query finder-expression expression-number0/expression-number expression-text![CDATA[@0.getName()]]/expression-text expression-typeString/expression-type /finder-expression Can I do something similar in Orion? Thanks Ray Schulz
Re: Orin cpu usage ???
Thanks peter, The javac is indeed linked to .java_wrapper, but to me it's not clear what I should change such that it works in classic mode. Neither do I find anything about that in the man pages. Doesn't anyone knows how to execute java -classic .. on a Linux box ?? Eddie - Original Message - From: cybermaster [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, May 18, 2001 3:43 PM Subject: RE: Orin cpu usage ??? I am currently sitting on a w2k box, but I remember that under Unix many of these files are links to a wrapper for either hotspot or classic JVM. You may have to play around and change those. --peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Friday, May 18, 2001 2:27 AM To: Orion-Interest Subject: Re: Orin cpu usage ??? Thanks peter, I tried it as classic, but it doesn't work. It complains that it can't find the JIT, wheras it is able find it, as the below, any idea why this is (I haven't got much experience with running the jvm in different modes, any idea where to find more info, as I can't find it in the man java ??) ??: --- [orion@ojo Orion]# java -classic orion.jar Warning: JIT compiler /usr/local/java/bin/javac not found. Will use interpreter. Exception in thread main java.lang.NoClassDefFoundError: orion/jar [orion@ojo Orion]# ls /usr/local/java/bin/ja jar java javac javah jarsigner java-rmi.cgi javadoc javap [orion@ojo Orion]# ls /usr/local/java/bin/javac /usr/local/java/bin/javac [orion@ojo Orion]# -- Eddie - Original Message - From: cybermaster [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 4:07 PM Subject: RE: Orin cpu usage ??? I have seen other instances where profiling doesn't work with the HotSpot JVM - use the Classic, and it (may) work. --peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Thursday, May 17, 2001 6:04 AM To: Orion-Interest Subject: Re: Orin cpu usage ??? Thanks Marcel, Indeed I get more information when I start with -Xprof, however when I use the -Xrunhprof I get the following error (the total command is also included): Funny !!!, Eddie -- # # HotSpot Virtual Machine Error, Internal Error # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Error ID: 4D555445583F4C494E55580E4350500104 # # Problematic Thread: prio=1 tid=0x804dcd8 nid=0x4c99 runnable # -- Start command: --- su -l program --command='/usr/local/java/bin/java -Xrunhprof -jar /opt/Orion/orion.jar -config /opt/Orion/config/server.xml /opt/Orion/log/out.log 21 - Original Message - From: Marcel Schutte [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 11:48 AM Subject: RE: Orin cpu usage ??? Hi Eddie, You could try to use the JVM profiler (startup arguments -Xprof and -Xrunhprof). This is ofcourse not orion specific, but you can give it a try. You can also try leaving out parts of your application until you find the bit that's causing your problem. Marcel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Thursday, May 17, 2001 10:11 AM To: Orion-Interest Subject: Re: Orin cpu usage ??? Can someone please answer this question !!!??? The problem I am having is the Orion sometimes hangs, it uses a lot of cpu and I can't figure out why, so I need some advices on how I can monitor this. Please... ?? Eddie - Original Message - From: Eddie [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 11:42 AM Subject: Orin cpu usage ??? Can someone please tell me how to monitor the cpu usage of Orion in detail per component/item/application ? When I use orionconsole I can only view the overall memory usage of all application, but that's it. With top I see it is using a lot of cpu time: about 50 percent. But I want more information, how do I get that ?? Eddie
Re: Orin cpu usage ??? - HANGS - please some help!!
Thanks peter.. again :) I looked at it and it gives some more information. But I think I also have to play around witht he max-instances to control the number of bean instances, as I notices that other people had the same problem and solved it like that. Eddie - Original Message - From: cybermaster [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, May 18, 2001 3:37 PM Subject: RE: Orin cpu usage ??? - HANGS - please some help!! Use the -monitorResourceThreads flag when you start orion - (use java -jar orion.jar -help to see possible startup options) --peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Friday, May 18, 2001 3:52 AM To: Orion-Interest Subject: Re: Orin cpu usage ??? - HANGS - please some help!! Please tell me how I can see in Orion what's going wrong!! - About every hour Orion still runs, but doesn't do any servlets, beans, etc... it just hangs... and I can't figure out why... not completely true... it writes: java.lang.OutOfMemoryError: max threads limit being reached in VM at java.lang.Thread.start(Native Method) at com.evermind.util.ThreadPool.cb(JAX) at com.evermind.server.he.ap3(JAX) at com.evermind.server.http.eq.run(JAX) at com.evermind.util.f.run(JAX) - But I don't understand this as I start it with enough memory: -- /opt/java/bin/java -Xms30m -Xmx190m -jar /opt/Orion/orion.jar -config /opt/Orion/config/server.xml /opt/Orion/log/out.log 21 -- And if I take a look with the orionconole the memory usage it always around 13-32 MB What ma I missing here. BTW: it's running on HP-UX 11 with jdk1.3 Eddie - Original Message - From: cybermaster [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 4:07 PM Subject: RE: Orin cpu usage ??? I have seen other instances where profiling doesn't work with the HotSpot JVM - use the Classic, and it (may) work. --peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Thursday, May 17, 2001 6:04 AM To: Orion-Interest Subject: Re: Orin cpu usage ??? Thanks Marcel, Indeed I get more information when I start with -Xprof, however when I use the -Xrunhprof I get the following error (the total command is also included): Funny !!!, Eddie -- # # HotSpot Virtual Machine Error, Internal Error # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Error ID: 4D555445583F4C494E55580E4350500104 # # Problematic Thread: prio=1 tid=0x804dcd8 nid=0x4c99 runnable # -- Start command: --- su -l program --command='/usr/local/java/bin/java -Xrunhprof -jar /opt/Orion/orion.jar -config /opt/Orion/config/server.xml /opt/Orion/log/out.log 21 - Original Message - From: Marcel Schutte [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 11:48 AM Subject: RE: Orin cpu usage ??? Hi Eddie, You could try to use the JVM profiler (startup arguments -Xprof and -Xrunhprof). This is ofcourse not orion specific, but you can give it a try. You can also try leaving out parts of your application until you find the bit that's causing your problem. Marcel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Thursday, May 17, 2001 10:11 AM To: Orion-Interest Subject: Re: Orin cpu usage ??? Can someone please answer this question !!!??? The problem I am having is the Orion sometimes hangs, it uses a lot of cpu and I can't figure out why, so I need some advices on how I can monitor this. Please... ?? Eddie - Original Message - From: Eddie [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 11:42 AM Subject: Orin cpu usage ??? Can someone please tell me how to monitor the cpu usage of Orion in detail per component/item/application ? When I use orionconsole I can only view the overall memory usage of all application, but that's it. With top I see it is using a lot of cpu time: about 50 percent. But I want more information, how do I get that ?? Eddie
RE: PetStore - Session State in a Cluster
My guess is you stumbled upon a mismatch between the servlet and jsp specifications: a container needs some way to decide when to replicate a session to a cluster. In Orion and Weblogic this is done when session.setAttribute() is called. This works fine for things like the SessionServlet. In jsp's with the jsp:useBean ... scope=session tag, setAttribute is only called upon creation of the bean class. Modifications to the session state are done through calls on the bean class. This doesn't trigger session replication because the container doesn't know about the change. Marcel Hi, I have the (J2EE Blueprint) PetStore application clustered on two Orion instances running on the same machine. When I connect through the LoadBalancer, I can see my session state get replicated across the two nodes. When I kill the primary node, the load balancer automatically connects me to the secondary node and takes me through the rest of the shopping cart experience, however any items I had in my cart (ie. Session state!) aren't there anymore. I know that for clustering to work, objects should be Serializable AND placed in the session/servlet context for it to be replicated. So my *real* questions are: 1) I haven't dived into the PetStore code - but is this a design issue with the PetStore or do I need some configuration pointers? 2) Has ANYBODY got PetStore working properly in a Clustered environment where you can kill the primary server and continue shopping (with your existing cart) on the secondary node? My Environment:Win2K, JDK 1.3, PetStore 1.1.2, Orion 1.4.5 NB: The SessionServlet example works FINE for me. When the primary goes down, the secondary node picks up with the same counter number as before the failure. __ ___ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
RE: java.util.ConcurrentModificationException
How are you trying to remove all of the attributes from the session, and could you not just call session.invalidate() ? This can occur if, for example, you get the attribute names out of the session in an enumeration, remove one of them from the session with a removeAttribute and then try and interate through the enumeration. It gets to the attribute that you've removed and then breaks, since it no longer exists. Cheers, Simon This email and any attachments are confidential and are intended only for the addressee. If you are not the intended recipient of this email and have received it in error, please notify the sender immediately by reply email and then delete it from your system. -Original Message- From: Arun Jayaprakash [mailto:[EMAIL PROTECTED]] Sent: 21 May 2001 08:56 To: Orion-Interest Subject: java.util.ConcurrentModificationException Hello everybody, I recently switched over from Apache Tomcat v3.2.1 to Orion v1.4.5. I deployed an application (that I had developed with Tomcat) using Orion and did the necessary configuring. The application works fine until the point when I logout. Tomcat never gave any trouble, but Orion keeps throwing a java.util.ConcurrentModificationException. This exception occurs when I remove all the attributes in my session object. Can anybody tell me why this happens and how to remove it? Thanks and regards, Arun Jayaprakash. __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: Orin cpu usage ???
Thanks peter, The javac is indeed linked to .java_wrapper, but to me it's not clear what I should change such that it works in classic mode. Neither do I find anything about that in the man pages. Doesn't anyone knows how to execute java -classic .. on a Linux box ?? Eddie Not quite sure, but the JBuilder docs say: For Windows only: you can use the classic JVM... blah blah. I really don't think there is a classic JVM for nonWindows OS :( Damn. Lachezar
Re: java.util.ConcurrentModificationException
I suppose you use session.invalidate(); and then try to remove any values from the session? Well, you can't. The session is marked for deletion and therefore you get the ConcurrentModificationException. session.invalidate() should be enough... Johan - Original Message - From: Arun Jayaprakash [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, May 21, 2001 9:56 AM Subject: java.util.ConcurrentModificationException Hello everybody, I recently switched over from Apache Tomcat v3.2.1 to Orion v1.4.5. I deployed an application (that I had developed with Tomcat) using Orion and did the necessary configuring. The application works fine until the point when I logout. Tomcat never gave any trouble, but Orion keeps throwing a java.util.ConcurrentModificationException. This exception occurs when I remove all the attributes in my session object. Can anybody tell me why this happens and how to remove it? Thanks and regards, Arun Jayaprakash. __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
RE: simple questions
Sure. You just need to be aware of what the tool does and what Jbuilder does, and separate the functionality. Fortunately, a great tutorial exists for how to use the tool with Orion and Oracle (notice you could substitute any database, such as instantdb, mysql, postgresql, sapdb, firebird, etc.) at http://www.4degreez.com/intro_part_1.html and http://www.4degreez.com/intro_part_2.html. A great new book that talks about the tool, in conjunction with ejb, is Instant Enterprise JavaBeans by Paul Tremblett. -Original Message- From: Hasan [mailto:[EMAIL PROTECTED]] Sent: Monday, May 21, 2001 1:31 AM To: Orion-Interest Subject: RE: simple questions can i also use the tool for deploying the app i created using jbuilder? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kemp Randy-W18971 Sent: Thursday, May 17, 2001 4:09 AM To: Orion-Interest Subject: RE: simple questions Thanks for helping out. I have been using the Sun GUI, and forgot the beautiful power of Ant. -Original Message- From: Stan Ng [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 2:35 PM To: Orion-Interest Subject: Re: simple questions The addressbook example uses the Ant build tool to build the project. It's available at http://jakarta.apache.org/ant/ It's pretty easy to set-up, just follow the instructions at http://jakarta.apache.org/ant/manual/index.html Once it's setup, you should be able to build the project by typing the following at the command line: ant This will cause ant to build project using the default build.xml file in the addressbook project. This will create the C:\test\addressbook\lib for you. - Original Message - From: Kemp Randy-W18971 [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 6:14 AM Subject: RE: simple questions It has been a while since I have worked on the address book example, but please clarify the lib directory question. I have looked at the doc again at www.jollem.com, and it says The generated Java .class files will be placed in the lib/java/ subdirectory. This directory will be created automatically during the build process, in step 9. I don't know if ejbdoclet (spelling?), the freeware tool, in conjunction with ant, would build xml files, but that would be a good place to start looking. Anyone else have any ideas? -Original Message- From: Hasan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 9:00 PM To: Orion-Interest Subject: RE: simple questions hi, i have downloaded the addressbook example. however, i wonder where i should create the lib directory. i put all the example in the C:\TEST\addressbook folder while my orion is C:\orion. is there any tool that can help you to build the xml from the ones created by jbuilder?
subscribe orion-interest
subscribe orion-interest
SSL Question: Possibly Offtopic
Is it possible to set up two different sites using Orion with only 1 IP address, and set up SSL for each of them. I didn't have any problems setting up the two non-secure virtual hosts, but when I tried to setup up SSL virtual hosts, I couldn't get the server to send the right Certificates. Is this even possible? Is there some SSL limitation that only allows 1 Certificate per IP address? /John
Host header
Title: Host header Hi, I was just wondering how I set up two different web applications (in different applications) to use the HTTP Host header to share ip address aswell as port. ie: www.acme.org - the-host:80 www.gunnar.se - the-host:80
Orion 1.5.0 and erronous home interfaces ?
Hi, i just got 1.5.0 when autoupdating orion. This version suddenly has problems compiling the home interfaces due to missing transaction instance variables in the generated code. The application im trying to deploy was deploying/working under 1.4.8. Anybody else encountered that sort of problem and has a solution ? TIA, udo
RE: Object as a parameter in a CMP-Finder
Title: RE: Object as a parameter in a CMP-Finder Hi again, in the documentation of the orion-ejb-jar.xml-Descriptor i found following line, where an array is declared as a finder parameter: method-paramint[]/method-param But how i can access the single integer fields of this array in the query? In this way? finder-method query=$field0 = $1[0] AND $field1 = $1[1] ... Please help. Otherwise i have to rewrite the sources of my complete application (at least the parts where the cmp-finders are used). -Original Message- From: Raymond Schulz [mailto:[EMAIL PROTECTED]] Sent: Monday, May 21, 2001 10:36 AM To: Orion-Interest Subject: Object as a parameter in a CMP-Finder Hi, is it possible to declare a java-Object as a finder parameter? The container should have access on this object by java-methods. For example I would like to do following in orion-ejb-jar.xml: ... finder-method query=$1.getName() = $bean-attribute method ejb-nameTarifBean/ejb-name method-namefindByAnbieter/method-name method-params method-paramnet.interway.project.ValueObject/method-param /method-params /method /finder-method ... In weblogic e.g. you would define a so called finder-expression: finder-query![CDATA[ (= $0 bean-attribute) ]]/finder-query finder-expression expression-number0/expression-number expression-text![CDATA[@0.getName()]]/expression-text expression-typeString/expression-type /finder-expression Can I do something similar in Orion? Thanks Ray Schulz
finderException in home interface of CMP ??
To me it's a bit unclear when I need to throw a FinderException in the finder methods in the Home interface with CMP. ? Now I only throw a finderException in case of - the findByPrimareyKey (otherwise orion complaints), - and in case of a single return object (orion doesn't complain, but gives strange runtime errors). So when a finder returns a collection I don't throw a finderException!! Is this correct ? Eddie
Re: Orin cpu usage ???
Thanks travis, I will play around with that. Eddie - Original Message - From: tlk [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, May 21, 2001 3:46 PM Subject: Re: Orin cpu usage ??? Hi Eddie, You may want to try profiling with -nojit specified. Remot debuging could help in finding the bottel neck where Orion seems to hang. Travis - Original Message - From: Eddie [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, May 21, 2001 6:09 AM Subject: Re: Orin cpu usage ??? Thanks peter, The javac is indeed linked to .java_wrapper, but to me it's not clear what I should change such that it works in classic mode. Neither do I find anything about that in the man pages. Doesn't anyone knows how to execute java -classic .. on a Linux box ?? Eddie - Original Message - From: cybermaster [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, May 18, 2001 3:43 PM Subject: RE: Orin cpu usage ??? I am currently sitting on a w2k box, but I remember that under Unix many of these files are links to a wrapper for either hotspot or classic JVM. You may have to play around and change those. --peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Friday, May 18, 2001 2:27 AM To: Orion-Interest Subject: Re: Orin cpu usage ??? Thanks peter, I tried it as classic, but it doesn't work. It complains that it can't find the JIT, wheras it is able find it, as the below, any idea why this is (I haven't got much experience with running the jvm in different modes, any idea where to find more info, as I can't find it in the man java ??) ??: --- [orion@ojo Orion]# java -classic orion.jar Warning: JIT compiler /usr/local/java/bin/javac not found. Will use interpreter. Exception in thread main java.lang.NoClassDefFoundError: orion/jar [orion@ojo Orion]# ls /usr/local/java/bin/ja jar java javac javah jarsigner java-rmi.cgi javadoc javap [orion@ojo Orion]# ls /usr/local/java/bin/javac /usr/local/java/bin/javac [orion@ojo Orion]# -- Eddie - Original Message - From: cybermaster [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 4:07 PM Subject: RE: Orin cpu usage ??? I have seen other instances where profiling doesn't work with the HotSpot JVM - use the Classic, and it (may) work. --peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Thursday, May 17, 2001 6:04 AM To: Orion-Interest Subject: Re: Orin cpu usage ??? Thanks Marcel, Indeed I get more information when I start with -Xprof, however when I use the -Xrunhprof I get the following error (the total command is also included): Funny !!!, Eddie -- # # HotSpot Virtual Machine Error, Internal Error # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Error ID: 4D555445583F4C494E55580E4350500104 # # Problematic Thread: prio=1 tid=0x804dcd8 nid=0x4c99 runnable # -- Start command: --- su -l program --command='/usr/local/java/bin/java -Xrunhprof -jar /opt/Orion/orion.jar -config /opt/Orion/config/server.xml /opt/Orion/log/out.log 21 - Original Message - From: Marcel Schutte [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 11:48 AM Subject: RE: Orin cpu usage ??? Hi Eddie, You could try to use the JVM profiler (startup arguments -Xprof and -Xrunhprof). This is ofcourse not orion specific, but you can give it a try. You can also try leaving out parts of your application until you find the bit that's causing your problem. Marcel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Thursday, May 17, 2001 10:11 AM To: Orion-Interest Subject: Re: Orin cpu usage ??? Can someone please answer this question !!!??? The problem I am having is the Orion sometimes hangs, it uses a lot of cpu and I can't figure out why, so I need some advices on how I can monitor this. Please... ?? Eddie - Original Message - From: Eddie [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 11:42 AM Subject: Orin cpu usage ??? Can someone please tell me how to monitor the cpu usage of Orion in detail per component/item/application ? When I use orionconsole I can only view
Upgrading from 1.3.8 to 1.4.5 - (de-)serializing errors
We have encountered some serious problems when upgrading from Orion 1.3.8 to 1.4.5. The problems occurs when our business layer is about to return data to the presentation layer. The data is fetched in the datalayer via a callable statement. The callable statement and the connection is closed in the data-layer-EJB. The business-layer-EJB removes the data-layer-EJB after it has retrieved a ResultSet from it. The business-data-layer then returns data extracted from the ResultSet or sometimes just data from the ResultSet. It still works perfectly fine to use methods that submit data but not returns anything from the data layer. But after the upgrade, the methods that return data is failing. The reported error is as following: [Mon May 21 12:41:54 GMT+02:00 2001]: Error in getPoll, BlPollBean. java.rmi.RemoteException: Error (de-)serializing object: com.inet.tds.d; nested exception is: java.io.NotSerializableException: com.inet.tds.dcom.evermind.server.rmi.OrionRemoteException: javax.ejb.EJBException at com.evermind.server.ejb.EJBUtils.getUserException(JAX) at BlPoll_StatelessSessionBeanWrapper12.getPoll(BlPoll_StatelessSessionBeanWrapper12.java:446) at __jspPage5_polltest_poll_statistics_jsp._jspService(__jspPage5_polltest_poll_statistics_jsp.java:75) at com.orionserver.http.OrionHttpJspPage.service(JAX) at com.evermind.server.http.HttpApplication.xj(JAX) at com.evermind.server.http.JSPServlet.service(JAX) at com.evermind.server.http.d3.sw(JAX) at com.evermind.server.http.d3.su(JAX) at com.evermind.server.http.ef.s1(JAX) at com.evermind.server.http.ef.do(JAX) at com.evermind.util.f.run(JAX) It seems like Orion tries to de-serialize com.inet.tds.d, but why? On the same installation other implementations run using the same com.inet.tds provider. I saw some problems on this list earlier describing these kind of problems, but that was regarding fields that needed to be "transient". We have no such "stateful fields", so we don't think that has something to do with these problems that we encounter. Anyonegot a clue? /Jonas .Jonas Lundberg, M.Sc.Systems ArchitectFramfab Sverige ABHolländargatan 20 (Box 5494)SE-114 84 StockholmSWEDENmailto:[EMAIL PROTECTED]Direct: +46 8 410 004 59Mobile: +46 70 995 49 59Phone: +46 8 41 00 10 00Fax: +46 8 410 002 50Internet: www.framfab.se.
Orion 1.5.0
Just updated to 1.5.0, and now I get a NoSuchMethodError as follows: Exception in thread main java.lang.NoSuchMethodError: org.xml.sax.Attributes: method getQName(I)Ljava/lang/String; not found at org.apache.crimson.tree.AttributeSet.createAttributeSet2(AttributeSet .java:174) at org.apache.crimson.tree.XmlDocumentBuilderNS.startElement(XmlDocument BuilderNS.java:90) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1475) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433) at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl .java:185) at com.evermind._ug.getJavaxDocument(Unknown Source) at com.evermind.xml.XMLUtils.getDocument(Unknown Source) at com.evermind.xml.XMLConfig._ds(Unknown Source) at com.evermind.xml.XMLConfig._ds(Unknown Source) at com.evermind.server.ApplicationServer._va(Unknown Source) at com.evermind.server.ApplicationServer.main(Unknown Source) Can anyone tell me how to fix it? James Fairbairn
Re: SSL Question: Possibly Offtopic
Is there some SSL limitation that only allows 1 Certificate per IP address? Yes, or at least that's my understanding. The SSL negotiation is done before the Host: header can be sent. James
Re: finderException in home interface of CMP ??
Joni Suominen wrote: Eddie wrote: To me it's a bit unclear when I need to throw a FinderException in the finder methods in the Home interface with CMP. ? Now I only throw a finderException in case of - the findByPrimareyKey (otherwise orion complaints), - and in case of a single return object (orion doesn't complain, but gives strange runtime errors). So when a finder returns a collection I don't throw a finderException!! Is this correct ? No. Every finder method should declare that it throws FinderException. Joni [EMAIL PROTECTED] To be more specific: In the home interface you should declare all the fonder methods to throw FinderException. But when a method which returns a non-collection raises an exception it will be ObjectNotFoundException (which is a subclass of FinderException). However, if a finder method which returns a collection don't find any matching objects an empty collection is returned. The method signature must still declare the FinderException in home interface which seems to be a bit illogical? Joni [EMAIL PROTECTED]
RE: Orin cpu usage ??? - HANGS - please some help!!
Did max-instances solve the problem? Anyway, in some applications on Linux/Unix you have to change #DEFAULT_THREADS_FLAG=green to: DEFAULT_THREADS_FLAG=native in two places relative to JAVA_HOME: ./bin/.java_wrapper and jre/bin/.java_wrapper. --peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Monday, May 21, 2001 3:12 AM To: Orion-Interest Subject: Re: Orin cpu usage ??? - HANGS - please some help!! Thanks peter.. again :) I looked at it and it gives some more information. But I think I also have to play around witht he max-instances to control the number of bean instances, as I notices that other people had the same problem and solved it like that. Eddie - Original Message - From: cybermaster [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, May 18, 2001 3:37 PM Subject: RE: Orin cpu usage ??? - HANGS - please some help!! Use the -monitorResourceThreads flag when you start orion - (use java -jar orion.jar -help to see possible startup options) --peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Friday, May 18, 2001 3:52 AM To: Orion-Interest Subject: Re: Orin cpu usage ??? - HANGS - please some help!! Please tell me how I can see in Orion what's going wrong!! - About every hour Orion still runs, but doesn't do any servlets, beans, etc... it just hangs... and I can't figure out why... not completely true... it writes: java.lang.OutOfMemoryError: max threads limit being reached in VM at java.lang.Thread.start(Native Method) at com.evermind.util.ThreadPool.cb(JAX) at com.evermind.server.he.ap3(JAX) at com.evermind.server.http.eq.run(JAX) at com.evermind.util.f.run(JAX) - But I don't understand this as I start it with enough memory: -- /opt/java/bin/java -Xms30m -Xmx190m -jar /opt/Orion/orion.jar -config /opt/Orion/config/server.xml /opt/Orion/log/out.log 21 -- And if I take a look with the orionconole the memory usage it always around 13-32 MB What ma I missing here. BTW: it's running on HP-UX 11 with jdk1.3 Eddie - Original Message - From: cybermaster [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 4:07 PM Subject: RE: Orin cpu usage ??? I have seen other instances where profiling doesn't work with the HotSpot JVM - use the Classic, and it (may) work. --peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Thursday, May 17, 2001 6:04 AM To: Orion-Interest Subject: Re: Orin cpu usage ??? Thanks Marcel, Indeed I get more information when I start with -Xprof, however when I use the -Xrunhprof I get the following error (the total command is also included): Funny !!!, Eddie -- # # HotSpot Virtual Machine Error, Internal Error # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Error ID: 4D555445583F4C494E55580E4350500104 # # Problematic Thread: prio=1 tid=0x804dcd8 nid=0x4c99 runnable # -- Start command: --- su -l program --command='/usr/local/java/bin/java -Xrunhprof -jar /opt/Orion/orion.jar -config /opt/Orion/config/server.xml /opt/Orion/log/out.log 21 - Original Message - From: Marcel Schutte [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 11:48 AM Subject: RE: Orin cpu usage ??? Hi Eddie, You could try to use the JVM profiler (startup arguments -Xprof and -Xrunhprof). This is ofcourse not orion specific, but you can give it a try. You can also try leaving out parts of your application until you find the bit that's causing your problem. Marcel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Thursday, May 17, 2001 10:11 AM To: Orion-Interest Subject: Re: Orin cpu usage ??? Can someone please answer this question !!!??? The problem I am having is the Orion sometimes hangs, it uses a lot of cpu and I can't figure out why, so I need some advices on how I can monitor this. Please... ?? Eddie - Original Message - From: Eddie [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 11:42 AM Subject: Orin cpu usage ??? Can someone please tell me how to monitor the cpu usage of Orion in detail per component/item/application ? When I use orionconsole I can only view the overall memory usage of all application, but that's it. With top I see it is using a lot of cpu time: about 50 percent. But I want more information, how do I get that ?? Eddie
Orion and Security (2)
Hi All, I posted an email about Orion and Security a few days ago and got some great response. Let me go into a little more details and see if what I am doing will work accordingly? 1. The security model I need is to all a user to log in once but can use multiple applications within that server. a. Server i. App1 ii. App2 iii. App3 2. Let say user1 have admin access to App1, read access to App2 and edit access to app3. a. At the initial login of the user, a security object for the user is created. There all of his/her security is loaded into the object. b. User1 go to App2, at this point, each of the App2 screen will call the security object and check to see with kind of role the user have for it. In our case, user1 only have read access which the screen will be display as read only with no edit problem. Security Summary 1. User 2. Application 3. Role(s) [Read, Modify, Delete, Add, etc] 4. Other. With the scenario I described above, I don't think it is currently available with the Orion security scheme. At each login a new security object get instantiated and populated with all the security information for the user from the database. Once the object is instantiated and populated, the database is no longer access for security. Of course this will requires some memory on the server side to hold the information but the access will be fast. This will requires an Entity Bean to do and will be managed by the container until the session is done. There are also thought of caching it for a certain period of time but probably not the first release. My question now is will the above work? Does anyone willing to share a better scheme? Any inputs will be great. Thanks Doug Pham
Re: finderException in home interface of CMP ??
I understand your point and I completely agree that it's illogical. That's why I started testing around and found out that it's not necessary to throw a finderexception in case of a return collection. Like I see it now: I finderException is never thrown in case of a collection as it always returns an empty collection when it can't find anything ? Or am I missing something here. Neither does Orion complain when you leave out the FinderException! Or are there other situations when a FinderExceptions can occur in case of a Collection ?? Eddie - Original Message - From: Joni Suominen [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, May 21, 2001 6:41 PM Subject: Re: finderException in home interface of CMP ?? Joni Suominen wrote: Eddie wrote: To me it's a bit unclear when I need to throw a FinderException in the finder methods in the Home interface with CMP. ? Now I only throw a finderException in case of - the findByPrimareyKey (otherwise orion complaints), - and in case of a single return object (orion doesn't complain, but gives strange runtime errors). So when a finder returns a collection I don't throw a finderException!! Is this correct ? No. Every finder method should declare that it throws FinderException. Joni [EMAIL PROTECTED] To be more specific: In the home interface you should declare all the fonder methods to throw FinderException. But when a method which returns a non-collection raises an exception it will be ObjectNotFoundException (which is a subclass of FinderException). However, if a finder method which returns a collection don't find any matching objects an empty collection is returned. The method signature must still declare the FinderException in home interface which seems to be a bit illogical? Joni [EMAIL PROTECTED]
Re: Orion 1.5.0
I got that too, and it's because the stupid autoupdater doesn't get all the files. here is what I had to do. 1- Move all the .jar files in an oldjar dir except autoupdate.jar and tools.jar 2- change server.xml and application.xml to server and application.old 3- Run the autoupdate 4- modify the new server.xml and application.xml Now you're ready to rock. 1.5 seems to be quicker than previous version too. At least for the stuff we use. R At 05:22 PM 5/21/2001 +0100, you wrote: Just updated to 1.5.0, and now I get a NoSuchMethodError as follows: Exception in thread main java.lang.NoSuchMethodError: org.xml.sax.Attributes: method getQName(I)Ljava/lang/String; not found at org.apache.crimson.tree.AttributeSet.createAttributeSet2(AttributeSet .java:174) at org.apache.crimson.tree.XmlDocumentBuilderNS.startElement(XmlDocument BuilderNS.java:90) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1475) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433) at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl .java:185) at com.evermind._ug.getJavaxDocument(Unknown Source) at com.evermind.xml.XMLUtils.getDocument(Unknown Source) at com.evermind.xml.XMLConfig._ds(Unknown Source) at com.evermind.xml.XMLConfig._ds(Unknown Source) at com.evermind.server.ApplicationServer._va(Unknown Source) at com.evermind.server.ApplicationServer.main(Unknown Source) Can anyone tell me how to fix it? James Fairbairn Robert S. Sfeir Director of Software Development PERCEPTICON corporation San Francisco, CA 94123 w - http://www.percepticon.com/ e- [EMAIL PROTECTED] t - (415) 749-2900 x205
RE: Orin cpu usage ??? - HANGS - please some help!!
I'll attach the modified version of the wrapper file - a while ago I helped a collegue to set this up to get a profiler and analyzer (OptimizeIt) to work. So there may be some other changes in it - hope this helps ... In your example, ttype=green_threads and not 'native' --peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Monday, May 21, 2001 1:43 PM To: Orion-Interest Subject: Re: Orin cpu usage ??? - HANGS - please some help!! Hi cybermaster, In both the wrapper files If find something like below. What shall I change ?? I suppose the _JMS_THREADS_TYPE=native.. ! --- if [ ${vmtype} = classic ]; then ttype=green_threads LD_BIND_NOW=yes export LD_BIND_NOW _JVM_THREADS_TYPE=green_threads export _JVM_THREADS_TYPE fi --- But why ? and should I also change ttype ? If I only change the _JMS .. part I do get the following: [orion@ojo Orion]# java -classic -jar ./orion.jar JVM Classic type Could not create the Java virtual machine. --- BTW: I haven't playes around with the max-instances yet, but I will do that shorly but still don't know what the max value should be !!! Eddie if [ ${vmtype} = classic ]; then ttype=green_threads LD_BIND_NOW=yes export LD_BIND_NOW _JVM_THREADS_TYPE=green_threads export _JVM_THREADS_TYPE fi - Original Message - From: cybermaster [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, May 21, 2001 5:48 PM Subject: RE: Orin cpu usage ??? - HANGS - please some help!! Did max-instances solve the problem? Anyway, in some applications on Linux/Unix you have to change #DEFAULT_THREADS_FLAG=green to: DEFAULT_THREADS_FLAG=native in two places relative to JAVA_HOME: ./bin/.java_wrapper and jre/bin/.java_wrapper. --peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Monday, May 21, 2001 3:12 AM To: Orion-Interest Subject: Re: Orin cpu usage ??? - HANGS - please some help!! Thanks peter.. again :) I looked at it and it gives some more information. But I think I also have to play around witht he max-instances to control the number of bean instances, as I notices that other people had the same problem and solved it like that. Eddie - Original Message - From: cybermaster [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, May 18, 2001 3:37 PM Subject: RE: Orin cpu usage ??? - HANGS - please some help!! Use the -monitorResourceThreads flag when you start orion - (use java -jar orion.jar -help to see possible startup options) --peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Friday, May 18, 2001 3:52 AM To: Orion-Interest Subject: Re: Orin cpu usage ??? - HANGS - please some help!! Please tell me how I can see in Orion what's going wrong!! - About every hour Orion still runs, but doesn't do any servlets, beans, etc... it just hangs... and I can't figure out why... not completely true... it writes: java.lang.OutOfMemoryError: max threads limit being reached in VM at java.lang.Thread.start(Native Method) at com.evermind.util.ThreadPool.cb(JAX) at com.evermind.server.he.ap3(JAX) at com.evermind.server.http.eq.run(JAX) at com.evermind.util.f.run(JAX) - But I don't understand this as I start it with enough memory: -- /opt/java/bin/java -Xms30m -Xmx190m -jar /opt/Orion/orion.jar -config /opt/Orion/config/server.xml /opt/Orion/log/out.log 21 -- And if I take a look with the orionconole the memory usage it always around 13-32 MB What ma I missing here. BTW: it's running on HP-UX 11 with jdk1.3 Eddie - Original Message - From: cybermaster [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 4:07 PM Subject: RE: Orin cpu usage ??? I have seen other instances where profiling doesn't work with the HotSpot JVM - use the Classic, and it (may) work. --peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Thursday, May 17, 2001 6:04 AM To: Orion-Interest Subject: Re: Orin cpu usage ??? Thanks Marcel, Indeed I get more information when I start with -Xprof, however when I use the -Xrunhprof I get the following error (the total command is also included): Funny !!!, Eddie -- # # HotSpot Virtual Machine Error, Internal Error # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Error ID: 4D555445583F4C494E55580E4350500104 # # Problematic Thread: prio=1 tid=0x804dcd8 nid=0x4c99 runnable # -- Start command: --- su -l program --command='/usr/local/java/bin/java -Xrunhprof -jar
Re: Update to 1.5.0 help please ?
Did you remove the application deployment directory for your app? This is the first thing I do when stubs are misbehaving. tim. I just updated to 1.5.0 as well, and everytime I start Orion it complains about a wrapper that I can't find anymore on my machine How do I solve this ?? (I compiled all the source again, and it doesn't give me any errors !!). BTW: when I start version 1.4.7 again, I don't have any problems ??!!! :( The error: --- [orion@ojo Orion]# java -jar orion.jar Auto-deploying /home/development/lib/java/jars/csd.jar (New server version detected)... Found 5 semantic errors compiling Operator_EntityBeanWrapper0.java: 275. catch(java.sql.SQLException e) - *** Error: This catch block may be unreachable because there is no exception whose type is assignable to java/sql/SQLException that can be thrown during execution of the body of the try block. . .. ... - Eddie
RE: java.util.ConcurrentModificationException
Title: RE: java.util.ConcurrentModificationException A ConcurrentModificationException is thrown by a non-synchronized Collection when more than one thread tries to modify the Collection. Try synchronizing the Collection or simply calling the session.invalidate() as suggested in previous responses. Ted Rice -Original Message- From: Arun Jayaprakash [mailto:[EMAIL PROTECTED]] Sent: 21 May 2001 08:56 To: Orion-Interest Subject: java.util.ConcurrentModificationException Hello everybody, I recently switched over from Apache Tomcat v3.2.1 to Orion v1.4.5. I deployed an application (that I had developed with Tomcat) using Orion and did the necessary configuring. The application works fine until the point when I logout. Tomcat never gave any trouble, but Orion keeps throwing a java.util.ConcurrentModificationException. This exception occurs when I remove all the attributes in my session object. Can anybody tell me why this happens and how to remove it? Thanks and regards, Arun Jayaprakash. __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
RE: java.util.ConcurrentModificationException
Hello everybody, How are you trying to remove all of the attributes from the session, and could you not just call session.invalidate() ? I have a class that performs database-related functions. The object of this class is saved in the session object. Now when a user logouts, I want to close the connection object present in the database class. If I called session.invalidate(), will the connection get closed? I thought it would not be possible, so I iterate through the session object and remove them one by one. When I come to the database object, I close the connection first and then remove it. If this approach is not suggested, can anybody suggest any other way? Thanks, Arun Jayaprakash. __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/