Stuart Bell

Greenhorn
+ Follow
since Sep 17, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Stuart Bell

Guys, thanks for your responses so far. I was wondering if Merrill could elaborate on the use of the <logic:iterate> tag.

To give you a bit more background, I have been looking into technologies such as Cocoon as we have a questions.xml file that defines what question to ask, the question number and what page it is on. The questions.xml is created by another application that will be used to build the question logic. The questions.xml is its output which we can take to build the pages.

The generation of the page will be simple enough. I think (not using cocoon) we would simply perform an XSL transformation on the questions.xml to create the question page html. We are using some AJAX to give a dynamic reflexive feel, but I don't AJAX would be as suited to create a whole page.

Our data from the question pages are mapped and stored to an XML file. In our current Struts (1.0) set up, this was easy to do as we had a getter and a setter for each field. This was the area that I puzzled by. If we are dynamically creating the pages from the questions.xml, how can we then map the answers to the XML data source when we don't know what questions will be generated on the page?

Hope that adds a bit more detail.

Thoughts?


Stuart
17 years ago
Hi,

I am looking into a move away from Struts, but before I do so I want to make sure that it is not possible in Struts. The existing web app that we have is based on Struts, where each JSP page has a corresponding ActionForm bean class. There is a tight coupling between each question field in the JSP page and the getters/setters in the ActionForm.

The new functionality that we are looking at introducing moves to a more dynamically generated world, where the question fields are 'reflexive' in that they may or may not be shown depending on the previous question's answer. However, where does that leave our tightly coupled fields? Previously, we knew what the fields would be, going into this we don't. Can Struts cope with such a set up?

Has anyone else had a similar situation?

Thanks,


Stuart
17 years ago
Apologies in advance for the stack trace, but I am getting the following error when attempting to connect to an MQ Queue via a JNDI lookup. We have recently upgraded WAS 4.0.3 to 4.0.7.

Can anyone explain this?:

[21/03/06 14:29:06:917 GMT] 4adba6 Helpers W NMSV0605E: A Reference object looked up from the context
"domainRoots/UnspecifiedDomainName/legacyRoot" with the name "jca/CccToAlis" was sent to the JNDI Naming Manager and an exception resulted.
Reference data follows:
Reference Factory Class Name: com.ibm.ejs.j2c.ConnectionFactoryBuilder
Reference Factory Class Location URLs: <null>
Reference Class Name: CCC to ALIS JMS
Type: connectorName
Content: CCC to ALIS JMS
Address Type: dd
AddressContents: ffffffac ffffffed 0 5 73 72 0 21 63 6f 6d 2e 69 62 6d 2e 65 6a 73 2e 6a 32 63 2e 52 65 73 6f 75 72 63 65 ...
Address Type: poolProps
AddressContents: ffffffac ffffffed 0 5 73 72 0 27 63 6f 6d 2e 69 62 6d 2e 65 6a 73 2e 6a 32 63 2e 43 6f 6e 6e 65 63 74 6f ...
Address Type: properties
AddressContents: ffffffac ffffffed 0 5 73 72 0 23 63 6f 6d 2e 69 62 6d 2e 65 6a 73 2e 6a 32 63 2e 43 6f 6e 6e 65 63 74 6f ...

Exception data follows:
java.lang.NoClassDefFoundError
at org.apache.log4j.Logger.getRootLogger(Logger.java:104)
at org.apache.log4j.BasicConfigurator.configure(BasicConfigurator.java:36)
at uk.co.spektra.ofs.edb.util.Logger.init(Logger.java:361)
at uk.co.spektra.ofs.edb.util.Logger.<clinit>(Logger.java:69)
at uk.co.spektra.ofs.edb.connector.jmsinvoke.JMSInvokeManagedConnectionFactory.<clinit>(JMSInvokeManagedConnectionFactory.java:42)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:115)
at com.ibm.ejs.j2c.ConnectionFactoryBuilder.createConnectionFactoryDetails(ConnectionFactoryBuilder.java:152)
at com.ibm.ejs.j2c.ConnectionFactoryBuilder.getObjectInstance(ConnectionFactoryBuilder.java:288)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:299)
at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java:783)
at com.ibm.ejs.ns.jndi.CNContextImpl.processResolveResults(CNContextImpl.java:1602)
at com.ibm.ejs.ns.jndi.CNContextImpl.doLookup(CNContextImpl.java:1478)
at com.ibm.ejs.ns.jndi.CNContextImpl.lookup(CNContextImpl.java:1132)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:128)
at javax.naming.InitialContext.lookup(InitialContext.java:345)
at uk.co.spektra.npb.extranet.dao.connection.ConnectorImpl.getConnectionFactory(ConnectorImpl.java:155)
at uk.co.spektra.npb.extranet.dao.connection.ConnectorImpl.processMessage(ConnectorImpl.java:99)
at uk.co.spektra.npb.extranet.dao.connection.AliceConnectorImpl.processMessage(AliceConnectorImpl.java:65)
at uk.co.spektra.npb.extranet.dao.QuoteDAOImpl.processALISRequestAndResponse(QuoteDAOImpl.java:129)
at uk.co.spektra.npb.extranet.dao.QuoteDAOImpl.createQuoteOnALIS(QuoteDAOImpl.java:164)
at uk.co.spektra.npb.extranet.dao.QuoteDAOImpl.performQuote(QuoteDAOImpl.java:394)
at uk.co.spektra.npb.extranet.bos.QuoteServicesImpl.callALIS(QuoteServicesImpl.java:203)
at uk.co.spektra.npb.extranet.bos.QuoteServicesImpl.submitScenario(QuoteServicesImpl.java:954)
at uk.co.spektra.npb.extranet.bos.QuoteServicesImpl.setCoverDetailsStage3(QuoteServicesImpl.java:812)
at uk.co.spektra.npb.ejb.QuoteServicesSFSBBean.setCoverDetailsStage3(QuoteServicesSFSBBean.java:189)
at uk.co.spektra.npb.ejb.EJSRemoteStatefulQuoteServicesSFSB.setCoverDetailsStage3(EJSRemoteStatefulQuoteServicesSFSB.java:854)
at uk.co.spektra.npb.ejb._QuoteServicesSFSB_Stub.setCoverDetailsStage3(_QuoteServicesSFSB_Stub.java:584)
at uk.co.spektra.npb.extranet.businessdelegate.quote.QuoteBusinessDelegateImpl.setCoverDetailsStage3(QuoteBusinessDelegateImpl.java:576)
at uk.co.spektra.npb.extranet.struts.action.SetCoverAttributesAction.executeAction(SetCoverAttributesAction.java:64)
at uk.co.spektra.npb.extranet.struts.action.ActionBase.safePerform(ActionBase.java:179)
at uk.co.spektra.npb.extranet.struts.action.ActionBase.perform(ActionBase.java:68)
at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1786)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
at uk.co.spektra.npb.extranet.struts.ExtranetController.doGet(ExtranetController.java:98)
at com.brightgrey.extranet.web.AuthController.doProcessing(AuthController.java:308)
at com.brightgrey.extranet.web.AuthController.doPost(AuthController.java:252)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)
at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:721)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:374)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:118)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:239)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:151)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:317)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:477)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:341)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:144)

[21/03/06 14:29:07:049 GMT] 4adba6 Helpers W NMSV0610I: A NamingException is being thrown from a javax.naming.Context implementation. Details follow:
Context implementation: com.ibm.ejs.ns.jndi.CNContextImpl
Context method: lookup
Context name: domainRoots/UnspecifiedDomainName/legacyRoot
Target name: jca/CccToAlis
Other data:
Exception stack trace: com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. Root exception is java.lang.NoClassDefFoundError
at org.apache.log4j.Logger.getRootLogger(Logger.java:104)
at org.apache.log4j.BasicConfigurator.configure(BasicConfigurator.java:36)
at uk.co.spektra.ofs.edb.util.Logger.init(Logger.java:361)
at uk.co.spektra.ofs.edb.util.Logger.<clinit>(Logger.java:69)
at uk.co.spektra.ofs.edb.connector.jmsinvoke.JMSInvokeManagedConnectionFactory.<clinit>(JMSInvokeManagedConnectionFactory.java:42)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:115)
at com.ibm.ejs.j2c.ConnectionFactoryBuilder.createConnectionFactoryDetails(ConnectionFactoryBuilder.java:152)
at com.ibm.ejs.j2c.ConnectionFactoryBuilder.getObjectInstance(ConnectionFactoryBuilder.java:288)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:299)
at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java:783)
at com.ibm.ejs.ns.jndi.CNContextImpl.processResolveResults(CNContextImpl.java:1602)
at com.ibm.ejs.ns.jndi.CNContextImpl.doLookup(CNContextImpl.java:1478)
at com.ibm.ejs.ns.jndi.CNContextImpl.lookup(CNContextImpl.java:1132)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:128)
at javax.naming.InitialContext.lookup(InitialContext.java:345)
at uk.co.spektra.npb.extranet.dao.connection.ConnectorImpl.getConnectionFactory(ConnectorImpl.java:155)
at uk.co.spektra.npb.extranet.dao.connection.ConnectorImpl.processMessage(ConnectorImpl.java:99)
at uk.co.spektra.npb.extranet.dao.connection.AliceConnectorImpl.processMessage(AliceConnectorImpl.java:65)
at uk.co.spektra.npb.extranet.dao.QuoteDAOImpl.processALISRequestAndResponse(QuoteDAOImpl.java:129)
at uk.co.spektra.npb.extranet.dao.QuoteDAOImpl.createQuoteOnALIS(QuoteDAOImpl.java:164)
at uk.co.spektra.npb.extranet.dao.QuoteDAOImpl.performQuote(QuoteDAOImpl.java:394)
at uk.co.spektra.npb.extranet.bos.QuoteServicesImpl.callALIS(QuoteServicesImpl.java:203)
at uk.co.spektra.npb.extranet.bos.QuoteServicesImpl.submitScenario(QuoteServicesImpl.java:954)
at uk.co.spektra.npb.extranet.bos.QuoteServicesImpl.setCoverDetailsStage3(QuoteServicesImpl.java:812)
at uk.co.spektra.npb.ejb.QuoteServicesSFSBBean.setCoverDetailsStage3(QuoteServicesSFSBBean.java:189)
at uk.co.spektra.npb.ejb.EJSRemoteStatefulQuoteServicesSFSB.setCoverDetailsStage3(EJSRemoteStatefulQuoteServicesSFSB.java:854)
at uk.co.spektra.npb.ejb._QuoteServicesSFSB_Stub.setCoverDetailsStage3(_QuoteServicesSFSB_Stub.java:584)
at uk.co.spektra.npb.extranet.businessdelegate.quote.QuoteBusinessDelegateImpl.setCoverDetailsStage3(QuoteBusinessDelegateImpl.java:576)
at uk.co.spektra.npb.extranet.struts.action.SetCoverAttributesAction.executeAction(SetCoverAttributesAction.java:64)
at uk.co.spektra.npb.extranet.struts.action.ActionBase.safePerform(ActionBase.java:179)
at uk.co.spektra.npb.extranet.struts.action.ActionBase.perform(ActionBase.java:68)
at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1786)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
at uk.co.spektra.npb.extranet.struts.ExtranetController.doGet(ExtranetController.java:98)
at com.brightgrey.extranet.web.AuthController.doProcessing(AuthController.java:308)
at com.brightgrey.extranet.web.AuthController.doPost(AuthController.java:252)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)
at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:721)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:374)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:118)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:239)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:151)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:317)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:477)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:341)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:144)


