IKM file to file (java) error

Hi Team,
I am using IKM file to file (java) to laod the data and am getting the following error at compile step. Please help me out here.
com.sunopsis.tools.core.exception.SnpsSimpleMessageException: ODI-17517: Error during task interpretation.
Task: 2
java.lang.Exception: BeanShell script error: Sourced file: inline evaluation of: ``out.print("OdiOutFile \"-FILE=") ; out.print(snpRef.getSchemaName("CT_Sample", " . . . '' : Unary operation "+" inappropriate for object : at Line: 178 : in file: inline evaluation of: `` /* This function is used to replace at code generation time the column names in . . . '' : + ");" ) ;
BSF info: Create transformer at line: 0 column: columnNo
at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:485)
at com.sunopsis.dwg.dbobj.SnpSessStep.createTaskLogs(SnpSessStep.java:711)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:461)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.bsf.BSFException: BeanShell script error: Sourced file: inline evaluation of: ``out.print("OdiOutFile \"-FILE=") ; out.print(snpRef.getSchemaName("CT_Sample", " . . . '' : Unary operation "+" inappropriate for object : at Line: 178 : in file: inline evaluation of: `` /* This function is used to replace at code generation time the column names in . . . '' : + ");" ) ;
BSF info: Create transformer at line: 0 column: columnNo
at bsh.util.BeanShellBSFEngine.eval(Unknown Source)
at bsh.util.BeanShellBSFEngine.exec(Unknown Source)
at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:471)
... 11 more
Text: OdiOutFile "-FILE=<?=snpRef.getSchemaName("CT_Sample", "W") ?>/<?= getOdiClassName() ?>.java"
import java.io.BufferedWriter;
import java.io.BufferedReader;
import java.io.Reader;
import java.io.FileReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;
import java.io.FileWriter;
import java.io.File;
import java.io.IOException;
import java.io.FilenameFilter;
import java.util.Scanner;
import java.util.HashMap;
import java.util.regex.Pattern;
import java.util.regex.Matcher;
import java.lang.String;
import java.lang.StringBuilder;
import java.lang.RuntimeException;
import java.text.ParseException;
import java.text.ParsePosition;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.math.BigDecimal;
public class <?= getOdiClassName() ?> {
/* Number of threads that are to be run in parallel */
static int NB_THREADS = 1;
  BufferedWriter pBufferedWriter;
BufferedWriter pBufferedLogWriter;
BufferedWriter pBufferedBadWriter;
int nbError;
int nbErrorInPrevFiles;
int nbLine;
int nbTotalLine;
int nbWarning;
int nbFiles;
int nbFilter;
int nbFilterInPrevFiles;
int nbHeader;
int nbInserted;
boolean doWeContinueBatch = true;
boolean maxErrorReach = false;
//boolean warning = false;
//String warning_txt ="";
Date debut = new Date();
Date end =  new Date();
static int maxError=0;
  * @param pBufferedWriter
  * @param pBufferedLogWriter
  * @param pBufferedBadWriter
  * @param nbError
  * @param nbLine
  * @throws IOException
public <?= getOdiClassName() ?>(String targF,String logF,String badF) throws IOException {
  super();
  this.pBufferedWriter = new BufferedWriter(new FileWriter(targF, false));
  this.pBufferedLogWriter = new BufferedWriter(new FileWriter(logF, false ));
  this.pBufferedBadWriter = new BufferedWriter(new FileWriter(badF, false )); 
  pBufferedLogWriter.append("Oracle Data Integrator * File to File:\nCopyright (c) Oracle Corporation.  All rights reserved.");
  pBufferedLogWriter.append("\n\nNumber of threads: "+NB_THREADS);
  pBufferedLogWriter.append("\n\nDiscardmax: 1");
  pBufferedLogWriter.append("\n\nOutputFile:\t\t"+targF+"\nBAD file:\t\t"+badF+"\n");
  this.nbError = 0;
  this.nbErrorInPrevFiles = 0;
  this.nbLine = 0;
  this.nbTotalLine=0;
  this.nbWarning=0;
  this.nbFiles=0;
  this.nbHeader=0;
  this.nbFilter=0;
  this.nbFilterInPrevFiles = 0;
  this.nbInserted=0;
/* A simple object used to synchronize the reads of the source file and avoid overlap between the various threads */
static Object lock = new Object();
HashMap<Object, BigDecimal> sequenceMap = new HashMap<Object, BigDecimal>();
HashMap<Object, BigDecimal> counterMap = new HashMap<Object, BigDecimal>();;
public boolean getDoWeContinueBatch()
  return doWeContinueBatch;
public void addInserted()
  synchronized(lock) {
   nbInserted+=1;
public void addWarning()
  synchronized(lock) {
   nbWarning+=1;
public void addFilter()
  synchronized(lock) {
   nbFilter+=1;
public BigDecimal getCounter(Object pFieldValue, long pStartValue) {
  if (counterMap.containsKey(pFieldValue)) {
   return counterMap.get(pFieldValue);
  } else {
   counterMap.put(pFieldValue, new BigDecimal(pStartValue));
   return counterMap.get(pFieldValue);
public BigDecimal incrementCounter(Object pFieldValue, long pStartValue) {
  if (counterMap.containsKey(pFieldValue)) {
   counterMap.put(pFieldValue, counterMap.get(pFieldValue).add(BigDecimal.ONE));
   return counterMap.get(pFieldValue);
  } else {
   counterMap.put(pFieldValue, new BigDecimal(pStartValue));
   return counterMap.get(pFieldValue);
public BigDecimal smartSequence(Object pField, Object pValue, long pStartValue) {
  if (pField.equals(pValue)) {
   return incrementCounter(pValue, pStartValue);
  } else {
   return getCounter(pValue, pStartValue);
public BigDecimal smartSequence(Object pField, Object pValue) {
  return smartSequence(pField, pValue, 0);
public BigDecimal normalSequence(Object pSequenceName, long pStartValue) {
  if (sequenceMap.containsKey(pSequenceName)) {
   synchronized(sequenceMap.get(pSequenceName)) {
    sequenceMap.put(pSequenceName, sequenceMap.get(pSequenceName).add(BigDecimal.ONE));
    return sequenceMap.get(pSequenceName);
  } else {
   synchronized (sequenceMap) {
    sequenceMap.put(pSequenceName, new BigDecimal(pStartValue));
    return sequenceMap.get(pSequenceName);
public BigDecimal normalSequence(Object pSequenceName) {
  return normalSequence(pSequenceName, 0);
/* Utility class used for String processing */
class OdiStringUtils {
  /* This method is used to write Input String into the StringBuilder that contains the target row and pad with spaces if necessary */
  public void pad(StringBuilder pStringBuilder, String pString, int pLength) {
   pStringBuilder.append(pString);
   for (int i=0;i<pLength-pString.length();i++) {
    pStringBuilder.append(' ');
/* This class is the formatter for Strings that are to be written to the target file */
class OdiStringFormatOUT{
  OdiStringUtils myStringUtils;
  String colName;
  String colMandatory;
  String colFormat;
  String colDecSep;
  String colNullIfErr;
  int    colBytes;
  String xString;
  private void check(Warning Odiwarn) throws Exception
   if (xString.length() > colBytes)
    {if (colNullIfErr=="0"){
     throw new Exception ("Column "+ colName+" : "+xString+" Value too long\n");
     if (colNullIfErr=="1")
      Odiwarn.AddWarn("Column "+ colName+" : "+xString+" Value too long\n");
     xString="";
     return;  
    if (xString.length() ==0)
    {if (colNullIfErr=="0"){
     throw new Exception ("Column "+ colName+" : is mandatory\n");
     if (colNullIfErr=="1")
      Odiwarn.AddWarn("Column "+ colName+" : is mandatory\n");
  public OdiStringFormatOUT(String pColName,String pColMandatory, String pColFormat,String pColDecSep, String pColNullIfErr,int pColBytes, OdiStringUtils pStringUtils) {
   myStringUtils = pStringUtils;
   colName = pColName;
   colMandatory = pColMandatory;
   colFormat = pColFormat;
   colDecSep = pColDecSep;
   colNullIfErr = pColNullIfErr;
   colBytes = pColBytes;
  public void format(String pString, StringBuilder pStringBuilder,Warning Odiwarn) throws Exception {
   xString=pString;
   this.check(Odiwarn);
   pStringBuilder.append(xString);
/* This class is the formatter for Strings that are to be read from the source file */
class OdiStringFormatIN{
  OdiStringUtils myStringUtils;
  String odiColname;
  String colNullIfErr;
  public OdiStringFormatIN(OdiStringUtils pStringUtils, String pColname, String pColNullIfErr) {
   myStringUtils = pStringUtils;
   odiColname=pColname;
   colNullIfErr=pColNullIfErr;
  public String parse(String pString,Warning Odiwarn) {
   return pString;
/* This class is the formatter for Numbers that are to be written to the target file.
Note that some more format() functions should be added to fully support all the possible datatypes (int, etc.) */
class OdiNumberFormatOUT{
  OdiStringUtils myStringUtils;
  DecimalFormat internalParser;
  String colName;
  String colMandatory;
  String colFormat;
  String colDecSep;
  String colNullIfErr;
  int    colBytes;
  private void check(Number pNumber,Warning Odiwarn) throws Exception
   if (pNumber == null && colMandatory=="1" )
    {if (colNullIfErr=="0"){
     throw new Exception ("Column "+ colName+" is  mandatory\n");
     if (colNullIfErr=="1")
      Odiwarn.AddWarn("Column "+ colName+" is  mandatory\n");
   private void check(double pDouble,Warning Odiwarn) throws Exception
   if (false)
    {if (colNullIfErr=="0"){
     throw new Exception ("Column "+ colName+" : "+pDouble+" Value too long\n");
     if (colNullIfErr=="1")
      Odiwarn.AddWarn("Column "+ colName+" : "+pDouble+" Value too long\n");
   private void check(long pLong,Warning Odiwarn) throws Exception
   if (false)
    {if (colNullIfErr=="0"){
     throw new Exception ("Column "+ colName+" : "+pLong+" Value too long\n");
     if (colNullIfErr=="1")
      Odiwarn.AddWarn("Column "+ colName+" : "+pLong+" Value too long\n");
  public OdiNumberFormatOUT(String pColName,String pColMandatory, String pColFormat,String pColDecSep, String pColNullIfErr,int pColBytes, OdiStringUtils pStringUtils) {
   myStringUtils = pStringUtils;
   colName = pColName;
   colMandatory = pColMandatory;
   colFormat = pColFormat;
   colDecSep = pColDecSep;
   colNullIfErr = pColNullIfErr;
   colBytes = pColBytes;
   if (colDecSep == null) {
    colDecSep = ".";
   if (colDecSep.length() != 1) {
    colDecSep = ".";
   DecimalFormatSymbols mySymbols = new DecimalFormatSymbols();
   mySymbols.setDecimalSeparator(colDecSep.charAt(0));
   internalParser = new DecimalFormat("#.#", mySymbols);
   internalParser.setParseBigDecimal(true);
  public void format(Number pNumber, StringBuilder pStringBuilder,Warning Odiwarn) throws Exception {
   this.check(pNumber,Odiwarn);
   if (pNumber == null) {
    return;
   pStringBuilder.append(internalParser.format(pNumber));
  public void format(double pDouble, StringBuilder pStringBuilder,Warning Odiwarn) throws Exception {
   this.check(pDouble,Odiwarn);
   pStringBuilder.append(internalParser.format(pDouble));
  public void format(long pLong, StringBuilder pStringBuilder,Warning Odiwarn) throws Exception {
   this.check(pLong,Odiwarn);
   pStringBuilder.append(internalParser.format(pLong));
/* This class is the formatter for Numbers that are to be read from the source file. */
class OdiNumberFormatIN{
  OdiStringUtils myStringUtils;
  DecimalFormat internalParser;
  ParsePosition internalParsePosition;
  String odiColname;
  String colNullIfErr;
  public OdiNumberFormatIN(String pDecimalSeparator, OdiStringUtils pStringUtils, String pColname, String pColNullIfErr) {
   myStringUtils = pStringUtils;
   odiColname=pColname;
   colNullIfErr=pColNullIfErr;
   if (pDecimalSeparator == null) {
    pDecimalSeparator = ".";
   if (pDecimalSeparator.length() != 1) {
    pDecimalSeparator = ".";
   DecimalFormatSymbols mySymbols = new DecimalFormatSymbols();
   mySymbols.setDecimalSeparator(pDecimalSeparator.charAt(0));
   internalParser = new DecimalFormat("#.#", mySymbols);
   internalParser.setParseBigDecimal(true);
   internalParsePosition = new ParsePosition(0);
  /* This function returns null in case an Exception occurs during the parsing of the String as a Number */
  public Number parse(String pString, Warning Odiwarn) throws Exception {
   internalParsePosition.setIndex(0);
   Number x= internalParser.parse(pString.trim(), internalParsePosition);
   if ((pString.trim().length()>internalParsePosition.getIndex()))
   { x=null;
    if (colNullIfErr=="0"){
    throw new Exception (odiColname+" "+pString.trim()+" Invalid number\n");
    if (colNullIfErr=="1")
     Odiwarn.AddWarn(odiColname+": "+pString.trim()+" Invalid number");
   return x;
/* This class is the formatter for Dates that are to be read from the source file */
class OdiDateFormatIN{
  OdiStringUtils myStringUtils;
  SimpleDateFormat internalParser;
  ParsePosition internalParsePosition;
  String odiColname;
  String colNullIfErr;
  String localPattern="";
  public OdiDateFormatIN(String pPattern, OdiStringUtils pStringUtils, String pColname, String pColNullIfErr) {
   myStringUtils = pStringUtils;
   odiColname = pColname;
   colNullIfErr=pColNullIfErr;
   if (pPattern == null) {
    localPattern = "dd/MM/yyyy";
   } else localPattern=pPattern;
   //internalParser = new SimpleDateFormat(pPattern);
   //internalParsePosition = new ParsePosition(0);
  /* This method returns null if an error occurs when parsing the String as a date */
  public Date parse(String pString, Warning Odiwarn) throws Exception {
   internalParser = new SimpleDateFormat(localPattern);
   internalParsePosition = new ParsePosition(0);
   internalParsePosition.setIndex(0);
   internalParser.setLenient(false);
   Date x= internalParser.parse(pString.trim(),internalParsePosition);
   //trace("this is bad file");
   if (internalParsePosition.getErrorIndex() > -1 && pString.length()>0 )
   { x=null;
    if (colNullIfErr=="1") {
     Odiwarn.AddWarn(odiColname+": "+pString.trim()+" Invalid date");
    if (colNullIfErr=="0") {
    throw new Exception (odiColname+" "+pString.trim()+" Invalid date\n");
   return x;
/* This class is the formatter for Dates that are to be written to the target file */
class OdiDateFormatOUT{
  OdiStringUtils myStringUtils;
  SimpleDateFormat internalParser;
  String colName;
  String colMandatory;
  String colFormat;
  String colDecSep;
  String colNullIfErr;
  int    colBytes;
  Date xDate;
   private void check(Warning Odiwarn) throws Exception
   if (false)
    {if (colNullIfErr=="0"){
     throw new Exception ("Column "+ colName+" : "+xDate+" Value too long\n");
     if (colNullIfErr=="1")
      Odiwarn.AddWarn("Column "+ colName+" : "+xDate+" Value too long\n");
  public OdiDateFormatOUT(String pColName,String pColMandatory, String pColFormat,String pColDecSep, String pColNullIfErr,OdiStringUtils pStringUtils)
   myStringUtils = pStringUtils;
   colName = pColName;
   colMandatory = pColMandatory;
   colFormat = pColFormat;
   colDecSep = pColDecSep;
   colNullIfErr = pColNullIfErr;
   colBytes = 0;
   if (colFormat == null) {
    colFormat = "dd/MM/yyyy";
   internalParser = new SimpleDateFormat(colFormat);
  public void format(Date pDate, StringBuilder pStringBuilder,Warning Odiwarn) throws Exception {
   xDate=pDate;
   this.check(Odiwarn);
   if (xDate != null) {
    pStringBuilder.append(internalParser.format(xDate));
class Warning
boolean warning;
String warntext;
int currentLine;
int nbWarn;
public Warning ()
  warning=false;
  warntext="";
public void New (int i)
  warning=false;
  warntext="";
  currentLine=i;
  nbWarn=0;
public void AddWarn (String txt)
    if (warning) {
    warntext=warntext+"\n"+txt;
     } else {
    warntext=warntext+"\n"+txt;
  warning=true;
  nbWarn+=1;
/* This class contains the code of the Thread that reads a line from the source file, processes a line and writes the output to the Target */
class OdiFileTransformer extends Thread {
  OdiStringUtils myStringUtils= new OdiStringUtils();
  Scanner myScanner;
  Warning Odiwarn=new Warning();
  <?
    createInputFormaters();
    createOutputFormaters();
  ?>
  String tmpString;
   String[] srcCols;
  <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C1;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C2;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C3;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C4;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C5;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C6;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C7;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C8;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C9;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C10;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C11;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C12;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C13;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C14;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C15;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C16;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C17;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C18;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C19;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C20;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C21;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C22;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C23;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C24;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C25;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C26;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C27;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C28;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C29;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C30;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C31;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C32;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C33;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C34;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C35;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C36;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C37;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C38;
   <? if ("DATE".equals("STRING")) {?>Date<? } else if ("NUMERIC".equals("STRING")) {?>Number<? } else { ?>String<? } ?> srcColsCTCL_C39;
  String srcRecordSeparator;
  String trgRecordSeparator;
  String trgLineSeparator;
  StringBuilder myStringBuilder;
  public OdiFileTransformer(Scanner pScanner){
   super();
   myScanner = pScanner;
   tmpString = null;
   this.setName("OdiFileTransformer");
    srcCols = new String[1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1];
   srcRecordSeparator = Pattern.quote(",");
   trgRecordSeparator = ",";
   trgLineSeparator = "\n";
   myStringBuilder = new StringBuilder();
  public void run() {
  boolean bad = false;
  try {
   while (doWeContinueBatch){
    /* The calls to the Scanner need to be synchronized manually as it is not threadsafe */
    synchronized(lock) {
     if (myScanner.hasNext()) {
      tmpString=myScanner.next();
      nbLine+=1;
     } else {
      return;
    bad = false;
    Odiwarn.New(nbLine);
    try {
    srcCols = tmpString.split(srcRecordSeparator);
    /* The Filters are generated as if Statements that go to the next row to process if any condition is false */
    /* We start the processing of the line by clearing the StringBuilder */
    myStringBuilder.setLength(0);
    <? createInputFormaters("CTCL.C1"); ?><? createInputFormaters("CTCL.C2"); ?><? createInputFormaters("CTCL.C3"); ?><? createInputFormaters("CTCL.C4"); ?><? createInputFormaters("CTCL.C5"); ?><? createInputFormaters("CTCL.C6"); ?><? createInputFormaters("CTCL.C7"); ?><? createInputFormaters("CTCL.C8"); ?><? createInputFormaters("CTCL.C9"); ?><? createInputFormaters("CTCL.C10"); ?><? createInputFormaters("CTCL.C11"); ?><? createInputFormaters("CTCL.C12"); ?><? createInputFormaters("CTCL.C13"); ?><? createInputFormaters("CTCL.C14"); ?><? createInputFormaters("CTCL.C15"); ?><? createInputFormaters("CTCL.C16"); ?><? createInputFormaters("CTCL.C17"); ?><? createInputFormaters("CTCL.C18"); ?><? createInputFormaters("CTCL.C19"); ?><? createInputFormaters("CTCL.C20"); ?><? createInputFormaters("CTCL.C21"); ?><? createInputFormaters("CTCL.C22"); ?><? createInputFormaters("CTCL.C23"); ?><? createInputFormaters("CTCL.C24"); ?><? createInputFormaters("CTCL.C25"); ?><? createInputFormaters("CTCL.C26"); ?><? createInputFormaters("CTCL.C27"); ?><? createInputFormaters("CTCL.C28"); ?><? createInputFormaters("CTCL.C29"); ?><? createInputFormaters("CTCL.C30"); ?><? createInputFormaters("CTCL.C31"); ?><? createInputFormaters("CTCL.C32"); ?><? createInputFormaters("CTCL.C33"); ?><? createInputFormaters("CTCL.C34"); ?><? createInputFormaters("CTCL.C35"); ?><? createInputFormaters("CTCL.C36"); ?><? createInputFormaters("CTCL.C37"); ?><? createInputFormaters("CTCL.C38"); ?><? createInputFormaters("CTCL.C39"); ?>
    <?= replaceMappings("outC1Formatter.format(CTCL.C1,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC2Formatter.format(CTCL.C2,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC3Formatter.format(CTCL.C3,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC4Formatter.format(CTCL.C4,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC5Formatter.format(CTCL.C5,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC6Formatter.format(CTCL.C6,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC7Formatter.format(CTCL.C7,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC8Formatter.format(CTCL.C8,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC9Formatter.format(CTCL.C9,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC10Formatter.format(CTCL.C10,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC11Formatter.format(CTCL.C11,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC12Formatter.format(CTCL.C12,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC13Formatter.format(CTCL.C13,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC14Formatter.format(CTCL.C14,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC15Formatter.format(CTCL.C15,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC16Formatter.format(CTCL.C16,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC17Formatter.format(CTCL.C17,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC18Formatter.format(CTCL.C18,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC19Formatter.format(CTCL.C19,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC20Formatter.format(CTCL.C20,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC21Formatter.format(CTCL.C21,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC22Formatter.format(CTCL.C22,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC23Formatter.format(CTCL.C23,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC24Formatter.format(CTCL.C24,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC25Formatter.format(CTCL.C25,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC26Formatter.format(CTCL.C26,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC27Formatter.format(CTCL.C27,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC28Formatter.format(CTCL.C28,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC29Formatter.format(CTCL.C29,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC30Formatter.format(CTCL.C30,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC31Formatter.format(CTCL.C31,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC32Formatter.format(CTCL.C32,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC33Formatter.format(CTCL.C33,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC34Formatter.format(CTCL.C34,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC35Formatter.format(CTCL.C35,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC36Formatter.format(CTCL.C36,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC37Formatter.format(CTCL.C37,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC38Formatter.format(CTCL.C38,myStringBuilder,Odiwarn);") ?><?= "myStringBuilder.append(trgRecordSeparator);" ?><?= replaceMappings("outC39Formatter.format(CTCL.C39,myStringBuilder,Odiwarn);") ?>
    myStringBuilder.append(trgLineSeparator);
    pBufferedWriter.write(myStringBuilder.toString());
    if (Odiwarn.warning)
     pBufferedLogWriter.append("\nwarning line: "+Odiwarn.currentLine+"\t"+Odiwarn.warntext);
     addWarning();
    addInserted();
    catch (Exception e) {
     // TODO: handle exception
     pBufferedLogWriter.append("\nError line: "+nbLine+"\t"+e.getMessage());
     e.printStackTrace();
     pBufferedBadWriter.append(tmpString+"\n");
     synchronized(lock) {
      nbError+=1;
      if (nbError >=1)
       {pBufferedLogWriter.append("Maximum number of errors reached \n");
          doWeContinueBatch=false;
          maxErrorReach=true;
       return;}
  catch (Exception e) {
   throw(new RuntimeException(e.getMessage()));
static class OdiFileFilter implements FilenameFilter {
  Pattern myPattern;
  BufferedWriter myLogWriter;
  public OdiFileFilter (String pPattern,BufferedWriter logWriter) throws IOException {
   File pWorkSchema = new File("<?=snpRef.getSchemaName("CT_Sample", "D") ?>");
   StringBuilder buffer = new StringBuilder();
   pPattern = pWorkSchema.getAbsolutePath().replace("\\", "/") + "/" + pPattern;
   myLogWriter=logWriter;
   char[] chars = pPattern.toCharArray();
   for (int i = 0; i < chars.length; ++i)    {
    buffer.append(chars[i]);
   myPattern = Pattern.compile(buffer.toString());
   myLogWriter.append("\nPattern: " + buffer.toString());
  public boolean accept(File pDir, String pName) {
   Matcher myMatcher = myPattern.matcher(pDir.getAbsolutePath().replace("\\", "/") + "/" + pName);
   System.out.println("" + myMatcher.matches() + pDir.getAbsolutePath().replace("\\", "/") + "/" + pName);
   return myMatcher.matches();
public static void main(String[] args) throws Exception{
  LOG_FILE =
  BAD_FILE =
   String wbadfile = "<?=snpRef.getObjectName("L", "FILE_OK.csv", "CT_Sample", "", "D") ?>.bad";
   String wlogfile = "<?=snpRef.getObjectName("L", "FILE_OK.csv", "CT_Sample", "", "D") ?>.log";
  <?= getOdiClassName() ?> myIKMFileProcessing = new <?= getOdiClassName() ?>("<?=snpRef.getObjectName("L", "FILE_OK.csv", "CT_Sample", "", "D") ?>",wlogfile,wbadfile);
  File[] inputFileList;
  OdiFileFilter myFileFilter = new OdiFileFilter("<?=snpRef.getObjectShortName("L", "Pfizer_Regional_CT_costs_Aug2013_AP.csv", "CT_Sample", "D") ?>",myIKMFileProcessing.pBufferedLogWriter);
  File inputDir = new File("<?=snpRef.getSchemaName("CT_Sample", "D") ?>");
  inputFileList = inputDir.listFiles(myFileFilter);
  String s="";
  if (inputFileList.length==0) {myIKMFileProcessing.pBufferedLogWriter.append("\n\tError : Source file does not exist");}
  for (int i=0;i<inputFileList.length;i++) {
   if (myIKMFileProcessing.getDoWeContinueBatch()) {
   s=myIKMFileProcessing.processInputFile(inputFileList[i]);
  myIKMFileProcessing.pBufferedLogWriter.append(s);
  myIKMFileProcessing.pBufferedLogWriter.flush();
public String processInputFile(File pInputFile) throws Exception {
  /* We open the source File by taking the encoder into account if needed */
   Scanner myScanner = new Scanner(new BufferedReader(new FileReader(pInputFile)));
    pBufferedLogWriter.append("\nInput file:\t\t"+pInputFile.getAbsolutePath().replace("\\", "/"));
  /* We use a Scanner as the record separator might not necessarily be \n */
  myScanner.useDelimiter("\n");
  /* We read the first lines in order to ignore them depending on the setting of the source datastore */
  for (int i=0;i < 0;i++){
   if (myScanner.hasNext()) {
    myScanner.next();
    nbLine+=1;
    nbHeader+=1;
  OdiFileTransformer[] odiFileTransformers = new OdiFileTransformer[NB_THREADS];
  for (int i=0;i<NB_THREADS;i++){
   odiFileTransformers[i] = new OdiFileTransformer(myScanner );
  for (int i=0;i<NB_THREADS;i++){
   odiFileTransformers[i].start();
  for (int i=0;i<NB_THREADS;i++){
   odiFileTransformers[i].join();
  end=new Date();
    if (maxErrorReach)
    pBufferedLogWriter.append("\n\tNumber of lines read for this file:\t\t" + nbLine);
    pBufferedLogWriter.append("\n\tNumber of data lines read for this file:\t\t" + (nbLine-1) + "\n\n\n");
    pBufferedLogWriter.append("\n\tNumber of error lines read for this file:\t\t" + (nbError-nbErrorInPrevFiles));
    pBufferedLogWriter.append("\n\tNumber of data lines read and filtered out for this file:\t\t" + (nbFilter-nbFilterInPrevFiles)+"\n");
  else
     pBufferedLogWriter.append("\n\tNumber of lines for this file:\t\t" + nbLine);
     pBufferedLogWriter.append("\n\tNumber of data lines for this file:\t\t" + (nbLine-1));
     pBufferedLogWriter.append("\n\tNumber of error lines for this file:\t\t" + (nbError-nbErrorInPrevFiles));
     pBufferedLogWriter.append("\n\tNumber of data lines filtered out for this file:\t\t" + (nbFilter-nbFilterInPrevFiles)+"\n");
    nbFiles+=1;
    nbTotalLine+=nbLine;
    nbErrorInPrevFiles = nbError;
    nbFilterInPrevFiles = nbFilter;
    nbLine=0;
    String s = "\n\n\n\n************************** TOTAL FIGURES ********************************";
    s = s + "\n\t"+nbFiles+" input file(s) processed.\n";
    s = s + "\n\t"+nbTotalLine+" Rows successfully read.\n" ;
    s = s +"\t"+nbHeader+" Rows skipped (Header).\n" ;
    s = s + "\t"+nbInserted+" Rows successfully loaded.\n" ;
    s = s +"\t\t==>"+nbWarning+" Rows loaded with warning.\n" ;
    s = s +"\t"+nbError+" Rows not loaded due to data errors.\n" ;
    s = s +"\t"+nbFilter+" Rows not loaded because of filter.\n" ;
    s = s + "\n\n\n";
    s = s + "\n\tRun began on "+debut;
    s = s + "\n\tRun ended on "+end;
    //long x=   ;
    s = s + "\n\tElapsed time was:\t"+Math.abs(end.getTime() - debut.getTime())+" milliseconde";
  /* We flush the buffer for any data that has not been written on the disk yet */
  pBufferedWriter.flush();
  pBufferedLogWriter.flush();
  pBufferedBadWriter.flush();
  return s;
at com.sunopsis.dwg.dbobj.SnpSessStep.createTaskLogs(SnpSessStep.java:738)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:461)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
at java.lang.Thread.run(Thread.java:662)

This seems like a lot of code. I would suggest to compile your custom code outside of odi first to debug any syntax errors.

Similar Messages

  • Error while compiling and building file [java] ERROR: ejbc couldn't invoke

    *[java] [EJBCompiler] : Compliance Checker said bean was compliant*
    *[java] ERROR: Error from ejbc: Access is denied*
    *[java] java.io.IOException: Access is denied*
    *[java] at java.io.WinNTFileSystem.createFileExclusively(Ljava.lang.Stri*
    ng;)Z(Native Method)
    *[java] at java.io.File.checkAndCreate(File.java:1314)*
    *[java] at java.io.File.createTempFile(File.java:1402)*
    *[java] at java.io.File.createTempFile(File.java:1439)*
    *[java] at weblogic.utils.compiler.CompilerInvoker.execCompiler(Compiler*
    Invoker.java:227)
    *[java] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Comp*
    ilerInvoker.java:428)
    *[java] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok*
    er.java:328)
    *[java] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok*
    er.java:336)
    *[java] at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:27*
    *0)*
    *[java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:4*
    *76)*
    *[java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:3*
    *97)*
    *[java] at weblogic.ejbc20.runBody(ejbc20.java:517)*
    *[java] at weblogic.utils.compiler.Tool.run(Tool.java:192)*
    *[java] at weblogic.utils.compiler.Tool.run(Tool.java:147)*
    *[java] at weblogic.ejbc.main(ejbc.java:29)*
    *[java] ERROR: ejbc couldn't invoke compiler*
    BUILD FAILED

    Yshemi,
    You do not have to explicitly point the server to a compiler. Its already in
    the IDE classpath. Can you provide more information on the steps you
    followed.
    You had stated that you had created a new workshop domain. Is this the
    domain in which your are creating the new application ?
    You can choose the server when you create the application or by editing the
    application properties.
    Can you verify this ?
    Can you test the built in sample to check if it works fine ?
    What is the operating system that you are working on ?
    Can you try by creating a new empty application, and an ejb project and let
    me know the results ?
    Regards,
    Raj Alagumalai
    WebLogic Workshop Support
    "yshemu" <[email protected]> wrote in message
    news:3f4eabaf$[email protected]..
    >
    Hi Guys,
    I have created a workshop domain with the configuration wizard.
    I am trying to build a simple EJB - stateless session, has one method
    that returns a string.
    when I try to build I get the following :
    "ERROR: ERROR: Error from ejbc: Compiler failed executable.exec
    ERROR: ERROR: ejbc couldn't invoke compiler
    BUILD FAILED
    ERROR: ERROR: Error from ejbc: Compiler failed executable.exec
    ERROR: ERROR: ejbc couldn't invoke compiler
    Application Build had errors."
    It seems like Workshop can't find the compiler.
    I added "c:\bea81\jdk141_03\bin" to the application properties under
    "server classpath additions" and still get the same error.
    Does anyone know how I can point workshop to the compiler ?
    Thanks
    yshemi

  • File upload java errors...HEEELPPP!

    All was working fine for months, now getting java errors in my ADDT. Mostly related to file uploads, or image uploads. I found that I don't get these errors in older sites that I've worked with, but I've created a new site and started from scratch and I'm still getting them.
    Here are the errors and what I'm doing:
    *I go insert record form wizard (in ADDT)
    *One field is a date, others are text, one is an integer, one is a file field
    That works ok up to here.
    *Then I choose ADDT > File upload. I get the following error immediately: "While executing canApplyserverBehavior in kb_FileUpload.htm, a javascript error occured."
    *I click ok, the wizard box attempts to load and it give me the error: "While executing onLoad in kb_FileUpload.htm, the following javascript errors occured:
    At line 354 of the file "Macintosh HD:Applications:Adobe Dreamweaver CS3:Configuration:Shared:DeveloperToolbox:classes:triggerUtil.js":
    TypeError: hash[transactionColumn[k]].push is not a fuction.
    I'm totally tearing my hair out, not to mention not hitting deadlines with this... can anyone help. I've tried removing the fileCache, rebuilding the site cache, removing and rebuilding the includes folder, removing and reinstalling ADDT. HEEEEEELLLLLPPP.

    Hi
    Please look into this about the destination
    Pathname of directory in which to upload the file. If not an
    absolute path (starting a with a drive letter and a colon, or a
    forward or backward slash), it is relative to the ColdFusion
    temporary directory, which is returned by the GetTempDirectory
    function.

  • Error in file-webservice- file (Error: java.lang.NullPointerException)

    Hi everybody,
    I have configured a file-webservice-file without BPM scenario...as explained by Bhavesh in the following thread:
    File - RFC - File without a BPM - Possible from SP 19.
    I have  used a soap adapter (for webservice) instead of rfc .My input file sends the date as request message and gets the sales order details from the webservice and then creates a file at my sender side.
    1 communication channel for sender file
    1 for receiver soap
    1 for receiver file
    Error: java.lang.NullPointerException
    What could be the reason for this error
    thanks a lot
    Ramya

    Hi Tanaya,
    I monitored the channels in the Runtime work bench and the error is in the sender ftp channel.The other 2 channel status is "not used" in RWB.
    1 sender ftp channel
    1 receiver soap channel
    1 receiver ftp channel.
    2009-12-16 15:02:00 Information Send binary file  "b.xml" from ftp server "10.58.201.122:/", size 194 bytes with QoS EO
    2009-12-16 15:02:00 Information MP: entering1
    2009-12-16 15:02:00 Information MP: processing local module localejbs/AF_Modules/RequestResponseBean
    2009-12-16 15:02:00 Information RRB: entering RequestResponseBean
    2009-12-16 15:02:00 Information RRB: suspending the transaction
    2009-12-16 15:02:00 Information RRB: passing through ...
    2009-12-16 15:02:00 Information RRB: leaving RequestResponseBean
    2009-12-16 15:02:00 Information MP: processing local module localejbs/CallSapAdapter
    2009-12-16 15:02:00 Information The application tries to send an XI message synchronously using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:02:00 Information Trying to put the message into the call queue.
    2009-12-16 15:02:00 Information Message successfully put into the queue.
    2009-12-16 15:02:00 Information The message was successfully retrieved from the call queue.
    2009-12-16 15:02:00 Information The message status was set to DLNG.
    2009-12-16 15:02:02 Error The message was successfully transmitted to endpoint com.sap.engine.interfaces.messaging.api.exception.MessagingException: Received HTTP response code 500 : Internal Server Error using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:02:02 Error The message status was set to FAIL.
    Now, the error is internal server error.What can I do about this?
    thanks a lot
    Ramya

  • File read or delete error in oracle jca adapter is not being caught in java

    Hi,
    I am using oracle JCA file adapter to read and process file and that jca is being used in OSB. This is working fine. But if the file is not in proper format or file is alredy opened,jca is throwing error on console and control is not going to OSB. I have to log this error in database either by OSB or before OSB using EJB. I have inserted valve in jca for preprocessing. But in the any method of abstract valve , i am not getting able to access the error thrown by jca in case of invalid xml file. If i am able to fetch error message in execute method or any other message of AbstractValve, that error may be sent to database using EJB that not able to get the error message. Please let me know if there is any way to get the errors by jca in java code.

    In the case of error while reading or deleting file(if file is not in write format or opened or not accessible), control is not going to OSB. from JCA default error handling mechanism is throwing error to console. That's why i tried with inserting valve in jca adapter.

  • Ruleset webservice: error during deployment EAR file on the java server

    Hi,
    I want to create a webservices for a ruleset which i have created with the rules composer (NWDS).
    During this proces, the following problem occurs: after creating a ruleset and the EAR file with the Web Service Generation Tool, i wanted to deploy this file on the java server for creating a webservices. During deployment, I get the following warning with no results:
    <h5>
                S U M M A R Y
    ~~~~~~~~~~~~~~~~~~~
    Successfully deployed:           0
    Deployed with warnings:           1
    Failed deployments:                0
    ~~~~~~~~~~~~~~~~~~~
    1. File:C:\Documents and Settings\Martin Gerritsen\Desktop\Webservices\DeclaratieCheckRulesetEAR.ear
         Name:DeclaratieCheckRulesetEAR
         Vendor:sap.com
         Location:localhost
         Version:2008.03.12.12.02.09
         Deploy status:Warning
         Version:NEW
         Description:
              1. Warning occurred on server 1573750 during deploy sap.com/DeclaratieCheckRulesetEAR : Web Class Existence Test: The servlet "GenericWS" must implement "javax.servlet.Servlet"., file: DeclaratieCheckRulesetWEB.war#WEB-INF/web.xml, column 0, line 0, severity: warning
              2. Exception has been returned while the [sap.com/DeclaratieCheckRulesetEAR] was starting. Warning/Exception :[
    ][[ERROR CODE DPL.DS.6193] Error while ; nested exception is:
         com.sap.engine.services.deploy.exceptions.ServerDeploymentException: [ERROR CODE DPL.DS.5030] Clusterwide exception: [server ID 1573750:[ERROR CODE DPL.DS.5035] Application [sap.com/DeclaratieCheckRulesetEAR] cannot be started. Reason: it has hard reference to resource [tcbrmsfacade] with type [application], which is not active on the server.
    Hint: 1) Is referred resource deployed? 2) Is referred resource able to start?
               -> [ERROR CODE DPL.DS.5082] Exception while [validating application sap.com/tcbrmsfacade.
         The sap.com/tcbrmsfacade application was processed from [EJBContainer] containers, but none of them returned information about deployed components.
         The registered containers in this moment were [CTCContainer, MDRContainer, com.sap.security.ume, developmentserver, SCA Composites Container, com.sap.security.login-modules, app_libraries_container, Cache Configuration Upload, servlet_jsp, dbcontentcontainer, connector, Cluster File System, BRMS_Content_Archive, JMSConnector, MigrationContainer, Galaxy_Content_Archive, Monitoring Configurator, dbschemacontainer, appclient, orpersistence, PortalRuntimeContainer, JDBCConnector, EJBContainer, metamodelrepository, webservices_container, scheduler~container, ConfigurationsContainer, Content Container].
         Possible reasons :
         1.Empty or incorrect application, which is not recognized by registered containers.
         2.An AS Java service, which is providing a container, is stopped or not deployed.
         3.The containers, which processed it, are not implemented correctly, because the application was deployed or started initially, but containers didn't return information about deployed components in the application deployment info].
    server ID 1573750:com.sap.engine.services.deploy.exceptions.ServerDeploymentException: [ERROR CODE DPL.DS.5035] Application [sap.com/DeclaratieCheckRulesetEAR] cannot be started. Reason: it has hard reference to resource [tcbrmsfacade] with type [application], which is not active on the server.
    Hint: 1) Is referred resource deployed? 2) Is referred resource able to start?
         at com.sap.engine.services.deploy.server.ReferenceResolver.checkApplicationStatus(ReferenceResolver.java:871)
         at com.sap.engine.services.deploy.server.ReferenceResolver.processReferenceToApplication(ReferenceResolver.java:848)
         at com.sap.engine.services.deploy.server.ReferenceResolver.processMakeReference(ReferenceResolver.java:575)
         at com.sap.engine.services.deploy.server.ReferenceResolver.beforeStartingApplication(ReferenceResolver.java:489)
         at com.sap.engine.services.deploy.server.application.StartTransaction.beginCommon(StartTransaction.java:169)
         at com.sap.engine.services.deploy.server.application.StartTransaction.begin(StartTransaction.java:134)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:493)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:544)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.super_MakeAllPhases(ParallelAdapter.java:286)
         at com.sap.engine.services.deploy.server.application.StartTransaction.makeAllPhasesImpl(StartTransaction.java:555)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:197)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesAndWait(ParallelAdapter.java:358)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3421)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3407)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3297)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3269)
         at com.sap.engine.services.dc.lcm.impl.J2EELCMProcessor.doStart(J2EELCMProcessor.java:105)
         at com.sap.engine.services.dc.lcm.impl.LifeCycleManagerImpl.start(LifeCycleManagerImpl.java:78)
         at com.sap.engine.services.dc.cm.deploy.impl.LifeCycleManagerStartVisitor.visit(LifeCycleManagerStartVisitor.java:34)
         at com.sap.engine.services.dc.cm.deploy.impl.DeploymentItemImpl.accept(DeploymentItemImpl.java:83)
         at com.sap.engine.services.dc.cm.deploy.impl.DefaultDeployPostProcessor.postProcessLCMDeplItem(DefaultDeployPostProcessor.java:91)
         at com.sap.engine.services.dc.cm.deploy.impl.DefaultDeployPostProcessor.postProcess(DefaultDeployPostProcessor.java:61)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.doPostProcessing(DeployerImpl.java:862)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.performDeploy(DeployerImpl.java:810)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.doDeploy(DeployerImpl.java:640)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.deploy(DeployerImpl.java:359)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.deploy(DeployerImpl.java:248)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImplp4_Skel.dispatch(DeployerImplp4_Skel.java:897)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:355)
         at com.sap.engine.services.rmi_p4.server.ServerDispatchImpl.run(ServerDispatchImpl.java:69)
         at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:67)
         at com.sap.engine.services.rmi_p4.P4Message.execute(P4Message.java:41)
         at com.sap.engine.services.cross.fca.FCAConnectorImpl.executeRequest(FCAConnectorImpl.java:971)
         at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:57)
         at com.sap.engine.services.cross.fca.MessageReader.run(MessageReader.java:55)
         at com.sap.engine.core.thread.execution.Executable.run(Executable.java:109)
         at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:314)
    Caused by: com.sap.engine.services.deploy.exceptions.ServerDeploymentException: [ERROR CODE DPL.DS.5082] Exception while [validating application sap.com/tcbrmsfacade.
         The sap.com/tcbrmsfacade application was processed from [EJBContainer] containers, but none of them returned information about deployed components.
         The registered containers in this moment were [CTCContainer, MDRContainer, com.sap.security.ume, developmentserver, SCA Composites Container, com.sap.security.login-modules, app_libraries_container, Cache Configuration Upload, servlet_jsp, dbcontentcontainer, connector, Cluster File System, BRMS_Content_Archive, JMSConnector, MigrationContainer, Galaxy_Content_Archive, Monitoring Configurator, dbschemacontainer, appclient, orpersistence, PortalRuntimeContainer, JDBCConnector, EJBContainer, metamodelrepository, webservices_container, scheduler~container, ConfigurationsContainer, Content Container].
         Possible reasons :
         1.Empty or incorrect application, which is not recognized by registered containers.
         2.An AS Java service, which is providing a container, is stopped or not deployed.
         3.The containers, which processed it, are not implemented correctly, because the application was deployed or started initially, but containers didn't return information about deployed components in the application deployment info].
         at com.sap.engine.services.deploy.server.utils.ValidateUtils.missingDCinDIValidator(ValidateUtils.java:80)
         at com.sap.engine.services.deploy.server.application.StartInitiallyTransaction.prepare(StartInitiallyTransaction.java:158)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:502)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:544)
         at com.sap.engine.services.deploy.server.application.StartTransaction.doStartInitiallyLocal(StartTransaction.java:477)
         at com.sap.engine.services.deploy.server.application.StartTransaction.doStartInitially(StartTransaction.java:433)
         at com.sap.engine.services.deploy.server.application.StartTransaction.prepareLocal(StartTransaction.java:193)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesLocal(ApplicationTransaction.java:591)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:202)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesLocalAndWait(ParallelAdapter.java:367)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.regularStartApplicationLocalAndWait(DeployServiceImpl.java:3218)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationLocalAndWait(DeployServiceImpl.java:3210)
         at com.sap.engine.services.deploy.server.ReferenceResolver.checkApplicationStatus(ReferenceResolver.java:863)
         ... 36 more
    Result
    Status:Warning
    </h5>
    Development Infrastructure:
    - development configuration: local development
    - development configuration: saptest (SAP NetWeaver CE 7.1 EHP1)
    Before I created the EAR file with the Web Service Generation Tool, I have carried out the following steps:
    - Created a ruleset (including two rules and one decision table) (development configuration: saptest)
    - Build and deploy the ruleset on the java server...
    - Created a dummy web module (development configuration: local development)
    - Added 3 dependencies (references) to the dummy web module:
    - References 1: enginee.jee5.facade (no selection on design time, deploy time or runtime)
    - References 2: tc/bl/logging/api (selection on design time, deploy time and runtime)
    - References 3: tc/brms/ facade (selection on design time, deploy time and runtime)
    - Dummy web module -> sync used DC's
    - Build dummy web module
    After that I started the Web Service Generation Tool and created the EAR file....
    1) NWDS -> window -> show view -> others -> deploy view -> deploy view
    2) Added the EAR file to External Deployable Archives
    3) deployed the file to the java server... then the warning occurs...
    How can I resolve this error?
    <h5>Application [sap.com/DeclaratieCheckRulesetEAR] cannot be started. Reason: it has hard reference to resource [tcbrmsfacade] with type [application], which is not active on the server.
    Hint: 1) Is referred resource deployed? 2) Is referred resource able to start...</h5>
    And...
    <h5>[ERROR CODE DPL.DS.5082] Exception while [validating application sap.com/tcbrmsfacade.
         The sap.com/tcbrmsfacade application was processed from [EJBContainer] containers, but none of them returned information about deployed components.</h5>
    Can somebody help me with this problem?
    Kind regards,
    Martin Gerritsen

    Hello Martin Gerritsen,
    This is Arti from the PM team.
    It seems to me that the brms facade has not yet started in your application server. You can check whether it has started or not by doing the following -
    You need to access the JavaEE Applications running on your AS. To do this -
    1. Open the nwa portal
    2. Navigate to Operations Management > Systems > Start & Stop > Java EE Applications
    3. Search for the brms related applications available on the server.
    In case the applications have not yet been started, please try to manually start them. If you still have problem in starting the BRMS facade please contact me.
    I will send across to you a fresh set of SCAs which you can deploy into your server to resolve this issue.
    Regards,
    Arti

  • Java error when trying to edit file - access denied

    We have been running Vibe 3.0 for a couple years with no issues but suddenly users have begun to get java errors when trying to edit a file from Vibe. When a file entry is opened and the "Edit this file" link is clicked, a dialog pops up that says :
    Error from command:
    java.security.AccessControlException: access denied (java.io.FilePermission <<ALL FILES>> execute)
    Has anyone else seen this? Could it be related to some windows security update perhaps? Any ideas how to resolve would be appreciated. This happens with regular users as well as admin.
    Vibe is running on SLES 10 with mysql. We are using IIS Windows Authentication.
    Thanks

    dangross,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

  • Continually opening a file in a java display to read errors?!

    hello all,
    I have what seems to be an easy task but hard for me. my question is, i am currently running a bat file that dumps all error logs into a error.log. what I would like to do is have my bat file also kick off a java program that reads the error.log file and print out the errors to screen? is there a easy way to do this? im thinking if this error.log file is being updated, maybe its locked, and that I wont be able to display the error logs sort of realtime right?
    suggestions?
    THANKS!

    It's the file length you need to store.
    Open the file up for the first time, read everything and remember its length.
    Sometime later, check the file length again. If it's greater than the length you stored, open up the file, jump to the previous length, read everything from there up to the end of the file and save the new length. And repeat!
    I wouldn't advise storing line numbers, since that doesn't translate into the file offset positions that Java needs easily.

  • Loadjava Error while opening file: –resolve  Exception java.io.FileNotFound

    Dears,
    I'm having Oracle 11gr2 on Windows 2008r2. I have very strange issue while trying to load ordinary Java source. I get error that loadjava can't open file. I'm using the following command in loading:
    %ORACLE_HOME%\dbhome_1\BIN\loadjava -thin -user ORAMQ/***@localhost:1521:DEVAR -verbose -fileout %C:\temp\loadjava-9-MQReasonCodeResolver.java.log C:\src\MQReasonCodeResolver.java –resolve-----
    I got the following error in the verbose file out:
    arguments: '-user' 'ORAMQ/***@localhost:1521:DEVAR' '-thin' '-verbose' '-fileout' 'C:\temp\loadjava-9-MQReasonCodeResolver.java.log' 'C:\src\MQReasonCodeResolver.java' '–resolve'
    creating : source MQReasonCodeResolver
    loading  : source MQReasonCodeResolver
    Error while opening file: –resolve
        Exception java.io.FileNotFoundException: –resolve (The system cannot find the file specified)
    creating :  –resolve
    The following operations failed
         –resolve: opening file-----
    The code is very simple and doesn't have any issue:
    import java.lang.reflect.Field;
    public class MQReasonCodeResolver
        public MQReasonCodeResolver()
        public static final String MQ_EXCEPTION_CLASS = "com.ibm.mq.MQException";
        public static final String RC_FIELD_PREFIX = "MQRC_";
        public static final String RC_VALUE_FIELD = "reasonCode";
        public static String resolve( Exception mqex )
            if ( !canResolve( mqex ) )
                return mqex.getClass().toString() + mqex.getMessage();
            Class class1 = mqex.getClass();
            try
                Field field = class1.getField( RC_VALUE_FIELD );
                Object key = field.get( mqex );
                Field[] fields = class1.getFields();
                for ( int i = 0; i < fields.length; i++ )
                    Field ff = fields;
    String name = ff.getName();
    if ( name.startsWith( RC_FIELD_PREFIX ) && ff.get( null ).equals( key ) )
    return mqex.getMessage() + " " + name;
    catch ( Exception ex )
    return "unknown";
    public static boolean canResolve( Exception exx )
    Class class1 = exx.getClass();
    while ( Exception.class.isAssignableFrom( class1 ) )
    if ( MQ_EXCEPTION_CLASS.equals( class1.getName() ) )
    return true;
    class1 = class1.getSuperclass();
    return false;
    I load other classes and no issue, even jar files, I don't know what is the problem with this file? Also, it is strange is creating class and loading it has no issue, but the issue comes when resolve.
    Can anyone help?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi:
    Put your -resolve flag at the beginning of the list of arguments.
    Latest arguments should be files to be uploaded by loadjava.
    Best regards, Marcelo.

  • MulticastSocket Multicast socket receive error: java.lang.RuntimeException: I/O error opening JAR file from file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar

    Hi,
              I need some help.
              Product=weblogic5.1.0
              Revision=(Release Level)=
              Problem Description=
              I am doing cluster of weblogic server, I have no problem to set up the
              cluster and to run servlet and EJB examples.
              However, on my command line for startcluster I got a lot of message as
              followed:
              Fri Aug 18 11:31:44 EDT 2000:<E> <MulticastSocket> Multicast socket receive
              error: java.lang.RuntimeException: I/O error opening JAR file from
              file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar
              java.util.zip.ZipException: error in opening zip file
              at java.util.zip.ZipFile.open(Native Method)
              at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
              at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
              at weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java,
              Compiled Code)
              at
              weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer
              .java, Compiled Code)
              at
              weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java
              , Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              jectInputStreamBase.java, Compiled Co
              de)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              treamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              tStreamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              eamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              treamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInput
              StreamBase.java, Compiled Code)
              at weblogic.cluster.StateDump.readObject(StateDump.java, Compiled
              Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              jectInputStreamBase.java, Compiled Co
              de)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              treamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              tStreamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              eamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              treamBase.java, Compiled Code)
              at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
              Code)
              The message freshed about every 20 seconds.
              Another question, I used a iplanet web server as a proxy server with a
              cluster of two weblogic servers pluged in, although I set
              weblogic.properties to round-robin, however, when I run a fibonacci servlet,
              it does not do the round-robin. It always go to one machine for a lot of
              times. Any idea?
              Thank you for your help.
              Tom
              

    May i presume that your cluster is configured on a shared file system?.
              I have seen this problem only if you cluster is configured on different machines
              and if the directory structure is not identical.
              let us know..
              Kumar
              Cameron Purdy wrote:
              > First, update to SP4 (or SP5 if it is out now). Second, follow the cluster
              > instructions on setting up deployments for a cluster. The only
              > implementation that I have used is the single shared location that all the
              > servers load from.
              >
              > --
              >
              > Cameron Purdy
              > http://www.tangosol.com
              >
              > "Tom Gan" <[email protected]> wrote in message
              > news:[email protected]...
              > > Hi,
              > > I need some help.
              > >
              > > Product=weblogic5.1.0
              > > Revision=(Release Level)=
              > > Problem Description=
              > > I am doing cluster of weblogic server, I have no problem to set up the
              > > cluster and to run servlet and EJB examples.
              > > However, on my command line for startcluster I got a lot of message as
              > > followed:
              > > Fri Aug 18 11:31:44 EDT 2000:<E> <MulticastSocket> Multicast socket
              > receive
              > > error: java.lang.RuntimeException: I/O error opening JAR file from
              > > file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar
              > > java.util.zip.ZipException: error in opening zip file
              > > at java.util.zip.ZipFile.open(Native Method)
              > > at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
              > > at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
              > > at weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java,
              > > Compiled Code)
              > > at
              > >
              > weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer
              > > .java, Compiled Code)
              > > at
              > >
              > weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java
              > > , Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              > > jectInputStreamBase.java, Compiled Co
              > > de)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              > > treamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              > > tStreamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              > > eamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              > > treamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInput
              > > StreamBase.java, Compiled Code)
              > > at weblogic.cluster.StateDump.readObject(StateDump.java, Compiled
              > > Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              > > jectInputStreamBase.java, Compiled Co
              > > de)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              > > treamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              > > tStreamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              > > eamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              > > treamBase.java, Compiled Code)
              > > at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
              > > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
              > > Code)
              > >
              > > The message freshed about every 20 seconds.
              > >
              > > Another question, I used a iplanet web server as a proxy server with a
              > > cluster of two weblogic servers pluged in, although I set
              > > weblogic.properties to round-robin, however, when I run a fibonacci
              > servlet,
              > > it does not do the round-robin. It always go to one machine for a lot of
              > > times. Any idea?
              > > Thank you for your help.
              > > Tom
              > >
              > >
              > >
              

  • Multicast socket receive error: java.lang.RuntimeException: I/O error opening JAR file from file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar

    Hi,
    I need some help.
    Product=weblogic5.1.0
    Revision=(Release Level)=
    Problem Description=
    I am doing cluster of weblogic server, I have no problem to set up the
    cluster and to run servlet and EJB examples.
    However, on my command line for startcluster I got a lot of message as
    followed:
    Fri Aug 18 11:31:44 EDT 2000:<E> <MulticastSocket> Multicast socket receive
    error: java.lang.RuntimeException: I/O error ope
    ning JAR file from
    file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar
    java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
    at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
    at weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java,
    Compiled Code)
    at
    weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer
    .java, Compiled Code)
    at
    weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java
    , Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
    jectInputStreamBase.java, Compiled Co
    de)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
    treamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
    tStreamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
    eamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
    treamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInput
    StreamBase.java, Compiled Code)
    at weblogic.cluster.StateDump.readObject(StateDump.java, Compiled
    Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
    jectInputStreamBase.java, Compiled Co
    de)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
    treamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
    tStreamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
    eamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
    treamBase.java, Compiled Code)
    at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
    Code)
    The message freshed about every 20 seconds.
    Another question, I used a iplanet web server as a proxy server with a
    cluster of two weblogic servers pluged in, although I set
    weblogic.properties to round-robin, however, when I run a fibonacci servlet,
    it does not do the round-robin. It always go to one machine for a lot of
    times. Any idea?
    Thank you for your help.
    Tom

    Hi,
    I need some help.
    Product=weblogic5.1.0
    Revision=(Release Level)=
    Problem Description=
    I am doing cluster of weblogic server, I have no problem to set up the
    cluster and to run servlet and EJB examples.
    However, on my command line for startcluster I got a lot of message as
    followed:
    Fri Aug 18 11:31:44 EDT 2000:<E> <MulticastSocket> Multicast socket receive
    error: java.lang.RuntimeException: I/O error ope
    ning JAR file from
    file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar
    java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
    at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
    at weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java,
    Compiled Code)
    at
    weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer
    .java, Compiled Code)
    at
    weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java
    , Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
    jectInputStreamBase.java, Compiled Co
    de)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
    treamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
    tStreamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
    eamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
    treamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInput
    StreamBase.java, Compiled Code)
    at weblogic.cluster.StateDump.readObject(StateDump.java, Compiled
    Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
    jectInputStreamBase.java, Compiled Co
    de)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
    treamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
    tStreamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
    eamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
    treamBase.java, Compiled Code)
    at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
    Code)
    The message freshed about every 20 seconds.
    Another question, I used a iplanet web server as a proxy server with a
    cluster of two weblogic servers pluged in, although I set
    weblogic.properties to round-robin, however, when I run a fibonacci servlet,
    it does not do the round-robin. It always go to one machine for a lot of
    times. Any idea?
    Thank you for your help.
    Tom

  • Logging java errors to a text file, please help.

    Could someone please advise how to log java errors to a text file?
    I know from Window you can do to "ANY COMMAND > C:\log.txt and the output will send to the log.txt text file.
    However, how do you log errors when you run java filename? Wish I could just copy and paste from my Window command prompt screen.
    I am just trying to post the errors I receive to the forum.
    Thanks,

    user_s8721301 wrote:
    ..Wish I could just copy and paste from my Window command prompt screen.(from memory) Drag the mouse diagonally across the text in the DOS prompt, then hit 'enter'. The selected text should be on the clipboard, ready to paste.

  • ODI - IKM SQL to File Append - Header not Generated

    I'm using ODI IKM SQL to File Append to create a text file, but the header is not being generated. And the GENERATE_HEADER is set to Yes. The file is Tab delimited and the Heading (number of lines) is set to 1.
    Seems to only be an issue with HFM files coming from the Unix server.
    Any suggestions?
    Thanks, Mike

    Ok, getting the following error in step 6 - Integration - HFM_EA_Translate - Insert Column Headers
    java.lang.NumberFormatException
         at java.math.BigDecimal.<init>(BigDecimal.java:459)
         at java.math.BigDecimal.<init>(BigDecimal.java:728)
         at com.sunopsis.sql.SnpsQuery.updateExecStatement(SnpsQuery.java)
         at com.sunopsis.sql.SnpsQuery.addBatch(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execCollOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.h.y(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Thread.java:662)
    The last two columns in the file are numeric which seems to be causing the issue. Will change formatting for the two columns (String, Numeric, etc.) to see if I can resolve the header issue.
    Thanks,
    Mike

  • Open file dialog in java apps causes segmentation fault

    Started to happen since sometime early in the java 1.5 releases (the early developer releases and still now)
    Programs like Eclipse (3.1.x) and Azureus (2.3.0.x), when I try and open a file using the toolbar or menu the application dumps. I am tried repairing permissions, deleting java config/cache files, etc. No luck.
    I thought I narrowed it down to either my external firewire drive or samba volume being mounted, but that seemed to just be a false positive.
    here is part of the backtrace:
    Local Time = Mon Jan 30 01:28:05 2006
    # This JavaNativeCrash log describes the Java state at a Native Crash in a Java application.
    # The corresponding native state can be found in the crash log generated by CrashReporter.
    # If this error is reproducible, please report it with the following information:
    # 1. Provide the steps to reproduce, a test case, and any relevant information
    # 2. This JavaNativeCrash_pid<num>.crash.log (Java state)
    # 3. The corresponding <name>.crash.log (native state; generated by CrashReporter)
    # File report at: http://bugreport.apple.com/
    # An unexpected Java error has been detected by HotSpot Virtual Machine:
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_06-57 mixed mode)
    # Bus Error (0xa) at pc=0xfffeff18, pid=10101, tid=25184768
    --------------- T H R E A D ---------------
    Current thread (0x005014f0): JavaThread "main" [thread_innative, id=-1610551960]
    Stack: [0xbf800000,0xc0000000)
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j org.eclipse.swt.internal.carbon.OS.NavDialogRun(I)I+0
    j org.eclipse.swt.widgets.DirectoryDialog.open()Ljava/lang/String;+167
    dual core 2.3, 2.5gb ram, 2x36gb sata wd raptors   Mac OS X (10.4.4)  

    I forgot to tell you that we in this case use a remote connection through Cisco VPN. Are there difference in how Jinitiator and SUN's JPI handle this
    We also tried against other customer width the same result. It seems to have importance if you are remote or not. If you are on local LAN it seems to be the almost the same time if you use Jinitiator or SUN's JPI.
    //Robert

  • Could not load file/URL (file not found) error for JNLP file

    I am completely baffled in trying to figure out why I am getting the following error for some JNLP files but not others:
    Error: could not load file/URL specified: C:\Users\tom\AppData\Local\Temp\javaws2
    java.io.FileNotFoundException: C:\Users\tom\AppData\Local\Temp\javaws2 (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(Unknown Source)
    at java.io.FileInputStream.<init>(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
    at com.sun.javaws.Main.launchApp(Unknown Source)
    at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
    at com.sun.javaws.Main$1.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)I have Googled around this forum and elsewhere, and have seen reports that this error is IE-specific, and seems to have something to do with no-cache headers being sent, or with the client browser's cache being full or turned off (which is not my case). I saw the information in the JavaWS FAQ, which recommended turning off security constraints for the JNLP's URI. I tried that, and it didn't help. One of the very baffling things is that I have created several variations of the JNLP file, with varying combinations of jars and property resources, and some combinations always work while other combinations never work. Here's an example:
    <jnlp spec="1.0+" codebase="$$codebase">
       <information>
          <title>demo app</title>
          <description>illustrates weird bug</description>
       </information>
       <resources>
          <j2se version="1.5+"/>
          <jar href="randomFile.jar"/>
          <property name="xxx" value="xxxx"/>
          <property name="swing.metalTheme" value="steel"/>
       </resources>
    </jnlp>The above file always fails with the error shown at the top of this message. However, if I remove either of the two properties, it works fine. And I have created other variations with lots of properties, some of which work. All of these variations are in the same directory in the war file, served by the exact same servlet (a slightly modified version of the jnlp.sample.servlet.JnlpDownloadServlet provided with JDK 1.6.0_3). Assuming that a no-cache header is the problem, what on earth could be causing some JNLP files to always be served with a no-cache header, while others are never served with a no-cache header?
    On a related note, any recommended debugging techniques for seeing what headers are being transmitted? I tried adding a simple check for a "debug=true" parameter in the servlet that causes it to set the content type to "text/plain" instead of JNLP, and that allows me to see (rather than execute) the JNLP XML that's being returned, but it doesn't show me the HTTP headers that are being sent back. If any caching headers are being set, I think it must be being set by the servlet container itself, as it's nothing being set in the servlet code that I can see. So I don't see any way on the server side Java code to output or log the actual HTTP response (or is there?). Any tips in that regard much appreciated.
    Edited by: TomC125468 on Aug 19, 2009 1:35 PM

    Hi Luca-Sanna,
    Thanks for the response. Re browsers, yes, it fails in IE but it succeeds in Firefox. The info on the JavaWS FAQ and other places all seem to indicate that it's an IE issue concerning handling of the cache-control headers.
    I should check in my webserver forum (Sun WebServer 7) to see about logging options. Sniffing on the client side is not possible, as my app is required to use HTTPS exclusively, and unfortunately that also precludes a telnet GET request.

Maybe you are looking for

  • Component MethodBinding NullPointerException

    Hey everybody.. this is an issue that has been giving me problems for a while now, and I haven't been able to figure it out. I've created a menu bar component which I use in this fashion in my pages: <or:menuBar pageClass="#{menuBarBean.PAGECLASS_HOM

  • Trying to find unused tables by views,function, and proc?

    I come up with lists of unused table through given script SELECT SCHEMA_NAME(t.schema_id) as SchemaName, t.name as TableName FROM   sys.tables t WHERE  is_ms_shipped = 0 AND NOT EXISTS (SELECT FROM   sys.sql_expression_dependencies d WHERE  d.referen

  • VOB files question

    Hi all, I shot a project on 35mm for a cinematography class. The lab put the telecine onto a dvd. I want to pull the files into Adobe CS3 so i can edit it however it does not seem to want to do it. I am very new to the program. in fact this will be m

  • Streams Kernel Module

    Hi, I have a STREAMS module to be inserted between TCP & IP. My requirement is to capture all traffic to & fro this box & apply custom TCP based filtering (including the local loopback traffic). My problem is with Solaris 2.6. After pushing in the mo

  • Buy From Japan iphone 5 now am in ksa. but ksa carrier not working i need to work all sim card my iphone

    Am buy from Japan iphone 5 now am in ksa. but ksa carrier not working i need to work all country sim my iphone