WebSphere Application Server - Wrong values are updated in the bean.

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > April 2006 > Wrong values are updated in the bean.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Wrong values are updated in the bean.

2006-04-27, 8:08 am

Hi,
I am using WAS Version 5 and the database used is Oracle 8.1.7 and the JDBC driver version used is 9.2.0.1.0.
While updating a bean, one particular column which is not part of the primary key gets updated with some unknown garbage values. I did not face any issue while develiping in my WSAD interview.
Now I have deployed the code in another test environment. Here I am facing this strange problem. No error is thrown at the backend.

This is urgent. Any help on this will be helpful.

Thanks,
Jayashree

Randy Schnier

2006-04-27, 8:08 am

Sounds like opening a PMR with IBM Support would be advisable. Are you
using CMP 1.1, CMP 2.0, BMP, or something else?

ajayashree@yahoo.com wrote:
> Hi,
> I am using WAS Version 5 and the database used is Oracle 8.1.7 and the JDBC driver version used is 9.2.0.1.0.
> While updating a bean, one particular column which is not part of the primary key gets updated with some unknown garbage values. I did not face any issue while develiping in my WSAD interview.
> Now I have deployed the code in another test environment. Here I am facing this strange problem. No error is thrown at the backend.
>
> This is urgent. Any help on this will be helpful.
>
> Thanks,
> Jayashree
>

2006-04-27, 8:08 am

I am using CMP 2.0

2006-04-27, 8:08 am

Hi,
I have created a PMR with IBM. But I am not getting any help/support on this.
Any help on this problem will be really helpful.

Thanks,
Jayashree
Randy Schnier

2006-04-27, 8:08 am

Just a thought...what type of object are you using for the primary key?
Is it immutable (for example, a java.lang.String), or is it a user
type that has the possibility to be changed? If it's a user type, and
that key object is modified after being used to create or find an
entity, symptoms like this may occur.

ajayashree@yahoo.com wrote:
> Hi,
> I have created a PMR with IBM. But I am not getting any help/support on this.
> Any help on this problem will be really helpful.
>
> Thanks,
> Jayashree

2006-04-27, 8:08 am

primary key fields are String and Integer.
But for the number fields in the table, I need to change the datatype 'Number' to datatype 'Integer' in 'TableName.tblxmi'. Because while generating the deploy code I was getting the error 'Query cannot be pushed down'. So in the TableName.tblxmi I change
d the datatype from 'Number' to 'Integer'. Datatype for the corresponding CMP fields were defined as java.lang.Integer in the bean.

Do you think this will create a problem ?.

Anyways I will change and generate the code accordingly and try if it works fine.

Thanks,
Jayashree

2006-04-27, 8:08 am

Hi,
I changed the integer to number and changed the finder query to not to use the number column. But still facing the same problem. It puts some garbage values in the column. It is always the same column.

Thanks,
Jayashree

Randy Schnier

2006-04-27, 8:08 am

Sorry you are still having problems. The code that converts between
datatypes is not my area of expertise, so at this point your best route
is to work with IBM support, since this newsgroup is not an official
support channel.

ajayashree@yahoo.com wrote:
> Hi,
> I changed the integer to number and changed the finder query to not to use the number column. But still facing the same problem. It puts some garbage values in the column. It is always the same column.
>
> Thanks,
> Jayashree
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com