Invalid Assignment error while creating entity bean
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   murali_chittiprolu
Posted On:   Saturday, April 28, 2001 09:14 AM

While creating the stubs and skeleton for the Entity bean through Weblogic Server 5.1 deployer wizard & ejbc command on command prompt i am facing a problem.I am using JDk1.3 compiler.Its gives an error in generated IMPL classes as follows. If the Primary class is bdoPK.class and the key field is document_output_key(type: java.lang.Long) then the error shown is error in bdoPKImpl.class Invalid assignement Required bdoPK but here is Long pk = bdoPK.document_output_sk. I have observed this for so many times.Some times it works and some times it gives an error.I tried a lot but unable to find the reason for this.Please help me out in solving this.    More>>

While creating the stubs and skeleton for the Entity bean through Weblogic Server 5.1 deployer wizard & ejbc command on command prompt i am facing a problem.I am using JDk1.3 compiler.Its gives an error in generated IMPL classes as follows.
If the Primary class is bdoPK.class and the key field is document_output_key(type: java.lang.Long) then the error shown is

error in bdoPKImpl.class
Invalid assignement
Required bdoPK
but here is Long
pk = bdoPK.document_output_sk.

I have observed this for so many times.Some times it works and some times it gives an error.I tried a lot but unable to find the reason for this.Please help me out in solving this.

   <<Less

Re: Invalid Assignment error while creating entity bean

Posted By:   karthik_karthik  
Posted On:   Monday, April 30, 2001 10:26 AM

In the assignment below,

pk = bdoPK.document_output_sk;

What was 'pk' declared to be, a Long, or a bdoPK ?

- Karthik
About | Sitemap | Contact