[21/03/06 14:29:07:133 GMT] 4adba6 SystemOut U 21/03/2006 14:29:07.104 ERROR [Servlet.Engine.Transports:9] uk.co.spektra.npb.extranet.dao.connection.ConnectorImpl - Error sending message on SOFS connection. Exc:
com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. Root exception is
java.lang.NoClassDefFoundError
at org.apache.log4j.Logger.getRootLogger(Logger.java:104)
at org.apache.log4j.BasicConfigurator.configure(BasicConfigurator.java:36)
at uk.co.spektra.ofs.edb.util.Logger.init(Logger.java:361)
at uk.co.spektra.ofs.edb.util.Logger.<clinit>(Logger.java:69)
at uk.co.spektra.ofs.edb.connector.jmsinvoke.JMSInvokeManagedConnectionFactory.<clinit>(JMSInvokeManagedConnectionFactory.java:42)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:115)
at com.ibm.ejs.j2c.ConnectionFactoryBuilder.createConnectionFactoryDetails(ConnectionFactoryBuilder.java:152)
at com.ibm.ejs.j2c.ConnectionFactoryBuilder.getObjectInstance(ConnectionFactoryBuilder.java:288)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:299)
at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java:783)
at com.ibm.ejs.ns.jndi.CNContextImpl.processResolveResults(CNContextImpl.java:1602)
at com.ibm.ejs.ns.jndi.CNContextImpl.doLookup(CNContextImpl.java:1478)
at com.ibm.ejs.ns.jndi.CNContextImpl.lookup(CNContextImpl.java:1132)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:128)
at javax.naming.InitialContext.lookup(InitialContext.java:345)
at uk.co.spektra.npb.extranet.dao.connection.ConnectorImpl.getConnectionFactory(ConnectorImpl.java:155)
at uk.co.spektra.npb.extranet.dao.connection.ConnectorImpl.processMessage(ConnectorImpl.java:99)
at uk.co.spektra.npb.extranet.dao.connection.AliceConnectorImpl.processMessage(AliceConnectorImpl.java:65)
at uk.co.spektra.npb.extranet.dao.QuoteDAOImpl.processALISRequestAndResponse(QuoteDAOImpl.java:129)
at uk.co.spektra.npb.extranet.dao.QuoteDAOImpl.createQuoteOnALIS(QuoteDAOImpl.java:164)
at uk.co.spektra.npb.extranet.dao.QuoteDAOImpl.performQuote(QuoteDAOImpl.java:394)
at uk.co.spektra.npb.extranet.bos.QuoteServicesImpl.callALIS(QuoteServicesImpl.java:203)
at uk.co.spektra.npb.extranet.bos.QuoteServicesImpl.submitScenario(QuoteServicesImpl.java:954)
at uk.co.spektra.npb.extranet.bos.QuoteServicesImpl.setCoverDetailsStage3(QuoteServicesImpl.java:812)
at uk.co.spektra.npb.ejb.QuoteServicesSFSBBean.setCoverDetailsStage3(QuoteServicesSFSBBean.java:189)
at uk.co.spektra.npb.ejb.EJSRemoteStatefulQuoteServicesSFSB.setCoverDetailsStage3(EJSRemoteStatefulQuoteServicesSFSB.java:854)
at uk.co.spektra.npb.ejb._QuoteServicesSFSB_Stub.setCoverDetailsStage3(_QuoteServicesSFSB_Stub.java:584)
at uk.co.spektra.npb.extranet.businessdelegate.quote.QuoteBusinessDelegateImpl.setCoverDetailsStage3(QuoteBusinessDelegateImpl.java:576)
at uk.co.spektra.npb.extranet.struts.action.SetCoverAttributesAction.executeAction(SetCoverAttributesAction.java:64)
at uk.co.spektra.npb.extranet.struts.action.ActionBase.safePerform(ActionBase.java:179)
at uk.co.spektra.npb.extranet.struts.action.ActionBase.perform(ActionBase.java:68)
at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1786)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
at uk.co.spektra.npb.extranet.struts.ExtranetController.doGet(ExtranetController.java:98)
at com.brightgrey.extranet.web.AuthController.doProcessing(AuthController.java:308)
at com.brightgrey.extranet.web.AuthController.doPost(AuthController.java:252)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)
at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:721)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:374)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:118)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:239)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:151)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:317)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:477)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:341)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:144)
18 years ago
I'd also like to add what people would recommend as good study material either in book form or on the web and if there are good mock exams etc?

