Cannot attach detached object

I am writing a J2EE application that allows a user to modify some data
retrieved from the database (via the server) and send it back to the
server.
In the following kpm is a private class instance of
KodoPersistenceManager. The class is a singleton so,
kpm = (KodoPersistenceManager) pmf.getPersistenceManager();
kpm.setNontransactionalWrite(true);
is done within the constructor.
I do the following,
Collection rtn = new LinkedList();
Object obj = null;
Extent e = kpm.getExtent(cls, true);
Iterator i = e.iterator();
while (i.hasNext())
rtn.add(i.next());
kpm.retrieveAll(rtn);
kpm.detachAll(rtn);
e.closeAll();
return rtn;
One of the objects is modified and then send back where the following code
is invoked,
kpm.currentTransaction().begin();
kpm.attach(currency);
kpm.currentTransaction().commit();
However I get,
kodo.util.UserException: An object with oid "416.0" already exists in this
PersistenceManager; another cannot be persisted.
FailedObject:com.lehman.clientseg.data.staticdata.Currency@27538
at
kodo.runtime.PersistenceManagerImpl.makePersistentInternal(PersistenceManagerImpl.java:1943)
at
kodo.runtime.PersistenceManagerImpl.makePersistent(PersistenceManagerImpl.java:1881)
at
kodo.runtime.AttachManager.makePersistent(AttachManager.java:383)
at kodo.runtime.AttachManager.attach(AttachManager.java:250)
at kodo.runtime.AttachManager.attach(AttachManager.java:54)
at
kodo.runtime.PersistenceManagerImpl.attach(PersistenceManagerImpl.java:3548)
When kpm.attach() is called.
Any ideas what I'm doing wrong?
Thanks,
Steve

Stephen-
kpm.retrieveAll(rtn);
kpm.detachAll(rtn);
e.closeAll();
return rtn;detachAll returns the detached copies; it does not detach in-place. Do
you shoul be doing something like:
kpm.retrieveAll(rtn);
Collection detached = kpm.detachAll(rtn);
e.closeAll();
return detached;
In article <ckm20f$jqr$[email protected]>, Stephen Sweeney wrote:
I am writing a J2EE application that allows a user to modify some data
retrieved from the database (via the server) and send it back to the
server.
In the following kpm is a private class instance of
KodoPersistenceManager. The class is a singleton so,
kpm = (KodoPersistenceManager) pmf.getPersistenceManager();
kpm.setNontransactionalWrite(true);
is done within the constructor.
I do the following,
Collection rtn = new LinkedList();
Object obj = null;
Extent e = kpm.getExtent(cls, true);
Iterator i = e.iterator();
while (i.hasNext())
rtn.add(i.next());
kpm.retrieveAll(rtn);
kpm.detachAll(rtn);
e.closeAll();
return rtn;
One of the objects is modified and then send back where the following code
is invoked,
kpm.currentTransaction().begin();
kpm.attach(currency);
kpm.currentTransaction().commit();
However I get,
kodo.util.UserException: An object with oid "416.0" already exists in this
PersistenceManager; another cannot be persisted.
FailedObject:com.lehman.clientseg.data.staticdata.Currency@27538
at
kodo.runtime.PersistenceManagerImpl.makePersistentInternal(PersistenceManagerImpl.java:1943)
at
kodo.runtime.PersistenceManagerImpl.makePersistent(PersistenceManagerImpl.java:1881)
at
kodo.runtime.AttachManager.makePersistent(AttachManager.java:383)
at kodo.runtime.AttachManager.attach(AttachManager.java:250)
at kodo.runtime.AttachManager.attach(AttachManager.java:54)
at
kodo.runtime.PersistenceManagerImpl.attach(PersistenceManagerImpl.java:3548)
When kpm.attach() is called.
Any ideas what I'm doing wrong?
Thanks,
Steve
Marc Prud'hommeaux
SolarMetric Inc.

