• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

This Weeks Giveaway

 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Mindy Benoist:
Sorry, I forgot to say the "little bugger" is: ResourceAllocationException.
com.ibm.ejs.cm.portability.ResourceAllocationException


Well, the Javadoc for that exception has the following:
A ResourceAllocationException can be thrown by an application server or resource adapter to indicate any failure to allocate system resources (example: threads, physical connections). An example is error condition when an upper bound is reached on the maximum number of physical connections that can be managed by an application server specific connection pool.
So, my guess is that maybe you're sometimes forgetting to closeb a database connection when you're finished? The odd thing is that getConnection() doesn't throw this exception, nor does anything else I can find... Could you possibly post a stack trace from the log?
Kyle Brown

------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sure, here is the stack trace:
**********************************
[Tue Sep 18 15:30:15 CDT 2001] Exception message : null
Stack Trace :
com.ibm.ejs.cm.portability.ResourceAllocationException
at java.lang.Throwable.<init>(Throwable.java:84)
at java.lang.Exception.<init>(Exception.java:35)
at java.sql.SQLException.<init>(SQLException.java:100)
at com.ibm.ejs.cm.portability.PortableSQLException.<init>(PortableSQLException.java:34)
at com.ibm.ejs.cm.portability.ResourceAllocationException.<init>(ResourceAllocationException.java:17)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java(Compiled Code))
at com.ibm.ejs.cm.portability.PortabilityLayerImpl.translateException(PortabilityLayerImpl.java:109)
at com.ibm.ejs.cm.pool.ConnectO.translateException(ConnectO.java:851)
at com.ibm.ejs.cm.proxy.ConnectionProxy.translateException(ConnectionProxy.java:84)
at com.ibm.ejs.cm.proxy.PreparedStatementProxy.translateException(PreparedStatementProxy.java:218)
at com.ibm.ejs.cm.proxy.PreparedStatementProxy.executeQuery(PreparedStatementProxy.java:106)
at com.sbc.mocha.mochaadapter.ejb.MochaAdapterBean.findSBCCustomers(MochaAdapterBean.java(Compiled Code))
at com.sbc.mocha.mochaadapter.ejb.EJSRemoteMochaAdapter.findSBCCustomers(EJSRemoteMochaAdapter.java:172)
at com.sbc.mocha.mochaadapter.ejb._EJSRemoteMochaAdapter_Tie._invoke(_EJSRemoteMochaAdapter_Tie.java:1007)
at com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(Unknown Source)
at com.ibm.CORBA.iiop.ORB.process(Unknown Source)
at com.ibm.CORBA.iiop.WorkerThread.run(Unknown Source)
at com.ibm.ejs.oa.pool.ThreadPool$PooledThread.run(ThreadPool.java:532)
 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Kyle and Greg,
The question I have is if you have a client talking remotely to EJBs deployed on a separate WAS and the application server with EJBs goes down and comes up again, it seems that you have restart your client application server too.
Any explanations?
Thanks!
 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, welcome to this forum.
Since neither IBM VIsual Age for Java nor WebSphere Application Server uses lastest JDK (1.3.1) or J2EE/Servlets specifications, what features of the newers versions of jdk/ejb/servlets did you miss?
For example, when Sun release jdk 1.4 i�ll miss the regular expression feature, because Visual Age is always behind in jdk version.
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Caroline Iux:
Hello Kyle and Greg,
The question I have is if you have a client talking remotely to EJBs deployed on a separate WAS and the application server with EJBs goes down and comes up again, it seems that you have restart your client application server too.
Any explanations?
Thanks!


Well, it depends on a number of factors, including the kind of EJB's you are using. WebSphere is designed to be able to perform workload management among N servers with Stateless and Entity EJB's. If you have two servers runninng your EJB's (both are clones) and one goes down, the other one will transparently take over all the work -- you don't have to restart your clients. However, if you only have a single server and it does go down, then yes, all of your clients are hosed -- that's not a problem with WebSphere; that's just the way the EJB spec works. References are NOT guaranteed to survive server shutdown, although the data (at least in Entity beans) is.
Kyle Brown

