IfsException: IFS-10407: Invalid Attribute name
I'm trying to programmaticaly create an instance of the custom class AsapPublisher that I have created. When I attempt to set the attribute jobTitle I get the IFS exception 10407. The attribute jobTitle exists so I unsure why I'm getting this error. Below is my code and stack trace. If anyone can see where I'm going wrong I would appreciate input. Thanks!
instantiatePublisher.jsp
<%@ page contentType="text/html;charset=WINDOWS-1252"%>
<%@ page import="oracle.ifs.common.IfsException" %>
<%@ page import="oracle.ifs.beans.LibrarySession" %>
<%@ page import="oracle.ifs.beans.LibraryService" %>
<%@ page import="java.util.Locale" %>
<%@ page import="oracle.ifs.beans.ClassObject" %>
<%@ page import="java.io.*" %>
<%@ page import="publishasap.AsapPublisher" %>
<%@ page import="publishasap.definition.AsapPublisherDef" %>
<%@ page import="publishasap.definition.AsapPublisherContactDef" %>
<%@ page import="oracle.ifs.common.CleartextCredential" %>
<%@ page import="oracle.ifs.common.ConnectOptions" %>
<%
String username = "system";
String password = "manager";
String serviceName = "IfsDefault";
String servicePassword = "ifssys";
try
LibraryService ifsService = new LibraryService();
CleartextCredential credentials = new CleartextCredential(username,password);
ConnectOptions connectOpts = new ConnectOptions();
connectOpts.setLocale(Locale.getDefault());
connectOpts.setServiceName(serviceName);
connectOpts.setServicePassword(servicePassword);
LibrarySession ifsSession = ifsService.connect(credentials,connectOpts);
ifsSession.setAdministrationMode(true);
//set the AsapPublisher attributes and create a publisher instance
AsapPublisherDef publisher = new AsapPublisherDef(ifsSession);
publisher.setCompanyName(request.getParameter("pubName"));
publisher.setAddress1(request.getParameter("address1"));
publisher.setAddress2(request.getParameter("address2"));
publisher.setCity(request.getParameter("city"));
publisher.setState(request.getParameter("state"));
publisher.setPostalCode(request.getParameter("postalCode"));
publisher.setCountry(request.getParameter("country"));
publisher.setPhoneNumber(request.getParameter("phoneNumber"));
publisher.setPublisherDescription(request.getParameter("pubDescription"));
out.println("here");
//create the publisher contact object
AsapPublisherContactDef contact = new AsapPublisherContactDef(ifsSession);
contact.setClassObject(ClassObject.getClassObjectFromLabel(ifsSession,publishasap.AsapPublisherContact.CLASS_NAME));
contact.setJobTitle(request.getParameter("jobTitle"));
contact.setPrefix(request.getParameter("prefix"));
contact.setFirstName(request.getParameter("fName"));
contact.setMInitial(request.getParameter("mInitial"));
contact.setLastName(request.getParameter("lName"));
contact.setSuffix(request.getParameter("suffix"));
contact.setEmail1(request.getParameter("email1"));
contact.setEmail2(request.getParameter("email2"));
contact.setFax(request.getParameter("fax"));
contact.setWkPhone(request.getParameter("workPhone"));
contact.setUsername(request.getParameter("username"));
contact.setPassword(request.getParameter("password"));
publisher.setAsapPublisherContact(contact);
AsapPublisher createPub = (AsapPublisher) ifsSession.createPublicObject(contact);
ifsSession.disconnect();
catch(IfsException e)
out.println("System was unable to create an author object");
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw, true);
e.printStackTrace(pw);
String trace = sw.toString();
sw.close();
pw.close();
out.println(trace);
IfsException.setVerboseMessage(true);
String message = e.getMessage();
out.println(message);
%>
AsapPublisher.java
// Copyright (c) 2000 Thin Data Solutions
package publish asap;
import oracle.ifs.beans.*;
import oracle.ifs.common.*;
import oracle.ifs.server.S_LibraryObjectData;
import publishasap.AsapCustomer;
import publishasap.AsapPublisherContact;
import publishasap.definition.AsapPublisherContactDef;
* A Bean class.
* <P>
public class AsapPublisher extends AsapCustomer {
public static final String CLASS_NAME= "AsapPublisher";
public static final String PUBLISHER_CONTACT= "AsapPublisherContact";
public static final String PUBLISHER_DESCRIPTION="publisherDescription";
private LibrarySession m_IfsSession= null;
* Constructor
public AsapPublisher( LibrarySession ifs,
java.lang.Long id,
java.lang.Long classId,
S_LibraryObjectData data)
throws IfsException{
// Construct a Document object - standard variant.
super(ifs,id,classId,data);
m_IfsSession= ifs;
public void setAsapPublisherContact(AsapPublisherContact newValue)
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newValue);
setAttribute(PUBLISHER_CONTACT, av);
public void setAsapPublisherContact(AsapPublisherContactDef newValue)
throws IfsException{
PublicObject po= m_IfsSession.createPublicObject(newValue);
AttributeValue av= AttributeValue.newAttributeValue(po);
setAttribute(PUBLISHER_CONTACT, av);
public void setPublisherDescription(String newValue)
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newValue);
setAttribute(PUBLISHER_DESCRIPTION, av);
public String getPublisherDescription()
throws IfsException{
AttributeValue av= getAttribute(PUBLISHER_DESCRIPTION);
return av.getString(getSession());
public AsapPublisherContact getAsapPublisherContact()
throws IfsException{
AttributeValue av= getAttribute(PUBLISHER_CONTACT);
return (AsapPublisherContact)av.getObject(getSession());
AsapPublisherDef.jav
// Copyright (c) 2000 Thin Data Solutions
package publishasap;
import oracle.ifs.beans.*;
import oracle.ifs.common.*;
import oracle.ifs.server.S_LibraryObjectData;
import publishasap.AsapCustomer;
import publishasap.AsapPublisherContact;
import publishasap.definition.AsapPublisherContactDef;
* A Bean class.
* <P>
public class AsapPublisher extends AsapCustomer {
public static final String CLASS_NAME= "AsapPublisher";
public static final String PUBLISHER_CONTACT= "AsapPublisherContact";
public static final String PUBLISHER_DESCRIPTION="publisherDescription";
private LibrarySession m_IfsSession= null;
* Constructor
public AsapPublisher( LibrarySession ifs,
java.lang.Long id,
java.lang.Long classId,
S_LibraryObjectData data)
throws IfsException{
// Construct a Document object - standard variant.
super(ifs,id,classId,data);
m_IfsSession= ifs;
public void setAsapPublisherContact(AsapPublisherContact newValue)
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newValue);
setAttribute(PUBLISHER_CONTACT, av);
public void setAsapPublisherContact(AsapPublisherContactDef newValue)
throws IfsException{
PublicObject po= m_IfsSession.createPublicObject(newValue);
AttributeValue av= AttributeValue.newAttributeValue(po);
setAttribute(PUBLISHER_CONTACT, av);
public void setPublisherDescription(String newValue)
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newValue);
setAttribute(PUBLISHER_DESCRIPTION, av);
public String getPublisherDescription()
throws IfsException{
AttributeValue av= getAttribute(PUBLISHER_DESCRIPTION);
return av.getString(getSession());
public AsapPublisherContact getAsapPublisherContact()
throws IfsException{
AttributeValue av= getAttribute(PUBLISHER_CONTACT);
return (AsapPublisherContact)av.getObject(getSession());
AsapPublisherContact.java
// Copyright (c) 2000 Movement Inc.
package publishasap;
import publish asap.*;
import oracle.ifs.beans.*;
import oracle.ifs.common.*;
import oracle.ifs.server.S_LibraryObjectData;
* A Bean class.
* <P>
public class AsapPublisherContact extends AsapPerson {
public static final String PUBLISHER_ID= "publisherId";
public static final String JOB_TITLE= "jobTitle";
public static final String CLASS_NAME= "AsapPublisherContact";
* Constructor
public AsapPublisherContact( LibrarySession ifs,
java.lang.Long id,
java.lang.Long classId,
S_LibraryObjectData data)
throws IfsException{
// Construct a Document object - standard variant.
super(ifs,id,classId,data);
public void setPublisherId(String newId)
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newId);
setAttribute(PUBLISHER_ID, av);
public void setJobTitle(String newTitle)
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newTitle);
setAttribute(JOB_TITLE, av);
public String getPublisherId()
throws IfsException{
AttributeValue av= getAttribute(PUBLISHER_ID);
return av.getString(getSession());
public String getJobTitle()
throws IfsException{
AttributeValue av= getAttribute(JOB_TITLE);
return av.getString(getSession());
AsapPublisherContactDef.java
// Copyright (c) 2000 Movement Inc.
package publishasap.definition;
import publishasap.AsapPublisherContact;
import oracle.ifs.beans.*;
import oracle.ifs.common.*;
* A Bean class.
* <P>
public class AsapPublisherContactDef extends AsapPersonDef {
* Constructor
public AsapPublisherContactDef(LibrarySession ifs)
throws IfsException
// Construct a Document object - standard variant.
super(ifs);
this.setClassObject(ClassObject.getClassObjectFromLabel(ifs,publishasap.AsapPublisherContact.CLASS_NAME));
public void setPublisherId(String newId)
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newId);
setAttribute(AsapPublisherContact.PUBLISHER_ID, av);
public void setJobTitle(String newTitle)
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newTitle);
setAttribute(AsapPublisherContact.JOB_TITLE, av);
AsapPublisherContact.xml
<ClassObject>
<Name>AsapPublisherContact</Name>
<Description>Stores the information on the main contact person for the publisher.</Description>
<SuperClass RefType="name">AsapPerson</SuperClass>
<BeanClassPath>publishasap.AsapPublisherContact</BeanClassPath>
<!-- Attribute list for the object -->
<Attributes>
<!-- Store the primary key of the publisher whom this person is the contact for. -->
<Attribute>
<Name>publisherId</Name>
<DataType>String</DataType>
<DataLength>10</DataLength>
</Attribute>
<!-- Store the contact person's job title or position. -->
<Attribute>
<Name>jobTitle</Name>
<DataType>String</DataType>
<DataLength>70</DataLength>
</Attribute>
</Attributes>
</ClassObject>
AsapPublisher.xml
<ClassObject>
<Name>AsapPublisher</Name>
<Description>Stores the information about publishers in the database.</Description>
<SuperClass RefType="name">AsapCustomer</SuperClass>
<BeanClassPath>publishasap.AsapPublisher</BeanClassPath>
<!-- Attribute list for the object. -->
<Attributes>
<!-- A reference to the main contact person at the publisher. -->
<Attribute>
<Name>asapPublisherContact</Name>
<DataType>PublicObject</DataType>
<ClassDomain reftype="name">AsapPubContactDomain</ClassDomain>
</Attribute>
<!-- A Descript ion of the publisher. -->
<Attribute>
<Name>publisherDescription</Name>
<DataType>String</DataType>
<DataLength>500</DataLength>
</Attribute>
</Attributes>
</ClassObject>
stack trace
System was unable to create an author object oracle.ifs.common.IfsException: IFS-30002: Unable to create new LibraryObject oracle.ifs.common.IfsException: IFS-10407: Invalid Attribute name (JOBTITLE) at oracle.ifs.server.S_LibraryObject.insertRows(S_LibraryObject.java, Compiled Code) at oracle.ifs.server.OperationState.executeAtomicOperations(OperationState.java, Compiled Code) at oracle.ifs.server.S_LibraryObject.createInstance(S_LibraryObject.java, Compiled Code) at oracle.ifs.server.S_LibrarySession.newLibraryObject(S_LibrarySession.java, Compiled Code) at oracle.ifs.server.S_LibrarySession.newPublicObject(S_LibrarySession.java:6853) at oracle.ifs.server.S_LibrarySession.newPublicObject(S_LibrarySession.java:6835) at oracle.ifs.server.S_LibrarySession.DMNewPublicObject(S_LibrarySession.java:6623) at oracle.ifs.beans.LibrarySession.DMNewPublicObject(LibrarySession.java:7226) at oracle.ifs.beans.LibrarySession.NewPublicObject(LibrarySession.java:4795) at oracle.ifs.beans.LibrarySession.createPublicObject(LibrarySession.java:2789) at publishasap.definition.AsapPublisherDef.setAsapPublisherContact(AsapPublisherDef.java:41) at ifs.files._ifs._jsp_25_2dbin._admin._instantiatePublisher._jspService(_instantiatePublisher.java:166) at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java, Compiled Code) at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java, Compiled Code) at oracle.jsp.JspServlet.doDispatch(JspServlet.java, Compiled Code) at oracle.jsp.JspServlet.internalService(JspServlet.java, Compiled Code) at oracle.ifs.protocols.dav.impl.IfsDavServlet.processJsp(IfsDavServlet.java, Compiled Code) at oracle.ifs.protocols.dav.impl.IfsDavServlet.doGet(IfsDavServlet.java, Compiled Code) at oracle.ifs.protocols.dav.impl.IfsDavServlet.doPost(IfsDavServlet.java, Compiled Code) at oracle.ifs.protocols.dav.DavServlet.processRequest(DavServlet.java, Compiled Code) at oracle.ifs.protocols.dav.DavServlet.service(DavServlet.java, Compiled Code) at oracle.ifs.protocols.dav.impl.IfsDavServlet.service(IfsDavServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.jserv.JServConnection.processRequest(JServConnection.java, Compiled Code) at org.apache.jserv.JServConnection.run(JServConnection.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) IFS-30002: Unable to create new LibraryObject
Sorry Mark. Here are the rest of the files.
AsapPerson.java
// Copyright (c) 2000 PublishASAP
package publishasap;
import oracle.ifs.beans.ApplicationObject;
import oracle.ifs.beans.LibrarySession;
import oracle.ifs.common.AttributeValue;
import oracle.ifs.common.IfsException;
import oracle.ifs.server.S_LibraryObjectData;
* Superclass of all people involved in Publishasap
* <P>
public class AsapPerson extends ApplicationObject {
// Private class constants.
public static final String CLASS_NAME = "AsapPerson";
public static final String PREFIX= "prefix";
public static final String FIRST_NAME= "firstName";
public static final String INITIAL= "mInitial";
public static final String LAST_NAME= "lastName";
public static final String SUFFIX = "suffix";
public static final String EMAIL_ONE= "email1";
public static final String EMAIL_TWO= "email2";
public static final String WORK_PHONE= "wkPhone";
public static final String FAX= "fax";
public static final String USERNAME= "username";
public static final String PASSWORD= "password";
* Constructor
public AsapPerson(LibrarySession ifs,
java.lang.Long id,
java.lang.Long classId,
S_LibraryObjectData data)
throws IfsException{
super(ifs, id, classId, data);
* Set the value of the PREFIX attribute.
public final void setPrefix( String newValue )
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue( newValue );
setAttribute( PREFIX, av );
* Get the current value of the PREFIX attribute.
public final String getPrefix()
throws IfsException{
AttributeValue av= getAttribute(PREFIX);
String tmp= av.getString(getSession());
return tmp.trim();
* Set the value of the first name attribute.
public final void setFirstName( String newValue )
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue( newValue );
setAttribute( FIRST_NAME, av );
* Get the current value of the FIRST_NAME attribute.
public final String getFirstName()
throws IfsException{
AttributeValue av= getAttribute(FIRST_NAME);
String tmp= av.getString(getSession());
return tmp.trim();
* Set the value of the INITIAL attribute.
public final void setMInitial( String newValue )
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue( newValue );
setAttribute( INITIAL, av );
* Get the current value of the INITIAL attribute.
public final String getMInitial()
throws IfsException{
AttributeValue av= getAttribute(INITIAL);
String tmp= av.getString(getSession());
return tmp.trim();
* Set the value of the LAST_NAME attribute.
public final void setLastName( String newValue )
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue( newValue );
setAttribute( LAST_NAME, av );
* Get the current value of the LAST_NAME attribute.
public final String getLastName()
throws IfsException{
AttributeValue av= getAttribute(LAST_NAME);
String tmp= av.getString(getSession());
return tmp.trim();
* Set the value of the SUFFIX attribute.
public final void setSuffix( String newValue )
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue( newValue );
setAttribute( SUFFIX, av );
* Get the current value of the SUFFIX attribute.
public final String getSuffix()
throws IfsException{
AttributeValue av= getAttribute(SUFFIX);
String tmp= av.getString(getSession());
return tmp.trim();
* Set the EMAIL_ONE attribute.
public final void setEmail1( String newValue )
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newValue);
setAttribute( EMAIL_ONE, av );
* Get the current value of the EMAIL_ONE.
public final String getEmail1()
throws IfsException{
AttributeValue av= getAttribute(EMAIL_ONE);
String tmp= av.getString(getSession());
return t mp.trim();
* Set the EMAIL_TWO attribute.
public final void setEmail2( String newValue )
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newValue);
setAttribute( EMAIL_TWO, av );
* Get the current value of EMAIL_TWO.
public final String getEmail2()
throws IfsException{
AttributeValue av= getAttribute(EMAIL_TWO);
String tmp= av.getString(getSession());
return tmp.trim();
* Set the value of the WORK_PHONE attribute.
public final void setWkPhone( String newValue )
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newValue);
setAttribute( WORK_PHONE, av );
* Get the current value of the WORK_PHONE attribute.
public final String getWkPhone()
throws IfsException{
AttributeValue av= getAttribute(WORK_PHONE);
String tmp= av.getString(getSession());
return tmp.trim();
* Set the value of the FAX attribute.
public final void setFax( String newValue )
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newValue);
setAttribute( FAX, av );
* Get the current value of the FAX attribute.
public final String getFax()
throws IfsException{
AttributeValue av= getAttribute(FAX);
String tmp= av.getString(getSession());
return tmp.trim();
* Set the value of the username and password.
public final void setUsername( String newValue )
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newValue);
setAttribute( USERNAME, av );
* Get the current value of the USERNAME.
public final String getUsername()
throws IfsException{
AttributeValue av= getAttribute(USERNAME);
String tmp= av.getString(getSession());
return tmp.trim();
* Set the value of the PASSWORD attribute.
public final void setPassword( String newValue )
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newValue);
setAttribute( PASSWORD, av );
* Get the current value of the password field.
public final String getPassword()
throws IfsException{
AttributeValue av= getAttribute(PASSWORD);
String tmp= av.getString(getSession());
return tmp.trim();
AsapPersonDef.java
// Copyright (c) 2000 Movement Inc
package publishasap.definition;
import oracle.ifs.beans.ClassObject;
import oracle.ifs.beans.LibrarySession;
import oracle.ifs.beans.LibraryObjectDefinition;
import oracle.ifs.beans.ApplicationObjectDefinition;
import oracle.ifs.common.AttributeValue;
import oracle.ifs.common.IfsException;
import javax.servlet.http.HttpServletRequest;
import oracle.ifs.beans.DocumentDefinition;
* A Bean class.
* <P>
* @author Brooke Supryka
public class AsapPersonDef extends ApplicationObjectDefinition {
* This bean is called to create an instance of a person
* <P>
* @author Brooke Supryka
private static final boolean DEBUG = true;
* Constructs a new instance.
public AsapPersonDef(LibrarySession ifs) throws IfsException
//Construct an AsapAuthor object
super(ifs);
this.setClassObject(ClassObject.getClassObjectFromLabel(ifs,publishasap.AsapPerson.CLASS_NAME));
* Set the value of the PREFIX attribute.
public final void setPrefix( String newValue )
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue( newValue );
setAttribute( publishasap.AsapPerson.PREFIX, av );
* Set the value of the first name attribute.
public final void setFirstName( String newValue )
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue( newValue );
setAttribute( publishasap.AsapPerson.FIRST_NAME, av );
* Set the value of the INITIAL attribute.
public final void setMInitial( String newValue )
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue( newValue );
setAttribute( publishasap.AsapPerson.INITIAL, av );
* Set the value of the LAST_NAME attribute.
public final void setLastName( String newValue )
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue( newValue );
setAttribute( publishasap.AsapPerson.LAST_NAME, av );
* Set the value of the SUFFIX attribute.
public final void setSuffix( String newValue )
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue( newValue );
setAttribute( publishasap.AsapPerson.SUFFIX, av );
* Set the EMAIL_ONE attribute.
public final void setEmail1( String newValue )
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newValue);
setAttribute( publishasap.AsapPerson.EMAIL_ONE, av );
* Set the EMAIL_TWO attribute.
public final void setEmail2( String newValue )
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newValue);
setAttribute( publishasap.AsapPerson.EMAIL_TWO, av );
* Set the value of the WORK_PHONE attribute.
public final void setWkPhone( String newValue )
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newValue);
setAttribute( publishasap.AsapPerson.WORK_PHONE, av );
* Set the value of the FAX attribute.
public final void setFax( String newValue )
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newValue);
setAttribute( publishasap.AsapPerson.FAX, av );
* Set the value of the username and password.
public final void setUsername( String newValue )
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newValue);
setAttribute( publishasap.AsapPerson.USERNAME, av );
* Set the value of the PASSWORD attribute.
public final void setPassword( String newValue )
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newValue);
setAttribute( publishasap.AsapPerson.PASSWORD, av );
AsapCustomer
// Copyright (c) 2000 Movement Inc.
package publishasap;
import oracle.ifs.beans.*;
import oracle.ifs.common.*;
import oracle.ifs.server.S_LibraryObjectData;
* Instance of AsapCustomer.
* <P>
* @author Ian Kulmatycki
public class AsapCustomer extends TieApplicationObject {
public static final String CLASS_NAME= "AsapCustomer";
public static final String COMPANY_NAME= "companyName";
public static final String ADDRESS_1= "address1";
public static final String ADDRESS_2= "address2";
public static final String CITY= "city";
public static final String STATE= "state";
public static final String POSTAL_CODE= "postalCode";
public static final String PHONE_NUMBER= "phoneNumber";
public static final String COUNTRY= "country";
* Constructor
public AsapCustomer( LibrarySession ifs,
java.lang.Long id,
java.lang.Long classId,
S_LibraryObjectData data)
throws IfsException{
// Construct a Document object - standard variant.
super(ifs,id,classId,data);
public void setCompanyName(String newName)
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newName);
setAttribute(COMPANY_NAME, av);
public void setAddress1(String newAddress)
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newAddress);
setAttribute(ADDRESS_1, av);
public void setAddress2(String newAddress)
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newAddress);
setAttribute(ADDRESS_2, av);
public void setCity(String newCity)
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newCity);
setAttribute(CITY, av);
public void setState(String newState)
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newState);
setAttribute(STATE, av);
public void setPostalCode(String newPostalCode)
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newPostalCode);
setAttribute(POSTAL_C ODE, av);
public void setCountry(String newCountry)
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newCountry);
setAttribute(COUNTRY, av);
public void setPhoneNumber(String newPhoneNumber)
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newPhoneNumber);
setAttribute(PHONE_NUMBER, av);
public String getCompanyName()
throws IfsException{
AttributeValue av= getAttribute(COMPANY_NAME);
return av.getString(getSession());
public String getAddress1()
throws IfsException{
AttributeValue av= getAttribute(ADDRESS_1);
return av.getString(getSession());
public String getAddress2()
throws IfsException{
AttributeValue av= getAttribute(ADDRESS_2);
return av.getString(getSession());
public String getCity()
throws IfsException{
AttributeValue av= getAttribute(CITY);
return av.getString(getSession());
public String getPostalCode()
throws IfsException{
AttributeValue av= getAttribute(POSTAL_CODE);
return av.getString(getSession());
public String getCountry()
throws IfsException{
AttributeValue av= getAttribute(COUNTRY);
return av.getString(getSession());
public String getState()
throws IfsException{
AttributeValue av= getAttribute(STATE);
return av.getString(getSession());
public String getPhoneNumber()
throws IfsException{
AttributeValue av= getAttribute(PHONE_NUMBER);
return av.getString(getSession());
AsapCustomerDef.java
// Copyright (c) 2000 Movement Inc.
package publishasap.definition;
import oracle.ifs.beans.*;
import oracle.ifs.common.*;
import publishasap.AsapCustomer;
* Create the definition for an AsapCustomer object.
* <P>
* @author Ian Kulmatycki
public class AsapCustomerDef extends ApplicationObjectDefinition {
* Constructor
public AsapCustomerDef(LibrarySession ifs)
throws IfsException
// Construct a Document object - standard variant.
super(ifs);
this.setClassObject(ClassObject.getClassObjectFromLabel(ifs,publishasap.AsapCustomer.CLASS_NAME));
public void setCompanyName(String newName)
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newName);
setAttribute(AsapCustomer.COMPANY_NAME, av);
public void setAddress1(String newAddress)
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newAddress);
setAttribute(AsapCustomer.ADDRESS_1, av);
public void setAddress2(String newAddress)
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newAddress);
setAttribute(AsapCustomer.ADDRESS_2, av);
public void setCity(String newCity)
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newCity);
setAttribute(AsapCustomer.CITY, av);
public void setState(String newState)
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newState);
setAttribute(AsapCustomer.STATE, av);
public void setPostalCode(String newPostalCode)
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newPostalCode);
setAttribute(AsapCustomer.POSTAL_CODE, av);
public void setCountry(String newCountry)
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newCountry);
setAttribute(AsapCustomer.COUNTRY, av);
public void setPhoneNumber(String newPhoneNumber)
throws IfsException{
AttributeValue av= AttributeValue.newAttributeValue(newPhoneNumber);
setAttribute(AsapCustomer.PHONE_NUMBER, av);
AsapPerson.xml
<?xml version = '1.0' standalone = 'yes'?>
<!-- AsapPerson.xml -->
<ClassObject>
<Name>AsapPerson</Name>
<Description>AsapPerson Object</Description>
<Superclass Reftype = "name">ApplicationObject</Superclass>
<BeanClassPath>publishasap.AsapPerson</BeanClassPath>
<Attributes> ;
<Attribute>
<Name>prefix</Name>
<DataType>String</DataType>
<DATALENGTH>4</DATALENGTH>
</Attribute>
<Attribute>
<Name>firstName</Name>
<DataType>String</DataType>
<DATALENGTH>30</DATALENGTH>
</Attribute>
<Attribute>
<Name>mInitial</Name>
<DataType>String</DataType>
<DATALENGTH>1</DATALENGTH>
</Attribute>
<Attribute>
<Name>lastName</Name>
<DataType>String</DataType>
<DATALENGTH>30</DATALENGTH>
</Attribute>
<Attribute>
<Name>suffix</Name>
<DataType>String</DataType>
<DATALENGTH>4</DATALENGTH>
</Attribute>
<Attribute>
<Name>email1</Name>
<DataType>String</DataType>
<DATALENGTH>50</DATALENGTH>
</Attribute>
<Attribute>
<Name>email2</Name>
<DataType>String</DataType>
<DATALENGTH>50</DATALENGTH>
</Attribute>
<Attribute>
<Name>fax</Name>
<DataType>String</DataType>
<DATALENGTH>20</DATALENGTH>
</Attribute>
<Attribute>
<Name>wkPhone</Name>
<DataType>String</DataType>
<DATALENGTH>20</DATALENGTH>
</Attribute>
<Attribute>
<Name>username</Name>
<DataType>String</DataType>
<DATALENGTH>15</DATALENGTH>
</Attribute>
<Attribute>
<Name>password</Name>
<DataType>String</DataType>
<DATALENGTH>15</DATALENGTH>
</Attribute>
</Attributes>
</ClassObject>
AsapCustomer.xml
<?xml version="1.0" standalone="yes"?>
<!-- AsapCustomer.xml -->
<!-- When parsed, this file will create the definition of an AsapCustomer in the database. -->
<ClassObject>
<Name>AsapCustomer</Name>
<Description>Parent of all customers that are using Publishasap.</Description>
<SuperClass RefType="name">ApplicationObject</SuperClass>
<BeanClassPath>publishasap.AsapCustomer</BeanClassPath>
<!-- Attribute list for the object. -->
<Attributes>
<!-- The company name of the customer. -->
<Attribute>
<Name>companyName</Name>
<DataType>String</DataType>
<DataLength>75</DataLength>
</Attribute>
<!-- The mailing address of the customer. -->
<Attribute>
<Name>address1</Name>
<DataType>String</DataType>
<DataLength>50</DataLength>
</Attribute>
<!-- The secondary mailing address of the customer. -->
<Attribute>
<Name>address2</Name>
<DataType>String</DataType>
<DataLength>50</DataLength>
</Attribute>
<!-- The mailing city of the customer. -->
<Attribute>
<Name>city</Name>
<DataType>String</DataType>
<DataLength>30</DataLength>
</Attribute>
<!-- The mailing state of the customer. -->
<Attribute>
<Name>state</Name>
<DataType>String</DataType>
<DataLength>4</DataLength>
</Attribute>
<!-- The mailing postal code of the customer. -->
<Attribute>
<Name>postalCode</Name>
<DataType>String</DataType>
<DataLength>10</DataLength>
</Attribute>
<!-- The contact phone number of the customer. -->
<Attribute>
<Name>phoneNumber</Name>
<DataType>String</DataType>
<DataLength>14</DataLength>
</Attribute>
<!-- The mailing country of the customer. -->
<Attribute>
<Name>country</Name>
<DataType>String</DataT ype>
<DataLength>30</DataLength>
</Attribute>
</Attributes>
</ClassObject>
null
Similar Messages
-
Cannot create or replace : The specified extended attribute name was invalid.
New problem arrived today. Trying to copy a file from 10.6 server with an XP (SP3) client. I get this error:
Cannot create or replace (file name here): The specified extended attribute name was invalid.
The contents of the file can be copied, but not the folder. Other files can be copied. There are no funny characters. The name is not too long. I propogated the permissions on the share and that had no affect. The problem exists on three different XP systems. Can't find extended properties that could be causeing a problem. Any ideas?Nikon just released a Firmware update today for the D750
-
JBO-26010: Invalid Entity Attribute Name
Hi All,
The requirement is to add a new field on the page but that field is not getting selected in the core EO, so I have extended the EO and than extended the VO based on that extend ed EO.
After that I followed usual steps to import then personalised and added the new field ...bounced every thing but when I am testing got following error:
## Detail 0 ##
JBO-30003: The application pool (oracle.apps.pon.negotiation.creation.server.NegotiationCreationAM) failed to checkout an application module due to the following exception:
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.PersistenceException, msg=JBO-26010: Invalid Entity Attribute Name "Description" specified for the View Attribute "XxAuctionHeadersAllVO"
===========
When I checked the "XxAuctionHeadersALLEO.xml" it has only entry of new attribute. But in "XxAuctionHeadersAllVO.xml" it has the complete SQL ....so is that can be a problem?
I have run the query from "XxAuctionHeadersAllVO.xml" in toad and it works fine.
Thanks!Yes it is...:-)
Anyways thanks for the reply..
The Base EO - AuctionHeadersALLEO which I have extended to XxAuctionHeadersALLEO
I have already performed both the steps suggested by you (i.e. option 1) so after Substitute the custom VO "XxAuctionHeadersAllVO" on top of standard VO "AuctionHeadersAllVO" when I tested the change I have got the above error : JBO-26010: Invalid Entity Attribute Name "Description" specified for the View Attribute "XxAuctionHeadersAllVO"
So in custom VO (and also in standard VO) select it's just references it as "AuctionHeadersALLEO.DESCRIPTION" but the field is in AuctionHeadersAllBaseEO.xml not in AuctionHeadersALLEO.xml
so I don't understand how it works in the standard product?
Is it any better? Or do I have to be more clearer :-( -
HI, I'm using JDEV 11.1.1.6.0
I am encountering this error msg on one VO
oracle.jbo.PersistenceException: JBO-26010: Invalid Entity Attribute Name "CorrespondenceAddressFlag" specified for the View Attribute "AddressDetailsVO"
I have searched for similar problems for others and have checked the relevant XML file and have seen that the entries are correct.
If I delete this attribute and add it again, the error come up for the next attribute.
Earlier the EO had a few attributes then according to further requirement changes, we add new attributes to the Table and Synchronized the EO's.
Then added these Attributes to the VO. This application Runs fine when tested in AppModule but when dropped on page, it gives the above error.
oracle.jbo.PersistenceException: JBO-26010: Invalid Entity Attribute Name "CorrespondenceAddressFlag" specified for the View Attribute "AddressDetailsVO"
at oracle.jbo.server.ViewDefImpl.doAddEntityAttribute(ViewDefImpl.java:7078)
at oracle.jbo.server.ViewAttributeDefImpl.loadFromXML(ViewAttributeDefImpl.java:2099)
at oracle.jbo.server.ViewDefImpl.loadAttributes(ViewDefImpl.java:6816)
at oracle.jbo.server.ViewDefImpl.loadFromXML(ViewDefImpl.java:4453)
at oracle.jbo.server.ViewDefImpl.loadFromXML(ViewDefImpl.java:3946)
at oracle.jbo.server.ViewDefImpl.loadFromXML(ViewDefImpl.java:3894)
at oracle.jbo.server.MetaObjectManager.loadFromXML(MetaObjectManager.java:554)
at oracle.jbo.mom.DefinitionManager.loadLazyDefinitionObject(DefinitionManager.java:1232)
at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:603)
at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:523)
at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:505)
at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:780)
at oracle.jbo.server.ViewDefImpl.findDefObject(ViewDefImpl.java:845)
at oracle.jbo.server.AMViewUsage.createViewObject(AMViewUsage.java:112)
at oracle.jbo.server.ApplicationModuleDefImpl.loadViewObject(ApplicationModuleDefImpl.java:660)
at oracle.jbo.server.ApplicationModuleDefImpl.loadComponents(ApplicationModuleDefImpl.java:921)
at oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModule(ApplicationModuleImpl.java:493)
at oracle.jbo.server.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:87)
at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:158)
at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:73)
at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource(ApplicationPoolImpl.java:2913)
at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2473)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2347)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3246)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:572)
at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:234)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:505)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:500)
at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:523)
at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:871)
at oracle.adf.model.binding.DCBindingContainer.findDataControl(DCBindingContainer.java:1640)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.getDataControl(JUCtrlActionBinding.java:566)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.isOperationEnabled(JUCtrlActionBinding.java:316)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.isActionEnabled(JUCtrlActionBinding.java:296)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.getEnabled(JUCtrlActionBinding.java:1833)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.internalGet(JUCtrlActionBinding.java:1927)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.internalGet(FacesCtrlActionBinding.java:369)
at oracle.adf.model.binding.DCControlBinding.get(DCControlBinding.java:749)
at javax.el.MapELResolver.getValue(MapELResolver.java:164)
at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)
at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)
at com.sun.el.parser.AstValue.getValue(Unknown Source)
at com.sun.el.parser.AstNot.getValue(Unknown Source)
at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:68)
at oracle.adfinternal.view.faces.renderkit.rich.GoLinkRenderer.getDisabled(GoLinkRenderer.java:506)
at oracle.adfinternal.view.faces.renderkit.rich.GoLinkRenderer.isDisabled(GoLinkRenderer.java:681)
at oracle.adfinternal.view.faces.renderkit.rich.GoLinkRenderer.handleInaccessibility(GoLinkRenderer.java:584)
at oracle.adfinternal.view.faces.renderkit.rich.GoLinkRenderer.encodeAll(GoLinkRenderer.java:131)
at oracle.adfinternal.view.faces.renderkit.rich.CommandLinkRenderer.encodeAll(CommandLinkRenderer.java:159)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:938)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:406)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:421)
at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:220)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:938)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:406)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:421)
at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1324)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:938)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:267)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:191)
at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:911)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:367)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:222)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:447)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:447)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
<Jul 3, 2013 4:12:48 PM IST> <Error> <HTTP> <BEA-101020> <[ServletContext@60954909[app:com.magma.application.model module:viewcontroller-context-root path:/viewcontroller-context-root spec-version:2.5]] Servlet failed with Exception
oracle.jbo.PersistenceException: JBO-26010: Invalid Entity Attribute Name "CorrespondenceAddressFlag" specified for the View Attribute "AddressDetailsVO"
at oracle.jbo.server.ViewDefImpl.doAddEntityAttribute(ViewDefImpl.java:7078)
at oracle.jbo.server.ViewAttributeDefImpl.loadFromXML(ViewAttributeDefImpl.java:2099)
at oracle.jbo.server.ViewDefImpl.loadAttributes(ViewDefImpl.java:6816)
at oracle.jbo.server.ViewDefImpl.loadFromXML(ViewDefImpl.java:4453)
at oracle.jbo.server.ViewDefImpl.loadFromXML(ViewDefImpl.java:3946)
Truncated. see log file for complete stacktrace
>
<Jul 3, 2013 4:12:48 PM IST> <Notice> <Diagnostics> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'DefaultServer' has triggered at Jul 3, 2013 4:12:48 PM IST. Notification details:
WatchRuleType: Log
WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'WL-101020') OR (MSGID = 'WL-101017') OR (MSGID = 'WL-000802') OR (MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
WatchData: DATE = Jul 3, 2013 4:12:48 PM IST SERVER = DefaultServer MESSAGE = [ServletContext@60954909[app:model module:viewcontroller-context-root path:/viewcontroller-context-root spec-version:2.5]] Servlet failed with Exception
oracle.jbo.PersistenceException: JBO-26010: Invalid Entity Attribute Name "CorrespondenceAddressFlag" specified for the View Attribute "AddressDetailsVO"
at oracle.jbo.server.ViewDefImpl.doAddEntityAttribute(ViewDefImpl.java:7078)
at oracle.jbo.server.ViewAttributeDefImpl.loadFromXML(ViewAttributeDefImpl.java:2099)
at oracle.jbo.server.ViewDefImpl.loadAttributes(ViewDefImpl.java:6816)
at oracle.jbo.server.ViewDefImpl.loadFromXML(ViewDefImpl.java:4453)
at oracle.jbo.server.ViewDefImpl.loadFromXML(ViewDefImpl.java:3946)
at oracle.jbo.server.ViewDefImpl.loadFromXML(ViewDefImpl.java:3894)
at oracle.jbo.server.MetaObjectManager.loadFromXML(MetaObjectManager.java:554)
at oracle.jbo.mom.DefinitionManager.loadLazyDefinitionObject(DefinitionManager.java:1232)
at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:603)
at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:523)
at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:505)
at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:780)
at oracle.jbo.server.ViewDefImpl.findDefObject(ViewDefImpl.java:845)
at oracle.jbo.server.AMViewUsage.createViewObject(AMViewUsage.java:112)
at oracle.jbo.server.ApplicationModuleDefImpl.loadViewObject(ApplicationModuleDefImpl.java:660)
at oracle.jbo.server.ApplicationModuleDefImpl.loadComponents(ApplicationModuleDefImpl.java:921)
at oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModule(ApplicationModuleImpl.java:493)
at oracle.jbo.server.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:87)
at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:158)
at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:73)
at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource(ApplicationPoolImpl.java:2913)
at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2473)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2347)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3246)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:572)
at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:234)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:505)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:500)
at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:523)
at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:871)
at oracle.adf.model.binding.DCBindingContainer.findDataControl(DCBindingContainer.java:1640)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.getDataControl(JUCtrlActionBinding.java:566)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.isOperationEnabled(JUCtrlActionBinding.java:316)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.isActionEnabled(JUCtrlActionBinding.java:296)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.getEnabled(JUCtrlActionBinding.java:1833)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.internalGet(JUCtrlActionBinding.java:1927)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.internalGet(FacesCtrlActionBinding.java:369)
at oracle.adf.model.binding.DCControlBinding.get(DCControlBinding.java:749)
at javax.el.MapELResolver.getValue(MapELResolver.java:164)
at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)
at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)
at com.sun.el.parser.AstValue.getValue(Unknown Source)
at com.sun.el.parser.AstNot.getValue(Unknown Source)
at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:68)
at oracle.adfinternal.view.faces.renderkit.rich.GoLinkRenderer.getDisabled(GoLinkRenderer.java:506)
at oracle.adfinternal.view.faces.renderkit.rich.GoLinkRenderer.isDisabled(GoLinkRenderer.java:681)
at oracle.adfinternal.view.faces.renderkit.rich.GoLinkRenderer.handleInaccessibility(GoLinkRenderer.java:584)
at oracle.adfinternal.view.faces.renderkit.rich.GoLinkRenderer.encodeAll(GoLinkRenderer.java:131)
at oracle.adfinternal.view.faces.renderkit.rich.CommandLinkRenderer.encodeAll(CommandLinkRenderer.java:159)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:938)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:406)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:421)
at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:220)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:938)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:406)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:421)
at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1324)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:938)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:267)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:191)
at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:911)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:367)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:222)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:447)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:447)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101020 MACHINE = NRSAWANT-IN TXID = CONTEXTID = 94d3e58da1320945:-18bd848a:13fa41f0152:-8000-000000000000001c TIMESTAMP = 1372848168531
WatchAlarmType: AutomaticReset
WatchAlarmResetPeriod: 30000
>
<Jul 3, 2013 4:12:49 PM IST> <Alert> <Diagnostics> <BEA-320016> <Creating diagnostic image in d:\jdev_home\system11.1.1.6.38.61.92\defaultdomain\servers\defaultserver\adr\diag\ofm\defaultdomain\defaultserver\incident\incdir_31 with a lockout minute period of 1.>
<Jul 3, 2013 4:12:52 PM IST> <Warning> <Socket> <BEA-000449> <Closing socket as no data read from it on 10.180.183.77:57,804 during the configured idle timeout of 5 secs>
<Jul 3, 2013 4:12:52 PM IST> <Warning> <Socket> <BEA-000449> <Closing socket as no data read from it on 10.180.183.77:57,803 during the configured idle timeout of 5 secs>
<Jul 3, 2013 4:12:52 PM IST> <Warning> <Socket> <BEA-000449> <Closing socket as no data read from it on 10.180.183.77:57,800 during the configured idle timeout of 5 secs>
<Jul 3, 2013 4:12:52 PM IST> <Warning> <Socket> <BEA-000449> <Closing socket as no data read from it on 10.180.183.77:57,802 during the configured idle timeout of 5 secs>
<Jul 3, 2013 4:12:52 PM IST> <Warning> <Socket> <BEA-000449> <Closing socket as no data read from it on 10.180.183.77:57,801 during the configured idle timeout of 5 secs>Just to confirm that this is not a Library or deployment setup problem, Now, I changed the deployment scope to include business components in the ViewController to just to be sure it was being picked up in the ViewController too. I Created a separate AppModule in the ViewController and Added the VO to it, It Ran Properly including the Addition and Commit Control.
-
IfsException (IFS-10811) starting the example LoggingAgent
Hi,
I am trying to write my own Agent for iFS 9.0.1.
The compilation goes fine but when trying to launch it in standalone mode,
an exception occurs.
To be sure it is not an implementation problem, I tried to launch the
LoggingAgent provided in the "samplecode" folder. I get the same error:
10/10/02 4:22 PM LoggingAgent: Requested to start
10/10/02 4:22 PM LoggingAgent: Starting
10/10/02 4:22 PM LoggingAgent: Start request
10/10/02 4:22 PM LoggingAgent: Pre-run failed
10/10/02 4:22 PM LoggingAgent: oracle.ifs.common.IfsException
oracle.ifs.common.IfsException: IFS-45360: Unable to connect default session
oracle.ifs.common.IfsException: IFS-45206: Unable to get credential
oracle.ifs.common.IfsException: IFS-21008: Unable to connect to iFS service
oracle.ifs.common.IfsException: IFS-10811: Unable to construct LibraryObject Cache for
class oracle.ifs.server.cache.BoundedLibraryObjectCache (invalid class path specification)
at oracle.ifs.server.S_LibrarySession.constructBoundedLibraryObjectCache(S_LibrarySession.java:3449)
at oracle.ifs.server.S_LibrarySession.<init>(S_LibrarySession.java:1900)
at java.lang.reflect.Constructor.newInstance(Native Method)
at oracle.ifs.server.S_LibraryService.constructSession(S_LibraryService.java:2575)
at oracle.ifs.server.S_LibraryService.connect(S_LibraryService.java:2368)
at oracle.ifs.beans.LibraryService.connect(LibraryService.java:977)
at oracle.ifs.management.domain.Server.getCredential(Server.java:374)
at oracle.ifs.management.domain.IfsServer.connectSession(IfsServer.java:1034)
at oracle.ifs.examples.servers.LoggingAgent.preRun(LoggingAgent.java:150)
at oracle.ifs.management.domain.IfsServer$ServerRunner.run(IfsServer.java:2123)
10/10/02 4:22 PM LoggingAgent: Stopping
10/10/02 4:22 PM LoggingAgent: Timer stopped
10/10/02 4:22 PM LoggingAgent: Stop request
10/10/02 4:22 PM LoggingAgent: Timer stopped
10/10/02 4:22 PM LoggingAgent: java.lang.NullPointerException
java.lang.NullPointerException
at oracle.ifs.examples.servers.LoggingAgent.disableEventListening(LoggingAgent.java:320)
at oracle.ifs.examples.servers.LoggingAgent.postRun(LoggingAgent.java:198)
at oracle.ifs.management.domain.IfsServer$ServerRunner.run(IfsServer.java:2155)
10/10/02 4:22 PM LoggingAgent: Stopped
The message complains about an "invalid class path specification". However,
I am sure the class "oracle.ifs.server.cache.BoundedLibraryObjectCache" is
present in the classpath (in the repos.jar library).
Is this problem related to cache size ? If so, how can I increase the cache ?
I know the Agent reads its configuration file (LoggingAgent.def) correctly and
uses the appropriate service name and schema password because the main method
succeeds to start the service and to initialize the LoggingAgent instance.
The failure happens when the connectSession() method is invoked in the
preRun() method.
Any help will be greatly appreciated,
TristanI hate to suggest this, but this impliens that the IFS repos did not install properly. Can you try re-running the ifsconfig process and either create a new repos, or re-initialize your existing repos (Be careful re-initializing an existing repos will cause all info in the repos in the lost).
-
Hi,
When a Library object is created with certain special chars in Ifs I get the following exception : oracle.ifs.common.IfsException: IFS-30002: Unable to create new LibraryObject
oracle.ifs.common.IfsException: IFS-32609: Object name would produce a path containing illegal characters]
I would like to know if there is any documentation relating to what are valid object names in Ifs. If so can you please let me know.
Thanks
LavanyaHi Luis,
Thanks for your response.That was helpful.
What I have found is besides the characters which the api getIllegalPathCharacters() returns , an object name ending with a "." is also invalid, b'cause I get the same exception I have mentioned above.
I would like to know if there are any more such cases.
Thanks
Lavanya -
I am getting the following error when I use this include file
statement :<%@ include file = "../../../production/webboard/" +
shownYear + "/fw" + shownWeek + "/overview.htm"%>
Error : Invalid Attribute +
The application is deployed in Oracle iFS and default web server
is Java web server 2.0 and JSP engine is 1.0.
Any help in this regard will be highly appreciated
Thanks
Sai KumarI've the same problem with lastModifiedTime:
java.sql.Timestamp cal = new java.sql.Timestamp(System.currentTimeMillis());
myAttrs.put(new BasicAttribute("lastModifiedTime", cal));
this results in:
javax.naming.directory.InvalidAttributeValueException: Malformed 'lastModifiedTime' attribute value; remaining name 'uid=tester,ou=people,dc=...'
at com.sun.jndi.ldap.LdapClient.encodeAttribute(LdapClient.java:1041)
at com.sun.jndi.ldap.LdapClient.add(LdapClient.java:1089)
Have you fixed it? -
I have the following xml stored in an xmltype
<?xml version="1.0" encoding="UTF-8" ?>
<Items xsi:noNamespaceSchemaLocation="Items.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:abc="urn:aa:bb:cc:abc:v2">
<Item id="164">
< ItemAttributes abc:location="Some Location Value" abc:ItemDeveloper="Some Developer">
<Weight>400</Weight>
</ItemAttributes>
I am trying to write a query that will return the value of the abc:location. The colon in the attribute name is causing the problem.
SELECT extractvalue(item_xml,'/Items/ItemAttributes@abc:location')
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00601: Invalid token in: '/Items/ItemAttributes@abc:location'
How do I extract the abc:location value?
Thanks!I'd strongly advise you to read about the basics of XML before proceeding...
The ":" is the seperator between the namespace prefix and the attribtue name. Some where in the XML docuemnt the namespace prefix is mapped to a namespace. You need to supplythat namespace prefix definiton as the third argumet to extractValue -
Reconciliation error: ORA-00903: invalid table name
I am facing this error, below:
SELECT * FROM WHERE ORC_KEY = ? AND UD_RES_P_KEY = ?: java.sql.SQLSyntaxErrorException: ORA-00903: invalid table name
Is it a product issue from OIM 9.1.0.2?
best regards,
RobertNo, it is not a product issue. Please go to the process definition tab related and
set all Multivalued attribute as a key field in Reconciliation mapping in Process definition.
Let me know the result, please.
hope this helps,
Thiago L Guimaraes -
Class as an attribute name in JSP tag file
I just ran into an issue where I was writing a custom tag to generate a specific set of HTML elements, and wanted to be able to use CSS the same way I had before refactoring it into a tag. So, I included 'class' as an attribute in the custom tag file and deployed.
On Glassfish v3, this generated a bunch of JasperExceptions in the Javac compilation, complaining about <identifier> expected and reaching the end of file while parsing. I tracked it down, of course, to the use of 'class' as an attribute name, which was reduced to a servlet class defining:
public String getClass() {
return this.class;
public void setClass(String class) {
this.class = class;
}I'm curious -- which part of the process messed up here? Is "class" a valid identifier under the Java EE spec, and the translation should have used something like setClass_(String class_)? Or is it invalid, and Netbeans didn't know to mark it as an error before it tried to deploy? (And, of course, that I missed that in the spec, making it my fault.) I couldn't find anything specifically saying that reserved words couldn't be used as JSTL identifiers, so my gut is that the parser messed up. Also, I found a bug report about it for an alternate web container, but no mention of it in the bug trackers for Glassfish, Tomcat or Jasper.
Where's the blame?stdunbar wrote:
I think that Netbeans messed up. getClass() is, of course, defined on Object and class is a Java keyword.What's to stop the compiler from recognizing that "class" would be a problem and mapping it to an alternate name behind the scenes?
This is the only documentation I turned up. Maybe this says it's invalid:
Java EE SpecThe unique name of the attribute being declared. A translation error results if more than one attribute directive appears in the same translation unit with the same name.A translation error results if the value of a name attribute of an attribute directive is equal to the value of the dynamic-attributes attribute of a tag directive or the value of a name-given attribute of a variable directive. -
Failure Description: ORA-44002: invalid object name
Hi,
I'm trying to use O-cluster to find clusters in my data programmatically. When I try to bin the data (using a modified version of the dmocdemo.java), I get the following error
Failure Description: ORA-44002: invalid object name
Details -
I'm trying to cluster data in my table (see desc below) based on values of evt_hostname, evt_key and evt_username;
SQL> desc sc.sc_event_store;
Name Null? Type
EVT_SEQNO NOT NULL VARCHAR2(64)
EVT_HOSTNAME NOT NULL VARCHAR2(64)
EVT_TIMESTAMP NOT NULL TIMESTAMP(6)
EVT_ID NOT NULL NUMBER(8,2)
EVT_CAT_ID NUMBER(8,2)
EVT_SERVERSTATE NUMBER(8,2)
EVT_USERNAME VARCHAR2(64)
EVT_KEY VARCHAR2(2048)
EVT_VALUE VARCHAR2(64)
EVT_RECUR_TAG NUMBER(15,2)
EVT_CLUSTER_ID VARCHAR2(64)
I've modified prepareData() in dmocdemo.java like this
isOutputAsView = false;
inputDataURI = "SC.SC_EVENT_STORE";
outputDataURI = "OC_BINNED_DATA_BUILD_JDM";
// Create boundaries for all numeric attributes
OraBinningTransformImpl buildDataXform =
(OraBinningTransformImpl)m_binningXformFactory.create(
inputDataURI, outputDataURI, isOutputAsView );
//buildDataXform.setLiteralFlag(true);
String[] excludeColumnList = {"EVT_SEQNO","EVT_TIMESTAMP","EVT_ID","EVT_CAT_ID","EVT_SERVERSTATE","EVT_VALUE","EVT_RECUR_TAG","EVT_CLUSTER_ID"};
buildDataXform.setExcludeColumnList(excludeColumnList);
buildDataXform.setNumberOfBinsForCategorical(125);
//buildDataXform.setNumericalBinningType(OraNumericalBinningType.auto_equi_width);
buildDataXform.setCategoricalBinningType(OraCategoricalBinningType.systemDefault);
xformTask = m_xformTaskFactory.create(buildDataXform);
executeTask(xformTask, "ocPrepareBuildTask_jdm");
The executeTask() function tries executing the task, but returns with
Failure Description: ORA-44002: invalid object name
Any insight/help will be greatly appreciated.Arthur suggestion works but you shouldnt even be doing this on a SQL Task.
Use a data flow task. You'll have better control over the data that is being transfered and get better performance because no staging table will be used.
Just because there are clouds in the sky it doesn't mean it isn't blue. But someone will come and argue that in addition to clouds, birds, airplanes, pollution, sunsets, daltonism and nuclear bombs, all adding different colours to the sky, this
is an undocumented behavior and should not be relied upon. -
Getting invalid-attribute-value Error during Delta Import on Call-based ECMA2
I'm developing an ECMA2 MA to which supports delta imports. I have found very few samples of working code to do delta imports, so my attempts are created
using a lot of trial and error... Any samples of working Call based MA's with delta support would be much appreciated :-)
The data is located in a SQL server and the schema (for delta) is like this (simplified):
EmpID string
Status string
UPDATESTATUS string (<-- This is the update column with values New/Update/Delete)
For each EmpID, there may be multiple Status values, i.e. Status should be imported into a multi value attribute in FIM.
For the full import this is working as expected, but I run into issues when attempting to do the delta imports
The code for the delta import
private
GetImportEntriesResults GetImportEntries_Delta(GetImportEntriesRunStep importRunStep)
GetImportEntriesResults importReturnInfo;
List<CSEntryChange> csentries =
new List<CSEntryChange>();
string employeeID =
null;
string appStatus =
null;
string currEmployeeID =
CSEntryChange csentry =
null;
List<string> appStatusList =
new List<string>();
string changeMode =
for (int i = currentReadRecord; i <= da.Tables["AppStatus"].Rows.Count - 1; i++)
if (currEmployeeID != da.Tables["AppStatus"].Rows[i].ItemArray.GetValue(0).ToString().Trim())
if (currEmployeeID !=
"") // this should be true except for the first run
csentry.AttributeChanges.Add(AttributeChange.CreateAttributeUpdate("IdentityStores", appStatusList));
csentries.Add(csentry);
appStatusList = new
List<string>();
if (csentries.Count >= m_importPageSize)
currentReadRecord = i;
importReturnInfo = new
GetImportEntriesResults();
importReturnInfo.MoreToImport = (i <= da.Tables["AppStatus"].Rows.Count - 1);
importReturnInfo.CSEntries = csentries;
return importReturnInfo;
changeMode = da.Tables["AppStatus"].Rows[i].ItemArray.GetValue(2).ToString().Trim();
csentry = CSEntryChange.Create();
csentry.ObjectType = "ApplicationIdentity";
employeeID = da.Tables["AppStatus"].Rows[i].ItemArray.GetValue(0).ToString().Trim();
currEmployeeID = (string)employeeID;
switch (changeMode)
case "New":
csentry.ObjectModificationType = ObjectModificationType.Add;
csentry.AttributeChanges.Add(AttributeChange.CreateAttributeAdd("EmployeeID", employeeID));
break;
case "Update":
csentry.ObjectModificationType = ObjectModificationType.Update;
csentry.DN = employeeID;
break;
case "Delete":
csentry.ObjectModificationType = ObjectModificationType.Delete;
csentry.DN = employeeID;
break;
default:
throw new
UnexpectedDataException(string.Format("Unknown modification type: {0}", changeMode));
appStatus = da.Tables["AppStatus"].Rows[i].ItemArray.GetValue(1).ToString().Trim();
appStatusList.Add(appStatus);
// save the last object
if (csentry != null)
csentry.AttributeChanges.Add(AttributeChange.CreateAttributeUpdate("IdentityStores", appStatusList));
csentries.Add(csentry);
importReturnInfo = new
GetImportEntriesResults();
importReturnInfo.MoreToImport = false;
importReturnInfo.CSEntries = csentries;
return importReturnInfo;
The code compiles and executes, but the delta import fails with the "invalid-attribute-value" message per csentry.
From the eventlog I have the following message
The server encountered an unexpected error while performing an operation for a management agent.
"System.InvalidCastException: Unable to cast object of type 'System.Collections.Generic.List`1[System.String]' to type 'System.String'.
at Microsoft.MetadirectoryServices.Impl.Ecma2ConversionServices.AddAttributeToDImage(CDImage* pdimage, String attributeName, AttributeModificationType
attributeModificationType, IList`1 attributeValueChanges, Int32 escapeReferenceDNValues)
at Microsoft.MetadirectoryServices.Impl.Ecma2ConversionServices.ConvertToDImage(CSEntryChange csEntryChange, CDImage** ppDImage, Int32 escapeReferenceDNValues)
at Microsoft.MetadirectoryServices.Impl.ScriptHost.InvokeExtMA_ImportEntry(UInt32 cBatchSize, UInt16* pcszCustomData, UInt32 cFullObject,
_OCTET* rgoctFullObject, UInt32* rgomodt, UInt32* pcpcszChangedAttributes, UInt16*** prgpcszChangedAttributes, Int32 fIsDNStyleNone, UInt16** ppszUpdatedCustomData, _OCTET* rgoctCSImage, Int32* rgextec, UInt16** rgpszErrorName, UInt16** rgpszErrorDetail, Int32*
pfMoreToImport)"
To me it seems as if FIM is unable to process the List of strings that is returned when processing the delta. Remember that this works OK when doing the full import.
Do you have any suggestions as to why this fails?
KjetilHi,
Thank you Søren! I got some good clues for the right direction from your answer. If anyone would be looking same answers the correct solution would be down below. I hope it would be help for someone else too.
Get-Shema.ps1
$obj
= New-Object
-Type PSCustomObject
$obj
| Add-Member
-Type NoteProperty
-Name "Anchor-Id|String"
-Value 1
$obj
| Add-Member
-Type NoteProperty
-Name "objectClass|String"
-Value "user"
$Obj
| Add-Member
-Type NoteProperty
-Name "IsLicensed|Boolean"
-Value $true
$Obj
| Add-Member
-Type NoteProperty
-Name "FirstName|String"
-Value ""
$Obj
| Add-Member
-Type NoteProperty
-Name "LastName|String"
-Value ""
$Obj
| Add-Member
-Type NoteProperty
-Name "mail|String"
-Value ""
$Obj
| Add-Member
-Type NoteProperty
-Name "immutableId|String"
-Value ""
$Obj
| Add-Member
-Type NoteProperty
-Name "DisplayName|String"
-Value ""
$Obj
| Add-Member
-Type NoteProperty
-Name "UsageLocation|String"
-Value ""
$Obj
| Add-Member
-Type NoteProperty
-Name "ProxyAddresses|String[]"
-Value ("","")
$Obj
| Add-Member
-Type NoteProperty
-Name "Licenses|String[]"
-Value ("","")
$obj
Import.ps1
#Always pass objects as hash table in pipeline
foreach ($User
in $Users)
$obj = @{}
$obj.Add("Id",
$User.UserPrincipalName)
$obj.Add("objectClass",
"user")
$obj.Add("IsLicensed",
$User.IsLicensed)
$obj.Add("FirstName",
$User.FirstName)
$obj.Add("LastName",
$User.LastName)
$obj.Add("mail",
$User.UserPrincipalName)
$obj.Add("immutableId",
$User.immutableId)
$obj.Add("DisplayName",
$User.DisplayName)
$obj.Add("UsageLocation",
$User.UsageLocation)
$obj.Add("ProxyAddresses", ($User.ProxyAddresses
-ne ""))
$obj.add("Licenses", ($User.Licenses.AccountSkuId))
$obj
Marti -
LDAP: error code 21 - Invalid Attribute Syntax
I have written a java program to create an LDAP user. Sometime it works fine but sometimes it gives error. Detailed error is given below:
createLDAPAgencyUser() : Inside Exception - javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - Invalid Attribute Syntax]; remaining name 'uid=VINMUMBAI,ou=fci,o=cw,c=in'
javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - Invalid Attribute Syntax]; remaining name 'uid=VINMUMBAI,ou=fci,o=cw,c=in'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3001)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2934)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2740)
at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(LdapCtx.java:777)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_createSubcontext(ComponentDirContext.java:319)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:248)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:236)
at javax.naming.directory.InitialDirContext.createSubcontext(InitialDirContext.java:176)
at LDAPAgencyCreation4C.createLDAPAgencyUser(LDAPAgencyCreation4C.java:123)
Stop main method.
at LDAPAgencyCreation4C.main(LDAPAgencyCreation4C.java:45)
Does anyone have idea to resove it, please let me know.
Thanks in advance,
Vinod ShivhareI got the solution. One attribute which I was sending it's name was incorrect. Attribute names are very case sensitive.
-Vinod. -
ORA-44003: invalid SQL name
HI
I have a form in my application and when I fill it then click on the icon create it gives me
ORA-44003: invalid SQL name
Unable to process row of table
I don't know what's the problem . it was working fine before
any one can help me??
Edited by: prog on May 27, 2013 5:24 AMCheck the attributes of your page process, see if the table name matches.
Then check your page items sourced to DB Column, see the column names are accurate.
Scott -
Hi.
I have followed all the steps I have been able to find for creating a connection from a NT workstation to IFS 1.1 on a Solaris Box.
Important error messages:
IfsException: IFS-10600: Unable to construct library connection
java.sql.SQL
Exception: ORA-12154: TNS:could not resolve service name
I have installed oracle NT client 8.1.7
I think the tnsnames.ora file may be in the wrong place (the client is installed in D:\oracle). Do I need to put it's location in the class path? Please help.
I am putting the whole stack trace below:
C:\Program Files\Oracle\JDeveloper 3.2\jdk1.3.0_01\jre\bin\java" -XXdebug -mx50m -classpath "C:\Program Files\Oracle\JDeveloper 3.2\myclasses;C:\Program Files\Oracle\JDeveloper 3.2\lib\jdev-rt.zip;C:\Program Files\Oracle\JDeveloper 3.2\jdbc\lib\oracle8.1.7\classes12.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\connectionmanager.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\webtogo.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\xmlparserv2.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\ojsp.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\servlet.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbcl2.0.zip;C:\Program Files\Oracle\JDeveloper 3.2\jfc\lib\swingall.jar;C:\Program Files\Oracle\JDeveloper 3.2\ifs\lib\adk.jar;C:\Program Files\Oracle\JDeveloper 3.2\ifs\lib\email.jar;C:\Program Files\Oracle\JDeveloper 3.2\ifs\lib\release.jar;C:\Program Files\Oracle\JDeveloper 3.2\ifs\lib\repos.jar;C:\Program Files\Oracle\JDeveloper 3.2\ifs\lib\utils.jar;C:\Program Files\Oracle\JDeveloper 3.2\ifs\settings;C:\Program Files\Oracle\JDeveloper 3.2\jdk1.3.0_01\lib\dt.jar;C:\Program Files\Oracle\JDeveloper 3.2\jdk1.3.0_01\jre\lib\rt.jar;C:\Program Files\Oracle\JDeveloper 3.2\jdk1.3.0_01\jre\lib\i18n.jar" package2.Dgw
System Output: oracle.ifs.common.IfsException: IFS-10620: Unable to construct connection pool
System Output: oracle.ifs.common.IfsException: IFS-10633: Unable to create library connection
System Output: oracle.ifs.common.IfsException: IFS-10600: Unable to construct library connection
System Output: java.sql.SQL
System Output: Exception: ORA-12154: TNS:could not resolve service name
System Output:
System Output:
System Output: oracle.ifs.server.S_LibraryService oracle.ifs.server.S_LibraryService.startService(java.lang.String, java.lang.String) (S_LibraryService.java:1129)
System Output: oracle.ifs.server.S_LibrarySessionInterface
System Output: oracle.ifs.beans.LibraryService.connectLocal(oracle.ifs.common.Credential, oracle.ifs.common.ConnectOptions) (LibraryService.java:408)
System Output: oracle.ifs.beans.LibrarySession oracle.ifs.beans.LibraryService.connect(oracle.ifs.common.Credential, oracle.ifs.commo
System Output: n.ConnectOptions) (LibraryService.java:280)
System Output: java.lang.String[] package2.ListFolder.getContents(java.lang.Long) (ListFolder.java:57)
System Output: void package2.Frame1.setPanelVisible(int) (Frame1.java:170)
System Output: void package2.Frame1$1.actionPerformed(java.awt.event.Act
System Output: ionEvent) (Frame1.java:544)
System Output: void javax.swing.AbstractButton.fireActionPerformed(java.awt.event.ActionEvent) (AbstractButton.java:1450)
System Output: void javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(java.awt.event.ActionEvent) (AbstractButton.java:150
System Output: 4)
System Output: void javax.swing.DefaultButtonModel.fireActionPerformed(java.awt.event.ActionEvent) (DefaultButtonModel.java:378)
System Output: void javax.swing.DefaultButtonModel.setPressed(boolean) (DefaultButtonModel.java:250)
System Output: void javax.swing.plaf.basic.BasicButtonListene
System Output: r.mouseReleased(java.awt.event.MouseEvent) (BasicButtonListener.java:216)
System Output: void java.awt.Component.processMouseEvent(java.awt.event.MouseEvent) (Component.java:3717)
System Output: void java.awt.Component.processEvent(java.awt.AWTEvent) (Component.java:3546)
System Output: void j
System Output: ava.awt.Container.processEvent(java.awt.AWTEvent) (Container.java:1164)
System Output: void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent) (Component.java:2595)
System Output: void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent) (Container.java:1213)
System Output: void java.a
System Output: wt.Component.dispatchEvent(java.awt.AWTEvent) (Component.java:2499)
System Output: void java.awt.LightweightDispatcher.retargetMouseEvent(java.awt.Component, int, java.awt.event.MouseEvent) (Container.java:2451)
System Output: boolean java.awt.LightweightDispatcher.processMouseEvent(j
System Output: ava.awt.event.MouseEvent) (Container.java:2216)
System Output: boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent) (Container.java:2125)
System Output: void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent) (Container.java:1200)
System Output: void java.awt.Window.dis
System Output: patchEventImpl(java.awt.AWTEvent) (Window.java:912)
System Output: void java.awt.Component.dispatchEvent(java.awt.AWTEvent) (Component.java:2499)
System Output: void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent) (EventQueue.java:319)
System Output: boolean java.awt.EventDispatchThread.p
System Output: umpOneEvent() (EventDispatchThread.java:103)
System Output: void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional) (EventDispatchThread.java:93)
System Output: void java.awt.EventDispatchThread.run() (EventDispatchThread.java:84)
System Output:
nullOriginally posted by Luis:Did you install iFS on the Windows box, into the same ORACLE_HOME as the Oracle client? Or did you just copy the .jar files over (or use the ones that come with JDeveloper) and then write and compile a custom app?
I did not install iFS on the Windows box at all (Do I need to?). I'm using the .jar files that came with JDeveloper.Where did you get the
C:\Program Files\Oracle\JDeveloper 3.2\ifs\settings directory?
I copied the whole \settings directory (with no changes) from the server where iFS is installed into the existing ifs directory on my NT workstation under Oracle/JDeveloper.you should be able to cd to: ...\ifs\settings\oracle\ifs\server\properties -- do so and then you should see at least one .properties file. Hopefully you'll find a ServerManager.properties file, since that's the service name you specified in the code you're using to connect to iFS.
Yes, ServerManager.properties is there. I'm going to paste it below along with TNS name. Unfortunately it appears that the service name "World" is in both files. Or if that is not correct could you say exactly how it should be written.TNS names:
# TNSNAMES.ORA Network Configuration File: D:\Oracle\Ora81\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.
WORLD.US.SAS.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = sonoma.unx.sas.com)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = world)
ServerManager.properties: (not everything, this file is long):
AuroraService=false
Driver=oracle.jdbc.driver.OracleDriver
User=IFSSYS
DatabaseUrl=jdbc:oracle:oci8:@world
JdbcTracing=false
DefaultRowPrefetch=0
CaseSensitiveAuthentication=false
CredentialManagers=Ifs
CredentialManagerIfsClassname=oracle.ifs.server.IfsCredentialManager
CredentialManagerIfsAlternateNames=IFS, DEFAULT
CredentialManagerIfsSchema=IFSSYS$CM
CredentialManagerIfsRdbmsUserMustExist=false
CredentialManagerIfsAcceptCleartextCredential=true
CredentialManagerIfsAcceptChallengeResponseCredential=true
CredentialManagerIfsAcceptHttpDigestCredential=true
CredentialManagerIfsAcceptTokenCredential=true
NOTE: sonoma.unx.sas.com is the server where the oracle database is located. However munin.unx.sas.com is the server where ifs is located. When I use sql*plus I am connecting to sonoma and the database, not iFS. I believe this is correct and this is what my java app should also connect to (sonoma not munin). munin doesn't have a service name and there is no way for the client software to connect to it. Is this correct or could this be causing the problem?
Thanks so much for your help.
-Nick
null
Maybe you are looking for
-
Looking to move the maintenance of our IDS instances which drive Documaker MRLs from the Unix command line to within a container ( Websphere ). Using the IDS Java client with JMS is pretty easy. I cannot see how I would be able to get an IDS server
-
Hi all I'm new to these forums so please be gentle with me OK I'm running a A64 3500+ Newcastle in a MSI neo2 Plat mobo with 1Gb pc4000 Ballistix Ram The problem I'm getting is this, no matter what I do I can't get the system prime stable over 2530.
-
Hi, I need to develop a j2me softphone, is there someone who can tell me how to do audio streaming ? I already read jsr135 but nothing important. I would appreciate any help.
-
Recommendation: iMac 27" 2.9 vs. 3.2Ghz?
I'm considering the new iMac 27" with the 2.9 or 3.2Ghz processor. I know that besides the processor, there is also a 512MB and 1GB graphics card difference (as well as 200 dollars price increase for the faster processor). I'm definitley trying to i
-
Downloaded gill sans font will not appear in indesign.
Hi I found this link to the downloadable font (Gill Sans) on this blog: (links removed by forum host) I scanned for viruss and nothing came up so downloaded it fine. I copy and pasted the fonts where the rest of my fonts were in: windows – fonts. I a