Re: How to access EJB's from client (not packaged in .ear) ?
Here is how I think it works. The system registers the fully qualified classnames at the server side when starting the server. Yes, I'm assuming that fqnames are registered. When the client container starts, the client-application.xml is loaded and the system checks whether it can find locally the classes mentioned in the remote and home references. When the client references one of the ejb-refs the client container lookups in fact the fully qualified classname from the naming service and 'connects' to the server bean. Why I'm presuming it works like this? Look what happens when you move the classes from one package to another on the server (in a working example). You get the same error messages as you guys experiencing. FE -Original Message- From: Todd McGrath [SMTP:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 2:36 AM To: [EMAIL PROTECTED] Subject:RE: How to access EJB's from client (not packaged in .ear) ? Frank, I came across post of yours in the Orion mailing list. I'm trying to access EJBs on one Orion machine from servlets on another Orion machine. I'm not having any luck and I came across your modified orion-primer example, which I thought we be a good step for me to take. I seem to be having a similar issue to Daniel. I successfully deployed on Server A and now when I run the client from Server B: I get an initial context fine, but I always end up with NoClassDefFound errors when attempting to grab the Home interface. Any suggestions? Regards, Todd
Re: JSP variable in nested Tags
I have a feeling that this is not orion-specific (websphere ie tomcat does this too) if you have any spaces between and % then you will encounter this problem. [EMAIL PROTECTED] 05/24/01 04:58am I have an interesting little problem. I am using the Jakarta input:textarea ... tags inside an iterate tag. One of the attributes of the input:textarea ... is name, which I am setting using name=%= myVar.getMyProp %. This works fine, until I put text in front of the %. If I do that, it sends the literal string instead of the value of the variable. Example 1 (Works): ejb:iterate id=orderItem type=OrderItem collection=%= col % input:textarea name=%= orderItem.getOrderItemID()% attributes=%= commentTable%/ /ejb:iterate Produces: textarea name=1001/textarea Example 2 (Fails): ejb:iterate id=orderItem type=OrderItem collection=%= col % input:textarea name=comment%= orderItem.getOrderItemID()% attributes=%= commentTable%/ /ejb:iterate Produces: textarea name=commentlt;% out.print(orderItem.getOrderItemID());%gt;/textarea I have looked at the JSP 1.1 specification, but couldn't find anything that said it should be processed one way or the other. I have a feeling that this is an Orion specific issue, but can't find out which way is correct to submit a bug report. Does anyone on the list have a resource to point me to on this issue? Thanks in advance for your help. OS: Win2k Ver: Orion 1.5.1 JDK: 1.3 - Ernie Phelps
RE: JSP variable in nested Tags
Scott, Thanks for the tip, but in this case I went back and ensured that there were no spaces between. Still have the same issue. - E -Original Message- From: SCOTT FARQUHAR [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 6:13 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: JSP variable in nested Tags I have a feeling that this is not orion-specific (websphere ie tomcat does this too) if you have any spaces between and % then you will encounter this problem. [EMAIL PROTECTED] 05/24/01 04:58am I have an interesting little problem. I am using the Jakarta input:textarea ... tags inside an iterate tag. One of the attributes of the input:textarea ... is name, which I am setting using name=%= myVar.getMyProp %. This works fine, until I put text in front of the %. If I do that, it sends the literal string instead of the value of the variable. Example 1 (Works): ejb:iterate id=orderItem type=OrderItem collection=%= col % input:textarea name=%= orderItem.getOrderItemID()% attributes=%= commentTable%/ /ejb:iterate Produces: textarea name=1001/textarea Example 2 (Fails): ejb:iterate id=orderItem type=OrderItem collection=%= col % input:textarea name=comment%= orderItem.getOrderItemID()% attributes=%= commentTable%/ /ejb:iterate Produces: textarea name=commentlt;% out.print(orderItem.getOrderItemID());%gt;/textarea I have looked at the JSP 1.1 specification, but couldn't find anything that said it should be processed one way or the other. I have a feeling that this is an Orion specific issue, but can't find out which way is correct to submit a bug report. Does anyone on the list have a resource to point me to on this issue? Thanks in advance for your help. OS: Win2k Ver: Orion 1.5.1 JDK: 1.3 - Ernie Phelps
Re:JSP variable in nested Tags
Ernie, I just had an idea. Why don't you put the whole string in the scriplet, so instead of input:textarea name=comment%= orderItem.getOrderItemID()% you'd have input:textarea name=%= comment + orderItem.getOrderItemID() % That way you just avoid the whole thing. Jeff. -- Jeff Hubbach Internet Developer New Media Designs, Inc. www.nmd.com
Re: Struts help?
Sorry, it was rushed when I sent the original message and forgot to include this information... Anyway, I'm using Orion 1.4.5 'out of the box' and struts 1.0-b2, also 'out of the box'. I'm getting two distinct error messages - one is that the jndi protocol is not recognized (due to struts looking for the struts DTD using a "jndi://"-based URL), and the second is that it 'Cannot find message resources under key org.apache.struts.action.MESSAGE'. Any help would be appreciated. Chad Stansbury - Original Message - From: Grama Bogdan To: '[EMAIL PROTECTED]' Sent: Thursday, May 24, 2001 12:32 AM Subject: RE: Struts help? What version of orion do you have? Bigdan. -Original Message-From: Chad Stansbury [mailto:[EMAIL PROTECTED]]Sent: Thursday, May 24, 2001 3:04 AMTo: Orion-InterestSubject: Struts help? Hello - I'm having a little trouble getting the struts-example application working... and before I spend a lot of time trying to do so, I'd like to know if anyone else has already expended the effort. Has anyone got some experience with Struts Orion? Thanks in Advance, Chad Stansbury
JSP can't use local classes - What am I overlooking?
In my application I am not able to use the local classes in my jsp. Whenever I put in: %@ page import=com.theseus.* % I get: Error parsing JSP page /m2/pagetwo.jsp Syntax error in source/pagetwo.jsp.java:5: Package com.theseus not found in import. import com.theseus.*; ^ 1 error I have compiled the classes and verified that they are in the build directory under WEB-INF/classes. Here's my application.xml application display-nameStatic Theseus Example/display-name descriptionStatic Theseus Example/description module web web-uristatic-example-web.war/web-uri context-rootstatic-example-web/context-root /web /module /application What am I leaving out? Thanks in advance, Joe __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Help wanted - Info about exclusive-write-access
Hello, This is a deployment question for entity beans. The database that we are working on can potentially be changed/updated outside the ejb container. After reading the documentation I found that we need to specify in the orion-ejb-jar.xml a flag exclusive-write-access=false in the entity-deployment ... section for that entity bean so that orion will do trips to the database everytime a bean property is accessed and reflect the correct state everytime. But strangely orion-ejb-jar.xml is a deployment file. It is created by orion from the .ear file that we give it as the application, and not a part of the .ear. I don't want to change the deployment files of orion to make my application work correctly! What do I need to specify in MY ejb-jar.xml in which I detail my entity beans so that orion will correctly deploy them with the flag set to false (it is true by default). Thank you very much in advance. Atul. -Original Message- From: Ernie Phelps [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 4:18 AM To: Orion-Interest Subject: RE: JSP variable in nested Tags Scott, Thanks for the tip, but in this case I went back and ensured that there were no spaces between. Still have the same issue. - E -Original Message- From: SCOTT FARQUHAR [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 6:13 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: JSP variable in nested Tags I have a feeling that this is not orion-specific (websphere ie tomcat does this too) if you have any spaces between and % then you will encounter this problem. [EMAIL PROTECTED] 05/24/01 04:58am I have an interesting little problem. I am using the Jakarta input:textarea ... tags inside an iterate tag. One of the attributes of the input:textarea ... is name, which I am setting using name=%= myVar.getMyProp %. This works fine, until I put text in front of the %. If I do that, it sends the literal string instead of the value of the variable. Example 1 (Works): ejb:iterate id=orderItem type=OrderItem collection=%= col % input:textarea name=%= orderItem.getOrderItemID()% attributes=%= commentTable%/ /ejb:iterate Produces: textarea name=1001/textarea Example 2 (Fails): ejb:iterate id=orderItem type=OrderItem collection=%= col % input:textarea name=comment%= orderItem.getOrderItemID()% attributes=%= commentTable%/ /ejb:iterate Produces: textarea name=commentlt;% out.print(orderItem.getOrderItemID());%gt;/textarea I have looked at the JSP 1.1 specification, but couldn't find anything that said it should be processed one way or the other. I have a feeling that this is an Orion specific issue, but can't find out which way is correct to submit a bug report. Does anyone on the list have a resource to point me to on this issue? Thanks in advance for your help. OS: Win2k Ver: Orion 1.5.1 JDK: 1.3 - Ernie Phelps
RE: JSP variable in nested Tags
Thanks to all for the suggestions. I have two work arounds, thanks to ideas from the list. However, I was looking to see if anyone could tell whether the specification dealt with how this should be handled, or if it was nebulous, or if it was specifically left up to the implementer to decide. I looked it over, but really didn't see anything. Thanks again for all the input and helpful suggestions. - Ernie -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jeff Hubbach Sent: Thursday, May 24, 2001 9:31 AM To: Orion-Interest Subject: Re:JSP variable in nested Tags Ernie, I just had an idea. Why don't you put the whole string in the scriplet, so instead of input:textarea name=comment%= orderItem.getOrderItemID()% you'd have input:textarea name=%= comment + orderItem.getOrderItemID() % That way you just avoid the whole thing. Jeff. -- Jeff Hubbach Internet Developer New Media Designs, Inc. www.nmd.com
RE: Struts help?
Struts doesn't work out of the box with Orion versions prior to 1.4.8. The message resources problem is that when re-implementing the ResouceBundle (for reasons nobody on the struts list could tell me), Struts used a method on the Orion classloader that was not implemented (getResourceAsStream). Run the autoupdate and Struts will work fine. You might have other problems, though (autoupdate versions are experimental). Or you might want to use the Maverick framework, which works well with JSP and is a lot simpler than Struts: http://mav.sourceforge.net Good luck, Jeff -Original Message- From: Chad Stansbury [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 6:43 AM To: Orion-Interest Subject: Re: Struts help? Sorry, it was rushed when I sent the original message and forgot to include this information... Anyway, I'm using Orion 1.4.5 'out of the box' and struts 1.0-b2, also 'out of the box'. I'm getting two distinct error messages - one is that the jndi protocol is not recognized (due to struts looking for the struts DTD using a jndi://-based URL), and the second is that it 'Cannot find message resources under key org.apache.struts.action.MESSAGE'. Any help would be appreciated. Chad Stansbury - Original Message - From: Grama Bogdan To: '[EMAIL PROTECTED]' Sent: Thursday, May 24, 2001 12:32 AM Subject: RE: Struts help? What version of orion do you have? Bigdan. -Original Message- From: Chad Stansbury [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 3:04 AM To: Orion-Interest Subject: Struts help? Hello - I'm having a little trouble getting the struts-example application working... and before I spend a lot of time trying to do so, I'd like to know if anyone else has already expended the effort. Has anyone got some experience with Struts Orion? Thanks in Advance, Chad Stansbury
RE: Help wanted - Info about exclusive-write-access
copy lyou modified orior-ejb-jar.xml file (or create your own) from the deployment directory to you development ejb META-INF directory. So now your ejb directory should look like this: META-INF | - ejb-jar.xml - orion-ejb-jar.xml remake your ejb jar. remake your war and ear files deploy as usual, but now the orion-ejb-jar.xml in the deployment will reflect your changes. BTW, you only have to put in your tag ... orion should do the rest. All of the j2ee deployment descriptors which are in the j2ee spec have orion-specific orion-j2ee descriptor.xml files which can be put in the same place as the j2ee specific. weblogic used to use dd files which also had to be in the ejb.jar file, but their latest version also uses orion's technique of xml deployment descriptors. I guess they steal from the best. ... oh yeah, remember to blow away your deploy directory, because orion will not overwrite a orion-specific xml file in the deployment directory, because most of us hacks just modify the automatically created stuff, and only package it up in the final release. regards, the elephantwalker -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kshatriya, Atul Sent: Thursday, May 24, 2001 9:15 AM To: Orion-Interest Subject: Help wanted - Info about exclusive-write-access Hello, This is a deployment question for entity beans. The database that we are working on can potentially be changed/updated outside the ejb container. After reading the documentation I found that we need to specify in the orion-ejb-jar.xml a flag exclusive-write-access=false in the entity-deployment ... section for that entity bean so that orion will do trips to the database everytime a bean property is accessed and reflect the correct state everytime. But strangely orion-ejb-jar.xml is a deployment file. It is created by orion from the .ear file that we give it as the application, and not a part of the .ear. I don't want to change the deployment files of orion to make my application work correctly! What do I need to specify in MY ejb-jar.xml in which I detail my entity beans so that orion will correctly deploy them with the flag set to false (it is true by default). Thank you very much in advance. Atul. -Original Message- From: Ernie Phelps [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 4:18 AM To: Orion-Interest Subject: RE: JSP variable in nested Tags Scott, Thanks for the tip, but in this case I went back and ensured that there were no spaces between. Still have the same issue. - E -Original Message- From: SCOTT FARQUHAR [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 6:13 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: JSP variable in nested Tags I have a feeling that this is not orion-specific (websphere ie tomcat does this too) if you have any spaces between and % then you will encounter this problem. [EMAIL PROTECTED] 05/24/01 04:58am I have an interesting little problem. I am using the Jakarta input:textarea ... tags inside an iterate tag. One of the attributes of the input:textarea ... is name, which I am setting using name=%= myVar.getMyProp %. This works fine, until I put text in front of the %. If I do that, it sends the literal string instead of the value of the variable. Example 1 (Works): ejb:iterate id=orderItem type=OrderItem collection=%= col % input:textarea name=%= orderItem.getOrderItemID()% attributes=%= commentTable%/ /ejb:iterate Produces: textarea name=1001/textarea Example 2 (Fails): ejb:iterate id=orderItem type=OrderItem collection=%= col % input:textarea name=comment%= orderItem.getOrderItemID()% attributes=%= commentTable%/ /ejb:iterate Produces: textarea name=commentlt;% out.print(orderItem.getOrderItemID());%gt;/textarea I have looked at the JSP 1.1 specification, but couldn't find anything that said it should be processed one way or the other. I have a feeling that this is an Orion specific issue, but can't find out which way is correct to submit a bug report. Does anyone on the list have a resource to point me to on this issue? Thanks in advance for your help. OS: Win2k Ver: Orion 1.5.1 JDK: 1.3 - Ernie Phelps
Re: Struts help?
Thanks Sean, the upgrade to 1.5.1 (from 1.4.5) does in fact give me 'out of the box' struts capability. Chad Stansbury - Original Message - From: Sean Hanley To: '[EMAIL PROTECTED]' Sent: Thursday, May 24, 2001 10:16 AM Subject: RE: Struts help? Chad, Upgrade Orionto the latest version (1.5.1?) - Struts should work 'out of the box' with this. Instructions on how to upgrade can be found by searching the mailing list archive. Sean. -Original Message-From: Chad Stansbury [mailto:]Sent: 24 May 2001 14:43To: Orion-InterestSubject: Re: Struts help? Sorry, it was rushed when I sent the original message and forgot to include this information... Anyway, I'm using Orion 1.4.5 'out of the box' and struts 1.0-b2, also 'out of the box'. I'm getting two distinct error messages - one is that the jndi protocol is not recognized (due to struts looking for the struts DTD using a "jndi://"-based URL), and the second is that it 'Cannot find message resources under key org.apache.struts.action.MESSAGE'. Any help would be appreciated. Chad Stansbury - Original Message - From: Grama Bogdan To: '[EMAIL PROTECTED]' Sent: Thursday, May 24, 2001 12:32 AM Subject: RE: Struts help? What version of orion do you have? Bigdan. -Original Message-From: Chad Stansbury [mailto:[EMAIL PROTECTED]]Sent: Thursday, May 24, 2001 3:04 AMTo: Orion-InterestSubject: Struts help? Hello - I'm having a little trouble getting the struts-example application working... and before I spend a lot of time trying to do so, I'd like to know if anyone else has already expended the effort. Has anyone got some experience with Struts Orion? Thanks in Advance, Chad Stansbury
Orion hangs when shutdown on SuSE Linux 7.1
Hi, When I try to -shutdown or -shutdown force, it hangs on SuSE Linux 7.1. But it works fine on SuSE Linux 7.0. Anyone please can help. Ami __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
RE: JSP can't use local classes - What am I overlooking?
I believe that you should have your package (jar) in the orion/lib directory, from your message it seems that you have it in WEB-INF/classes. That directory is usually for servlets. Eric. -Original Message- From: Joe Fair [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 7:57 AM To: Orion-Interest Subject: JSP can't use local classes - What am I overlooking? In my application I am not able to use the local classes in my jsp. Whenever I put in: %@ page import=com.theseus.* % I get: Error parsing JSP page /m2/pagetwo.jsp Syntax error in source/pagetwo.jsp.java:5: Package com.theseus not found in import. import com.theseus.*; ^ 1 error I have compiled the classes and verified that they are in the build directory under WEB-INF/classes. Here's my application.xml application display-nameStatic Theseus Example/display-name descriptionStatic Theseus Example/description module web web-uristatic-example-web.war/web-uri context-rootstatic-example-web/context-root /web /module /application What am I leaving out? Thanks in advance, Joe __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
How do you make JDBC and EJB in same Transaction?
I have the following in the same method inside a session bean 1 - Get a datasource using the EJB Datasource lookup 2 - Get a connection using this datasource 3 - Write a JDBC query to delete some rows 4 - Call the remove method in an Entity bean What is happening is that the JDBC call is not using the same transaction as the Entity bean and this is causing a deadlock. The Entity bean call is waiting on the JDBC statements to be commited. But these statements will not be commited until the entity bean finishes the delete. I thought that since both session bean and entity bean are declared as REQUIRE for transaction in the ejb-jar.xml that they would automatically be inside the same transaction. Is this a bug or is there something that I am missing? Eduardo
RE: Help wanted - Info about exclusive-write-access
Hi Atul, I think this feature is application server dependent and not a part of the J2EE specs. Please correct me if I am wrong. I know that Orion and WebLogic provide this option to specify that it has exclusive access to the database (table) for performance improvements. Other app servers might also have something similar. Since this is a value-add this is very specific to the app server being used and appears only in the app server specific deployment file. Hope this helps Rajesh -Original Message- From: Kshatriya, Atul [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 9:15 AM To: Orion-Interest Subject: Help wanted - Info about exclusive-write-access Hello, This is a deployment question for entity beans. The database that we are working on can potentially be changed/updated outside the ejb container. After reading the documentation I found that we need to specify in the orion-ejb-jar.xml a flag exclusive-write-access=false in the entity-deployment ... section for that entity bean so that orion will do trips to the database everytime a bean property is accessed and reflect the correct state everytime. But strangely orion-ejb-jar.xml is a deployment file. It is created by orion from the .ear file that we give it as the application, and not a part of the .ear. I don't want to change the deployment files of orion to make my application work correctly! What do I need to specify in MY ejb-jar.xml in which I detail my entity beans so that orion will correctly deploy them with the flag set to false (it is true by default). Thank you very much in advance. Atul. -Original Message- From: Ernie Phelps [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 4:18 AM To: Orion-Interest Subject: RE: JSP variable in nested Tags Scott, Thanks for the tip, but in this case I went back and ensured that there were no spaces between. Still have the same issue. - E -Original Message- From: SCOTT FARQUHAR [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 6:13 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: JSP variable in nested Tags I have a feeling that this is not orion-specific (websphere ie tomcat does this too) if you have any spaces between and % then you will encounter this problem. [EMAIL PROTECTED] 05/24/01 04:58am I have an interesting little problem. I am using the Jakarta input:textarea ... tags inside an iterate tag. One of the attributes of the input:textarea ... is name, which I am setting using name=%= myVar.getMyProp %. This works fine, until I put text in front of the %. If I do that, it sends the literal string instead of the value of the variable. Example 1 (Works): ejb:iterate id=orderItem type=OrderItem collection=%= col % input:textarea name=%= orderItem.getOrderItemID()% attributes=%= commentTable%/ /ejb:iterate Produces: textarea name=1001/textarea Example 2 (Fails): ejb:iterate id=orderItem type=OrderItem collection=%= col % input:textarea name=comment%= orderItem.getOrderItemID()% attributes=%= commentTable%/ /ejb:iterate Produces: textarea name=commentlt;% out.print(orderItem.getOrderItemID());%gt;/textarea I have looked at the JSP 1.1 specification, but couldn't find anything that said it should be processed one way or the other. I have a feeling that this is an Orion specific issue, but can't find out which way is correct to submit a bug report. Does anyone on the list have a resource to point me to on this issue? Thanks in advance for your help. OS: Win2k Ver: Orion 1.5.1 JDK: 1.3 - Ernie Phelps
Notification of Orion Initialization complete...
I need to launch Orion, wait for the Orion initialization to complete, and then launch a browser window. Does anyone have experience with something similar or ideas about how to do this? Thanks, Andrew
RE: JSP can't use local classes - What am I overlooking?
I believe that you should have your package (jar) in the orion/lib directory, from your message it seems that you have it in WEB-INF/classes. That directory is usually for servlets. Eric. Just to point out that per Official Sun Servlets 2.2 / Jsp 1.1 Specifications, all jsp and servlets inside a context wiull use the WEB-INF/classes directory and all the jar (not zip) files inside the WEB-INF/lib directory in their classpath. Best Regards, Kazuma --- I'd rather listen to Newton than to Mundie [Microsoft Senior VP]. He may have been dead for almost three hundred years, but despite that he stinks up the room less. (Linus Torwald) Alex 'Kazuma' Garbagnati, http://www.kazuma.net/
Can't start Orion 1.5.1
Hello, I downloaded Orion 1.4.5 and it works fine out of the box. Then I autoupdated it to 1.5.1 but it throws the following exception. I tried both updating the configuration files (answering all 'y') and not doing it (answering all 'n'). Also tried with Sun's SDK 1.2.2 and IBM's 1.3.0. Any suggestion ? Thanks for your attention. Marcello java.lang.NoSuchMethodError: org.xml.sax.Attributes: method getQName(I)Ljava/lang/String; not found at org.apache.crimson.tree.AttributeSet.init(AttributeSet.java:139) at org.apache.crimson.tree.XmlDocumentBuilder.startElement(XmlDocumentBuilder.java:463) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1449) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499) at org.apache.crimson.parser.Parser2.parse(Parser2.java:304) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433) at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:179) at com.evermind._ug.getJavaxDocument(Unknown Source) at com.evermind.xml.XMLUtils.getDocument(Unknown Source) at com.evermind.xml.XMLConfig._qh(Unknown Source) at com.evermind.xml.XMLConfig._qh(Unknown Source) at com.evermind._iy.run(Unknown Source) at java.lang.Thread.run(Thread.java:498) at com.evermind._ip.run(Unknown Source)
RE: Can't start Orion 1.5.1
Ciao Marcello :) It appears that you still have the old JAXP1.0 XML processor in the classpath. Check program files (win32) or whatever on linux for /Jaxp1.0.1. In particular, the old parser.jar and jaxp.jar. Once you take those out of the classpath, orion should start fine. If you're actually parsing XML in your web app, then take a look at what has changed at: http://java.sun.com/xml/jaxp-1.1/readme.html Hope this helps. -arnox -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Thursday, May 24, 2001 5:20 PM To: Orion-Interest Subject: Can't start Orion 1.5.1 Hello, I downloaded Orion 1.4.5 and it works fine out of the box. Then I autoupdated it to 1.5.1 but it throws the following exception. I tried both updating the configuration files (answering all 'y') and not doing it (answering all 'n'). Also tried with Sun's SDK 1.2.2 and IBM's 1.3.0. Any suggestion ? Thanks for your attention. Marcello java.lang.NoSuchMethodError: org.xml.sax.Attributes: method getQName(I)Ljava/lang/String; not found at org.apache.crimson.tree.AttributeSet.init(AttributeSet.java:139) at org.apache.crimson.tree.XmlDocumentBuilder.startElement(XmlDocumentBuilder.j ava:463) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1449) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499) at org.apache.crimson.parser.Parser2.parse(Parser2.java:304) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433) at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:1 79) at com.evermind._ug.getJavaxDocument(Unknown Source) at com.evermind.xml.XMLUtils.getDocument(Unknown Source) at com.evermind.xml.XMLConfig._qh(Unknown Source) at com.evermind.xml.XMLConfig._qh(Unknown Source) at com.evermind._iy.run(Unknown Source) at java.lang.Thread.run(Thread.java:498) at com.evermind._ip.run(Unknown Source)
Re: StackOverflowError
Hi Tim, I had this problem a while back and I ended up tracing it back to the java crypto extensions. Are you getting a whole bunch of errors from your VM? What is your session bean doing? On 24 May 2001 01:18:12 -0600, Tim McCune wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I finally got Orion to deploy my app tonight, but my client throws a StackOverflowError the first time I try to create a session bean. Exception in thread main java.lang.StackOverflowError at com.evermind.server.rmi.ba.invokeMethod(JAX) at com.evermind.server.rmi.a1.invoke(JAX) at com.evermind.server.rmi.a2.invoke(JAX) at __Proxy1.create(Unknown Source) This happens the first time I try it after starting Orion. Subsequent runs give a NoClassDefFoundError instead until I restart Orion: Exception in thread main java.lang.NoClassDefFoundError at com.evermind.server.rmi.ba.invokeMethod(JAX) at com.evermind.server.rmi.a1.invoke(JAX) at com.evermind.server.rmi.a2.invoke(JAX) at __Proxy1.create(Unknown Source) Any suggestions would be appreciated. Thanks. -BEGIN PGP SIGNATURE- Version: PGPfreeware 6.5.3 for non-commercial use http://www.pgp.com iQA/AwUBOwy1YtUPOr8a7vy5EQLulwCgsMBtTm68RAFb7VyGekR/7IQUeLQAn2cS cwL0zbBiWzaXhujRrP6hRrlQ =WlHP -END PGP SIGNATURE- -- Adam Cassar Technical Development Manager ___ NetRegistry http://www.netregistry.au.com Tel: +61 2 9641 8609 | Fax: +61 2 9699 6088 PO Box 270 Broadway NSW 2007 Australia
JSP Compilation error.
Title: JSP Compilation error. Hello, I'm trying to ad some XML functions to a .JSP file and I believe it is causing a compilation error. The problem is - I'm not sure where the error is - the compile seems to fail w/o giving any indication of what is wrong. Is there a log to check, or a parameter to set to enable this output? I already have development=true set in global-web-application.xml. Any thoughts? Thanks.
Re: How do you make JDBC and EJB in same Transaction?
Hi, I have the following in the same method inside a session bean 1 - Get a datasource using the EJB Datasource lookup This is the correct way to do it. Are your ejb's using the EJB Datasource lookup? Check in you orion-ejb.xml What is happening is that the JDBC call is not using the same transaction as the Entity bean and this is causing a deadlock. The Entity bean call is waiting on the JDBC statements to be commited. But these statements will not be commited until the entity bean finishes the delete. I do something similar. I have an session bean that 'Requires' a transaction, and my EJB's are set to 'Supports'. Within that transaction, I do an insert using jdbc, I stuff around with some entity beans, and then I stuff around with the jdbc connection some more. What's even cooler is in another method I process some credit cards, and if this fails we throw the appropriate exception. Effectively the whole transaction gets rolled back. I thought that since both session bean and entity bean are declared as REQUIRE for transaction in the ejb-jar.xml that they would automatically be inside the same transaction. That's correct, so it should work. Just double check that your EJB's and the JDBC are using the same datasource. Is this a bug or is there something that I am missing? Good luck :) Eduardo -- Adam Cassar Technical Development Manager ___ NetRegistry http://www.netregistry.au.com Tel: +61 2 9641 8609 | Fax: +61 2 9699 6088 PO Box 270 Broadway NSW 2007 Australia
RE: HELP! 1.4.5 and JMS
Hello, Does anyone knows that what Java tools, libraries are currently supporting XML schema and XLL. Is there resources for me to look up for using SOAP using Java? Thanks alot. Regards, Yeoman -Original Message-From: Vidur Dhanda [mailto:[EMAIL PROTECTED]]Sent: Thursday, May 17, 2001 10:16 AMTo: Orion-InterestCc: 'Orion-Interest'Subject: Re: HELP! 1.4.5 and JMSHi Kesav, Thanks for the tip. I tried that with both 1.4.5 and 1.4.8. After removing the connection factory line, in 1.4.5, the client hangs on TopicConnection.createSubscriber(). If I give the createTopicConnection a username and password, then the server throws a NPE and the client hangs at createTopicConnection(). The same problem persists in 1.4.8. I'm sure I'm doing something really stupid. However, I have no idea how to solve it. I'm attaching some code in the hope that someone can help me out of this mess. I've tried it against 1.4.5 and 1.4.8. And I am really desperate! Thanks, Vidur Kesav Kumar wrote: Just remove the connectionfactory line from your jms.xml. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] http://www.voquette.com Voquette...Delivering Sound Information -Original Message- From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 11:31 AM To: Orion-Interest Subject: HELP! 1.4.5 and JMS Please help! I broke something in my code and can't figure it out. On the client, I'm consistently getting: java.lang.NullPointerException at java.io.DataOutputStream.writeUTF(DataOutputStream.java:329) at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306) at com.evermind.server.jms.cj.init(JAX) at com.evermind.server.jms.b8.start(JAX) at com.epistemic.km.server.NotificationBase.getConnection(NotificationBase.java:89) at com.epistemic.km.server.NotificationBase.getSession(NotificationBase.java:101) at com.epistemic.km.server.NotificationBase.getSubscriber(NotificationBase.java:44) Auto-started clients can send/receive messages without trouble. getConnection() calls createTopicConnection() and then start(). If I use, createConnection (usr, pwd), then the system hangs. In jms.xml, I have: jms-server host="192.168.10.2" port="9127" topic-connection-factory host="192.168.10.2" location="jms/notificationFactory" port="9127" / topic name="DWItem Notification" location="jms/dwItemNotification" /topic Any ideas? I'm on version 1.4.5. 1.4.8 has a regression on bug 188 that is a show stopper for us. And in fact, this code worked uptil yesterday when I made changes to try and get 1.4.8 to work. TIA, Vidur PS. If possible, please also cc me directly. I'm really desperate. -- Vidur Dhanda Active Solutions tel: 617/566-1252 cell: 617/821-7115 [EMAIL PROTECTED] www.active-solutions-inc.com -- Vidur Dhanda Active Solutions tel: 617/566-1252 cell: 617/821-7115 [EMAIL PROTECTED] www.active-solutions-inc.com
RE: StackOverflowError
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm not getting any other error messages from either Orion or my client JVM, although the CPU is chugging like crazy for a bit before the StackOverflowError. My ejbCreate method is one line long, basically public void ejbCreate(String s) { this.s = s; } Nothing fancy, and no JCE involved. -Original Message- From: Adam Cassar [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 4:23 PM To: Orion-Interest Subject: Re: StackOverflowError Hi Tim, I had this problem a while back and I ended up tracing it back to the java crypto extensions. Are you getting a whole bunch of errors from your VM? What is your session bean doing? On 24 May 2001 01:18:12 -0600, Tim McCune wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I finally got Orion to deploy my app tonight, but my client throws a StackOverflowError the first time I try to create a session bean. Exception in thread main java.lang.StackOverflowError at com.evermind.server.rmi.ba.invokeMethod(JAX) at com.evermind.server.rmi.a1.invoke(JAX) at com.evermind.server.rmi.a2.invoke(JAX) at __Proxy1.create(Unknown Source) This happens the first time I try it after starting Orion. Subsequent runs give a NoClassDefFoundError instead until I restart Orion: Exception in thread main java.lang.NoClassDefFoundError at com.evermind.server.rmi.ba.invokeMethod(JAX) at com.evermind.server.rmi.a1.invoke(JAX) at com.evermind.server.rmi.a2.invoke(JAX) at __Proxy1.create(Unknown Source) Any suggestions would be appreciated. Thanks. -BEGIN PGP SIGNATURE- Version: PGPfreeware 6.5.3 for non-commercial use http://www.pgp.com iQA/AwUBOwy1YtUPOr8a7vy5EQLulwCgsMBtTm68RAFb7VyGekR/7IQUeLQAn2cS cwL0zbBiWzaXhujRrP6hRrlQ =WlHP -END PGP SIGNATURE- -- Adam Cassar Technical Development Manager ___ NetRegistry http://www.netregistry.au.com Tel: +61 2 9641 8609 | Fax: +61 2 9699 6088 PO Box 270 Broadway NSW 2007 Australia -BEGIN PGP SIGNATURE- Version: PGPfreeware 6.5.3 for non-commercial use http://www.pgp.com iQA/AwUBOw3MMdUPOr8a7vy5EQL80QCeKnwmSR4hrjLD8XyVdMwN+m6b3m4AoJOr WRxdqdco+4lDPHabv7v6oKzI =H23a -END PGP SIGNATURE-
Rephrasing persistence question... HELP
Would anybody dare to guess (or knows!) what criteria is used by Orion to determine what objects in a JSP page are saved when application shuts down? I have a few different objects in a JSP page. They all implement Serializable, but serialization is called only on one type. Why would it not get called on all of them? Consider these two objects both of which would implement Serializable: SomeClass A=new SomeClass (); SomeOtherClassB=new SomeOtherClass(); When you restart/shutdown the app, JSP page will call serialization on object B, but not A. Is it me, or is there a logical explanation for this? Thanks, -arnox P.S. This used to work in version 1.4.5 (all would get saved), but works as described in 1.5.1.
Re: help jsession problem -urgent
Kesav, Do you mean to have the URL: http://localhost/vms/servlet/Logout?fileName=blah;JSESSIONID=x ?? It looks like you have a semicolon where an ampersand should be: http://localhost/vms/servlet/Logout?fileName=blahJSESSIONID=x The correct method of separating multiple URL parameters is with an ampersand, not a semicolon as you sent. Jeff Hubbach On Thu, 24 May 2001 19:16:14 -0700 Kesav Kumar [EMAIL PROTECTED] wrote: I am using a URL http://localhost/vms/servlet/Logout?fileName=blah;JSESSIONID=x In my servlet I am accessing the fileName by request.getParameter(fileName) I am getting the following value 1;JSESSIONID=x Why doesn't orion strips out the jessionid from the name value paris of the request. It seems it is happening in the new version only. I am using 1.5.1 version. I haven't seen this problem in the previous versions. Is there some thing I am missing or is it a bug? Thanks. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] http://www.voquette.com Voquette...Delivering Sound Information -- Jeff Hubbach [EMAIL PROTECTED]
RE: HELP! 1.4.5 and JMS
Yes...drop SOAP and use XML-RPC. Faster and lighter and NOT a Microsoft solution. www.xml-rpc.org also Brett McGlaughlin's book Java and XML. Regards, the elephantwalker -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Su, YiSent: Thursday, May 24, 2001 8:01 PMTo: Orion-InterestSubject: RE: HELP! 1.4.5 and JMS Hello, Does anyone knows that what Java tools, libraries are currently supporting XML schema and XLL. Is there resources for me to look up for using SOAP using Java? Thanks alot. Regards, Yeoman -Original Message-From: Vidur Dhanda [mailto:[EMAIL PROTECTED]]Sent: Thursday, May 17, 2001 10:16 AMTo: Orion-InterestCc: 'Orion-Interest'Subject: Re: HELP! 1.4.5 and JMSHi Kesav, Thanks for the tip. I tried that with both 1.4.5 and 1.4.8. After removing the connection factory line, in 1.4.5, the client hangs on TopicConnection.createSubscriber(). If I give the createTopicConnection a username and password, then the server throws a NPE and the client hangs at createTopicConnection(). The same problem persists in 1.4.8. I'm sure I'm doing something really stupid. However, I have no idea how to solve it. I'm attaching some code in the hope that someone can help me out of this mess. I've tried it against 1.4.5 and 1.4.8. And I am really desperate! Thanks, Vidur Kesav Kumar wrote: Just remove the connectionfactory line from your jms.xml. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] http://www.voquette.com Voquette...Delivering Sound Information -Original Message- From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 11:31 AM To: Orion-Interest Subject: HELP! 1.4.5 and JMS Please help! I broke something in my code and can't figure it out. On the client, I'm consistently getting: java.lang.NullPointerException at java.io.DataOutputStream.writeUTF(DataOutputStream.java:329) at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306) at com.evermind.server.jms.cj.init(JAX) at com.evermind.server.jms.b8.start(JAX) at com.epistemic.km.server.NotificationBase.getConnection(NotificationBase.java:89) at com.epistemic.km.server.NotificationBase.getSession(NotificationBase.java:101) at com.epistemic.km.server.NotificationBase.getSubscriber(NotificationBase.java:44) Auto-started clients can send/receive messages without trouble. getConnection() calls createTopicConnection() and then start(). If I use, createConnection (usr, pwd), then the system hangs. In jms.xml, I have: jms-server host="192.168.10.2" port="9127" topic-connection-factory host="192.168.10.2" location="jms/notificationFactory" port="9127" / topic name="DWItem Notification" location="jms/dwItemNotification" /topic Any ideas? I'm on version 1.4.5. 1.4.8 has a regression on bug 188 that is a show stopper for us. And in fact, this code worked uptil yesterday when I made changes to try and get 1.4.8 to work. TIA, Vidur PS. If possible, please also cc me directly. I'm really desperate. -- Vidur Dhanda Active Solutions tel: 617/566-1252 cell: 617/821-7115 [EMAIL PROTECTED] www.active-solutions-inc.com -- Vidur Dhanda Active Solutions tel: 617/566-1252 cell: 617/821-7115 [EMAIL PROTECTED] www.active-solutions-inc.com
RE: StackOverflowError
Which JVM and Orion version are you using? Definately wierd, good luck :) On 24 May 2001 21:07:48 -0600, Tim McCune wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm not getting any other error messages from either Orion or my client JVM, although the CPU is chugging like crazy for a bit before the StackOverflowError. My ejbCreate method is one line long, basically public void ejbCreate(String s) { this.s = s; } Nothing fancy, and no JCE involved. -Original Message- From: Adam Cassar [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 4:23 PM To: Orion-Interest Subject: Re: StackOverflowError Hi Tim, I had this problem a while back and I ended up tracing it back to the java crypto extensions. Are you getting a whole bunch of errors from your VM? What is your session bean doing? On 24 May 2001 01:18:12 -0600, Tim McCune wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I finally got Orion to deploy my app tonight, but my client throws a StackOverflowError the first time I try to create a session bean. Exception in thread main java.lang.StackOverflowError at com.evermind.server.rmi.ba.invokeMethod(JAX) at com.evermind.server.rmi.a1.invoke(JAX) at com.evermind.server.rmi.a2.invoke(JAX) at __Proxy1.create(Unknown Source) This happens the first time I try it after starting Orion. Subsequent runs give a NoClassDefFoundError instead until I restart Orion: Exception in thread main java.lang.NoClassDefFoundError at com.evermind.server.rmi.ba.invokeMethod(JAX) at com.evermind.server.rmi.a1.invoke(JAX) at com.evermind.server.rmi.a2.invoke(JAX) at __Proxy1.create(Unknown Source) Any suggestions would be appreciated. Thanks. -BEGIN PGP SIGNATURE- Version: PGPfreeware 6.5.3 for non-commercial use http://www.pgp.com iQA/AwUBOwy1YtUPOr8a7vy5EQLulwCgsMBtTm68RAFb7VyGekR/7IQUeLQAn2cS cwL0zbBiWzaXhujRrP6hRrlQ =WlHP -END PGP SIGNATURE- -- Adam Cassar Technical Development Manager ___ NetRegistry http://www.netregistry.au.com Tel: +61 2 9641 8609 | Fax: +61 2 9699 6088 PO Box 270 Broadway NSW 2007 Australia -BEGIN PGP SIGNATURE- Version: PGPfreeware 6.5.3 for non-commercial use http://www.pgp.com iQA/AwUBOw3MMdUPOr8a7vy5EQL80QCeKnwmSR4hrjLD8XyVdMwN+m6b3m4AoJOr WRxdqdco+4lDPHabv7v6oKzI =H23a -END PGP SIGNATURE- -- Adam Cassar Technical Development Manager ___ NetRegistry http://www.netregistry.au.com Tel: +61 2 9641 8609 | Fax: +61 2 9699 6088 PO Box 270 Broadway NSW 2007 Australia
Re: HELP! 1.4.5 and JMS
xerces gives initial support for xml schema. You can use apache SOAP or axis for all SOAP access in java. - Original Message - From: Su, Yi To: Orion-Interest Sent: Thursday, May 24, 2001 8:01 PM Subject: RE: HELP! 1.4.5 and JMS Hello, Does anyone knows that what Java tools, libraries are currently supporting XML schema and XLL. Is there resources for me to look up for using SOAP using Java? Thanks alot. Regards, Yeoman -Original Message-From: Vidur Dhanda [mailto:[EMAIL PROTECTED]]Sent: Thursday, May 17, 2001 10:16 AMTo: Orion-InterestCc: 'Orion-Interest'Subject: Re: HELP! 1.4.5 and JMSHi Kesav, Thanks for the tip. I tried that with both 1.4.5 and 1.4.8. After removing the connection factory line, in 1.4.5, the client hangs on TopicConnection.createSubscriber(). If I give the createTopicConnection a username and password, then the server throws a NPE and the client hangs at createTopicConnection(). The same problem persists in 1.4.8. I'm sure I'm doing something really stupid. However, I have no idea how to solve it. I'm attaching some code in the hope that someone can help me out of this mess. I've tried it against 1.4.5 and 1.4.8. And I am really desperate! Thanks, Vidur Kesav Kumar wrote: Just remove the connectionfactory line from your jms.xml. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] http://www.voquette.com Voquette...Delivering Sound Information -Original Message- From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 11:31 AM To: Orion-Interest Subject: HELP! 1.4.5 and JMS Please help! I broke something in my code and can't figure it out. On the client, I'm consistently getting: java.lang.NullPointerException at java.io.DataOutputStream.writeUTF(DataOutputStream.java:329) at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306) at com.evermind.server.jms.cj.init(JAX) at com.evermind.server.jms.b8.start(JAX) at com.epistemic.km.server.NotificationBase.getConnection(NotificationBase.java:89) at com.epistemic.km.server.NotificationBase.getSession(NotificationBase.java:101) at com.epistemic.km.server.NotificationBase.getSubscriber(NotificationBase.java:44) Auto-started clients can send/receive messages without trouble. getConnection() calls createTopicConnection() and then start(). If I use, createConnection (usr, pwd), then the system hangs. In jms.xml, I have: jms-server host="192.168.10.2" port="9127" topic-connection-factory host="192.168.10.2" location="jms/notificationFactory" port="9127" / topic name="DWItem Notification" location="jms/dwItemNotification" /topic Any ideas? I'm on version 1.4.5. 1.4.8 has a regression on bug 188 that is a show stopper for us. And in fact, this code worked uptil yesterday when I made changes to try and get 1.4.8 to work. TIA, Vidur PS. If possible, please also cc me directly. I'm really desperate. -- Vidur Dhanda Active Solutions tel: 617/566-1252 cell: 617/821-7115 [EMAIL PROTECTED] www.active-solutions-inc.com -- Vidur Dhanda Active Solutions tel: 617/566-1252 cell: 617/821-7115 [EMAIL PROTECTED] www.active-solutions-inc.com
Re: HELP! 1.4.5 and JMS
Checkout http://www.soapware.org/directory/4/implementations. The url pretty much describes what you will find. As for XML Schema and XLL. W3C's site actually lists some useful links. http://www.w3.org/XML/Schema http://www.w3.org/XML/Linking Here are some other XLL/XSD links. http://www.oasis-open.org/cover/xll.html#software http://www.w3.org/XML/2000/09/LinkingImplementations.html http://sourceforge.net/projects/xmlconf/ I hope that helps, skot - Original Message - From: Su, Yi To: Orion-Interest Sent: Thursday, May 24, 2001 8:01 PM Subject: RE: HELP! 1.4.5 and JMS Hello, Does anyone knows that what Java tools, libraries are currently supporting XML schema and XLL. Is there resources for me to look up for using SOAP using Java?
XML Schema
Hi, the elephantwalker, Thank you for your suggestion. Could you also enlight me what Java packages available supporting XML Schema and XLL? Regards, Su Yi -Original Message-From: elephantwalker [mailto:[EMAIL PROTECTED]]Sent: Friday, May 25, 2001 12:54 PMTo: Orion-InterestSubject: RE: HELP! 1.4.5 and JMS Yes...drop SOAP and use XML-RPC. Faster and lighter and NOT a Microsoft solution. www.xml-rpc.org also Brett McGlaughlin's book Java and XML. Regards, the elephantwalker -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Su, YiSent: Thursday, May 24, 2001 8:01 PMTo: Orion-InterestSubject: RE: HELP! 1.4.5 and JMS Hello, Does anyone knows that what Java tools, libraries are currently supporting XML schema and XLL. Is there resources for me to look up for using SOAP using Java? Thanks alot. Regards, Yeoman -Original Message-From: Vidur Dhanda [mailto:[EMAIL PROTECTED]]Sent: Thursday, May 17, 2001 10:16 AMTo: Orion-InterestCc: 'Orion-Interest'Subject: Re: HELP! 1.4.5 and JMSHi Kesav, Thanks for the tip. I tried that with both 1.4.5 and 1.4.8. After removing the connection factory line, in 1.4.5, the client hangs on TopicConnection.createSubscriber(). If I give the createTopicConnection a username and password, then the server throws a NPE and the client hangs at createTopicConnection(). The same problem persists in 1.4.8. I'm sure I'm doing something really stupid. However, I have no idea how to solve it. I'm attaching some code in the hope that someone can help me out of this mess. I've tried it against 1.4.5 and 1.4.8. And I am really desperate! Thanks, Vidur Kesav Kumar wrote: Just remove the connectionfactory line from your jms.xml. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] http://www.voquette.com Voquette...Delivering Sound Information -Original Message- From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 11:31 AM To: Orion-Interest Subject: HELP! 1.4.5 and JMS Please help! I broke something in my code and can't figure it out. On the client, I'm consistently getting: java.lang.NullPointerException at java.io.DataOutputStream.writeUTF(DataOutputStream.java:329) at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306) at com.evermind.server.jms.cj.init(JAX) at com.evermind.server.jms.b8.start(JAX) at com.epistemic.km.server.NotificationBase.getConnection(NotificationBase.java:89) at com.epistemic.km.server.NotificationBase.getSession(NotificationBase.java:101) at com.epistemic.km.server.NotificationBase.getSubscriber(NotificationBase.java:44) Auto-started clients can send/receive messages without trouble. getConnection() calls createTopicConnection() and then start(). If I use, createConnection (usr, pwd), then the system hangs. In jms.xml, I have: jms-server host="192.168.10.2" port="9127" topic-connection-factory host="192.168.10.2" location="jms/notificationFactory" port="9127" / topic name="DWItem Notification" location="jms/dwItemNotification" /topic Any ideas? I'm on version 1.4.5. 1.4.8 has a regression on bug 188 that is a show stopper for us. And in fact, this code worked uptil yesterday when I made changes to try and get 1.4.8 to work. TIA, Vidur PS. If possible, please also cc me directly. I'm really desperate. -- Vidur Dhanda Active Solutions tel: 617/566-1252 cell: 617/821-7115 [EMAIL PROTECTED] www.active-solutions-inc.com -- Vidur Dhanda Active Solutions tel: 617/566-1252 cell: 617/821-7115 [EMAIL PROTECTED] www.active-solutions-inc.com