------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Mindy Benoist:
Sure, here is the stack trace:
**********************************
[Tue Sep 18 15:30:15 CDT 2001] Exception message : null
Stack Trace :
com.ibm.ejs.cm.portability.ResourceAllocationException
...
com.sbc.mocha.mochaadapter.ejb.EJSRemoteMochaAdapter.findSBCCustomers(EJSRemoteMochaAdapter.java:172)(ThreadPool.java:532)
...


Since I see that this is being thrown in a finder method (I suspect it's a BMP finder) I'm still thinking that this is somehow due to not closing all of your connections. Have you tried watching the execution of your application with WebSphere Resource Analyzer? Do you have a lot of open connections?

------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kyle and Greg,
Welcome to this forum. I've got a question about VAJ -- VAJ uses a repository/database storage for source code, instead of the old file system. Do you think this repository type of source code storage will take over the old file system storage model?
I understand repository model has quite a few benefits such as search and version control, but if IBM is the only house doing this, how do we handle code portability? Isn't that supposed to be one of the main reasons people taking up Java with the price of C++ or VB?
Tony
 
Tony Pacific
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kyle and Greg,
Welcome to this forum. I've got a question about VAJ -- VAJ uses a repository/database storage for source code, instead of the old file system. Do you think this repository type of source code storage will take over the old file system storage model?
I understand repository model has quite a few benefits such as search and version control, but if IBM is the only house doing this, how do we handle code portability? Isn't that supposed to be one of the main reasons people taking up Java with the price of C++ or VB?
TIA
Tony
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Tony Pacific:
Kyle and Greg,
Welcome to this forum. I've got a question about VAJ -- VAJ uses a repository/database storage for source code, instead of the old file system. Do you think this repository type of source code storage will take over the old file system storage model?
I understand repository model has quite a few benefits such as search and version control, but if IBM is the only house doing this, how do we handle code portability? Isn't that supposed to be one of the main reasons people taking up Java with the price of C++ or VB?
TIA
Tony


I think you're misunderstanding the interaction between the Java code and the repository model in VAJ. How VAJ stores the files internally has no bearing on how the code is executed. It exports files (JAR files or .class and .java files) that can be used just like files created in any other IDE. The fact that it is stored internally in a database is immaterial. This is exactly like saying that it doesn't matter if you use PVCS or ClearCase to hold your files -- they still look and run the same in the end...

------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
 
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kyle-
In answer to:
"You're referring to is the ability of IBM's ORB to handle workload management through interaction with our COS naming JNDI server. We do require you to use IBM's ORB, which is why you have to use IBM's JVM for now. Actually, you should see some articles on VADD VERY soon on how to patch other JVM's with IBM's ORB -- we already do that for Sun's ORB on Solaris.
So to help me get this straight, is your problem that the other app servers won't run on IBM's JVM?"
The problem I'm referring to is similar, it's:
' if "new InitialContext(props)" is invoked on the IBM JNDI client, running on a non-IBM JDK, and passing in a java.naming.ProviderURL, it will attempt to instantiate a com.ibm.CORBA.iiop.ORB and a ClassNotFoundException will be thrown. '
I don't think is the same problem. Several workarounds have been issued by IBM, but do not work.
What this means is that if a Servlet on say, Weblogic, running the SUN JDK, attempts to invoke an EJB on WAS, it will not be successful.
Max
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, Authors,
Welcome!
I know nothing about IBM Websphere. Does that mean this book is not right for me? But I know java.
Thanks.
Juan.
 
Ranch Hand
Posts: 334
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Authors,
Are there special features about session tracking that IBM application server supports ? I know most application servers can track a client across multiple requests to a single Web application.
What kind of techniques we can use beyond cookies, url rewriting, etc.
For example with JRun, however, when I want to track client information for requests that span multiple Web applications, the server will clear all the information about the session if I do not use EJBs/other techniques.
Thanks in advance
Ruilin
[This message has been edited by ruilin yang (edited September 19, 2001).]
 
ruilin yang
Ranch Hand
Posts: 334
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does IBM Application server support session tracking for a client jump between applications ?
For example, with JRun, when I want to track client information for requests that span multiple Web applications, I have to use EJBs or some other techniques.
I image the session tracking is OK within a single application for most application servers.
Please comments. Thanks in advance
Ruilin
[This message has been edited by ruilin yang (edited September 19, 2001).]
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Juan Zhang:
Hi, Authors,
Welcome!
I know nothing about IBM Websphere. Does that mean this book is not right for me? But I know java.
Thanks.
Juan.


On the contrary -- it means this book is perfect for you. It's a gradual introduction to J2EE and the IBM WebSphere Application Server and tool set.
Kyle Brown

------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by ruilin yang:
Does IBM Application server support session tracking for a client jump between applications ?
For example, with JRun, when I want to track client information for requests that span multiple Web applications, I have to use EJBs or some other techniques.
I image the session tracking is OK within a single application for most application servers.
Please comments. Thanks in advance
Ruilin
[This message has been edited by ruilin yang (edited September 19, 2001).]


If you mean can HttpSessions span multiple web applications, the answer is no, and the reason is that the Servlet 2.2 specifically forbids it from doing so. WebSphere used to allow this, but when we came up to the Servlet 2.2 specification level we had to remove that feature. So blame Sun -- personally we all liked the feature.
Kyle Brown

------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
 
ruilin yang
Ranch Hand
Posts: 334
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Kyle for your reply.
 
ruilin yang
Ranch Hand
Posts: 334
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how much does your book cover the security implementation?
Thanks,
Ruilin
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by ruilin yang:
how much does your book cover the security implementation?
Thanks,
Ruilin


Not much -- mostly for reasons of space. A good resource on that can be found in the 3.5.3 InfoCenter. What question in particular about the security implementation do you have?

------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hai ! welcome to ranch
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
one thing i want to share is that i have seen many tutorials and books that show examples about websphere with visual age.
why is it so and why should it be so.
is this true even with this book...
as per my opinion tying it makes the system less transparent which the deveopers would not want.
is this their marketting gimmick ???
i hope not to hurt anyone since these are only opinion. if i have teni appologize
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by deneb shah:
one thing i want to share is that i have seen many tutorials and books that show examples about websphere with visual age.
why is it so and why should it be so.
is this true even with this book...
as per my opinion tying it makes the system less transparent which the deveopers would not want.
is this their marketting gimmick ???
i hope not to hurt anyone since these are only opinion. if i have teni appologize



No this is not a marketing gimmick. The fact is that VisualAge is the best way for developing for WebSphere 3.X, period. It is ENORMOUSLY simpler to do it that way than to do it at the command line. If you haven't experienced the power of the VisualAge WTE and the integrated IDE, by all means try it. You will be a convert soon.
Kyle Brown

------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Authors,
Wonder if you could help we've been having a problem for some time now with a 3227 exception being thrown on a soap call. we are using websphere and ssl certificates. This failure is intermittent and stops working for no apparant reason and then starts working without us doing anything (not even restarting the app.)
Exception trying to authenticate
SOAPException during invoke of SOAP message
: 3227
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kathryn,
Welcome to the JavaRanch!
I'm not sure whether you noticed but the thread you replied to dates back to 2001... Besides that, I really think you should post this question as a new thread instead because it doesn't relate to an existing discussion.
Furthermore, because the actual reason may not be WebSphere specific, you might consider posting the question to our Web Services forum instead of the WebSphere forum.
 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Warm welcome
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic