Plz help , getting error in my java code

Can any one tell the reason for this error:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
is there any size limit for java classes that I am using in my code?
My code Looks like:
     FileChannel in = null, out = null;
     try {
     in = new FileInputStream(sourceLocation).getChannel();
System.out.println(in.size() +"RptPageBreak rtn: b 4 read file into buffer, source=" + sourceLocation);
// read the file into buffer
// System.out.println("-1 " +in.size() );
MappedByteBuffer buf = in.map(FileChannel.MapMode.READ_ONLY, 0, in.size());
     //System.out.println("RptPageBreak rtn: AFTER read file into buffer" );
System.out.println("1: "+ buf.capacity()+" " +in.size() );
// CharBuffer cb;
               try {
                    cb = Charset.forName ("UTF-8").decode (buf);
               } catch (Exception ex) {
                    System.out.println("2:"+ ex.getMessage());
                    ex.printStackTrace();
System.out.println("2");
String lines[] = Pattern.compile ("\n").split (cb, 0);
     //System.out.println("RptPageBreak rtn: lines.len=" + lines.length);
     Writer writer = new FileWriter (targetLocation);
     System.out.println("3");
     for (int i = 0, n = lines.length; i < n; i++) {
          // also compare if starts with a CRLF
     if ( ( lines.startsWith("\r\n" + rpt_headg_id) == true ) ||
               ( lines[i].startsWith("\f" + rpt_headg_id) == true ) ||
( lines[i].startsWith(rpt_headg_id) == true ) )
//if ( lines[i].contains(rpt_headg_id) == true )
     //System.out.println("RptPageBreak rtn: found headg in if loop " + rpt_headg_id );
writer.write ("1");
else {
     writer.write (" "); // detail lines shift over 1 by addg a space
writer.write (lines[i]);
writer.write ('\n');
//System.out.println("RptPageBreak rtn: lines[i]=" + i + ' ' + lines[i]);
writer.close ();
}catch(Exception e)
     System.out.println("RptPageBreak rtn: Catch Exception: " + e.getMessage() );
     status=false;
e.printStackTrace();
finally {
     try {
if (in != null) in.close();
if (out != null) out.close();
status=true;
catch(Exception e)
     System.out.println("RptPageBreak rtn: Finally-Catch Exception: " + e.getMessage() );
     status=false;
e.printStackTrace();

It has nothing to do with classes. It is that you are reading to much info into memory at one time. If you are only going to cycle through the input line for line, anyway, then why don't you simply read the file (or whatever) a line at a time and process it as you read it, rather than loading the entire thing at once?

Similar Messages

  • Plz help me with this data insertion code

    Hi,
    I am listing a code below ,I am able to insert only one row of value.
    Then i get SQLException.General Exception and a Lock record MSAccess file is generated where .mdb file is stored.
    public void throwtodatabase()
    String gameid;
    ResultSet rs=null;
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con;
    con=DriverManager.getConnection ("jdbc:odbc:MyData","","");
    Statement stat3=con.createStatement();
    rs=stat3.executeQuery("select * from sudoko");
    while (rs.next()) {
    pctr=pctr+1;
    stat3.close();
    con.close();
    catch(Exception g)
    JFrame ob2=new JFrame();
    JOptionPane.showMessageDialog(ob2,g.toString(), "Message", JOptionPane.INFORMATION_MESSAGE);
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con;
    con=DriverManager.getConnection ("jdbc:odbc:MyData","","");
    gameid="G00"+String.valueOf(pctr);
    PreparedStatement stat=null;
    for (int t1=1;t1<=9;t1++) {
    for (int t2=1;t2<=9;t2++) {
    stat=con.prepareStatement("Insert into Sudoko(gameid,row,col,val) values(?,?,?,?)");
    stat.setString(1,gameid);
    stat.setString(2,String.valueOf(t1));
    stat.setString(3,String.valueOf(t2));
    stat.setString(4,String.valueOf(array_map[t1][t2]));
    stat.execute();
    con.close();
    catch(Exception xd)
    JFrame ob2=new JFrame();
    JOptionPane.showMessageDialog(ob2,xd.toString(), "Message", JOptionPane.INFORMATION_MESSAGE);
    }Plz help.Thanx in advance.

    Have this stacktrace
    java.sql.SQLException: General error
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbc.SQLExecute(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeUpdate(Unknown Source)
    at Sudoko.throwtodatabase(Sudoko.java:1120)
    at Sudoko.generate_random_boards(Sudoko.java:1064)
    at Sudoko.actionPerformed(Sudoko.java:205)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow
    n Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
    ce)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

  • Error while running java code

    Hi
    I have requirement of converting word document to PDF/A. Iam using the APIs provided by Livecycle ES. I tried to implement the requirement by creating a java program with the jar files provided. But iam getting the following error. Can anyone plz help me?
    ALC-PDG-1000-000: com.adobe.livecycle.generatepdf.client.ConversionException: ALC-PDG-001-000-Conversion failed because of an exception.
    Causing exception message : Remote EJBObject lookup failed for 'ejb/Invocation'; nested exception is:
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    Caused by: java.rmi.RemoteException: Remote EJBObject lookup failed for 'ejb/Invocation'; nested exception is:
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.initialise(EjbMessageDispatcher. java:90)
    at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.doSend(EjbMessageDispatcher.java :119)
    at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispat cher.java:57)
    at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
    at com.adobe.livecycle.generatepdf.client.GeneratePdfServiceClient.createPDF(GeneratePdfServ iceClient.java:172)
    at Converttopdfa.main(Converttopdfa.java:44)
    Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
    at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
    at javax.naming.InitialContext.lookup(Unknown Source)
    at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.initialise(EjbMessageDispatcher. java:84)
    ... 5 more
    Error OCCURRED: ALC-PDG-001-000-Conversion failed because of an exception.
    Causing exception message : Remote EJBObject lookup failed for 'ejb/Invocation'; nested exception is:
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    at com.adobe.livecycle.generatepdf.client.GeneratePdfServiceClient.createPDF(GeneratePdfServ iceClient.java:194)
    at Converttopdfa.main(Converttopdfa.java:44)

    XML reading program<br /><br />package com.parser;<br />import static org.w3c.dom.Node.ATTRIBUTE_NODE;<br />import static org.w3c.dom.Node.CDATA_SECTION_NODE;<br />import static org.w3c.dom.Node.COMMENT_NODE;<br />import static org.w3c.dom.Node.DOCUMENT_TYPE_NODE;<br />import static org.w3c.dom.Node.ELEMENT_NODE;<br />import static org.w3c.dom.Node.ENTITY_NODE;<br />import static org.w3c.dom.Node.ENTITY_REFERENCE_NODE;<br />import static org.w3c.dom.Node.NOTATION_NODE;<br />import static org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE;<br />import static org.w3c.dom.Node.TEXT_NODE;<br /><br />import java.io.IOException;<br />import java.io.StringReader;<br />import java.util.ArrayList;<br />import java.util.HashMap;<br /><br />import javax.xml.parsers.DocumentBuilder;<br />import javax.xml.parsers.DocumentBuilderFactory;<br />import javax.xml.parsers.ParserConfigurationException;<br /><br />import org.w3c.dom.Document;<br />import org.w3c.dom.DocumentType;<br />import org.w3c.dom.Node;<br />import org.w3c.dom.NodeList;<br />import org.w3c.dom.Text;<br />import org.xml.sax.InputSource;<br />import org.xml.sax.SAXException;<br /><br />public class MainClass {<br />     <br />     HashMap map = new HashMap();<br />     ArrayList a = new ArrayList(10);<br />  public static void main(String args[]) {<br />    DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();<br />    builderFactory.setNamespaceAware(true);       // Set namespace aware<br />    builderFactory.setValidating(true);           // and validating parser feaures<br />    builderFactory.setIgnoringElementContentWhitespace(true); <br />    <br />    DocumentBuilder builder = null;<br />    try {<br />      builder = builderFactory.newDocumentBuilder();  // Create the parser<br />    } catch(ParserConfigurationException e) {<br />      e.printStackTrace();<br />    }<br />    Document xmlDoc = null;<br /><br />    try {<br />      xmlDoc = builder.parse(new InputSource(new StringReader(xmlString1)));<br /><br />    } catch(SAXException e) {<br />      e.printStackTrace();<br /><br />    } catch(IOException e) {<br />      e.printStackTrace();<br />    }<br />    DocumentType doctype = xmlDoc.getDoctype();       <br />    if(doctype == null) {                             <br />      System.out.println("DOCTYPE is null");<br />    } else {                                          <br />      System.out.println("DOCTYPE node:\n" + doctype.getInternalSubset());<br />    }<br /><br />    System.out.println("\nDocument body contents are:");MainClass m = new MainClass();<br />    m.listNodes(xmlDoc.getDocumentElement(),"");         // Root element & children<br />    <br />    m.abc();<br />  }<br />   public  void abc(){<br />        System.out.println("++++"+a.size());<br />        <br />        for(int i=0; i<a.size();i+=2){<br />                 map.put(a.get(i), a.get(i+1));<br />                 <br />                 <br />                 //map.put(i, i+1);<br />                 <br />                 //map.put(a.get(i), a.get(i+1));<br />            }  <br />        <br />        System.out.println("Map"+map.toString());<br />           <br />        <br />        }<br />  <br />  private void listNodes(Node node, String indent) {<br />     try{<br />          <br />       String nodeName = node.getNodeName();<br />   //System.out.println(indent+" Node: " + nodeName);<br />   // if(nodeName == "id")<br />    short type = node.getNodeType();<br />    <br />   //System.out.println(indent+" Node Type: " + nodeType(type));<br />    if(type == TEXT_NODE){<br />         <br />         <br />//         System.out.println(indent+" Node is: "+(node).getParentNode().getNodeName());<br />         if((node).getParentNode().getNodeName()== "id"){<br />              //System.out.println(indent+" Node is: "+(node).getParentNode().getNodeName());<br />              System.out.println(indent+" key is: "+((Text)node).getWholeText());<br />              a.add(((Text)node).getWholeText());<br />         }<br />         if((node).getParentNode().getNodeName()== "val"){<br />              //System.out.println(indent+" Node is: "+(node).getParentNode().getNodeName());<br />              System.out.println(indent+" value is: "+((Text)node).getWholeText());<br />              a.add(((Text)node).getWholeText());<br />         }<br />         <br />         <br />    }<br />    <br />    NodeList list = node.getChildNodes();       <br />    if(list.getLength() > 0) {                  <br />     // System.out.println(indent+" Child Nodes of "+nodeName+" are:");<br />      for(int i = 0 ; i<list.getLength() ; i++) {<br />        listNodes(list.item(i),indent+"  ");     <br />      }<br />     <br />       <br />    }      <br />     } catch(Exception e){<br />          e.printStackTrace();<br />     }<br />  }<br /><br />  static String nodeType(short type) {<br />    switch(type) {<br />      case ELEMENT_NODE:                return "Element";<br />      case DOCUMENT_TYPE_NODE:          return "Document type";<br />      case ENTITY_NODE:                 return "Entity";<br />      case ENTITY_REFERENCE_NODE:       return "Entity reference";<br />      case NOTATION_NODE:               return "Notation";<br />      case TEXT_NODE:                   return "Text";<br />      case COMMENT_NODE:                return "Comment";<br />      case CDATA_SECTION_NODE:          return "CDATA Section";<br />      case ATTRIBUTE_NODE:              return "Attribute";<br />      case PROCESSING_INSTRUCTION_NODE: return "Attribute";<br />    }<br />    return "Unidentified";<br />  }<br /><br />  static String xmlString ="<?xml version=\"1.0\"?>" +<br />      "  <!DOCTYPE address" +<br />      "  [" +<br />      "     <!ELEMENT address (buildingnumber, street, city, state, zip)>" +<br />      <br />      "     <!ELEMENT buildingnumber (#PCDATA)>" +<br />      "     <!ELEMENT street (#PCDATA)>" +<br />      "     <!ELEMENT city (#PCDATA)>" +<br />      "     <!ELEMENT state (#PCDATA)>" +<br />      "     <!ELEMENT zip (#PCDATA)>" +<br />      "  ]>" +<br />      "" +<br />      "  <address>" +<br />      "    <buildingnumber> 29 </buildingnumber>" +<br />      "    <street> South Street</street>" +<br />      "    <city>Vancouver</city>" +<br />      "" +<br />      "    <state>BC</state>" +<br />      "    <zip>V6V 4U7</zip>" +<br />      "  </address>";<br />  <br />  static String xmlString1 ="<?xml version=\"1.0\"?>" +<br />  "  <!DOCTYPE retrCtx" +<br />  "  [" +<br />  <br />    <br />  "     <!ELEMENT retrCtx (id, val)>" +<br />  <br />  "     <!ELEMENT id (#PCDATA)>" +<br />  "     <!ELEMENT val (#PCDATA)>" +<br />  "       ]>" +<br />  "" +<br />  "<retrCtx ver = '1'>" +<br />  "  <item_map type='std'>" +<br />  "    <item>" +<br />  "    <id>rtrId</id>" +<br />  "    <val>00993236327</val>" +<br />  "    </item>" +<br />  "    <item>" +<br />  "    <id>rtrId2</id>" +<br />  "    <val>009932363278</val>" +<br />  "    </item>" +<br />  "  </item_map> " +<br />  "  <item_map type='std'>" +<br />  "    <item>" +<br />  "    <id>rtrId3</id>" +<br />  "    <val>00993236329</val>" +<br />  "    </item>" +<br />  "    <item>" +<br />  "    <id>rtrId4</id>" +<br />  "    <val>009932363210</val>" +<br />  "    </item>" +<br />  "  </item_map> " +<br />  "  </retrCtx>";<br />}

  • Error in a JAVA Code

    Dear Experts,
    I am trying toimplement a JAVA code in SAP NWDS (NetWeaver Develope Studio) and i have imported the necessary jar files also. However there are some errors that I am not able to solve. Below is the JAVA code that i am using
    package JAVAinXSLT;
    import com.sap.aii.mapping.api.AbstractTransformation;
    import com.sap.aii.mapping.api.StreamTransformation;
    import com.sap.aii.mapping.api.StreamTransformationException;
    import java.util.*;
    import java.text.*;
    import com.sap.aii.mapping.api.TransformationInput;
    public class Email extends AbstractTransformation
              public static String getFromEmail(TransformationInput in)throws StreamTransformationException
                        try {
                                  // Read Import Parameters
                               String paramFrom = in.getInputParameters().getString("PARAM_FROM");
                               return paramFrom;
                        catch (Throwable throwable)
                               throwable.printStackTrace();
              public static String getToEmail(TransformationInput in)throws StreamTransformationException
                        try
                                  // Read Import Parameters
                                  String paramTo = in.getInputParameters().getString("PARAM_TO");
                                  return paramTo;
                        catch (Throwable throwable)
                               throwable.printStackTrace();
    The errors that I am getting are:
    1) ERROR: The type Email must implement the inherited abstract method AbstractTransformation.transform(TransformationInput, TransformationOutput)
    This is at public class Email extends AbstractTransformation
    2) ERROR: This method must return a result of type String
    At line public static String getFromEmail(TransformationInput in)throws StreamTransformationException
    3) ERROR: This method must return a result of type String
    At the line public static String getToEmail(TransformationInput in)throws StreamTransformationException
    There seems to be error in declaration.....but I am not able to solve it. So please help me out here
    Thanks,
    Abhishek.

    Hi,
    Refer the URL :http://help.sap.com/javadocs/pi/SP3/xpi/com/sap/aii/mapping/api/AbstractTransformation.html
    regards,
    ganga

  • XPathFactory error in embedded Java code

    Hi,
    I'm getting the following error when executing embedded Java code which does an XPath expression. Does anyone know why this is happening? Thanks.
    [2006/03/13 17:55:22] "{http://schemas.oracle.com/bpel/extension}bindingFault" has been thrown. less
    <bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    <part name="summary">
    <summary>Operation failed!; nested exception is: java.lang.IllegalArgumentException: XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException: No XPathFctory implementation found for the object model: http://java.sun.com/jaxp/xpath/dom</summary>
    </part>
    <part name="detail">
    <detail>java.lang.IllegalArgumentException: XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException: No XPathFctory implementation found for the object model: http://java.sun.com/jaxp/xpath/dom</detail>
    </part>
    </bindingFault>

    Hi,
    Refer the URL :http://help.sap.com/javadocs/pi/SP3/xpi/com/sap/aii/mapping/api/AbstractTransformation.html
    regards,
    ganga

  • Can anybody help on sending mail through Java Code

    I am trying to send the mail using the java code and I am unable to do it. My code is
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.text.*;
    public class EmailExample {
    public static void main(String[] args)
    Socket smtpSocket;
    DataOutputStream os;
    BufferedReader is;
    Date dDate = new Date();
    DateFormat dFormat = DateFormat.getDateInstance(DateFormat.FULL,Locale.US);
    try
    smtpSocket = new Socket("www.gmail.com",80);
    os = new DataOutputStream(smtpSocket.getOutputStream());
    is = new BufferedReader(new InputStreamReader(smtpSocket.getInputStream()));
    System.out.println("Hi How is this?");
    os.writeBytes("HELLO\r\n");
    // You will add the email address that the server
    // you are using know you as.
    os.writeBytes("MAIL From: <[email protected]>\r\n");
    // Who the email is going to.
    os.writeBytes("RCPT To: <[email protected]>\r\n");
    //IF you want to send a CC then you will have to add this
    //os.writeBytes("RCPT Cc: <[email protected]>\r\n");
    // Now we are ready to add the message and the
    // header of the email to be sent out.
    os.writeBytes("DATA\r\n");
    os.writeBytes("X-Mailer: Via Java\r\n");
    os.writeBytes("DATE: " + dFormat.format(dDate) + "\r\n");
    System.out.println("DATE: " + dFormat.format(dDate) + "\r\n");
    os.writeBytes("From: Me <[email protected]>\r\n");
    os.writeBytes("To: YOU <[email protected]>\r\n");
    //Again if you want to send a CC then add this.
    //os.writeBytes("Cc: CCDUDE <[email protected]>\r\n");
    //Here you can now add a BCC to the message as well
    //os.writeBytes("RCPT Bcc: BCCDude<[email protected]>\r\n");
    String sMessage = "Your subjectline here";
    os.writeBytes("Subject: Your subjectline here\r\n");
    os.writeBytes(sMessage + "\r\n");
    os.writeBytes("\r\n.\r\n");
    os.writeBytes("QUIT\r\n");
    // Now send the email off and check the server reply.
    // Was an OK is reached you are complete.
    String responseline;
    while((responseline = is.readLine())!=null)
    {   System.out.println(responseline);
    if(responseline.indexOf("Ok") != -1)
    break;
    } catch (IOException e) {
    e.printStackTrace();
    It is compiling and runnung properly. Please Help me on this.
    Thanks.
    Satya.

    You're mishandling the responses. You terminate if you don't get an "Ok" string, but that's not how success is defined - you should get a 200 code back, typically with an "OK" (not caps) message.
    It doesn't help that you're ignoring all of the server output after each command, so you never find out if anything goes wrong.
    You're also reinventing a wheel. The JavaMail API exists for this: http://java.sun.com/products/javamail/

  • Error in embedding java code in Bpel process

    I am calling one of the java snippet in my process which in turn uses the files from some jars.
    But I am getting error :
    <2006-11-07 12:08:51,227> <ERROR> <default.collaxa.cube.engine.bpel> BPELExecution
    java.lang.ExceptionInInitializerError
         at bpel.p0.ExecLetBxExe0.execute(ExecLetBxExe0.java:35)
         at com.collaxa.cube.engine.ext.wmp.BPELXExecWMP.__executeStatements(BPELXExecWMP.java:52)
         at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:188)
         at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3408)
         at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1836)
         at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:166)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:252)
         at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5438)
         at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1217)
         at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:511)
         at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:335)
         at ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.handleInvoke(ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.java:1796)
         at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:125)
         at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
         at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
         at com.evermind.server.ejb.MessageDrivenBeanInvocation.run(MessageDrivenBeanInvocation.java:123)
         at com.evermind.server.ejb.MessageDrivenHome.onMessage(MessageDrivenHome.java:755)
         at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:928)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.ClassCastException
         at com.misys.eqplus.framework.management.instrumentation.ManagementEvent.<clinit>(ManagementEvent.java:36)
         ... 22 more
    I am putting the jar files in my
    BPEL_INF flder
    and entering it in this in C:\OraBPELPM_1integration\orabpel\domains\default\config\domain
    properties file in C:\OraBPELPM_1\integration\orabpel\domains\default\config
    ear file in C:\OraBPELPM_1\integration\orabpel\system\appserver\oc4j\j2ee\home\applications
    Please help me

    Hello Santosh,
    Are you importing the used java classes using <bpelx:exec import="classname"/>
    Regards,
    Melvin

  • Need help getting scrollbar from design to code

    First off id like to say I'm VERY NEW to coding I know the basics of CSS and I even less of flash. But im willing to learn anything iv only been doing this for 3 months.
    i have CS5 master colection
    ok Here is my design for the cliant's site
    the part im having trouble with is the gallery on the left.
    i sent the the scrollbar to flash Catalyst CS5. but then i could not find out how to make my custom scrollbar work in dreamweaver so i sent the whole gallery. then i ran in to the problem of
    how do i make the gallery control which embedded youtube video is going to play.
    i would like to just do it with out making the whole gallery a swf file.
    so in the most simplest terms i would like a custom designed scrollbar on the left side of my gallery div
    here is what i have uploaded to my test file on the back end of the quick version of his site http://http://resettheus.com/Test/Big_Gov.html
    plz help even if you could just point me to a tutorial that would be great.
    thank you

    thank you for the help JTANNA let me try to be a little more clear (this is y i never post on these things i never say the right thing)
    this is what i would like the site gallery to look like
    the scrollbar (B) is one of those black papper clips and the gallery (A)is just going to be thumbnails linked to a iframe that will be youtube videos
    so i re worked the CSS code from what i posted earlier to somthing like this (im not on my work comp with the sntax at hand)
    <div class=player_gallery>
         <div class=gallery_header>Video Galler</div>
         <div style="width:24px; height:415px;">   was hoping to put the scrollbar (B) here    </div>
         <div style="width:226px: height:auto;">
                   <a href="http://www.youtube.com/embed/o5gEceNyp0M" target="player">
                   <img src="Images/Markets-Exploitation-or-Empowerment.jpg" width="82px" height="50px"/>
                   <p>Markets Exploitation or Empowerment</p></a>
                        </div>
    something like that. i know that i have things wrong in there but i hope from this post and my last post i can get the answer im looking for
    thanks again

  • Need help in writing a small java code

    Hi,
    I have a small requirement where I need write a small java code. I am thinking of using array. Please suggest if you know the solution:
    1. Need to compare user logon id is preset in the lookup table or not.
    2. If user id present in the lookup then send type "A" mail
    3. If user id in not present in the lookup then send type "B" email.
    Please suggest.
    Thanks,
    Kalpana.

    use this code . you have to pass userlogin and lookup name
    Public String GetEmail(String UserLogin,String lookupcode)
    String email;
    try{
    tcLookupOperationIntf lookupIntf = Platform.getService(tcLookupOperationIntf.class);
    HashMap<String, String> lookupValues = getLookupHashMap(lookupIntf, lookupCode);
    String found = lookupValues.get(UserLogin);
    if (found!=null) email= "EMAIL A";
    else
    email= "EMAIL B";
    }catch(Exception e){}
    return email;
    private HashMap<String, String> getLookupHashMap(tcLookupOperationsIntf lookupOperationsIntf, String lookupCode)throws tcAPIException,tcInvalidLookupException,tcColumnNotFoundException {
    HashMap<String, String> lookupMap = new HashMap<String, String>();
              tcResultSet resultLookupHashMap = lookupOperationsIntf
                        .getLookupValues(lookupCode);
              int countResultLookupHashMap = resultLookupHashMap.getRowCount();
    if (countResultLookupHashMap > 0) {
                   for (int i = 0; i < countResultLookupHashMap; i++) {
                        resultLookupHashMap.goToRow(i);
                        lookupMap.put(resultLookupHashMap..getStringValue("Lookup Definition.Lookup Code Information.Code Key"),
    resultLookupHashMap.getStringValue("Lookup Definition.Lookup Code Information.Decode"));
    return lookupMap;
    }

  • How to get repository connection in java code

    Hi!
    I have a method in server-side java code. This is get a repository connection from Weblogic pool.
    private DataSource getDataSource() throws WavesetException {
    DataStore ds = Server.getServer().getRepository().getPrimaryDataStore();
    DataSource dataSource = null;
    if (ds instanceof RelationalDataStore) {
    dataSource = ((RelationalDataStore)ds).getDataSource();
    return dataSource;
    I would like same this, but in the client side. After connection (SessionFactory.getSession...) I get a RemoteSession object.
    How can I get a database (repository) connection?
    Thanks,
    Attila

    com.waveset.util.Util.setWavesetHome("D:\\Tomcat 5.0\\webapps\\idm"); // if you are running this java code out side idm app
    Session session = SessionFactory.getSession("configurator", new EncryptedData("configurator"));
    LighthouseContext lh = session;
    WSUser user = (WSUser) lh.getObject(Type.USER, "Testuser");
    OR use below code
         System.setProperty("waveset.home","D:\\Tomcat 5.0\\webapps\\idm");
    // here we find the path
    LighthouseContext lighthouseContext = new com.waveset.server.InternalSession();
    WSUser user = (WSUser) lighthouseContext.getObject(Type.USER, "Testuser");

  • How to get MAC address using java code

    hi friends
    please write me, How can I get MAC Address of local machine using java code.I don't want to use JNI.
    Please reply me. Its urgent for me
    Thanks in advance
    US

    You have several ways under *nix
    ifconfig -a | grep HWwill output something like
    eth0      Lien encap:Ethernet  HWaddr 00:11:FF:74:FF:B4combined with Runtime.getRuntime().exec("")and Process.getInputStream()you should be able to read it easilly.
    Under Windows (and Linux of course) try jpcap (http://sourceforge.net/projects/jpcap)
    You can also use jnative as a generic tool (http://sourceforge.net/projects/jnative)
    --Marc (http://jnative.sf.net)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Plz help:getting latest status from the seq num

    hi to every one,
    i want the latest status for corresponding sequential no
    table(staus table zstatus)
    zstat(status)  zseq(seq number)
    dan             1
    dan             2
    dan             3
    cann            1
    cann            2
    i want to fetch latest status ie dan which is having seq no 3.ok
    plz help me in this issue.

    Hello Rajkumar,
    U can try this code.
    data: itab like zstatus occurs 0 with header line.
    Select * into itab where zstat = 'DAN'.
    Sort itab by zseq desending.
    read table itab index 1.
    I tink this code will solve ur problem.
    Regards,
    Vasanth

  • Getting Exception while using JAVA code in XI

    Hi,
    We are using a JAVA code for encryption decryption, We have imported jce1_2_2.jar, local_policy.jar, sunjce_provider.jar and US_export_policy.jar .
    Code is giving exception ":  java.lang.SecurityException: The provider SunJCE may not be signed by a trusted party"
    Same code is running fine in outside XI means in Eclipse(JAVA EDITOR).
    Let me know how to resolve this issue.
    Thanks

    Hi vin,
    >> Same code is running fine in outside XI means in Eclipse(JAVA EDITOR).
    I also faced the same issue.
    The reason may be with XIs limitations. The keys used to encrypt and decrypt should have key length supported by XI. Also, the algorithm used must be supported by XI.
    Try Storing the keys inside TrustedCAs in Key storage.
    Hope this helps.
    Regards,
    Uma

  • HELP NEED FOR INVOKING THE JAVA CODE INSIDE JSP

    Hello,
    any one knows how to Write a java code inside the .jsp files... please if any one knows it please ....help me .....

    hi .
    Use scriptlets , for example :
    <html>
    <%
    int x;
    for(x=1;x<=5;x++)
    out.println(x);
    %>
    </html>

  • How to get component path in java code

    Hi everybody,
    I have my custom component with custom folders with pictures. My custom component works with pictures. I need to know PATH to this custom component in my java code.
    Thank you
    Martin

    Check out methods in the following classes: LegacyDirectoryLocator and DirectoryLocator.
    Jonathan
    http://jonathanhult.com

Maybe you are looking for

  • Web browsers not showing airplay

    So strange. The airplay button has mysteriously disappeared from anything I try to watch through a web browser. iTunes works so I know I'm connected. iPad and iPhones work. Just the browsers! I also can't seem to figure out how to get the airplay but

  • 5512 all in one not printing black ink

    My Photosmart 5512 isn't printing black ink. It also won't align which is odd.  It doesn't "see" the alignment page when I try to scan it.   I have done all the things that the HP troubleshoot site said (test pages, cleaning printheads, quality repor

  • SWF security settings seem to have no effect

    Here is the location to which I publish my Captivate 5 output. And here is how my flash security settings are configured. I've included the publishing location in the trusted locations collection. After publishing (html output option and swf option c

  • Password protected xls

    Hi. Exist some plug-in to numbers to open password protected xls files? Thanks.

  • How to Change Delivery quantity after creating Transfer order

    Hi I created a transfer order for my delivery with LT03. There is already non-ordered quantity in my delivery. delivery quantity is 5 but transfer order's quantity is 4. i want to change my delivery quantity without confirming the transfer order. Is