Andee Weir

Greenhorn
+ Follow
since Sep 13, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Andee Weir

Thanks for the help.

Eventually got to the solution. We changed Websphere's jvm classpath so that the path to classes12.zip appeared first. We also removed other older versions of classes12.zip (some were renamed) from the lib folder, restarted the app server & all was happy again.

Hope that helps someone else.

Thanks again.

Andee
Thanks for the reply Shailesh but if I understand you correctly you're suggesting it's a setting on the db. I cannot see how this could be as both Dev & UAT are pointing to the same Oracle DB.
Hi everyone

We've got a very strange problem here. Our Oracle 8i database holds names in both UTF8 & Big5 (for chinese) together with a language column. We've written a JSP running on Websphere 4.0.1 which connects to the DB with a thin Oracle connection & retrieves the required name using the language of the logged on user (hope you're with me so far). If the language is Chinese it gets the converts the Big5 characters to UTF8 & then displays the result:-


When we run this on our Win2000 development App server it displays the correct Chinese characters but on our Solaris UAT system it doesn't. Both systems are connecting to the same Oracle DB.

After a bit of further investigation we've looked at the actual byte stream that is coming back from the DB :-

On UAT this comes back with :-
-62 -76 -62 -70 -62 -74 -62 -74 -61 -128 -61 -76 -62 -78 121 -62 -74 -61 -123 -62 -88 -61 -87 -62 -80 -61 -78 -62 -86 -61 -73 32 45 32 65 32 -62 -86 -61 -111 32 40 -62 -78 -61 -106 -62 -83 112 -62 -86 -61 -111 -62 -91 -61 -73 41

Whereas on dev we get :-
-76 -70 -74 -74 -64 -12 -78 121 -74 -59 -88 -23 -80 -14 -86 -9 32 45 32 65 32 -86 -47 32 40 -78 -42 -83 112 -86 -47 -91 -9 41

Why is this happening? Why are -61 & -62 bytes appearing on one but not the other? It's not the DB as the data is coming from the same same source in both cases. It's not the code as it is identical & we're using the same classes12.zip in both cases. Both systems have the same Websphere jvm settings. All we can think of is some environment setting which is different.

Thanks in advance for any help you might be able to provide as it is driving us crazy.

Andee
Found a solution to my problem :-

In my case I also had WAS4.0 cohabiting on the same server. I found that if I started WAS5.0 before WAS4.0 it worked but the other way around didn't. Haven't yet found out why (presume it's a conflicting port) but at least it's a step in the right direction.
20 years ago
Also started getting the same problem here. It was all working fine & then the Windows server was restarted & WS now won't start, getting the same error as mentioned above. I've tried uninstalling & reinstalling but with no joy. Also noticed in the startup log the following error:-

Component-managed authentication alias not specified for connection factory or datasource JMS$SampleJMSTopicConnectionFactory.
[25/08/04 10:16:35:453 BST] 641fd451 ConnectionFac I J2CA0107I: Component-managed authentication alias not specified for connection factory or datasource JMS$SampleJMSTopicConnectionFactory$JMSManagedConnection@1663702143.
[25/08/04 10:16:36:906 BST] 641fd451 ConnectionEve A J2CA0056I: The Connection Manager received a fatal connection error from the Resource Adaptor for resource JMS$SampleJMSTopicConnectionFactory. The exception which was received is Broker command failed: 3157 Reason code 3157
[25/08/04 10:16:36:922 BST] 641fd451 MDBListenerIm W WMSG0019E: Unable to start MDB Listener PSSampleMDB, JMSDestination Sample/JMS/listen : com.ibm.mq.jms.BrokerCommandFailedException: Broker command failed: 3157 Reason code 3157
at com.ibm.mq.jms.MQBrokerSubscriptionEngine.openDurableSubscription(MQBrokerSubscriptionEngine.java:1208)
at com.ibm.mq.jms.MQConnectionConsumer.pubSubSetup(MQConnectionConsumer.java:318)
at com.ibm.mq.jms.MQConnectionConsumer.<init>(MQConnectionConsumer.java:192)
at com.ibm.mq.jms.MQTopicConnection.createCC(MQTopicConnection.java:852)
at com.ibm.mq.jms.MQTopicConnection.createDurableConnectionConsumer(MQTopicConnection.java:817)
at com.ibm.ejs.jms.JMSTopicConnectionHandle.createDurableConnectionConsumer(JMSTopicConnectionHandle.java:186)
at com.ibm.ejs.jms.listener.MDBListenerImpl.createResources(MDBListenerImpl.java:327)
at com.ibm.ejs.jms.listener.MDBListenerImpl.internalStart(MDBListenerImpl.java:474)
at com.ibm.ejs.jms.listener.MDBListenerImpl.start(MDBListenerImpl.java:404)
at com.ibm.ejs.jms.listener.MDBListenerManagerImpl.start(MDBListenerManagerImpl.java:437)
at com.ibm.ejs.jms.listener.MsgListenerPort.add(MsgListenerPort.java:144)
at com.ibm.ejs.jms.listener.MDBListenerManagerImpl.startApplicationMDBs(MDBListenerManagerImpl.java:660)
at com.ibm.ejs.jms.listener.MDBListenerManagerImpl.stateChanged(MDBListenerManagerImpl.java:631)
at com.ibm.ws.runtime.component.MessageListenerImpl.stateChanged(MessageListenerImpl.java:139)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.stateChanged(ApplicationMgrImpl.java:371)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectEvent(DeployedApplicationImpl.java:726)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.setState(DeployedApplicationImpl.java:139)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.setState(DeployedApplicationImpl.java:135)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:542)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:254)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:232)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:343)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:234)
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:117)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:343)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:234)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:182)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:135)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:232)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)