Thanks,


Stuart
Hi,

I am about to embark on SCEA certification, can you tell me how long it will roughly take to complete each of the parts in terms of preparation and study time? Factor in doing a full-time job and a life outside of work with any estimates ; )

Also, is the essay exam at the end the same idea as the essay exam that I did for the Developer exam, which I recall was around five questions based on the assignment that I did.

Thanks,


Stuart
Apologies bartender, I have updated the profile.

Regards,


Stuart
18 years ago
Hi there,

We are a user of WebSphere 4.0.3 which operates with a JVM version of 1.3.1_12. We have recently downloaded the installer tool and the new JVM in the hope that it will bring our current JVM up to 1.3.1_16, the location that we downloaded this from is at:

http://www-1.ibm.com/support/docview.wss?rs=180&uid=swg24006479

We followed the instructions for this upgrade from the two readme txt files contained in the installer jar and the jvm jar. The actual install seemed to complete without error, but upon starting up WebSphere the following message was recorded in the /opt/WebSphere/AppServer/logs/tracefile file:

************* End Display Current Environment *************
[4/3/06 17:44:30:524 BST] 7eb6e2 Server U Version : 4.0.3
[4/3/06 17:44:30:527 BST] 7eb6e2 Server U Edition: Advanced Edition for Multiplatforms
[4/3/06 17:44:30:536 BST] 7eb6e2 Server U Build date: Sun Apr 28 00:00:00 BST 2002
[4/3/06 17:44:30:536 BST] 7eb6e2 Server U Build number: ptf30217.01
[4/3/06 17:44:30:983 BST] 7eb6e2 ORBRas W com.ibm.CORBA.iiop.Util Util P=670654 =0:CT JORB0012: Pass by reference has been set to: true (NoLocalCopies = true)
[4/3/06 17:44:34:272 BST] 7eb6e2 DrAdminServer I WSVR0053I: DrAdmin available on port 48897
[4/3/06 17:44:34:287 BST] 7eb6e2 AdminServer I ADMS0008I: Initializing WebSphere Administration server
[4/3/06 17:44:36:789 BST] 7eb6e2 ResourceBinde I WSVR0049I: Binding SM_DATASOURCE as jdbc/SM_Datasource
[4/3/06 17:44:38:160 BST] 7eb6e2 EJBEngine I WSVR0037I: Starting EJB jar: Name Service
[4/3/06 17:44:39:411 BST] 7eb6e2 EJBEngine I WSVR0037I: Starting EJB jar: Secure CosNaming
java.lang.NullPointerException
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:145)



Once WebSphere has finished its startup process and all services have started too, the following error is then repeatidly outputted into the WebSphere tracefile:

java.lang.NullPointerException
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:145)

However, our application that runs on this server appears to work ok even though WebSphere is reporting these errors. Are you able to help me at all? I am looking to find out what this error could be related to. Have we missed a step during installation? Is there something else we need to install or configure? The instructions do not state whether anything more is required.

I look forward to your earliest response.

Thanks and regards,


Stuart
18 years ago
Thanks for your reply and confirming my thoughts. I'll investigate Properties further.

Cheers,