Similar Messages

  • Cannot persist detached object with @ManyToOne

    I have a simple table that holds named relationships between 2 objects. I am using a @ManyToOne type from the relationship object to each of the parent and child objects.
    If the parent and child have NOT already been persisted everything works fine. However if either of them have been previously persisted I fail with a "Cannot persist detached object" error. Why is this, and what is the resolution?
    Through much trial and error I was never able to get em.merge to resolve the issue. However I did implement a @PrePersist and registered both parent and child in the UnitOfWork and this did make the problem go away. This 'hack' however cannot be the right solution since its not portable in any fashion across other ORM providers.
    It's seems as though the Cascade.PERSIST should handle the fact that the objects have already been persisted?
    The following is the relationship class:
    @Entity
    @Table(name="UDM_RELATIONS")
    public class UdmRelationship extends UdmPersistentObject
    * If the parent has not be saved then let the persist of this object take care of it.
    * Don't touch the parent if this relationship is removed.
    @ManyToOne(cascade=CascadeType.PERSIST)
    @JoinColumn(name="PARENT_ID")
    protected UdmPersistentObject parent = null;
    * If the child has not be saved then let the persist of this object take care of it.
    * Don't touch the parent if this relationship is removed.
    @ManyToOne(cascade=CascadeType.PERSIST)
    @JoinColumn(name="CHILD_ID")
    protected UdmPersistentObject child = null;
    * Name the relationship for easier querying and viewing of direct table data.
    @Column(name="REL_NAME")
    protected String relationshipName = null;
    // Initialization
    public UdmRelationship(String relationshipName)
    this.relationshipName = relationshipName;
    public UdmRelationship()
    Annotation annotation = this.getClass().getAnnotation(DiscriminatorValue.class);
    if ( annotation != null )
    DiscriminatorValue dv = (DiscriminatorValue) annotation;
    this.relationshipName = dv.value();
    // Data Management
    @XmlAttribute(name="type")
    protected String getRelationshipName() { return this.relationshipName; }
    @XmlTransient
    protected UdmPersistentObject getParent() { return this.parent; }
    protected void setParent(UdmPersistentObject parent) { this.parent = parent; }
    @XmlTransient
    protected UdmPersistentObject getChild() { return this.child; }
    protected void setChild(UdmPersistentObject child) { this.child = child; }
    @PrePersist
    public void merge()
    Server server = (Server) SessionManager.getManager().getSession("udm-tests");
    Session session = (Session)server.getActiveSession();
    session.acquireUnitOfWork().registerObject(this.parent);
    session.acquireUnitOfWork().registerObject(this.child);
    The following is the error:
    junit.framework.AssertionFailedError: Unable to create Personal Contact: [Persistent Object [com.riscs.tools.data.udm.support.PersonalContact] save failed.; nested exception is javax.persistence.EntityExistsException:
    Exception Description: Cannot persist detached object [com.riscs.tools.data.udm.support.Person@1f47ae8].
    Class> com.riscs.tools.data.udm.support.Person Primary Key> [403]]

    Hello,
    I wasn't clear. Merge is used on unmanaged objects to 'merge' the changes into the managed object. If the object is new, it will return a managed copy of the object. The only difference between merge and persist when passed in a new object, is that persist makes the passed in object managed, where as merge returns a managed copy - the object passed in remains unmanaged.
    As for it being a no-op - it takes a unmanaged copy of an object and returns the managed copy. It will take any changes and merge them into the managed copy, which as you said, is a no-op if there aren't changes. But your object model must have changes - you set a parent-child bidirectional relationship. Also, merge will cascade over the tree. So if you call it on your parent, and you have added a new child in say a 1:M mapping, it will persist the child - if you have the relation set to cascade merge+persist.
    What are the problems you run into with merge?
    As for find - depending on your options, it will hit the cache. The point is that the spec requires you to only reference managed objects. I believe this is to allow the cache to maintain object identity - it would cause problems if you read back the newly persisted child and its referenced parent was unmanaged. Any changes to the parent (such as adding the child to its collection) also need to be managed, so the only way to do that is on a managed copy -either by first using find and then making the changes or by merging the changes made to a detached copy.
    Best Regards,
    Chris

  • JPA - Cannot Persist Detached Entity (Java EE 5)

    Hi All,
    I need your advice on identify what appears to be a persisting a detached School (ManyToMany) entity but could not understand why this is occurring:
    1.     The data supplied is made up of detail between counties and surrounding schools. There are a dozen of schools on average in any county. However, there
    will be some over-lapping schools that are a long the border of adjacent counties. For instance, county 1 consists of A, B, C, D, E, F, G, H, I, J, K, L schools while county 2
    (next to each other) is made up of M, N, B, O, P, Q, R, E, S, T, U, H schools. The common ones are B, E and H and are stored as duplicate records in the
    SCHOOL table.
    2.     
    3.     Lets look at the following code snippets on my attempt to come up with a solution without success still for quite sometime:  
    4.      
    5.     @Entity 
    6.     @IdClass(CountyPK.class)  
    7.     @Table(name="COUNTY", catalog="CountyDB", schema="")  
    8.     public class County implements Serializable {  
    9.           
    10.         @Id 
    11.         @Column(name="ZIPCODE")  
    12.         private String zipcode;  
    13.      
    14.         @Id 
    15.         @Column(name="COUNTY")  
    16.         private String county;  
    17.      
    18.         @Id 
    19.         @Enumerated(EnumType.STRING)  
    20.         @Column(name="STATE")  
    21.         @ManyToMany(cascade={CascadeType.PERSIST}, fetch=FetchType.EAGER)  
    22.         @JoinTable(name="COUNTY_SCHOOL", catalog="CountyDB", schema="",  
    23.                    joinColumns={@JoinColumn(name="ZIPCODE", referencedColumnName="ZIPCODE"),  
    24.                                 @JoinColumn(name="COUNTY", referencedColumnName="COUNTY"),  
    25.                                 @JoinColumn(name="STATE", referencedColumnName="STATE")},  
    26.                    inverseJoinColumns={@JoinColumn(name="SCHOOL", referencedColumnName="ID")})  
    27.         private Set<School>; schools = new HashSet<School>();  
    28.         public Set<School> getSchools()  
    29.         {  
    30.         return schools;  
    31.         }  
    32.         public void setSchools(Set<School> hotels)  
    33.         {  
    34.         this.schools = schools;  
    35.         }  
    36.     }  
    37.      
    38.     @Entity 
    39.     @Table(name="SCHOOL", catalog="CountyDB", schema="")  
    40.     public class School implements Serializable {  
    41.      
    42.         @Id 
    43.         @GeneratedValue(strategy = GenerationType.IDENTITY)  
    44.         @Column(name="ID")  
    45.         private int id;  
    46.      
    47.         @Column(name="SCHOOL_NAME")  
    48.         private String schoolName;  
    49.      
    50.         @ManyToMany(mappedBy="schools", cascade={CascadeType.ALL}, fetch=FetchType.EAGER)  
    51.         private Set<County> counties = new HashSet<County>();  
    52.         public Set<County> getCounties()  
    53.         {  
    54.         return counties;  
    55.         }  
    56.         public void setCounties(Set<County> counties)  
    57.         {  
    58.         this.counties = counties;  
    59.         }  
    60.      
    61.     @Stateless 
    62.     public class CountyBean implements CountyRemote {  
    63.           
    64.         @PersistenceContext(unitName="CountyDB-PU") private EntityManager manager;  
    65.           
    66.         public void createCounty(County county)  
    67.         {  
    68.             manager.persist(county);  
    69.             manager.flush();
    70.         }  
    71.      
    72.         public void saveOrUpdateCounty(County county)  
    73.         {  
    74.             manager.merge(county);
    75.             manager.flush();
    76.         }  
    77.      
    78.      
    79.         public County findCounty(String zipcode, String county, State state)  
    80.         {  
    81.             CountyPK pk = new CountyPK(zipcode, county, state);  
    82.             return manager.find(County.class, pk);  
    83.         }  
    84.           
    85.         public List fetchCountiesWithRelationships()  
    86.         {  
    87.           List list = manager.createQuery("SELECT DISTINCT c FROM County c LEFT JOIN FETCH c.counties").getResultList();  
    88.           for (Object obj : list)  
    89.           {  
    90.              County county = (County)obj;  
    91.           }  
    92.           return list;  
    93.        }  
    94.      
    95.     @Stateless 
    96.     public class SchoolBean implements SchoolRemote {  
    97.           
    98.         @PersistenceContext(unitName="CountyDB-PU") private EntityManager manager;  
    99.           
    100.         public void createSchool(School school)  
    101.         {  
    102.             manager.persist(school);  
    103.         }  
    104.      
    105.         public void saveOrUpdateSchool(School school)  
    106.         {  
    107.             manager.merge(school);  
    108.         }  
    109.      
    110.         public School findSchool(int school_id)  
    111.         {  
    112.             return manager.find(School.class, school_id);  
    113.         }  
    114.      
    115.         public School findSchool(String schoolName)  
    116.         {  
    117.             School school = null;
    118.             Query query = manager.createQuery("Select s FROM School s where s.schoolName = :schoolName");
    119.             query.setParameter("schoolName", schoolName);
    120.             List list = query.getResultList();
    121.             for (Object obj : list)
    122.             {
    123.                 school = (School)obj;
    124.                 if (school.getSchoolName().matches(schoolName))
    125.                     return school;
    126.             }
    127.             return school;   
    128.         }  
    129.                 
    130.         public List fetchSchoolsWithRelationships()  
    131.         {  
    132.              List list = manager.createQuery("SELECT DISTINCT s FROM School s LEFT JOIN FETCH s.schools").getResultList();  
    133.              for (Object obj : list)  
    134.              {  
    135.                  School school = (School)obj;  
    136.              }  
    137.              return list;  
    138.         }  
    139.     }  
    140.      
    141.     public class ApplicationClientAddCounty {  
    142.      
    143.         @EJB 
    144.         private static CountyRemote remoteCountybean;  
    145.         @EJB 
    146.         private static SchoolRemote remoteSchoolbean;  
    147.      
    148.         public static void main(String[] args)
    149.         {  
    150.             BufferedReader br = new BufferedReader(new FileReader("COUNTY.XML"));   
    151.             while (countyList_iterator.hasNext())  
    152.             {  
    153.                 County county = new County();  
    154.                 county.setZipcode(((org.jdom.Element)countyList_iterator.next()).getChild("zipcode");  
    155.                 while (schoolList_iterator.hasNext())  
    156.                 {  
    157.                     String school_name = ((org.jdom.Content)schoolsList_iterator.next()).getValue();  
    158.                     if (school_name.length() != 0)  
    159.                     {  
    160.                          School school = null;  
    161.                          if (!school_name.contains("Schools:"))  
    162.                          {  
    163.                               school = remoteSchoolbean.findSchool(school_name);
    164.                               if (school == null)
    165.                               {
    166.                                   school = new School();
    167.                                   school.setSchoolName(school_name);
    168.                               }
    169.                               county.getSchools().add(school);  
    170.                           }  
    171.                      }
    172.                 }  
    173.            }  
    174.            remoteCountybean.createCounty(county);
    175.     } Below is the a simplistic set of the data available which resulted in deplicate School records being persisted:
    COUNTY
    ID     Name
    1     County 1
    2     County 2
    COUNTY_SCHOOL
    ID     COUNTY_ID     SCHOOL_ID
    1     County 2     1
    2     County 1     2
       SCHOOL
    ID     Name
    1     School A
    2     School A
    Yet I wanted only a single normalized School to be generated instead:
    COUNTY
    ID     Name
    1     County 1
    2     County 2
    COUNTY_SCHOOL
    ID     COUNTY_ID     SCHOOL_ID
    1     County 1     1
    2     County 2     1
       SCHOOL
    ID     Name
    1     School A    I am not clear on why the following behavior is taking place within JPA:
    ( i ) The ID for County 1 in COUNTY_SCHOOL is 2 instead of 1. Vice versa for County 2.
    ( ii ) More importantly, why is School A being populated twice even though the data is identical.
    There appears to be some transactional issue/delay using the container managed JTA. Another intriguing symptom is that the following exception occurred after having taken out the @GeneratedValue(strategy = GenerationType.IDENTITY) in School.java in the hope that only a single record is generated:
    *EJB5018: An exception was thrown during an ejb invocation on [CountyBean]*
    javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean; nested exception is: javax.persistence.EntityExistsException:
    *Exception Description: Cannot persist detached object [domain.School@ce9fa6].*
    Class> domain.School Primary Key> [0]
    javax.persistence.EntityExistsException:
    *Exception Description: Cannot persist detached object [domain.School@ce9fa6].*
    Class> domain.School Primary Key> [0]
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl.persist(EntityManagerImpl.java:224)
    at com.sun.enterprise.util.EntityManagerWrapper.persist(EntityManagerWrapper.java:440)
    at ejb.CountyBean.createCounty(CountyBean.java:18)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    oracle.toplink.essentials.exceptions.ValidationException
    *... 38 more*
    On the other hand, another database exception occurred when directly persisting County & School using remoteCountybean.createCounty(county) as opposed to sending it through a message queue with sendJMSMessageToMyQueue(county) which works:
    *02/02/2011 5:22:14 PM com.sun.enterprise.appclient.MainWithModuleSupport <init>*
    WARNING: ACC003: Application threw an exception.
    javax.ejb.EJBException: nested exception is: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.RemoteException: null; nested exception is:
    javax.persistence.EntityExistsException:
    *Exception Description: Cannot persist detached object [domain.School@1fcea34].*
    Class> domain.School Primary Key> [1]
    Caused by: javax.ejb.EJBException: nested exception is: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.RemoteException: null; nested exception is:
    javax.persistence.EntityExistsException:
    *Exception Description: Cannot persist detached object [domain.School@1fcea34].*
    Class> domain.School Primary Key> [1]
    at ejb._CountyRemote_Wrapper.createCounty(ejb/_CountyRemote_Wrapper.java)
    at addCounty(localImportCounty.java:296)I am running JDK1.6.0_17, GF 2.1 on XP. This is a Java EE 5 Enterprise Application.
    It would be much appreciated for some guidance in an unfamiliar territory. I have had many attempts and read up quite a number of similar threats
    But none offer concrete results.
    Thanks in advance,
    Jack

    Hi,
    A minor correction of the last statement in ApplicationClientAddCounty class below:
    141.     public class ApplicationClientAddCounty {  
    142.      
    143.         @EJB 
    144.         private static CountyRemote remoteCountybean;  
    145.         @EJB 
    146.         private static SchoolRemote remoteSchoolbean;  
    147.      
    148.         public static void main(String[] args)
    149.         {  
    150.             BufferedReader br = new BufferedReader(new FileReader("COUNTY.XML"));   
    151.             while (countyList_iterator.hasNext())  
    152.             {  
    153.                 County county = new County();  
    154.                 county.setZipcode(((org.jdom.Element)countyList_iterator.next()).getChild("zipcode");  
    155.                 while (schoolList_iterator.hasNext())  
    156.                 {  
    157.                     String school_name = ((org.jdom.Content)schoolsList_iterator.next()).getValue();  
    158.                     if (school_name.length() != 0)  
    159.                     {  
    160.                          School school = null;  
    161.                          if (!school_name.contains("Schools:"))  
    162.                          {  
    163.                               school = remoteSchoolbean.findSchool(school_name);
    164.                               if (school == null)
    165.                               {
    166.                                   school = new School();
    167.                                   school.setSchoolName(school_name);
    168.                               }
    169.                               county.getSchools().add(school);  
    170.                           }  
    171.                      }
    172.                 }
    173.                remoteCountybean.createCounty(county);
    173.            }  
    174.     } Thanks,
    Jack

  • WEBUTIL-URGENT FRM:40039 Cannot attach library WEBUTIL while opening form x

    Hi,
    I 'm working with 9iAS R2 on Linux.
    I'm testing the webutil by using a my test form.
    Give that in OS Windows 2000 the test form works fine.
    On Linux, I compile the form without problem, but when I run the form on web I have this error :
    FRM-400039 : Cannot attach library webutil while opening form TEST_FORM
    The Java console displaied this :
    JInitiator: Versione 1.3.1.8
    Uso della versione JRE 1.3.1.8 Java HotSpot(TM) Client VM
    Directory principale utente = D:\Documents and Settings\contug
    Configurazione proxy: Configurazione automatica proxy
    JAR cache enabled
    Location: D:\Documents and Settings\contug\Oracle Jar Cache
    Maximum size: 50 MB
    Compression level: 0
    c: clear console windo
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    Loading http://f92ias.inarcassa.it:7777/forms90/webutil/webutil.jar from JAR cache
    Loading http://f92ias.inarcassa.it:7777/forms90/webutil/jacob.jar from JAR cache
    Loading http://f92ias.inarcassa.it:7777/forms90/java/f90all_jinit.jar from JAR cache
    RegisterWebUtil - Loading Webutil Version 1.0.2 Beta
    connectMode=HTTP, native.
    Versione Applet Forms: 90270
    I don't seem that nothing of unusual.
    Could You say me somethig ??
    Regards
    Giordano

    Hi Duncan,
    How Do I do recompile the pll on Linux?? The environment development doesn't exist on Linux !!
    I open my form in environment development on Win 2000, after I attach the pll without the path and save all.
    After I move all on linux and compile the form useing 'f90genm.sh'. Until this step I don't have problem, the form compiled fine, but
    when I running it, I show the error message FRM-40039 .......
    Do I mistake something ???
    I working on DB ver 7.0.2 and I can't produce the file PLX
    Regards
    Giordano

  • Why not attach/detach in place?

    Calls to makePersistent persist objects in place, but attach/detach calls make copies. Why is there no functionality to attach/detach in place?

    Hello,
    Try clear your recent history:
    *[https://support.mozilla.org/kb/remove-recent-browsing-search-and-download-history Clear recent history]
    Check if this happens in safe mode:
    *[https://support.mozilla.org/kb/troubleshoot-firefox-issues-using-safe-mode Firefox in safe mode]
    Verify if your plugins are updated:
    *[https://www.mozilla.org/en-US/plugincheck/ Plugin check]
    Try go to '''about:config''' and check if this option '''plugin.state.java''' is seted to '''true'''
    *[http://kb.mozillazine.org/About:config about:config]

  • Error while loading shared libraries: librt.so.1: cannot open shared object

    error while loading shared libraries: librt.so.1: cannot open shared object
    I cant run my apache server v2.2.3.
    Can someone help me?
    thanks in advance

    That could be an accessibility issue. Check the user with whom you installed Apache server. Check the user has permissions to access the libraries.
    -Mahendra.

  • Error 0(Native: listNetInterfaces:[3]) and error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory

    Hi Gurus,
    I'm trying to upgrade my test 9.2.0.8 rac to 10.1 rac. I cannot upgrade to 10.2 because of RAM limitations on my test RAC. 10.1 Clusterware software was successfully installed and the daemons are up with OCR and voting disk created. Then during the installation of RAC software at the end, root.sh needs to be run. When I run root.sh, it gave the error: while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory. I have libpthread.so.0 in /lib. I looked up on metalink and found Doc ID: 414163.1 . I unset the LD_ASSUME_KERNEL in vipca (unsetting of LD_ASSUME_KERNEL was not required in srvctl because there was no LD_ASSUME_KERNEL in srvctl). Then I tried to run vipca manually. I receive the following error: Error 0(Native: listNetInterfaces:[3]). I'm able to see xclock and xeyes. So its not a problem with x.
    OS: OEL5 32 bit
    oifcfg iflist
    eth0 192.168.2.0
    eth1 10.0.0.0
    oifcfg getif
    eth1 10.0.0.0 global cluster_interconnect
    eth1 10.1.1.0 global cluster_interconnect
    eth0 192.168.2.0 global public
    cat /etc/hosts
    192.168.2.3 sunny1pub.ezhome.com sunny1pub
    192.168.2.4 sunny2pub.ezhome.com sunny2pub
    192.168.2.33 sunny1vip.ezhome.com sunny1vip
    192.168.2.44 sunny2vip.ezhome.com sunny2vip
    10.1.1.1 sunny1prv.ezhome.com sunny1prv
    10.1.1.2 sunny2prv.ezhome.com sunny2prv
    My questions are:
    should ping on sunny1vip and sunny2vip be already working? As of now they dont work.
    if you look at oifcfg getif, I initially had eth1 10.0.0.0 global cluster_interconnect,eth0 192.168.2.0 global public then I created eth1 10.1.1.0 global cluster_interconnect with setif. Should it be 10.1.1.0 or 10.0.0.0. I looked at the subnet calculator and it says for 10.1.1.1, 10.0.0.0 is the subnet. In metalink they had used 10.10.10.0 and hence I used 10.1.1.0
    Any ideas on resolving this issue would be very much appreciated. I had been searching on oracle forums, google, metalink but all of them refer to DOC Id 414163.1 but it does n't seem to work. Please help. Thanks in advance.
    Edited by: ayyappa on Aug 20, 2009 10:13 AM
    Edited by: ayyappa on Aug 20, 2009 10:14 AM
    Edited by: ayyappa on Aug 20, 2009 10:15 AM

    a step forward towards resolution but i need some help from the gurus.
    root# cat /etc/hosts
    127.0.0.1 localhost.localdomain localhost
    ::1 localhost6.localdomain6 localhost6
    192.168.2.3 sunny1pub.ezhome.com sunny1pub
    192.168.2.4 sunny2pub.ezhome.com sunny2pub
    10.1.1.1 sunny1prv.ezhome.com sunny1prv
    10.1.1.2 sunny2prv.ezhome.com sunny2prv
    192.168.2.33 sunny1vip.ezhome.com sunny1vip
    192.168.2.44 sunny2vip.ezhome.com sunny2vip
    root# /u01/app/oracle/product/crs/bin/oifcfg iflist
    eth1 10.0.0.0
    eth0 192.168.2.0
    root# /u01/app/oracle/product/crs/bin/oifcfg getif
    eth1 10.0.0.0 global cluster_interconnect
    eth0 191.168.2.0 global public
    root# /u01/app/oracle/product/10.1.0/Db_1/bin/srvctl config nodeapps -n sunny1pub -a
    ****ORACLE_HOME environment variable not set!
    ORACLE_HOME should be set to the main directory that contain oracle products. set and export ORACLE_HOME, then re-run.
    root# export ORACLE_BASE=/u01/app/oracle
    root# export ORACLE_HOME=/u01/app/oracle/product/10.1.0/Db_1
    root# export ORA_CRS_HOME=/u01/app/oracle/product/crs
    root# export PATH=$PATH:$ORACLE_HOME/bin
    root# /u01/app/oracle/product/10.1.0/Db_1/bin/srvctl config nodeapps -n sunny1pub -a
    VIP does not exist.
    root# /u01/app/oracle/product/10.1.0/Db_1/bin/srvctl add nodeapps -n sunny1pub -o $ORACLE_HOME -A 192.168.2.33/255.255.255.0
    root# /u01/app/oracle/product/10.1.0/Db_1/bin/srvctl add nodeapps -n sunny2pub -o $ORACLE_HOME -A 192.168.2.44/255.255.255.0
    root# /u01/app/oracle/product/10.1.0/Db_1/bin/srvctl config nodeapps -n sunny1pub -a
    VIP exists.: sunny1vip.ezhome.com/192.168.2.33/255.255.255.0
    root# /u01/app/oracle/product/10.1.0/Db_1/bin/srvctl config nodeapps -n sunny2pub -a
    VIP exists.: sunny2vip.ezhome.com/192.168.2.44/255.255.255.0
    Once I execute the add nodeapps command as root on node 1, I was able to get vip exists for config nodeapps on node 2. The above 2 statements resulted me with same values on both nodes. After this I executed root.sh on both nodes, I did not receive any errors. It said CRS resources are already configured.
    My questions to the gurus are as follows:
    Should ping on vip work? It does not work now.
    srvctl status nodeapps -n sunny1pub(same result for sunny2pub)
    VIP is not running on node: sunny1pub
    GSD is not running on node: sunny1pub
    PRKO-2016 : Error in checking condition of listener on node: sunny1pub
    ONS daemon is not running on node: sunny1pub
    [root@sunny1pub ~]# /u01/app/oracle/product/crs/bin/crs_stat -t
    Name Type Target State Host
    ora....pub.gsd application OFFLINE OFFLINE
    ora....pub.ons application OFFLINE OFFLINE
    ora....pub.vip application OFFLINE OFFLINE
    ora....pub.gsd application OFFLINE OFFLINE
    ora....pub.ons application OFFLINE OFFLINE
    ora....pub.vip application OFFLINE OFFLINE
    Will crs_stat and srvctl status nodeapps -n sunny1pub work after I upgrade my database or should they be working now already? I just choose to install 10.1.0.3 software and after running root.sh on both nodes, I clicked ok and then the End of installation screen appeared. Under installed products, I see 9i home, 10g home, crs home. Under 10g home and crs home, I see cluster nodes(sunny1pub and sunny2pub) So it looks like the 10g software is installed.

  • Error while loading shared libraries: libdl.so.2: cannot open shared object

    I got the error when I run the Identity server "./start_ois_server"
    Using Linux Threading Library.
    /opt/netpoint/identity/oblix/apps/common/bin/ois_server: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
    rm: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    OIS Server started with pid: 11241
    [root@EX4200SRV02 bin]# /bin/sh: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    Can someone help me resolving this issue?
    thanks. Your help is very much appreciated.
    thanks.

    I resolved the issue by commenting "LD" in start_ois_server.

  • Cannot open shared object file: on Informatica Power Centre(8.1.1) Installa

    Hi Friends,
    I am trying to install Informatica Power Centre 8.1.1 and when i invoke the installet it' giving below error:
    My OS is Redhat Linux (64 bit).
    What's the issue?
    onfiguring the installer for this system's environment...
    awk: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
    dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    /bin/ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
    basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    Launching installer...
    grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    /tmp/install.dir.28135/Linux/resource/jre/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
    [oracle@obidb PowerCenter_8.1.1_SE_for_Linux_x64_64Bit]$
    Regards,
    DB

    Hi;
    I am in the process of installing R12.1.1 on RHEL5(64-bit). All the pre-req have been done.. I did the installation twice but I am facing the same issue. When i try to run adconfig.sh on the appsTier. i get the following errorYou want to run adconfig.sh on appstier or dbtier?
    If you run appstier be sure you source env file with applmgr user
    Regard
    Helios

  • Cannot open shared object file: on Informatica Power Centre Installation

    Hi Friends,
    I am trying to install Informatica Power Centre 8.1.1 and when i invoke the installet it' giving below error:
    My OS is Redhat Linux (64 bit).
    What's the issue?
    onfiguring the installer for this system's environment...
    awk: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
    dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    /bin/ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
    basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    Launching installer...
    grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    /tmp/install.dir.28135/Linux/resource/jre/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
    [oracle@obidb PowerCenter_8.1.1_SE_for_Linux_x64_64Bit]$
    Regards,
    DB

    Hi;
    I am in the process of installing R12.1.1 on RHEL5(64-bit). All the pre-req have been done.. I did the installation twice but I am facing the same issue. When i try to run adconfig.sh on the appsTier. i get the following errorYou want to run adconfig.sh on appstier or dbtier?
    If you run appstier be sure you source env file with applmgr user
    Regard
    Helios

  • Error Message: JBO-25009: Cannot create an object of type:oracle.jbo.domain

    Hi, When im giving a default value to a date column in the attribute settings i get this error when im running my jsp page (bc4j web application):
    Error Message: JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date with value: 31-dic-2099
    How can i fix that? I�ve already trying all possible date formats.
    Thanku

    The default format for Date (oracle.sql.DATE which is the superclass of oracle.jbo.domain.Date) is yyyy-mm-dd.

  • Cannot attach PL/SQL library APPCORE... forms6i

    Hello,
    I am trying to open the template.fmb form and I cannot seem to get forms to recognize the FORMS60_PATH variable in the registry.
    I transferred (in binary) all the .pll files from $AU_TOP/resource to a local directory ORACLE_HOME\FORMS60\resource.
    I transferred (in binary) TEMPLATE.fmb and APPSTAND.fmb to the same directory.
    I set the HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\FORMS60_PATH to 'C:\oracle\ora806\FORMS60\resource' (without the quotes).
    I added HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\ORACLE_APPLICATION and set it to 'TRUE'
    I added the FORMS60_PATH to the system variable file in windows to 'c:\oracle\ora806\FORMS60\resource'.
    I rebooted the machine.
    I am still getting the same error message.
    I reinstalled forms so that it was the only Oracle product on my machine.
    version (6.0.8.24.1)
    I am running windows XP SP2
    Can anyone tell me what I am missing? Or why I cannot get the libraries to attach?

    There is a whole list of them that won't attach -
    FRM-10102: Cannot attach PL/SQL library APPCORE. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library APPDAYPK. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library VERT. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library PSAC. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library CUSTOM. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library IGILUTIL. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library IGILUTIL2. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library IGI_CBC. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library APPCORE. This library attachment will be lost if the module is saved.
    --- all Oracle .pll files that are required to modify the template form.... APPDAYPK, APPCORE,VERT, etc. I have not tried attaching (and don't actually have) a personal library
    Message was edited by:
    bonnibelle

  • Unable to delete User object in FIM Portal - Cannot find the object "#calculateRequestSetTransitionsAssembleStatementsPartition"

    Hi,
    ***Problem
    I encounter a problem with FIM (version 4.1.3441.0 and 4.1.3496.0) when I try to delete a User object (and only a User object) whatever if it is
    manually/Expiration Workflow/Powershell.
    Deleting a User object used to be perfectly functional and, without any product version modification, stopped working. I haven't neither deleted/modified or add a
    "Grant" MPR or any of the corresponding Sets since last time I saw it working.
    Displayed error is "Request could not be dispatched" in FIM Portal and is referencing a stored procedure in Event Viewer.
    ***Error details
    When I try to delete a User object, here is the output :
    Portal
    "Processing error" on submit
    with the following details 
    Request status is stuck at "Validating" until next restart of FIM Service (after what it becomes “Canceled”)
    Request’s “Applied Policy” tab does not contain any MPR where, at least, a “Grant” MPR is expected
    As SQL Timeout is relatively high and error happens quickly, I don’t think there is a Timeout problem under that.
    Logs
    « Application »
    The Portal cannot connect to the middle tier using the web service interface.  This failure prevents all portal scenarios from functioning correctly.
    The cause may be due to a missing or invalid server url, a downed server, or an invalid server firewall configuration.
    Ensure the portal configuration is present and points to the resource management service.
     « Forefront Identity Manager »
    Reraised Error 50000, Level 16, State 1, Procedure ReRaiseException, Line 37, Message: Reraised Error 1088, Level 16, State 12, Procedure CalculateRequestSetTransitionsAssembleStatements,
    Line 332, Message: Cannot find the object "#calculateRequestSetTransitionsAssembleStatementsPartition" because it does not exist or you do not have permissions.
    Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements. Previous count = 1, current count = 0.
    Microsoft.ResourceManagement.WebServices.Exceptions.UnwillingToPerformException: Other ---> System.Data.SqlClient.SqlException: Reraised Error 50000, Level 16, State
    1, Procedure ReRaiseException, Line 37, Message: Reraised Error 1088, Level 16, State 12, Procedure CalculateRequestSetTransitionsAssembleStatements, Line 332, Message: Cannot find the object "#calculateRequestSetTransitionsAssembleStatementsPartition"
    because it does not exist or you do not have permissions.
    Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements. Previous count = 1, current count = 0.
       at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler,
    TdsParserStateObject stateObj)
       at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
       at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
       at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult
    result)
       at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
       at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
       at Microsoft.ResourceManagement.Data.DataAccess.UpdateRequest(RequestType request, IEnumerable`1 updates)
       --- End of inner exception stack trace ---
    Requestor: urn:uuid:7fb2b853-24f0-4498-9534-4e10589723c4
    Correlation Identifier: e7209633-46d0-4f4b-a59e-807649ef71ea
    Microsoft.ResourceManagement.WebServices.Exceptions.UnwillingToPerformException: Other ---> System.InvalidCastException: Specified cast is not valid.
       at Microsoft.ResourceManagement.WebServices.RequestDispatcher.CreateRequest(UniqueIdentifier requestor, UniqueIdentifier targetIdentifier, OperationType
    operation, String businessJustification, List`1 requestParameters, CultureInfo locale, Boolean isChildRequest, Guid cause, Boolean doEvaluation, Nullable`1 serviceId, Nullable`1 servicePartitionId, UniqueId messageIdentifier, UniqueIdentifier requestContextIdentifier,
    Boolean maintenanceMode)
       at Microsoft.ResourceManagement.WebServices.RequestDispatcher.CreateRequest(UniqueIdentifier requestor, UniqueIdentifier targetIdentifier, OperationType
    operation, String businessJustification, List`1 requestParameters, CultureInfo locale, Boolean isChildRequest, Guid cause, Boolean doEvaluation, Nullable`1 serviceId, Nullable`1 servicePartitionId, UniqueId messageIdentifier)
       at Microsoft.ResourceManagement.WebServices.ResourceManagementService.Delete(Message request)
       --- End of inner exception stack trace ---
    For information, a maintenance plan rebuild/reorganize indexes daily and this problem has occurred on servers with different performances.
    Is any of you has already encounter this problem ?
    Any help would be greatly appreciated,
    Thanks in advance for your help,
    Matthew

    While there are several SQL Agent jobs (FIM Temporal Events, Maintain Sets, and Maintain Groups among others)created by the FIM install only one of those is enabled and scheduled and it calls all of the same stored procedures that the other
    jobs do. Step 2 is Maintain sets and Step 3 is maintain groups. So the Maintain sets and groups jobs never need to get enabled and scheduled, but if you want them to be maintained more frequently then you can.
    David Lundell, Get your copy of FIM Best Practices Volume 1 http://blog.ilmbestpractices.com/2010/08/book-is-here-fim-best-practices-volume.html

  • Cannot Attach library

    Hi, I am getting an error Cannot attach library webutil when running a Form from Form builder, I have checked all the path entries and everything seems to be correct, I have also checked the permissions on the files and nothing seems to be wrong, Can someone please let me know what could be wrong ?
    Thanks

    Hello,
    Compile the webutil.pll, then move the .plx to one of the folders pointed by the FORMS_PATH variable.
    Francois

  • Invalid URL error when displaying Work Item Attached URL Object in UWL

    Hi,
    After upgraded from EP6 to EP7 the user can no longer display the attached URL object of work items in the UWL Inbox.  It works fine in the SAPGUI Inbox so the URL should be okay.  We found below error messages in UWL log file:
    #1.5#0003BA5D298B001E0000030300003A280004314BFE992222#1180102370599#/uwl/ui#sap.com/tcwddispwda#com.sap.netweaver.bc.uwl.ui.control.UWLActionControl#C004049#43497#####SAPEngine_Application_Thread[impl:3]_0##0#0#Warning#1#com.sap.netweaver.bc.uwl.ui.control.UWLActionControl#Plain###com.sap.tc.webdynpro.services.exceptions.InvalidUrlRuntimeException: Invalid URL=HTTP://apinvoice.d51.lilly.com
    gbip
    gbip.asp?po=invoice=TC630400360USERID=USC076601#
    #1.5#0003BA5D298B001E0000030400003A280004314BFE9986AB#1180102370625#/uwl/ui#sap.com/tcwddispwda#com.sap.netweaver.bc.uwl.ui.control.UWLActionControl#C004049#43497#####SAPEngine_Application_Thread[impl:3]_0##0#0#Warning#1#com.sap.netweaver.bc.uwl.ui.control.UWLActionControl#Plain###com.sap.netweaver.bc.uwl.UWLException: Fri May 25 10:12:50 EDT 2007
    (Portal) :com.sap.tc.webdynpro.services.exceptions.InvalidUrlRuntimeException:Invalid URL=HTTP://apinvoice.d51.lilly.com
    gbip
    gbip.asp?po=invoice=TC630400360USERID=USC076601#
    Looks like the error is related to the back slashes in the URL but it was working fine in EP6.  We are going to change the back slashes to forward slashes to see it will work.  We would like to know if any SDNer’s can provide some more detail on why this is happening and if there is other solution.  Any hint will be very appreciated.
    Regards,
    Jiannan Che

    Use link attachment or add button action to UWL as possible workaround. It appears that work item text can only be displayed as-is.

Maybe you are looking for

  • Integration Broker - PTool 8.50 - Pinging remote node errors out

    Hi! I am trying to configure default local nodes on HCM 9.1 and FSCM 9.1, both systems have PeopleTools 8.50. HCM 9.1 is installed on Windows 7 Home Premium. DB is Oracle 10g FSCM 9.1 is installed on Windows 2003 server. DB is Oracle 10g Problem: ===

  • IOS native extension for networkinfo throws an error

    Hello, I'm trying to check wether the active connection on a device is Wifi or mobile data connection. On android this works fine but on iOS there is a problem. A native extension exists for this see here.  The problem is that the line below throws a

  • Help! my scroll bar (elevator bar) is not showing up now--how can I fix it; it's driving me crazy!

    The scroll (elevator) bar has suddenly become very faint, hard, to find, and in some cases is not showing up at all. The arrows at the top and bottom show up, but not the scrolly tool itself. I have tried changing the themes/display, but it doesn't s

  • Apply patch 6194129 lot of  /usr/bin/ld errors

    Hi os...linux-x86. ebs:11.5.10 Trying to apply patch 6194129 (developer6i_patch19). Getting lot of error messages like /usr/bin/ld: warning: i386 architecture of input file `tmabox.o' is incompatible with i386:x86-64 output. logfile: /usr/bin/ld: war

  • Tiger to Leopard question

    About to sell my imac G5 and invest in a new imac (Intel). My G5 HD is fully backed up to an external HD (firewire) using SuperDuper. Will I be able to transfer all my data over to Leopard, ie; Applications, files, music (Itunes) etc? Can I assume th