[ August 25, 2004: Message edited by: Andee Weir ]
20 years ago
Thanks for taking the time to reply guys. I just wanted to clarify my requirement to make certain I understand your answers.
1) I'm talking about session cookies rather than persistent cookies.
2) The connection is over SSL (irrelevant but thought I'd mention it anyway)
3) The data stored in the session cookie is a code that uniquely identifies that user in our backend databases e.g. 123456. It would have been associated with the user in our LDAP directory as part of the authenication during the user's registration & is placed in the session cookie each time the user is authenticated by our single sign on solution.
4) After the user is authenticated they would be presented with a menu of services they have the authorisation to access. One of these applications would use the code from the session cookie to lookup data pertinent to that user from a database & display it to this user.
5) If user A can change the code in their session cookie to be another user's (user B) valid code then user A would see the data for user B. Is it possible to change session cookie data like this?
Thanks in advance,
Andee
[ March 27, 2003: Message edited by: Andee Weir ]
21 years ago
Sun provide quite a good starter tutorial at Sun's JNDI tutorials
Andee
21 years ago
Hi,
A silly question but how secure against change are session cookies?
I'm thinking about developing an application that needs to store a logged-in user's unique database lookup code within their session cookie. A user could easily see this value but are there hacking tools out there to enable them to change it & fool my server application into giving them someone else's details.
I know I could encrypt the cookie but do I need to bother?
Thanks in advance,
Andee
21 years ago
Thanks for your time Juanjo.
I'm running in WinNT by double clicking it from explorer. I've set Windows up to do java -jar xxxx.jar to jarfiles
I think I've got to the bottom of it. My jar file required other jars for it to work. I never managed to successfully package all these up into one jar but did the following instead:-
1) created my executable jar (manifest includes Main-Class: & also Class-Path: - this last one lists the location & names of the other jar files eg Main-Class: com.andee.MissingUtaRoles
Class-Path: lib/ldap.jar lib/jndi.jar lib/ldapbp.jar lib/ldap40.jar lib/ldapbp.jar)
2) place this executable jar file in a folder
3) created a subfolder of lib in the folder created in 2)
4) placed the required jars in folder 3)
5) double clicked the executable jar & it now works.
Andee
21 years ago
I'm by no means an expert but I believe the answer is that you have to restart the container.
Andee
21 years ago
Hi there,
I've a problem that has been bugging me for ages. I've written a number of small Swing applications using Websphere Studio 4.0.2. When I run them in Studio they work fine. If I export them to a jar, together with the other classes & jars that they use, & select the class of the application entry point (in other words select the class that contains the starting main method) they appear to compile ok but when I run them I get the "Could not find the main class" error message.
Even more frustratingly the first ever Swing application I wrote (& based the remaining apps on) works fine.
Thanks for any help,
Andee
21 years ago
For what it's worth I took your code & put in Websphere studio - it had no problem compiling (except for your decrypt method not returning a String).
Andee
21 years ago