Stuart
18 years ago
Hi,

My understanding of using the ResourceBundle class for reading in a Properties file is that it will only read the properties in once and once only. I wish to read in a properties file everytime so that we can change the value on the fly without having to restart the application so that the change will take effect.

Is there anyway of doing this within the ResourceBundle itself? I am using Java 1.3.1.

I have put a piece of code together that does work, but I am not certain it is the most efficient way of doing it:

URL url = getClass().getClassLoader().getResource("garbageCollection.properties");
InputStream stream = url.openStream();
InputStreamReader isReader = new InputStreamReader(stream);
BufferedReader buffer = new BufferedReader(isReader);
String lineRead = null;

while((lineRead = buffer.readLine()) != null) {
if (lineRead.indexOf("confirm.payment.invoke.gc") != -1) {
StringTokenizer tokenizer = new StringTokenizer(lineRead, "=");
tokenizer.nextToken(); // skip the first value
invokeGC = tokenizer.nextToken(); // read in the second
}
}

Any words of advice or thoughts?

Thanks,


Stuart
18 years ago
Hi,

I am trying to understand the ouput generated from passing the following JVM parameter into our application:

-verbosegc

I haven't been able to find anywhere that tells me what the following forms of output mean?

[GC 512K->98K(1984K), 0.0009909 secs]

// Starting explicit garbage collection
// following shown from a System.gc() call.
[Full GC 371K->97K(1984K), 0.0036885 secs]

Can anyone help?

Thanks,


Stuart
18 years ago
Hi Ram,


Thanks for your quick reply, in answer to your question:

"Ofcourse your posting contains what you want to achieve. Some more info on the actual requirement (i.e. - why you want to do things this way) may help."

I am working with a transmission standard called Origo, whereby I am developing a pipeline tracking system. This is all communicated through XML over HTTP. As part of the request XML from the client, a <return_location> tag is contained which sepecifies the URL to return the response to, rather than returning it back to the client the request came from.

So, from this that is why I need to redirect the response output to this new location. Is there some way that this can be achieved??

Thanks,

Stuart
18 years ago
Hi,

I am developing a web service application which will facilitate communication of XML over HTTP. A client submits an HTTP POST request to my service, I process their request where my result is a response XML. I need to return that XML to a particular address, whilst keeping the whole transaction synchronous. If I attempt a sendRedirect to a new URL I can't find anyway of attaching or writing my response XML to that redirection, thereby passing the XML to the return address. If I use ServletOutputStream to right the XML string as binary output, I have no way of redirecting it to a different URL.

I am trapped in a catch-22 situation where I can either a) send the redirect but not attach my response XML or b) write the response XML but not redirect it to the new URL.

Can anyone out there offer any sage advice to help me out of this? Is it possible? If so, how can it be achieved?

Hope that makes sense.

Thanks,


Stuart
18 years ago
Hi Madhav,


Thanks for your reply. I managed to get round the problem by using the setAttribute() method on the Element object. This allowed me to set the default namespace on the XML document that didn't contain it. I was then able to apply my stylesheet just as I wanted.

Thanks for your input.

Regards,


Stuart
Hi,


I have an XML document that I transform which has a default namespace. For example:

<root xmlns="http://www.helloworld.com">

</root>

In order for my XSL stylesheet to work with this, I need to specify the following:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:test="http://www.helloworld.com">

<xsl:template match="test:root">

</xsl:template>

</xsl:stylesheet>

That all works fine and well, no problems. I now have a near identical XML file that has to be transformed into the same structure. The only difference is that it doesn't contain the default namespace such as my first file example:

<root>

</root>

I am trying to apply the same stylesheet and it is unable to identify any matches in the second file. Is there anyway of making the XSL file compatible with both types of input XML file?

Hope that makes sense,

Thanks,


Stuart
That sounds like an acceptable solution.

Thanks for the speedy reply!


Stuart
18 years ago