> I have a CMP bean with a ejbFindByParentCollectionId method in it. my
> ejbfinder method sets my param, and return nulls.
> I also defined my findByParentCollectionIdSQL properties.
>
> ejbfinder, props and error trace at the bottom of this email.
> Any pointers to what I am doing wrong?
>
> Thanks.
>
>
>
>
> public List ejbFindByParentCollectionId(int parentCollectionId) throws
> javax.ejb.FinderException, javax.ejb.EJBException {
> // Write your code here
> this.parentCollectionId = parentCollectionId;
> return null;
> }
>
>
> ejipt.findByParentCollectionIdSQL=SELECT c.collectionId as
> collectionId,c.collectionName as collectionName FROM collection
> c,collection_hierarchy ch WHERE ch.parentCollectionId = ? and
> ch.collectionId = c.collectionId
> ejipt.findByParentCollectionIdSQL.source= source1
> ejipt.findByParentCollectionIdSQL.params=parentCollectionId
> ejipt.findByParentCollectionIdSQL.fields=collectionId, collectionName
>
> java.lang.ClassCastException:
> com.alcoa.alecomm.productsalemgmt.shopping.CollectionObject_Stub
> at
> com.alcoa.alecomm.productsalemgmt.shopping.CollectionHomeObject_Stub.
> findByParentCollectionId(servers/default/deploy/src/com/alcoa/alecomm/prod
> uctsal
> emgmt/shopping/CollectionHomeObject_Stub.java:287)
> at
> com.alcoa.alecomm.productsalemgmt.shopping.CollectionClient.main(Coll
> ectionClient.java:54)
> closing context
>
>
>
> Phillip Rhodes
> [EMAIL PROTECTED]
> Alcoa eCommerce
> https://www.ALCOADIRECT.COM
> 826B Two Allegheny Center Pittsburgh, PA 15212
> (412) 553-4900 (phone) (412) 553-2484 (fax)
>
------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.