Nullpointer exception while multiple users reading from XML DOM object
We are getting a null pointer exception when we are trying to read from a Static XML DOM object . We are getting the exception in weblogic 7.1 very rarely but started getting the exception in weblogic 9.2 more frequently. When multiple users are trying to access the Static variable we are getting null pointer exception. I think it is a memory related issue. Making the whole method synchronized is resolving the issue. But that is not the right thing to do. Can any one know what might be the issue here?
I am giving the code and the XML. I have tried to give the latest Xerces parser from the Apache site but got the same exception. Please help me in this regard.
The XML is also provided below along with the code.
package com.test;
import java.beans.BeanInfo;
import java.beans.Introspector;
import java.util.ArrayList;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
//import org.apache.xml.serialize.XMLSerializer;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
public class ObjectPersistanceXMLParser {
public static volatile Document configXML;
* @param objectName
* @param attributeName
* @return
* @throws Throwable
public static ArrayList getData(String objectName,String attributeName) throws Exception
Node ndDoc = getXMLDoc();
Node ndRoot = ndDoc.getFirstChild();
NodeList ndFirstList = ndRoot.getChildNodes();
BeanInfo bi = Introspector.getBeanInfo(ndFirstList.getClass());
System.out.println("****** "+bi.getBeanDescriptor().getBeanClass().getName());
System.out.println("This is the number of child nodes present:"+ndFirstList.getLength()+":::"+ndFirstList.item(0).getNodeValue());
ArrayList returnResult = null;
String strReturnResult = null;
for(int i=0;i<ndFirstList.getLength();i++)
if(ndFirstList.item(i).getNodeName().equals("ObjectDBMapping"))
NodeList ndObjectList = ndFirstList.item(i).getChildNodes();
for(int j=0;j<ndObjectList.getLength();j++)
if(ndObjectList.item(j).getNodeName().equals("Object"))
if(ndObjectList.item(j).getAttributes().getNamedItem("NAME").getNodeValue().equalsIgnoreCase(objectName))
NodeList ndFieldList = ndObjectList.item(j).getChildNodes();
for(int k=0;k<ndFieldList.getLength();k++)
if(ndFieldList.item(k).getNodeName().equals("field"))
if(ndFieldList.item(k).getAttributes().getNamedItem("NAME").getNodeValue().equalsIgnoreCase(attributeName))
returnResult = new ArrayList();
returnResult.add(ndFieldList.item(k).getAttributes().getNamedItem("SOURCE_TABLE").getNodeValue());
returnResult.add(ndFieldList.item(k).getAttributes().getNamedItem("SOURCE_COLUMN").getNodeValue());
returnResult.add(ndFieldList.item(k).getAttributes().getNamedItem("TYPE").getNodeValue());
returnResult.add(ndFieldList.item(k).getAttributes().getNamedItem("PERSIST").getNodeValue());
returnResult.add(ndFieldList.item(k).getAttributes().getNamedItem("DEFAULT_VALUE").getNodeValue());
returnResult.add(ndFieldList.item(k).getAttributes().getNamedItem("PRIMARY_KEY").getNodeValue());
returnResult.add(ndFieldList.item(k).getAttributes().getNamedItem("VERSIONABLE").getNodeValue());
returnResult.add(ndFieldList.item(k).getAttributes().getNamedItem("PRECISION").getNodeValue());
returnResult.add(ndFieldList.item(k).getAttributes().getNamedItem("FOREIGN_KEY").getNodeValue());
returnResult.add(ndFieldList.item(k).getAttributes().getNamedItem("PARENT_TABLE").getNodeValue());
returnResult.add(ndFieldList.item(k).getAttributes().getNamedItem("PARENT_COLUMN").getNodeValue());
returnResult.add(ndFieldList.item(k).getAttributes().getNamedItem("LEVEL").getNodeValue());
//return returnResult;
if(strReturnResult == null){
System.out.println("This is the current state of dom: ");
//printDom((Document)ndDoc);
if(!attributeName.trim().equalsIgnoreCase("class") &&
!attributeName.trim().equalsIgnoreCase("operationFlag")&&
!attributeName.trim().equalsIgnoreCase("primaryKeyColumnName")&&
!attributeName.trim().equalsIgnoreCase("tableName"))
System.out.println("No DB Mapping found for Object "+objectName+" and attribute "+attributeName);
return returnResult;
* @param objectName
* @param tableName
* @return
* @throws Throwable
public static int getMaxFields(String objectName,String tableName) throws Throwable
Node ndDoc = getXMLDoc();
Node ndRoot = ndDoc.getFirstChild();
NodeList ndFirstList = ndRoot.getChildNodes();
int returnResult = 0;
for(int i=0;i<ndFirstList.getLength();i++)
if(ndFirstList.item(i).getNodeName().equals("ObjectDBMapping"))
NodeList ndObjectList = ndFirstList.item(i).getChildNodes();
for(int j=0;j<ndObjectList.getLength();j++)
if(ndObjectList.item(j).getNodeName().equals("Object"))
if(ndObjectList.item(j).getAttributes().getNamedItem("NAME").getNodeValue().equalsIgnoreCase(objectName))
NodeList ndFieldList = ndObjectList.item(j).getChildNodes();
for(int k=0;k<ndFieldList.getLength();k++)
if(ndFieldList.item(k).getNodeName().equals("field"))
if(ndFieldList.item(k).getAttributes().getNamedItem("SOURCE_TABLE").getNodeValue().equalsIgnoreCase(tableName) &&
ndFieldList.item(k).getAttributes().getNamedItem("PERSIST").getNodeValue().equalsIgnoreCase("Y"))
returnResult++;
return returnResult;
/*This method returns a Document Object of the ObjectConfig.xml file. This method is separated
* out from the calling method to keep an option OPEN in case it is later decided to read XML
* from memory instead of physical location.*/
public static Document getXMLDoc() throws Exception
if(configXML == null)
synchronized (ObjectPersistanceXMLParser.class)
if(configXML == null)
if(System.getProperty("OBJECT-CONFIG-XML") == null){
System.out.println("System Property OBJECT-CONFIG-XML not found");
String filePath = System.getProperty("OBJECT-CONFIG-XML");
System.out.println("Reading CONFIG Xml from file - "+filePath);
DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
BeanInfo bi = Introspector.getBeanInfo(docBuilderFactory.getClass());
System.out.println("****** "+bi.getBeanDescriptor().getBeanClass().getName());
try
DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
configXML = docBuilder.parse(filePath);
}catch(Throwable t)
int errorCode = 111;
String errorMsg = "Problem in parsing OBJECT-CONFIG-XML file";
System.out.println(errorMsg);
else
System.out.println("Config XML Loaded from memory.....new");
return configXML;
public static void main(String args[]) throws Throwable
/*public synchronized static void printDom(Document doc){
XMLSerializer ser = new XMLSerializer(System.out, null);
try {
ser.serialize(doc);
} catch (Throwable e) {
e.printStackTrace();
System.out.flush();
<?xml version="1.0"?><root>
<ObjectDBMapping>
<Object NAME="com.los.common.entity.LoanTask">
<field NAME="loanTaskId" SOURCE_TABLE="UW_LOAN_TASKS"
SOURCE_COLUMN="LOAN_TASK_ID" TYPE="NUMBER" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="Y"
VERSIONABLE="Y" FOREIGN_KEY="N" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="taskId" SOURCE_TABLE="UW_LOAN_TASKS"
SOURCE_COLUMN="TASK_ID" TYPE="NUMBER" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="Y" PARENT_TABLE="UWM_TASK_MASTER" PARENT_COLUMN="TASK_ID">
</field>
<field NAME="taskName" SOURCE_TABLE="UW_LOAN_TASKS"
SOURCE_COLUMN="TASK_NAME" TYPE="VARCHAR2" LENGTH="100"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="taskStatus" SOURCE_TABLE="UW_LOAN_TASKS"
SOURCE_COLUMN="TASK_STATUS" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="taskCreationDate" SOURCE_TABLE="UW_LOAN_TASKS"
SOURCE_COLUMN="TASK_CREATION_DATE" TYPE="DATE" LENGTH=""
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="taskClosureDate" SOURCE_TABLE="UW_LOAN_TASKS"
SOURCE_COLUMN="TASK_CLOSURE_DATE" TYPE="DATE" LENGTH=""
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="taskClosedBy" SOURCE_TABLE="UW_LOAN_TASKS"
SOURCE_COLUMN="TASK_CLOSED_BY" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="updatedDate" SOURCE_TABLE="UW_LOAN_TASKS"
SOURCE_COLUMN="UPDATED_DATE" TYPE="DATE" LENGTH=""
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="updatedBy" SOURCE_TABLE="UW_LOAN_TASKS"
SOURCE_COLUMN="UPDATED_BY" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="createdDate" SOURCE_TABLE="UW_LOAN_TASKS"
SOURCE_COLUMN="CREATED_DATE" TYPE="DATE" LENGTH=""
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="createdBy" SOURCE_TABLE="UW_LOAN_TASKS"
SOURCE_COLUMN="CREATED_BY" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
</Object>
<Object NAME="com.los.common.entity.LOSUnderwritingRules">
<field NAME="undwRunRuleId" SOURCE_TABLE="UW_UNDERWRITING_RULES"
SOURCE_COLUMN="UNDW_RUN_RULE_ID" TYPE="NUMBER" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="Y"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="underwritingRunNo" SOURCE_TABLE="UW_UNDERWRITING_RULES"
SOURCE_COLUMN="UNDERWRITING_RUN_NO" TYPE="NUMBER" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="underwritingRunId" SOURCE_TABLE="UW_UNDERWRITING_RULES"
SOURCE_COLUMN="UNDERWRITING_RUN_ID" TYPE="NUMBER" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="ruleGroup" SOURCE_TABLE="UW_UNDERWRITING_RULES"
SOURCE_COLUMN="RULE_GROUP" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="ruleName" SOURCE_TABLE="UW_UNDERWRITING_RULES"
SOURCE_COLUMN="RULE_NAME" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="messageCode" SOURCE_TABLE="UW_UNDERWRITING_RULES"
SOURCE_COLUMN="MESSAGE_CODE" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="messageText" SOURCE_TABLE="UW_UNDERWRITING_RULES"
SOURCE_COLUMN="MESSAGE_TEXT" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="passFail" SOURCE_TABLE="UW_UNDERWRITING_RULES"
SOURCE_COLUMN="PASS_FAIL" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="overrideAuthorityLevel" SOURCE_TABLE="UW_UNDERWRITING_RULES"
SOURCE_COLUMN="OVERRIDE_AUTHORITY_LEVEL" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="overrideYN" SOURCE_TABLE="UW_UNDERWRITING_RULES"
SOURCE_COLUMN="OVERRIDE_Y_N" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="overrideBy" SOURCE_TABLE="UW_UNDERWRITING_RULES"
SOURCE_COLUMN="OVERRIDE_BY" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="overrideOn" SOURCE_TABLE="UW_UNDERWRITING_RULES"
SOURCE_COLUMN="OVERRIDE_ON" TYPE="DATE" LENGTH=""
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="createdBy" SOURCE_TABLE="UW_UNDERWRITING_RULES"
SOURCE_COLUMN="CREATED_BY" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="updatedBy" SOURCE_TABLE="UW_UNDERWRITING_RULES"
SOURCE_COLUMN="UPDATED_BY" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="createdDate" SOURCE_TABLE="UW_UNDERWRITING_RULES"
SOURCE_COLUMN="CREATED_DATE" TYPE="DATE" LENGTH=""
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="updatedDate" SOURCE_TABLE="UW_UNDERWRITING_RULES"
SOURCE_COLUMN="UPDATED_DATE" TYPE="DATE" LENGTH=""
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="processName" SOURCE_TABLE="UW_UNDERWRITING_RULES"
SOURCE_COLUMN="PROCESS_NAME" TYPE="VARCHAR2" LENGTH="100"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="overrideReason" SOURCE_TABLE="UW_UNDERWRITING_RULES"
SOURCE_COLUMN="OVERRIDE_REASON" TYPE="VARCHAR2" LENGTH="1000"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="messageModule" SOURCE_TABLE="UW_UNDERWRITING_RULES"
SOURCE_COLUMN="MESSAGE_MODULE" TYPE="VARCHAR2" LENGTH="30"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
</Object>
<Object NAME="com.los.common.entity.Applicant">
<field NAME="applicantId" SOURCE_TABLE="UW_APPLICANT_MASTER"
SOURCE_COLUMN="APPLICANT_ID" TYPE="NUMBER" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="Y"
VERSIONABLE="N" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="registrationNumber" SOURCE_TABLE="UW_APPLICANT_MASTER"
SOURCE_COLUMN="REGISTRATION_NUMBER" TYPE="NUMBER" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="N" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="cifNumber" SOURCE_TABLE="UW_APPLICANT_MASTER"
SOURCE_COLUMN="CIF_NUMBER" TYPE="NUMBER" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="N" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="customerStatus" SOURCE_TABLE="UW_APPLICANT_MASTER"
SOURCE_COLUMN="CUSTOMER_STATUS" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="N" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="customerType" SOURCE_TABLE="UW_APPLICANT_MASTER"
SOURCE_COLUMN="CUSTOMER_TYPE" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="N" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="applicantLastName" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="APPLICANT_LAST_NAME" TYPE="VARCHAR2" LENGTH="100"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="applicantFirstName" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="APPLICANT_FIRST_NAME" TYPE="VARCHAR2" LENGTH="100"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="applicantMiddleName" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="APPLICANT_MIDDLE_NAME" TYPE="VARCHAR2" LENGTH="100"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="applicantNameSuffix" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="APPLICANT_NAME_SUFFIX" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="nationality" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="NATIONALITY" TYPE="VARCHAR2" LENGTH="100"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="age" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="AGE" TYPE="NUMBER" LENGTH="5"
PRECISION="2" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="dateOfBirth" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="DATE_OF_BIRTH" TYPE="DATE" LENGTH=""
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="identificationType1" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="IDENTIFICATION_TYPE1" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="identificationType2" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="IDENTIFICATION_TYPE2" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="identificationType" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="IDENTIFICATION_TYPE" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="identificationNumber1" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="IDENTIFICATION_NUMBER1" TYPE="VARCHAR2" LENGTH="100"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="identificationNumber2" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="IDENTIFICATION_NUMBER2" TYPE="VARCHAR2" LENGTH="100"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="identificationNumber" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="IDENTIFICATION_NUMBER" TYPE="VARCHAR2" LENGTH="100"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="guarantorIndicator" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="GUARANTOR_INDICATOR" TYPE="VARCHAR2" LENGTH="50"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="separateCobDisclosureRequir" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="SEPARATE_COB_DISCLOSURE_REQUIR" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="domesticRisk" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="DOMESTIC_RISK" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="crossBorderRisk" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="CROSS_BORDER_RISK" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="title" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="TITLE" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="previousSurname" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="PREVIOUS_SURNAME" TYPE="VARCHAR2" LENGTH="50"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="legalName" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="LEGAL_NAME" TYPE="VARCHAR2" LENGTH="200"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="preferredName" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="PREFERRED_NAME" TYPE="VARCHAR2" LENGTH="50"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="gender" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="GENDER" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="seniorCitizenStatus" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="SENIOR_CITIZEN_STATUS" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="staffIndicator" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="STAFF_INDICATOR" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="warVeteranIndicator" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="WAR_VETERAN_INDICATOR" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="noOfDependants" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="NO_OF_DEPENDANTS" TYPE="NUMBER" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="maritalStatus" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="MARITAL_STATUS" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="educationStatus" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="EDUCATION_STATUS" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="detApplicantId" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="APPLICANT_ID" TYPE="NUMBER" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="Y" PARENT_TABLE="UW_APPLICANT_MASTER" PARENT_COLUMN="APPLICANT_ID">
</field>
<field NAME="detApplicantDetailId" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="APPLICANT_DETAIL_ID" TYPE="NUMBER" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="Y"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="usResidentIndicator" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="US_RESIDENT_INDICATOR" TYPE="VARCHAR2" LENGTH="1"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="employeeNumber" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="EMPLOYEE_NUMBER" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="isdefaulter" SOURCE_TABLE="UW_APPLICANT_DETAILS"
SOURCE_COLUMN="ISDEFAULTER" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="2" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
</Object>
<Object NAME="com.los.common.entity.ApplicantContact">
<field NAME="applicantId" SOURCE_TABLE="UW_APPLICANT_CONTACT_INFO"
SOURCE_COLUMN="APPLICANT_ID" TYPE="NUMBER" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="Y" PARENT_TABLE="UW_APPLICANT_MASTER" PARENT_COLUMN="APPLICANT_ID">
</field>
<field NAME="contactId" SOURCE_TABLE="UW_APPLICANT_CONTACT_INFO"
SOURCE_COLUMN="CONTACT_ID" TYPE="NUMBER" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="Y"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="addressType" SOURCE_TABLE="UW_APPLICANT_CONTACT_INFO"
SOURCE_COLUMN="ADDRESS_TYPE" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="applicantAddressLine1" SOURCE_TABLE="UW_APPLICANT_CONTACT_INFO"
SOURCE_COLUMN="APPLICANT_ADDRESS_LINE_1" TYPE="VARCHAR2" LENGTH="100"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="applicantAddressLine2" SOURCE_TABLE="UW_APPLICANT_CONTACT_INFO"
SOURCE_COLUMN="APPLICANT_ADDRESS_LINE_2" TYPE="VARCHAR2" LENGTH="100"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="applicantAddressLine3" SOURCE_TABLE="UW_APPLICANT_CONTACT_INFO"
SOURCE_COLUMN="APPLICANT_ADDRESS_LINE_3" TYPE="VARCHAR2" LENGTH="100"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="applicantAddressLine4" SOURCE_TABLE="UW_APPLICANT_CONTACT_INFO"
SOURCE_COLUMN="APPLICANT_ADDRESS_LINE_4" TYPE="VARCHAR2" LENGTH="100"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="residingSince" SOURCE_TABLE="UW_APPLICANT_CONTACT_INFO"
SOURCE_COLUMN="RESIDING_SINCE" TYPE="DATE" LENGTH=""
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="residentialStatus" SOURCE_TABLE="UW_APPLICANT_CONTACT_INFO"
SOURCE_COLUMN="RESIDENTIAL_STATUS" TYPE="VARCHAR2" LENGTH="20"
PRECISION="" PERSIST="Y" LEVEL="1" DEFAULT_VALUE="" PRIMARY_KEY="N"
VERSIONABLE="Y" FOREIGN_KEY="" PARENT_TABLE="" PARENT_COLUMN="">
</field>
<field NAME="applicantEMa
Could you please provide the stack trace?
Similar Messages
-
How to write into file from xml dom Object
Hello,
I try to transform my xml DOM document object into
file. I try the following:
try {
// Prepare the DOM document for writing
DOMSource source = new DOMSource(newDoc);
// Prepare the output file
File file = new File(myHomeRep + "btLom.xml");
StreamResult result = new StreamResult(file);
// Write the DOM document to the file
Transformer xformer = TransformerFactory.newInstance().newTransformer();
xformer.transform(source, result);
} catch (TransformerConfigurationException e) {
} catch (TransformerException e) {
But my file is empty.
I do it with some wel formed xml tree document, thus I am certain
that the xml tree exists.
Could you explane me please what I am doeing wrong,
or is there are some possibility to make from my xml dom object
a file.
In advance much thanks,
JuliaHere's one thing you are doing wrong:} catch (TransformerConfigurationException e) {
} catch (TransformerException e) {
}With this code, if an exception occurs then you are guaranteed to know nothing about it. At the minimum do this:} catch (TransformerConfigurationException e) {
e.printStackTrace();
} catch (TransformerException e) {
e.printStackTrace();
} -
ITUNES WILL NOT DELETE FROM ADD @ REMOVE PROGRAMS,
MESSAGE, READS a network error occured while attempting to read from the file C:WINDOWS\installer\iTunes.msiAll sorted now just needed to repair itunes from control panel
-
while updating the older version iTunes to latest one it shows "a network error occurred while attempting to read from the file: C:\windows\installer\iTunes64.msi. pls help on this matter to connect my i5 to PC. Thanks in advance
(1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
http://majorgeeks.com/download.php?det=4459
(2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
(3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
(4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
(5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time? -
I am getting "a network error occurred while attempting to read from the file c:\windows\installer\itunes.msi" when I attempt to install itunes. Can anybody help me to resolve this issue?
You can try disabling the computer's antivirus and firewall during the download the iTunes installation
Also try posting in the iTunes forum since it is not an iPod touch problem. -
When I try to install Itunes, I get this error: (translated from Norwegian) There was a network error while trying to read from the file: C: \ windows \ installer \ iTunes.msi I have tried many times to reinstall, but nothing helps, please help me.
(1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
http://majorgeeks.com/download.php?det=4459
(2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
(3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
(4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
(5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time? -
iTunes has tried to update itself and runs into an error and tells me to manually install. When I d/l and run the iTunesSetup.exe file I always encounter the following error message...
"A network error occured while attempting to read from the file C;|Windows|Installer|iTunes.msi" and iTunes does not update to iTunes 10.4.1.
Anyone know what is creating this error message? Thanks for the help...(1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
http://majorgeeks.com/download.php?det=4459
(2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
(3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
(4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
(5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time? -
EIC Authentication-Error occurred while data was read from your ERP system
Hi everybody,
hope someone can help me with this issue in a EP 7.0 Portal (SP 08):
In ESS --> Personal Information --> EIC Authentication when I click on the service, I get the following message in roadmap step 1 (overview), :
"An error occurred while data was read from your ERP system. Contact your system administrator."
I appreciate your help! Thanks and best regards,
JasminHi,
Found similar threads.It ma help u.
/message/3652173#3652173 [original link is broken]
/message/3652594#3652594 [original link is broken]
Regards,
Manoj. -
Is there any query to know the multiple users name from their ids?
is there any query to know the multiple users name from their ids?
Hi,
Goto TCode SUIM Select Users Select Users by Address Data
It will give you the users list
Regards,
Sankaran -
So this is the thing: I have a regular xml file I want to
read from flash, locally it works as it should, when I upload it
things go wrong. Nothing seems to happen.
If I use the safari activity window it shows me the xml file
is either "forbidden" or "method not allowed". I already changed
the permissions on all the files, still nada...
I have no clue as to why is this happening, I'm leaving a
copy of all the files here
http://www.aquigorka.com/files.zip,
but I said locally it works, the problem is online. If any of you
have any ideas to figure out what's happening I'd appreciatte it.
Cheers
GorkaLet me clear a few things:
It works offline as it should:
A flash movie calls a static method from a class to bring
data from a database.
Usually I don't read from xml, I read from php (that is whay
I need the sendandload method), but to debug I transformed the php
into xml because I couldn't figure out what was causing the
problem.
So far, I think the problem is the sendandload method: if I
change the method to just load it works fine (offline and online),
if I turn it back to sendandload it just won't work online (offline
it works smoothly).
I know the onLoad action is being triggerred as it should,
but the xml object is empty (why?), I'll try and see if the
security settings have something to do with this.
Any other suggestions will be appreciated.
Thanks for the help so far, but I haven't found the answer
yet.
Cheers
Gorka -
Output data type of Read from XML file.vi
LV 7.1:
How can I enforce the output data type of the polymorphic "Read from XML file.vi" to be a string instead of an array of strings?ahlers01 wrote:
LV 7.1:
How can I enforce the output data type of the polymorphic "Read from XML file.vi" to be a string instead of an array of strings?
In reply to my own post:
I found the answer and described it in another forum -
I have the following situation --
1. I have two WebServices A and B deployed onto OC4J_10.1.3
They both work when I test them using the test service
2. My real need is to call webservice A from B. So I created a proxy for A using JDEV
and deployed into OC4J. Now when I use the test service and call methods on B as before it does not work. I get the following exceptions when I try to instantiate the stub.
WebServiceASoapHttpPortClient myPort = new WebServiceASoapHttpPortClient();
SEVERE: caught exception while handling request: java.lang.NoSuchMethodError: oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<init>(Ljavax/xml
/namespace/QName;ZZLjavax/xml/namespace/QName;Ljava/lang/String;Z)V java.lang.NoSuchMethodError: oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<init>(Ljavax/xml/namespace/QName;ZZLjavax/xml/namespace/QName;Ljava/lang/Stri
ng;Z)V
It seems as though OC4J is not able to find LiteralFragmentSerializer methods. But wsclient.jar must be available on OC4J's CLASSPATH.
My webservice is very simple and the encoding is SOAP1.1 (Document/Literal).
Any insights ?
Thanks very much.
--venkatHave you tried downloading and installing wsclient_extended.jar instead of wsclient.jar?
-
NullPointer Exception while running AIA Harvestor
Hi,
I am trying to harvest the code in AIA 11g. The steps that I have followed is :
1) Created a prokect in Project Lifecycle Workbench.
2) Added Business Task, to the project.
3) Created service components to the business task. I have following service components: 1) Requestor, Provider ABCS, Service for Database Adapter, and EBS.
Now i try to Harvest the code, it gives me null pointer exception for provider ABCS, DB apdapter service and EBS. Below is the error and script details:
HARVESTER>XML:
<?xml version="1.0" encoding="UTF-8"?>
<tns:harvesterSettings xmlns:tns="http://www.oracle.com/oer/integration/harvester"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.oracle.com/oer/integration/harvester Harvester_Settings.xsd ">
<!--Description to set on created Assets in OER.-->
<harvesterDescription>Oracle Enterprise Repository Harvester</harvesterDescription>
<!--Registration status to set on created Assets in OER. The Valid
Registration states are 1) Unsubmitted 2)Submitted - Pending Review
3)Submitted - Under Review 4)Registered -->
<registrationStatus>Registered</registrationStatus>
<!--Namespace to set on created Assets in OER. If left empty, this is set
based on information from SOA Suite and OSB projects when available.
That's generally the best practice, so override this with caution.-->
<namespace/>
<!-- comment out the OER server section since we don't perform OER
harvesting
<repository>
<uri>http://ple-jgau.us.oracle.com:7101/oer</uri>
<credentials>
<user>admin</user>
<password>v2_1.qRhDTl1LdPo=</password>
run encrypt.bat to encryptthis-->
<timeout>30000</timeout>
<!--Query: the files to harvest-->
<query>
<fileQuery>
<files>/tmp/tempDeploy/HealthSciencesWorkerEBSV1/composite.xml</files>
<fileType>.xml</fileType>
</fileQuery>
</query>
<introspection>
<reader>com.oracle.oer.sync.plugin.reader.file.FileReader</reader>
<writer>com.oracle.oer.sync.plugin.writer.oer.OERWriter</writer>
</introspection>
</tns:harvesterSettings>
ERROR :
[ctmsdev@usahsbmsq202 AIAHarvester]$ AIAHarvest.sh -partial true -mode AIA -sett
ings /tmp/tempDeploy/HarvesterSettings.xml
INFO: AIA_INSTANCE is found, configuration will load from instance folder.
02:33:27,090 0 [main] INFO com.oracle.aia.AIAHarvester - Reading from /opt/
tools/oracle/Middleware/soa11gr1/Oracle_AIAFP1/aia_instances/CTMSAIADEV/config/A
IAInstallProperties.xml
02:33:28,515 1425 [main] INFO com.oracle.aia.AIAHarvester - -mode is activated
02:33:28,786 1696 [main] INFO com.oracle.aia.AIAHarvester - DB harvesting mode
, skip OER harvesting!
02:33:34,453 7363 [main] DEBUG com.oracle.aia.AIAHarvester - Finished initializ
e MDS
02:33:34,454 7364 [main] INFO com.oracle.aia.AIACompositeMain - Passing settin
g files...
02:33:34,460 7370 [main] INFO com.oracle.aia.AIAXmlReader - Feeding file /tmp/tempDeploy/HealthSciencesWorkerEBSV1/composite.xml into Composite Parser...
02:33:34,463 7373 [main] INFO com.oracle.aia.AIACompositeParser - Opening Application Module...
02:33:34,464 7374 [main] INFO com.oracle.aia.AIACompositeParser - Reading from
/opt/tools/oracle/Middleware/soa11gr1/Oracle_AIAFP1/aia_instances/CTMSAIADEV/config/AIAInstallProperties.xml
02:33:36,812 9722 [main] DEBUG com.oracle.aia.AIACompositeParser - Connecting to JDBC jdbc:oracle:thin:@USAHSBMSQ214.NET.BMS.COM:1529/CTMSDI using jndi t3://usahsbmsq202.net.bms.com:7021
02:33:36,812 9722 [main] INFO com.oracle.aia.AIACompositeParser - Connect application module to jdbc connection...
02:33:37,528 10438 [main] DEBUG com.oracle.aia.util.AIAOpenURL - enter AIAIOpenURL
02:33:37,528 10438 [main] DEBUG com.oracle.aia.util.AIAOpenURL - open as normal file
02:33:37,529 10439 [main] DEBUG com.oracle.aia.util.AIAOpenURL - open file: /tm p/tempDeploy/HealthSciencesWorkerEBSV1/composite.xml
02:33:37,529 10439 [main] DEBUG com.oracle.aia.util.AIAOpenURL - open resource: /tmp/tempDeploy/HealthSciencesWorkerEBSV1/composite.xml
02:33:37,529 10439 [main] ERROR com.oracle.aia.AIAHarvester -
02:33:37,529 10439 [main] ERROR com.oracle.aia.AIAHarvester - java.lang.NullPointerException
at com.oracle.aia.util.AIAOpenURL.openAsFile(AIAOpenURL.java:107)
at com.oracle.aia.util.AIAOpenURL.openStream(AIAOpenURL.java:148)
at com.oracle.aia.AIACompositeParser.getURLInputStream(AIACompositeParser.java:408)
at com.oracle.aia.AIACompositeParser.getDoc(AIACompositeParser.java:205)
at com.oracle.aia.AIACompositeParser.parseXML(AIACompositeParser.java:713)
at com.oracle.aia.AIAXmlReader.feedToCompositeParser(AIAXmlReader.java:94)
at com.oracle.aia.AIACompositeMain.main(AIACompositeMain.java:62)
at com.oracle.aia.AIAHarvester.main(AIAHarvester.java:94)
Exception in thread "main" java.lang.NullPointerException
at com.oracle.aia.util.AIAOpenURL.openAsFile(AIAOpenURL.java:107)
at com.oracle.aia.util.AIAOpenURL.openStream(AIAOpenURL.java:148)
at com.oracle.aia.AIACompositeParser.getURLInputStream(AIACompositeParser.java:408)
at com.oracle.aia.AIACompositeParser.getDoc(AIACompositeParser.java:205)
at com.oracle.aia.AIACompositeParser.parseXML(AIACompositeParser.java:713)
at com.oracle.aia.AIAXmlReader.feedToCompositeParser(AIAXmlReader.java:94)
at com.oracle.aia.AIACompositeMain.main(AIACompositeMain.java:62)
at com.oracle.aia.AIAHarvester.main(AIAHarvester.java:94)
Any idea what could be wrong
ThanksI am getting the same problem when I deploy process with any human work flow. Did you manage to find the solution?
-
Exception while unmarshalling UTF-8 encoded XML String, using JAXB.
hi folks. First of all, thank you for contributing to my queries as of now.
Problem statement.
- This happens when i try to unmarshall a webservice response, which is nothing but a simple UTF-8 encoded XML string in an soap envelope.
- 0xae is the register character: ®.
- My next step was to ensure that my code works without this character. So I removed all occurances from my XML. It worked just fine...
- So what do you guys suggest me to get rid of this problem?
- Any suggestion will be treated as valuable resource.
- Is there some kind of encoding setting with jaxb ?
An invalid XML character (Unicode: 0xae) was found in the element content of the document.
org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0xae) was found in the element content of the document.
at weblogic.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1273)
at weblogic.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:603)
at weblogic.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1319)
at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:396)
at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:1119)
at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)
at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:133)
at com.sun.xml.bind.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:139)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:129)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:166)
at com.hp.wwopsit.econfigure.helper.JaxbUtils.xmlStringToJaxbObject(JaxbUtils.java:66)
at com.hp.wwopsit.econfigure.core.transformation.IPCAdapterMapper.x2oLoadConfig(IPCAdapterMapper.java:376)
at com.hp.wwopsit.econfigure.core.adapter.IPCAdapter.loadConfiguration(IPCAdapter.java:144)
at com.hp.wwopsit.econfigure.core.adapter.IPCAdapter.main(IPCAdapter.java:291)
--------------- linked to ------------------
javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0xae) was found in the element content of the document.]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:284)
at com.sun.xml.bind.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:143)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:129)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:166)
at com.hp.wwopsit.econfigure.helper.JaxbUtils.xmlStringToJaxbObject(JaxbUtils.java:66)
at com.hp.wwopsit.econfigure.core.transformation.IPCAdapterMapper.x2oLoadConfig(IPCAdapterMapper.java:376)
at com.hp.wwopsit.econfigure.core.adapter.IPCAdapter.loadConfiguration(IPCAdapter.java:144)
at com.hp.wwopsit.econfigure.core.adapter.IPCAdapter.main(IPCAdapter.java:291)
***Jaxb Exception while converting xml file to object. Possible cause, Invalid schema or unrecognized elements in input XML. Actuall exception message:javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0xae) was found in the element content of the document.]
End..
Output completed (44 sec consumed) - Normal TerminationThis is how the XML looks like ..
<?xml version="1.0" encoding="UTF-8" ?>
- <configresponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<csticShortText>processor</csticShortText>
- <csticValues>
- <csticValue id="024" selected="false">
<desc>Pentium� 4 1.7GHz/400MHz</desc>
</configresponse> -
'Class Cast Exception' while invoking a EJB from a Servlet
Hi,
I am working on J2EE applications.I am using Webgain studio and weblogic server.I
got a problem while invoking EJB from the servlet.
While calling an EJB from the servlet, it is giving that "Class Cast Exception".This
is because, the remote home reference is not able to type casted to the"Home Interface"
of the EJB, even if I type casted explicitly. It is creating the context and able
to identify the EJB with the JNDI name.
Could please help me in solving this problem.I am pasting the code here.
Thanks in advance,
Dharma
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException
resp.setContentType("text/html");
PrintWriter out = new PrintWriter(resp.getOutputStream());
try
Context context=getInitialContext();
Object reference=context.lookup("ArlProjContractorAppletSession");
ArlProjContractorAppletSessionHome home=(ArlProjContractorAppletSessionHome)PortableRemoteObject.narrow(reference,ArlProjContractorAppletSessionHome.class);
//Exception is occuring in the above statement. It is unable
//to cast to the home interface
ArlProjContractorAppletSession the_ejb=null;
try
the_ejb=home.create();
System.out.println("the_ejb = " + the_ejb.toString());
catch(Exception e)
e.printStackTrace();
catch(Exception e)
e.printStackTrace();
// to do: code goes here.
out.println("<HTML>");
out.println("<HEAD><TITLE>Contractor TimeTracker</TITLE></HEAD>");
out.println("<BODY>");
// to do: your HTML goes here.
out.println("</BODY>");
out.println("</HTML>");
out.close();
I came across this kind of problem once. My problem went away after I upgraded
from 5.1 SP6 to 5.1 SP8.
"Dharma" <[email protected]> wrote:
>
>Hi,
>
>I am working on J2EE applications.I am using Webgain studio and weblogic
>server.I
>got a problem while invoking EJB from the servlet.
>
>While calling an EJB from the servlet, it is giving that "Class Cast
>Exception".This
>is because, the remote home reference is not able to type casted to the"Home
>Interface"
>of the EJB, even if I type casted explicitly. It is creating the context
>and able
>to identify the EJB with the JNDI name.
>
>Could please help me in solving this problem.I am pasting the code here.
>
>Thanks in advance,
>Dharma
>
>
>public void doGet(HttpServletRequest req, HttpServletResponse resp)
> throws ServletException, IOException
> {
> resp.setContentType("text/html");
> PrintWriter out = new PrintWriter(resp.getOutputStream());
>
> try
> {
>
> Context context=getInitialContext();
>
> Object reference=context.lookup("ArlProjContractorAppletSession");
>
> ArlProjContractorAppletSessionHome home=(ArlProjContractorAppletSessionHome)PortableRemoteObject.narrow(reference,ArlProjContractorAppletSessionHome.class);
>
>//Exception is occuring in the above statement. It is unable
>//to cast to the home interface
>
> ArlProjContractorAppletSession the_ejb=null;
>
> try
> {
> the_ejb=home.create();
>
> System.out.println("the_ejb = " + the_ejb.toString());
>
> }
> catch(Exception e)
> {
> e.printStackTrace();
> }
> }
> catch(Exception e)
> {
> e.printStackTrace();
> }
> // to do: code goes here.
>
> out.println("<HTML>");
> out.println("<HEAD><TITLE>Contractor TimeTracker</TITLE></HEAD>");
> out.println("<BODY>");
>
> // to do: your HTML goes here.
>
> out.println("</BODY>");
> out.println("</HTML>");
> out.close();
> }
>
>
>
>
>
Maybe you are looking for
-
Please help - how do I import music from my ipod into a new itunes library?
Hello I would very much appreciate it if someone could tell me how to get the music from my old ipod mini into the new itunes library on my new laptop. The mini was previously sync'd with my old PC which died so my files are only present on the ipod.
-
Is there an easy way to move multiple icons from one screen to another?
I have multiple screens on my iphone 5c display. I want to move multiple icons at the same time from one screen to another. Is there a way to do this?
-
I am looking to upgrade the hard drive on my 2010 13" mac book pro any suggestions for good brands? Also about how much will this cost?
-
How can I use a variable for an interface log and error fle
I want to use a variable for the interface's log and error file so that when I migrate from Dev to QA to Prod I don't have to do a lot of editing. Specifically on the "flow" tab for the "target", I want a variable to be the first part of the path for
-
Custom function in a database view makes performance slow in OBI?
Hi, I am facing a major performance problem. I have a oracle view which is calling a database function ( which I created). CREATE OR REPLACE VIEW ISRM_ECOX_NAK_REPLAY (ret) as select APP.ISRM_ECOX_NAK_REPLAY (CASHFLOW_MESSAGE.EXTERNAL_DEAL_NUMBER) re