This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 96367 - NoSuchMethodException Problem
Summary: NoSuchMethodException Problem
Status: RESOLVED INVALID
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Nitya Doraisamy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-22 21:50 UTC by alvarommz
Modified: 2007-03-08 20:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alvarommz 2007-02-22 21:50:21 UTC
Hello Sirs
 
The following is an output, - from the deploying process of an EJB file-, which 
exposes the nature of a problem I´ve been lately experimenting in my project:  

>Exception [TOPLINK-60] (Oracle TopLink Essentials - 2006.8 (Build 060830)): 
>oracle.toplink.essentials.exceptions.DescriptorException
>Exception Description: The method [_toplink_setoIddocType_vh] or   
[_toplink_getoIddocType_vh] is not defined in the object 
[org.aemm.appl.entity.COPerson].
>Internal Exception: java.lang.NoSuchMethodException: 
org.aemm.appl.entity.COPerson._toplink_getoIddocType_vh()
>Mapping: oracle.toplink.essentials.mappings.OneToOneMapping[oIddocType]
>Descriptor: RelationalDescriptor(org.aemm.appl.entity.COPerson --> 
[DatabaseTable(CS_PERSON)])
 
>Exception [TOPLINK-60] (Oracle TopLink Essentials - 2006.8 (Build 060830)): 
>oracle.toplink.essentials.exceptions.DescriptorException
>Exception Description: The method [_toplink_setoCity_vh] or 
[_toplink_getoCity_vh] is not defined in the object 
[org.aemm.appl.entity.COPerson].
>Internal Exception: java.lang.NoSuchMethodException: 
org.aemm.appl.entity.COPerson._toplink_getoCity_vh()
>Mapping: oracle.toplink.essentials.mappings.OneToOneMapping[oCity]
>Descriptor: RelationalDescriptor(org.aemm.appl.entity.COPerson --> 
[DatabaseTable(CS_PERSON)])

The tool I am using is Netbeans 5.5 with Application Server 9 and Toplink. This 
problem appears in several of my project´s entities. 

When I review the java sources I find out that the function actually exists but 
it might be unrecognized by the system, so as when I retry the deployment the 
output is posted again. 

I tried the Netbeans 5.5 "Project Verify" tool but the results are the same. I 
have been reading Toplink´s documentation but it sent me to the Java SDK 
documentation where I found nothing concerning this trouble.
 
I´d be quite grateful if anyone of you could help me or give me any Idea.
 
For illustration on the problem I include a fragment of the concerning class 
source code:
 
@Entity
@Table( name = "CS_PERSON" )
@DiscriminatorValue(value="COPerson")
@PrimaryKeyJoinColumn(name="CIdentity", referencedColumnName="CId")
public class COPerson extends COContrStar implements Serializable
{

    @ManyToOne(targetEntity=COIddocType.class, fetch=FetchType.LAZY, cascade=
{CascadeType.REFRESH})
    @JoinColumn(name="DocType",referencedColumnName="DocType")
    protected COIddocType oIddocType;
 
    @ManyToOne( targetEntity = COCity.class, fetch = FetchType.LAZY, cascade = 
{ CascadeType.REFRESH } )
    @JoinColumn( name = "CityId", referencedColumnName = "CId" )
    protected COCity oCity;
 
    public COIddocType getoIddocType()
    {
        return oIddocType;
    }
 
    public void setoIddocType( COIddocType oIddocType )
    {
        this.oIddocType = oIddocType;
    }
 
    public COCity getoCity()
    {
        return oCity;
    }
 
    public void setoCity( COCity oCity )
    {
        this.oCity = oCity;
    }

}

Thanks in advance
Alvaro E Martinez M
alvarommz@yahoo.com
Comment 1 Sherold Dev 2007-02-27 12:32:43 UTC
Reassigning to sunappserv for evaluation
Comment 2 Nitya Doraisamy 2007-03-08 20:04:45 UTC
This appears to be an issue with the project than a plugin related issue/
You might get more information/resolution by posting this issue to 
persistence@glassfish.dev.java.net where a where a wider audience might be able
to help.

I filed this issue against glassfish,
https://glassfish.dev.java.net/issues/show_bug.cgi?id=2571

Also it appears similar to issue,
https://glassfish.dev.java.net/issues/show_bug.cgi?id=2546

Marking issue as Invalid