Circular reference error
Hi all,
In a Check payment PLD, when I am create new formula field when I am adding formula Concat(F_196,ToString(Field_150))
Its shows Circular reference have been detected ,Document may not print correctly .
pl suggest me
Thanks
Nitin
Hi Sir,
Thank You very much.
Regards
Nitin
Similar Messages
-
Phantom circular reference errors in spreadsheet
I'm getting phantom circular reference errors in one of my Appleworks spreadsheets.
I'm trying to compute the average of several sets of pairs of numbers, I have max of three pairs per line, and I'm using COUNT to determine how many pairs are present. I'm getting "can't resolve circular reference" errors occasionally when I fill down and add data for a new line, even though there aren't any circular references.
Columns
A= date, B=average X, C=averageY, D=number of pairs for this line
E F = first pair, G H = second pair, I J = third pair.
The second and third pair don't occur every day.
These are the formulas I'm using,
B average_X =(E_line# + G_line# + Iline#)/Dline#
C average_Y =(F_line# + H_line# + Jline#)/Dline#
D numPairs =COUNT(Eline#...Jline#)/2
I add a new line each day.
Its worked just fine until I went over 100 lines and now I occasionally get "can't resolve circular reference" erros, and the calculation cells, but there AREN'T any circular references.
Anyone have any idea whats going on?I'm using AW 6.2.7 I'm on OS X 10.3.9
I tried it with removing the AVERAGE and COUNT functions and it still happens.
Seems like its somehow related to any references to columns J and K, even if there's no data in those cells, and no references to other cells.
Its related to the COUNT function.
If I drop off the last two columns it all seems to work ok.
=(F153+H153)/(E153/2)
where E153 is =COUNT(F153..I153)
But if I try to use the last pair (columns J and K) it gets errors
=(F153H153I153)/(E153/2)
where E153 is =COUNT(F153..K153)
DOES the COUNT function have a limitation to how many cells it can reference?
It seems like for some reason the J column is corrupted. sometimes if there is any number in colum J it gets "circular reference error" EVEN though there is NO circulare reference only a number.
BUT when I delete the number from Column J the error goes away. -
Hello Folks -
I am trying to implement both ManyToMany and OneToMany relationships in J2EE EJB3.0.
My application client has no problems, but when I expose my session bean methods as WebServices, I constantly run into this circular reference error.
My example tables are simple:
CREATE TABLE CLUB
ID NUMBER NOT NULL,
NAME VARCHAR2(100 BYTE) NOT NULL,
CITY VARCHAR2(100 BYTE) NOT NULL,
COUNTRY VARCHAR2(100 BYTE) NOT NULL
TABLESPACE USERS
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
BUFFER_POOL DEFAULT
CREATE UNIQUE INDEX CLUB_PK ON CLUB
(ID)
TABLESPACE USERS
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
BUFFER_POOL DEFAULT
CREATE UNIQUE INDEX CLUB_UK1 ON CLUB
(NAME, COUNTRY)
TABLESPACE USERS
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
BUFFER_POOL DEFAULT
ALTER TABLE CLUB ADD (
CONSTRAINT CLUB_PK
PRIMARY KEY
(ID)
USING INDEX
TABLESPACE USERS
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
ALTER TABLE CLUB ADD (
CONSTRAINT CLUB_UK1
UNIQUE (NAME, COUNTRY)
USING INDEX
TABLESPACE USERS
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
CREATE TABLE CONTRACTPERIOD
ID NUMBER NOT NULL,
PYR_ID NUMBER NOT NULL,
CUB_ID NUMBER NOT NULL,
START_DATE DATE NOT NULL,
END_DATE DATE
TABLESPACE USERS
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
BUFFER_POOL DEFAULT
CREATE UNIQUE INDEX CONTRACTPERIOD_PK ON CONTRACTPERIOD
(ID)
TABLESPACE USERS
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
BUFFER_POOL DEFAULT
ALTER TABLE CONTRACTPERIOD ADD (
CONSTRAINT CONTRACTPERIOD_PK
PRIMARY KEY
(ID)
USING INDEX
TABLESPACE USERS
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
ALTER TABLE CONTRACTPERIOD ADD (
CONSTRAINT CONTRACTPERIOD_FK
FOREIGN KEY (PYR_ID)
REFERENCES PLAYER (ID)
ON DELETE CASCADE);
ALTER TABLE CONTRACTPERIOD ADD (
CONSTRAINT CONTRACTPERIOD_FK2
FOREIGN KEY (CUB_ID)
REFERENCES CLUB (ID)
ON DELETE CASCADE);
CREATE TABLE PLAYER
ID NUMBER NOT NULL,
FIRSTNAME VARCHAR2(30 BYTE) NOT NULL,
LASTNAME VARCHAR2(30 BYTE) NOT NULL,
NATIONALITY VARCHAR2(30 BYTE) NOT NULL,
BIRTHDATE DATE NOT NULL
TABLESPACE USERS
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
BUFFER_POOL DEFAULT
CREATE UNIQUE INDEX PLAYERS_PK ON PLAYER
(ID)
TABLESPACE USERS
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
BUFFER_POOL DEFAULT
ALTER TABLE PLAYER ADD (
CONSTRAINT PLAYERS_PK
PRIMARY KEY
(ID)
USING INDEX
TABLESPACE USERS
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
Also the Stateless session bean is simple:
package demo;
import java.util.Collection;
import java.util.List;
import javax.ejb.Stateless;
import javax.jws.WebService;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityTransaction;
import javax.persistence.Persistence;
import javax.persistence.Query;
@Stateless
@WebService
public class JavaServiceFacade {
private EntityManagerFactory emf = Persistence.createEntityManagerFactory("demo-1");
public JavaServiceFacade() {
public static void main(String [] args) {
final JavaServiceFacade javaServiceFacade = new JavaServiceFacade();
// TODO: Call methods on javaServiceFacade here...
Collection<Player> playerCollection = javaServiceFacade.queryPlayerFindAll();
for (Player player : playerCollection){
System.out.println(player.getFirstname()+" "+player.getLastname()+"\n");
Collection<Club> clubCollection = (Collection<Club>)javaServiceFacade.queryClubFindAll();
for (Club club : clubCollection){
System.out.println(club.getName()+"\n");
List<Contractperiod> contractperiodList= player.getContractperiodList();
for (Contractperiod contractperiod : contractperiodList){
System.out.println("contracts: "+ contractperiod.getClub().getName() + ": from: "
contractperiod.getStartDate()" to: " contractperiod.getEndDate() "\n");
private EntityManager getEntityManager() {
return emf.createEntityManager();
public Object mergeEntity(Object entity) {
final EntityManager em = getEntityManager();
try {
final EntityTransaction et = em.getTransaction();
try {
et.begin();
em.merge(entity);
et.commit();
} finally {
if (et != null && et.isActive()) {
entity = null;
et.rollback();
} finally {
if (em != null && em.isOpen()) {
em.close();
return entity;
public Object persistEntity(Object entity) {
final EntityManager em = getEntityManager();
try {
final EntityTransaction et = em.getTransaction();
try {
et.begin();
em.persist(entity);
et.commit();
} finally {
if (et != null && et.isActive()) {
entity = null;
et.rollback();
} finally {
if (em != null && em.isOpen()) {
em.close();
return entity;
/** <code>select o from Club o</code> */
public List<Club> queryClubFindAll() {
Query query = getEntityManager().createNamedQuery("Club.findAll");
return (List<Club>) query.getResultList();
public void removeClub(Club club) {
final EntityManager em = getEntityManager();
try {
final EntityTransaction et = em.getTransaction();
try {
et.begin();
club = em.find(Club.class, club.getId());
et.commit();
} finally {
if (et != null && et.isActive()) {
et.rollback();
} finally {
if (em != null && em.isOpen()) {
em.close();
/** <code>select o from Contractperiod o</code> */
public List<Contractperiod> queryContractperiodFindAll() {
Query query = getEntityManager().createNamedQuery("Contractperiod.findAll");
return (List<Contractperiod>) query.getResultList();
public void removeContractperiod(Contractperiod contractperiod) {
final EntityManager em = getEntityManager();
try {
final EntityTransaction et = em.getTransaction();
try {
et.begin();
contractperiod = em.find(Contractperiod.class, contractperiod.getId());
et.commit();
} finally {
if (et != null && et.isActive()) {
et.rollback();
} finally {
if (em != null && em.isOpen()) {
em.close();
/** <code>select o from Player o</code> */
public List<Player> queryPlayerFindAll() {
Query query = getEntityManager().createNamedQuery("Player.findAll");
return (List<Player>) query.getResultList();
public void removePlayer(Player player) {
final EntityManager em = getEntityManager();
try {
final EntityTransaction et = em.getTransaction();
try {
et.begin();
player = em.find(Player.class, player.getId());
et.commit();
} finally {
if (et != null && et.isActive()) {
et.rollback();
} finally {
if (em != null && em.isOpen()) {
em.close();
public void removeClub(Club player) {
final EntityManager em = getEntityManager();
try {
final EntityTransaction et = em.getTransaction();
try {
et.begin();
player = em.find(Player.class, player.getId());
et.commit();
} finally {
if (et != null && et.isActive()) {
et.rollback();
} finally {
if (em != null && em.isOpen()) {
em.close();
(A few commented lines, as I tried both OneToMany and ManyToMany...)
my Webservice result, after deploying to OC4J Standalone, is always the same:
Entity Beans:
package demo;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
@Entity
@NamedQuery(name = "Club.findAll", query = "select o from Club o")
public class Club implements Serializable {
@Column(nullable = false)
private String city;
@Column(nullable = false)
private String country;
@Id
@Column(nullable = false)
private Long id;
@Column(nullable = false)
private String name;
@ManyToMany(mappedBy = "clubCollection",cascade={CascadeType.PERSIST})
private Collection<Player> playerCollection;
public Club() {
public String getCity() {
return city;
public void setCity(String city) {
this.city = city;
public String getCountry() {
return country;
public void setCountry(String country) {
this.country = country;
public Long getId() {
return id;
public void setId(Long id) {
this.id = id;
public String getName() {
return name;
public void setName(String name) {
this.name = name;
public Collection<Player> getPlayerCollection() {
return playerCollection;
public void setPlayerCollection(Collection<Player> playerCollection) {
this.playerCollection = playerCollection;
public Contractperiod addContractperiod(Contractperiod contractperiod) {
getContractperiodList().add(contractperiod);
contractperiod.setClub(this);
return contractperiod;
public Contractperiod removeContractperiod(Contractperiod contractperiod) {
getContractperiodList().remove(contractperiod);
contractperiod.setClub(null);
return contractperiod;
package demo;
import java.io.Serializable;
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuery;
@Entity
@NamedQuery(name = "Contractperiod.findAll",
query = "select o from Contractperiod o")
public class Contractperiod implements Serializable {
@Column(name="END_DATE")
private Timestamp endDate;
@Id
@Column(nullable = false)
private Long id;
@Column(name="START_DATE", nullable = false)
private Timestamp startDate;
@ManyToOne
@JoinColumn(name = "PYR_ID", referencedColumnName = "ID")
private Player player;
@ManyToOne
@JoinColumn(name = "CUB_ID", referencedColumnName = "ID")
private Club club;
public Contractperiod() {
public Timestamp getEndDate() {
return endDate;
public void setEndDate(Timestamp endDate) {
this.endDate = endDate;
public Long getId() {
return id;
public void setId(Long id) {
this.id = id;
public Timestamp getStartDate() {
return startDate;
public void setStartDate(Timestamp startDate) {
this.startDate = startDate;
public Player getPlayer() {
return player;
public void setPlayer(Player player) {
this.player = player;
public Club getClub() {
return club;
public void setClub(Club club) {
this.club = club;
package demo;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Collection;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
@Entity
@NamedQuery(name = "Player.findAll", query = "select o from Player o")
public class Player implements Serializable {
@Column(nullable = false)
private Timestamp birthdate;
@Column(nullable = false)
private String firstname;
@Id
@Column(nullable = false)
private Long id;
@Column(nullable = false)
private String lastname;
@Column(nullable = false)
private String nationality;
@ManyToMany
@JoinTable(name="CONTRACTPERIOD",
joinColumns=@JoinColumn(name="PYR_ID"),
inverseJoinColumns=@JoinColumn(name="CUB_ID"))
private Collection<Club> clubCollection;
public Player() {
public Timestamp getBirthdate() {
return birthdate;
public void setBirthdate(Timestamp birthdate) {
this.birthdate = birthdate;
public String getFirstname() {
return firstname;
public void setFirstname(String firstname) {
this.firstname = firstname;
public Long getId() {
return id;
public void setId(Long id) {
this.id = id;
public String getLastname() {
return lastname;
public void setLastname(String lastname) {
this.lastname = lastname;
public String getNationality() {
return nationality;
public void setNationality(String nationality) {
this.nationality = nationality;
public Collection<Club> getClubCollection() {
return clubCollection;
public void setClubCollection(Collection<Club> clubCollection) {
this.clubCollection = clubCollection;
public Contractperiod addContractperiod(Contractperiod contractperiod) {
getContractperiodList().add(contractperiod);
contractperiod.setPlayer(this);
return contractperiod;
public Contractperiod removeContractperiod(Contractperiod contractperiod) {
getContractperiodList().remove(contractperiod);
contractperiod.setPlayer(null);
return contractperiod;
<env:Envelope
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns0="http://demo/">
<env:Body>
<env:Fault>
<faultcode>env:Server</faultcode>
<faultstring>Internal Server Error (circular reference detected while serializing: demo.Contractperiod)</faultstring>
</env:Fault>
</env:Body>
</env:Envelope>
Anyone else run into this Troll?
All suggestions(almost all) received with thanks.
Regards,
Charles
Some strange error messages in Diagnostic Logs:
Log Message: September 18, 2006 3:58:02 PM CEST
Component Name OC4J Component ID j2ee
Host Network Address 192.168.1.69 Message Level 1
Module ID home_ejb.transaction User ID Charles
Execution Context ID 192.168.1.69:35920:1158587882221:405 Execution Context Sequence 0
Host Name vmware Message ID J2EE EJB-08006
Thread ID 44 Message Type Error
J2EE Application Module OraPorterAPIdeploy J2EE Application OraPorterAPIdeploy
Web Service Port JavaServiceFacade Web Service Name JavaServiceFacadeService
Message Text
[JavaServiceFacade:public java.util.List demo.JavaServiceFacade.queryClubFindAll()] exception occurred during method invocation: oracle.
Supplemental Text
oracle.oc4j.rmi.OracleRemoteException: java.lang.IllegalStateException: ClassLoader "OraPorterAPIdeploy.root:0.0.0" (from <application>
in /C:/Oracle/oc4j/j2ee/home/applications/OraPorterAPIdeploy/): This loader has been closed and should not be in use.
Nested exception is:
java.lang.IllegalStateException: ClassLoader "OraPorterAPIdeploy.root:0.0.0" (from <application> in /C:/Oracle/oc4j/j2ee/home/applications/OraPorterAPIdeploy/):
This loader has been closed and should not be in use.
........This loader has been
closed and should not be in use.; nested exception is:
java.lang.IllegalStateException: ClassLoader
Message was edited by:
promise
Message was edited by:
promiseHei Guys -
I see that the ClassLoader exceptions are known, and are "to be ignored".
I left a reference to them, in case they play into our problems anyway.....
"java.lang.IllegalStateException: ClassLoader" - known harmless bug... ?
Best Regards,
Charles -
Circular reference during serialization error
I am getting the following error when invoking an operation on my web service that returns a 'Make' object:
ERROR OWS-04046 circular reference detected while serializing: com.edmunds.vehicle.definition.Make circular reference detected while serializing: com.edmunds.vehicle.definition.Make
I am running oc4j-101310.
I can successfully call a 'createMake' operation as it returns 'void' so i know the WS is deployed correctly. The only values I am using to create the make are "Make.name" & "Manufacturer.name" so there isn't much to it. I know there are object graphs with 'models' and a parent reference to 'Manufacturer so I don't know if this has anything to do with it.
One weird thing is that this worked the first time i deployed it but then started breaking on subsequent re-deployments (maybe I'm smoking crack)...
Any help is appreciated!!
Make object:
public class Make implements Serializable {
private Long id;
private Set models;
private String name;
private Manufacturer manufacturer;
public Set getModels() {
return models;
public void setModels(Set models) {
this.models = models;
public void setName(String name) {
this.name = name;
public String getName() {
return name;
public void setManufacturer(Manufacturer manufacturer) {
this.manufacturer = manufacturer;
public Manufacturer getManufacturer() {
return manufacturer;
public void setId(Long id) {
this.id = id;
public Long getId() {
return id;
Here is the SOAP request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.matchbox.edmunds.com/">
<soapenv:Header/>
<soapenv:Body>
<ws:findMakeElement>
<ws:Long_1>22</ws:Long_1>
</ws:findMakeElement>
</soapenv:Body>
</soapenv:Envelope>
Here is the SOAP response:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="http://ws.matchbox.edmunds.com/" xmlns:ns1="http://definition.vehicle.edmunds.com/" xmlns:ns2="http://www.oracle.com/webservices/internal/literal" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Body>
<env:Fault>
<faultcode>env:Server</faultcode>
<faultstring>Internal Server Error (circular reference detected while serializing: com.edmunds.vehicle.definition.Make)</faultstring>
</env:Fault>
</env:Body>
</env:Envelope>
Here is my WSDL:
<?xml version="1.0" encoding="UTF-8" ?>
<definitions
name="VehicleService"
targetNamespace="http://ws.matchbox.edmunds.com/"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://ws.matchbox.edmunds.com/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:tns0="http://definition.vehicle.edmunds.com/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns1="http://www.oracle.com/webservices/internal/literal"
>
<types>
<schema elementFormDefault="qualified" targetNamespace="http://definition.vehicle.edmunds.com/"
xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.oracle.com/webservices/internal/literal"
xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://definition.vehicle.edmunds.com/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<import namespace="http://ws.matchbox.edmunds.com/"/>
<import namespace="http://www.oracle.com/webservices/internal/literal"/>
<complexType name="Make">
<sequence>
<element name="manufacturer" nillable="true" type="tns:Manufacturer"/>
<element name="models" nillable="true" type="ns1:set"/>
<element name="name" nillable="true" type="string"/>
<element name="id" nillable="true" type="long"/>
</sequence>
</complexType>
<complexType name="Manufacturer">
<sequence>
<element name="makes" nillable="true" type="ns1:set"/>
<element name="name" nillable="true" type="string"/>
<element name="id" nillable="true" type="long"/>
</sequence>
</complexType>
</schema>
<schema elementFormDefault="qualified" targetNamespace="http://www.oracle.com/webservices/internal/literal"
xmlns="http://www.w3.org/2001/XMLSchema" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://www.oracle.com/webservices/internal/literal" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<import namespace="http://ws.matchbox.edmunds.com/"/>
<import namespace="http://definition.vehicle.edmunds.com/"/>
<complexType name="set">
<complexContent>
<extension base="tns:collection">
<sequence/>
</extension>
</complexContent>
</complexType>
<complexType name="collection">
<sequence>
<element maxOccurs="unbounded" minOccurs="0" name="item" type="anyType"/>
</sequence>
</complexType>
</schema>
<schema elementFormDefault="qualified" targetNamespace="http://ws.matchbox.edmunds.com/"
xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://definition.vehicle.edmunds.com/"
xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://ws.matchbox.edmunds.com/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<import namespace="http://www.oracle.com/webservices/internal/literal"/>
<import namespace="http://definition.vehicle.edmunds.com/"/>
<element name="createMakeElement">
<complexType>
<sequence>
<element name="String_1" nillable="true" type="string"/>
<element name="String_2" nillable="true" type="string"/>
</sequence>
</complexType>
</element>
<element name="createMakeResponseElement">
<complexType>
<sequence/>
</complexType>
</element>
<element name="findMakeElement">
<complexType>
<sequence>
<element name="Long_1" nillable="true" type="long"/>
</sequence>
</complexType>
</element>
<element name="findMakeResponseElement">
<complexType>
<sequence>
<element name="result" nillable="true" type="ns1:Make"/>
</sequence>
</complexType>
</element>
</schema>
</types>
<message name="RemoteTestVehicleServiceWS_createMake">
<part name="parameters" element="tns:createMakeElement"/>
</message>
<message name="RemoteTestVehicleServiceWS_createMakeResponse">
<part name="parameters" element="tns:createMakeResponseElement"/>
</message>
<message name="RemoteTestVehicleServiceWS_findMake">
<part name="parameters" element="tns:findMakeElement"/>
</message>
<message name="RemoteTestVehicleServiceWS_findMakeResponse">
<part name="parameters" element="tns:findMakeResponseElement"/>
</message>
<portType name="RemoteTestVehicleServiceWS">
<operation name="createMake">
<input message="tns:RemoteTestVehicleServiceWS_createMake"/>
<output message="tns:RemoteTestVehicleServiceWS_createMakeResponse"/>
</operation>
<operation name="findMake">
<input message="tns:RemoteTestVehicleServiceWS_findMake"/>
<output message="tns:RemoteTestVehicleServiceWS_findMakeResponse"/>
</operation>
</portType>
<binding name="HttpSoap11Binding" type="tns:RemoteTestVehicleServiceWS">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="createMake">
<soap:operation soapAction="http://ws.matchbox.edmunds.com//createMake"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
<operation name="findMake">
<soap:operation soapAction="http://ws.matchbox.edmunds.com//findMake"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="VehicleService">
<port name="HttpSoap11" binding="tns:HttpSoap11Binding">
<soap:address location="REPLACE_WITH_ACTUAL_URL"/>
</port>
</service>
</definitions>Graph and Circular dependencies cannot be model with document-literal message format with POJO development style. You will need to invent your own model to break the cycle and uses a mechanism similar to href, as with RPC-encoded message format.
All the best,
-Eric -
Server Error (circular reference detected while serializing: )
Hi,
I just installed OC4J and it looks great. I have a problem however ...
I used JBuilder to generate entity beans from database. Then I generated a session bean with facade methods, and finally I created a session bean which injects the facade and is annotated with @WebService to publish a method (so that I could test the entity).
However, when trying to run findAllEmployees() I get this error returned:
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://logic.porter.xait.no/" xmlns:ns1="http://www.oracle.com/webservices/internal/literal"><env:Body><env:Fault><faultcode>env:Server</faultcode><faultstring>Internal Server Error (circular reference detected while serializing: no.bie.persistence.Employee)</faultstring></env:Fault></env:Body></env:Envelope>
I suspect this has something to do with the relationships between tables (@OneToMany etc.) -- but does anyone have more information on what would cause this problem and how to fix it?
Thanks!Hei Guys -
I see that the ClassLoader exceptions are known, and are "to be ignored".
I left a reference to them, in case they play into our problems anyway.....
"java.lang.IllegalStateException: ClassLoader" - known harmless bug... ?
Best Regards,
Charles -
Circular reference detected while serializing
I have been trying hard to get this resolved this, but haven't reached to any conclusion.
Here is my situation.
I have two entities called Parent and Child, where parent has a refernce to many child and child has one parent so inturn there is OneToMany(Bidirectional) relationship between them. When i expose this as a webservice I get the following exception :
<faultstring>Internal Server Error (circular reference detected while serializing: com.thoughtclicks.Parent)</faultstring>
This error occurs incase i expose the service as Document/Literal, incase i expose this service as RPC Encoded then this exception doesn�t occurs and everything is fine, but Axis2 doesn;t support client generation for RPC/Encoded so again a problem.
Also, I have already tried putting @XMLTransient annotation on getChild() of the Parent class, but it doesn�t help and i continue getting the same error.
Let me know if there is a work around for this solution.
Any pointers are highly appreciated.
Thanks,
RahulHello,
You might want to post this in the JDev/ADF forum, as it is not related to TopLink/JPA. The error seems to indicate that you are getting the problem because it is finding Location has a reference to an association that has a reference back to the same location, causing a problem when creating the copies for serialization. I am not familar with this problem, but there is likely a way to mark one of these references as transient to the serialization process so that it is no longer a loop - yet can still be used in your object model and in JPA. Something like @XmlTransient for JAXB.
Best Regards,
Chris -
Circular references between stored procedures
Hi, i need help about circular references. I have two stored procedures that references like that:
create or replace
procedure ciclico2 as
begin
ciclico1;
end;
create or replace
procedure ciclico1 as
begin
ciclico2;
end;
I can't compile both... so i want to know if there are ways to do that...
Thanks
Marcos (from Argentina... with a medium level english)¡Hola, Marcos!
If the procedures are in packages (or the same package), you can compile the package specs first, and then the package bodies.
It's simpler if both procedures are in the same package:
CREATE OR REPLACE PACKAGE pk_fubar
AS
PROCEDURE ciclico1;
PROCEDURE ciclico2;
END pk_fubar;
SHOW ERRORS
CREATE OR REPLACE PACKAGE BODY pk_fubar
AS
PROCEDURE ciclico1
IS
BEGIN
ciclico2;
END ciclico1
PROCEDURE ciclico2
IS
BEGIN
ciclico1;
END ciclico2
END pk_fubar
SHOW ERRORSOr you could put just one of them in a package.
The important thing is that you can compile a package spec and a package body separately.
You can compile anything that references a function in a package if a valid package spec exists; the package body may be invalid, or it may not exist at all. The package body has to exist and be valid before you run the procedure that calls it, of course, but not necessarily when you compile it. -
"Circular reference" dont work in Numbers????
I am an OLD Excel-user:) My big spreadsheets worked VERY-good there; even those which are full of "circulare references" it could handle.
And now I have changed to Numbers and have transferred my spreadsheet from Excel to Numbers.
The simple spreadsheets works very fine in Numbers too.
But not my big spreadsheets with those "circulare references" - I get a LOTS of error-messages there.
- I used nearly all my holiday in trying to handle those "circulare references":::::::::: sooooo I am hoping that someone kind/CLEVER person inhere might be able to help me - to tell me how to handle it....:)
TX a lot.....Hello
It's not a bug, it's a choice.
The engineers choose to treat a circular ref as an error.
I know that some others made an other choice but I am unable to tell which is right.
On the forum, we are not Apple employees but users trying to help other users. So I doubt that some one may help you here.
Just a track, maybe you may use the ISERR() function to intercept the oddity but you will not be able to change the standard behaviour: a cell is not allowed to use it's contents in calculations.
The best thing to do is:
*Go to "Provide Numbers Feedback" in the "Numbers" menu*, describe what you wish.
Then, cross your fingers, and wait for iWork'09
Yvan KOENIG (from FRANCE mercredi 2 janvier 2008 15:52:49) -
ANT Help: Can rmic ignore circular references?
I have two projects: m and s. One depends on the other.
For s, I use my IDE's regular build and it's compiling just fine.
For s, the build is also done by the IDE, but I am using Ant to rmic 3 classes.
As far as the regular compilation goes, I have the IDE set up to ignore the circular references. But the rmic> in the ant script for the m project is complaining.
Is it possible to ignore the circular reference for the rmic? Or maybe some other idea...
Thanks a lot in advance
- Eduardo¡Hola, Marcos!
If the procedures are in packages (or the same package), you can compile the package specs first, and then the package bodies.
It's simpler if both procedures are in the same package:
CREATE OR REPLACE PACKAGE pk_fubar
AS
PROCEDURE ciclico1;
PROCEDURE ciclico2;
END pk_fubar;
SHOW ERRORS
CREATE OR REPLACE PACKAGE BODY pk_fubar
AS
PROCEDURE ciclico1
IS
BEGIN
ciclico2;
END ciclico1
PROCEDURE ciclico2
IS
BEGIN
ciclico1;
END ciclico2
END pk_fubar
SHOW ERRORSOr you could put just one of them in a package.
The important thing is that you can compile a package spec and a package body separately.
You can compile anything that references a function in a package if a valid package spec exists; the package body may be invalid, or it may not exist at all. The package body has to exist and be valid before you run the procedure that calls it, of course, but not necessarily when you compile it. -
<blockquote>Locking duplicate thread.<br>
Please continue here: [/questions/777191]</blockquote><br>
Just like the title says, starting with Firefox 4 Beta 6 or 7, I forgot. Any time I try to open a new blank tab (sometimes even when I start up Firefox and the app tabs load) I get an error that says "JavaScript Application - Reference Error: XPCSafeJSObjectWrapper is not defined" If I close it everything works as normal again (until I open a new tab) but it is very annoying to have to do this. Is there any fix for this or is the bug just still there?Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
* Don't make any changes on the Safe mode start window.
See:
* [[Troubleshooting extensions and themes]]
* [[Troubleshooting plugins]] -
How to check circular reference in data of millions of rows
Hi all,
I am new as an oracle developer.
I have a table(say table1) of hierarchical data with columns child_id and parent_id. The table has around 0.5 million records. There are around 0.2 million root level records are present.
I need to update some (the number variies on different conditions, might differ from 50K to 0.4 million) of the parent_ids from other table only if that do not cause any circular reference in data of table1.
I am using Oracle9i.
The approach I have tried is:
I copied all data from table1 to a work table table3. Update the parent_id on columns that matches the condition and updated a column source_table to table2.
I copied all the child_id from table2 that are to be updated into another table table4 and built tree for each of those childs. If it builds the tree successfully updated a column is_circular in the table3 to 0 and then deleted the child_id from table4.
This whole process needs to run recursively until no tree is built successfully in an iteration.
But this process is running slow and at the rate it is executing it would run for days for the 0.3 million records.
Please suggest a better way to do this.
The code I am using is :
INSERT /*+ append parallel (target,5) */
INTO table3 target
select /*+ parallel (src,5) */
child_id, parent_id, 'table1' source_table,null
from table1 src;
INSERT INTO table4
select distinct child_id, parent_id
from table2
where status_cd is null;
commit;
Update dtable3 a
set (parent_id,source_table) = (select parent_id,'table2' source_table
from table4 b
where b.child_id = a.child_id);
WHILE v_loop_limit<>v_new_count
LOOP
select count(1)
into v_loop_limit
from table4;
-+-----------------------------------------------------------
--| You need to actually traverse the tree in order to
--| detect circular dependencies.
+-----------------------------------------------------------
For i in 1 .. v_new_count
BEGIN
select child_id
into v_child_id from(
select child_id, row_number() over (order by child_id) pri from table4)
where pri = i;
SELECT COUNT (*) cnt
INTO v_cnt
FROM table3 dl
START WITH dl.child_id = v_child_id
CONNECT BY PRIOR dl.child_id = dl.parent_id ;
UPDATE table3SET is_circular = '0'
where child_id= v_child_id
and source_table = 'table2';
delete from table3
where child_id = v_child_id;
select count(1)
into v_new_count
from table4;
COMMIT;
EXCEPTION WHEN e_infinite_loop
THEN dbms_output.put_line ('Loop detected!'||v_child_id);
WHEN OTHERS THEN
dbms_output.put_line ('Other Exceptions!');
END;
END LOOP;
END LOOP;
Thanks & Regards,
RuchiraHello,
First off, if you're so new to a technology why do you brush off the first thing an experienced, recognized "guru" tells you? Take out that WHEN OTHERS ! It is a bug in your code, period.
Secondly, here is some code to try. Notice that the result depends on what order you do the updates, that's why I run the same code twice but in ASCENDING or DESCENDING order. You can get a circular reference from a PAIR of updates, and whichever comes second is the "bad" one.drop table tab1;
create table TAB1(PARENT_ID number, CHILD_ID number);
create index I1 on TAB1(CHILD_ID);
create index I2 on TAB1(PARENT_ID);
drop table tab2;
create table TAB2(PARENT_NEW number, CHILD_ID number);
insert into TAB1 values (1,2);
insert into TAB1 values (1,3);
insert into tab1 values (2,4);
insert into TAB1 values (3,5);
commit;
insert into TAB2 values(4,3);
insert into TAB2 values(3,2);
commit;
begin
for REC in (select * from TAB2 order by child_id ASC) LOOP
merge into TAB1 O
using (select rec.child_id child_id, rec.parent_new parent_new from dual) n
on (O.CHILD_ID = N.CHILD_ID)
when matched then update set PARENT_ID = PARENT_NEW
where (select COUNT(*) from TAB1
where PARENT_ID = n.CHILD_ID
start with CHILD_ID = n.PARENT_NEW
connect by CHILD_ID = prior PARENT_ID
and prior PARENT_ID <> n.CHILD_ID) = 0;
end LOOP;
end;
select distinct * from TAB1
connect by PARENT_ID = prior CHILD_ID
order by 1, 2;
rollback;
begin
for REC in (select * from TAB2 order by child_id DESC) LOOP
merge into TAB1 O
using (select rec.child_id child_id, rec.parent_new parent_new from dual) n
on (O.CHILD_ID = N.CHILD_ID)
when matched then update set PARENT_ID = PARENT_NEW
where (select COUNT(*) from TAB1
where PARENT_ID = n.CHILD_ID
start with CHILD_ID = n.PARENT_NEW
connect by CHILD_ID = prior PARENT_ID
and prior PARENT_ID <> n.CHILD_ID) = 0;
end LOOP;
end;
select distinct * from TAB1
connect by PARENT_ID = prior CHILD_ID
order by 1, 2;One last thing, be sure and have indexes on child_id and parent_id in your main table! -
Weak/Soft/Phantom/Circular references
Hi,
Could you please explain the below with example?
Weak/Soft/Phantom/Circular references in java and when It should be used in what situations? What are the pros and cons?
Please clarify.
Thanks.What part of the Javadoc didn't you understand?
BTW circular references do not belong with the others. A doubly linked list is an example of a set of circular references: there is a chain of references that leads back to the starting point. This is also known as a cyclic graph. -
StartTransmit / stopTransmit reference error on NetStream when connecting to device
Hi all,
I'm trying to create a P2P connection between a mobile device (Android) and a PC using the NetStream class.
When the connection is established, the Flash Player Instance on the PC is crashing with a reference error:
“Property startTransmit not found on flash.net.NetStream”
I have seen the thread located located here: http://stackoverflow.com/questions/9676496/adobe-cirrus-error-on-direct-connectproperty-st arttransmit-not-found-on-flash-n
but was not successfull in making it work with my code.
I have tried extending the NetStream class like so:
import com.frimastudio.cosy.util.NetConsole;
import flash.net.NetConnection;
import flash.net.NetStream;
public class NetStreamProvider extends NetStream
public function NetStreamProvider (connection:NetConnection, peerID:String)
super(connection, peerID);
// For AIR Android projects: when the device is put to sleep for a moment, this function will be
// called so we need to implement it to prevent flash from crashing.
public function startTransmit($p1:*, $p2:*):void
COSY::console { NetConsole.WarningInternal("NetInterfaceSlot", "startTransmit", "startTransmit called"); }
public function stopTransmit():void
COSY::console { NetConsole.WarningInternal("NetInterfaceSlot", "stopTransmit", "stopTransmit called"); }
and using the NetStreamProvider instead. Without success.
Any help would be greatly appreciated.
Thanks.
Guillaume>> i suspect this is AIR-specific (probably if AIR is the sender) -- in my experience it doesn't happen with plain Flash Player.
[Guillaume] -> Right, it does not happen on NetStreams between 2 Flash Players and 2 AIR app. Only between AIR-FlashPlayer NetStreams. Basically, after a stream is opened between AIR and Flash Player, the AIR is calling "starTransmit" on the FlashPlayer NetStream, wich is not implemented.
>> try making an object with those method names and assign it to netStream.client
[Guillaume] -> I tried the following:
Implement starTransmit/stopTransmit functions in the NetStream.client object
Implement startTransmit/stopTransmit functions in the NetStream instance (subclassed)
Without success. Basically, it works fine if I just create a "dummy" client object for the NetStream that has those 2 functions. But If I want to use my own client it was still crashing.
I found a work around for my problem.
My NetStream object is sub classed as such:
public class NetStreamProvider extends NetStream
public var customClient:Object;
public function NetStreamProvider (connection:NetConnection, peerID:String)
super(connection, peerID);
customClient = new Object();
this.client = customClient;
// Implement startTransmit and stopTransmit here for dummy client
customClient.onPeerConnect = function(subscriber:NetStream): Boolean{
var subClient:Object=new Object();
subClient.stopTransmit=function($p1:*,$p2:*):void{
trace("Cosy: stopTransmit called",$p1,$p2);
subClient.startTransmit=function():void{
trace("Cosy: startTransmit called");
subscriber.client = subClient;
return true;
public function SetClient(c:Object):void
this.client = c;
public function OnNetStreamAsyncError(event:AsyncErrorEvent):void
And in the stream status event handler, when the stream is ready (events "NetStream.Play.PublishNotify" and "NetStream.Play.Start") I set the correct client, which has the receive handler. At that point startTransmit was already called:
And in the stream status event handler, when the stream is ready (events "NetStream.Play.PublishNotify" and "NetStream.Play.Start") I set the correct client, which has the receive handler. At that point startTransmit was already called:
private function OnNetStreamStatus(e:NetStatusEvent)
switch(e.info.code)
case "NetStream.Play.PublishNotify":
stream = e.target as NetStreamProvider;
stream.SetupClient(client);
break;
case "NetStream.Play.Start":
stream = e.target as NetStreamProvider;
stream.SetupClient(client);
break;
At this point, i'm not blocked anymore. However, it would be good to know why, when and who are calling those functions to understand the issue. this is not documented anywhere, and might be an issue to a lot of people now that we are starting to see more and more cross-platform connectivity.
Cheers.
Guillaume -
JPA: mapping circular references
Hi all,
I'm trying to map a simple parent-to-children-knows-parent scenario, which contains circular references, using JPA annotations. Here is the current code:
@Entity
public class Assortment implements Identifiable {
@Id
@GeneratedValue
private long id;
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "parent")
private Set<Assortment> subAssortments = new HashSet<Assortment>();
@ManyToOne(fetch = FetchType.LAZY)
private Assortment parent = null;
}The DDL for the table is the following:
CREATE TABLE ASSORTMENT (ID BIGINT PRIMARY KEY, CODE VARCHAR(5) NOT NULL, NAME VARCHAR(50) NOT NULL, STATUS TINYINT NOT NULL, PARENT_ID BIGINT, CONSTRAINT FK_ASMT_PARENT FOREIGN KEY (PARENT_ID) REFERENCES ASSORTMENT(ID));When creating a basic tree (one root to which two children were added) and persisting this object using a simple entityManager.persist(root) call, I get the following (shortened) exception:
org.springframework.dao.InvalidDataAccessApiUsageException: org.hibernate.exception.ConstraintViolationException: could not insert: [core.model.goods.Assortment]; nested exception is javax.persistence.EntityExistsException: org.hibernate.exception.ConstraintViolationException: could not insert: [core.model.goods.Assortment]
Caused by: javax.persistence.EntityExistsException: org.hibernate.exception.ConstraintViolationException: could not insert: [core.model.goods.Assortment]
at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:555)
Caused by: org.hibernate.exception.ConstraintViolationException: could not insert: [core.model.goods.Assortment]
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
Caused by: java.sql.SQLException: Attempt to insert null into a non-nullable column: column: ID table: ASSORTMENT in statement [insert into Assortment (id, code, name, status, parent_id) values (null, ?, ?, ?, ?)]
at org.hsqldb.jdbc.Util.throwError(Unknown Source)
...It looks like the Hibernate EntityManager (the JPA implementation) is trying to insert a null value in the table's primary key (id). This understandable, since saving an object requires first knowing what the parent's ID is - although here the root has no parent and hence the parent's ID must be null.
How must I adapt my code to handle this particular scenario? Are my annotations correct? Should I change the data structure definition instead?
Thanks a lot,
GBTwo things:
First, the Assortment.parent attribute needed to be annotated with @JoinColumn(name="parent_id")Second, the SQL query sent by Hibernate used an HSQLDB specificity, the identity column, to generate the primary key. By setting hibernate.hbm2ddl.auto=true in my persistence.xml file and setting the log level to debug, I could see that the table was generated using this (approximate) statement:
CREATE TABLE ASSORTMENT (ID BIGINT GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY, CODE VARCHAR(5), NAME VARCHAR(50), STATUS TINYINT NOT NULL, PARENT_ID BIGINT, CONSTRAINT FK_ASMT_PARENT FOREIGN KEY (PARENT_ID) REFERENCES ASSORTMENT(ID))The "GENERATED BY DEFAULT AS IDENTITY" seems to be the key here.
Hope this helps someone out there.
Cheers,
GB -
Dynamic Type Conflect when assigning References error in portal
Hi Forum,
We have one ABAP Dynpro Application which runs fine but gives "Dynamic Type conflict when assigning References" error dump after integrating it with Netweaver portal 7 SP12 by creating Webdynpro ABAP iview.
Please help us to resolve this issue.
Thanks and Regards
Sudhirhi
refer this article :
How to Create Web Dynpro-Based iViews
http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3e36d690-0201-0010-cd99-bfbb81bd33d9
refer the SAP online help :
Create a Web Dynpro iView
http://help.sap.com/saphelp_nw04/helpdata/en/2c/00584289e59041e10000000a1550b0/content.htm
regards,
amit
Maybe you are looking for
-
Using iMac as a second display while still using iMac
I work between both a macbook air and iMac daily. My emails are on the MacBook Air and everything else is on the iMac. I have purchased the Thunderbolt Cord and am able to use the iMac as a second display for the MacBook. I would like to know if y
-
Hi everyone, I have two essbase sources E1 and E2 . I am able to import data successfully into obiee through E1 datasource. When I tried to define Essbase source to BIEE with source(E2), I got the following error message when I performed 'import' act
-
Can I use LIKE in a preparedStatement? String selectTwo = "SELECT zip_code " + "FROM alk_zip " + "WHERE zip_code LIKE ? " + "ORDER BY zip_code"; PreparedStatement stmtTwo = con.prepareStatement( selectTwo ); // loop starts here stmtTwo.setString( 1,
-
Insert combination of f1 and f2 in f3 in all records
hi i have a table tabl1 containg fields f1, f2, f3. All fields are varchar2. tabl1 contains 45000 rows. fields f1 and f2 have values and f3 is empty. I want to insert combination of f1 and f2 in f3 in all 45000 records. e.g. row1: f1 = 'nottingham',
-
IBook author interactive image label: graphic control is locked?
The interactive image lets you adjust the frame and background, but not the labels nor end the point styles! The ability is there but it is locked! Here's a screen shot showing the 'greyed out' control options. Is there a trick to enable the capabili