Error in characters method of Paser

I have written an XML parser using the org.xml and javax.xml libraries. My parser class extends the org.xml.sax.helpers.DefaultHandler class.
In my characters(char[] ch, int start, int length) method I am trying to build up a string containing the characters from start to length - 1 of the array ch.
This is the code:
StringBuffer buffer = new StringBuffer(length);
String content = "";
for(int i=start; i<start+length; i++)
{  buffer.append(ch[i]);
content = buffer.toString().trim();
This works most of the time but sometimes an error occurs and the length figure is wrong.
Say if I had an XML file with the following section:
<method>
<name>SessionKey()</name>
</method>
Instead of the buffer getting 1 string - namely "SessionKey()"; I am receiving 2 strings - "Sessio" and "nKey()".
When I do a check and get the program to print out the value of length it is giving me 2 cases of the length being 6 instead of one case when it is 12..
Can anybody see where my problem might be?
Thanks in advance for the help!
Wallace

Well, you are certainly building the StringBuffer the hard way. Why not justbuffer.append(ch, start, length);? But your real problem is not taking into account the possibility that the parser may break a text node into more than one piece and call the characters() method for each of those pieces. Create your StringBuffer in the startElement() method, append to it in the characters() method, and clean it up the endElement() method.

Similar Messages

  • SAX-ContentHandler -characters methods gets wrong int end sometimes

    Hi
    I am having problems with SAX-ContentHandler -characters methods. It gets wrong int end values time to time ---means that it chops up my strings when it reads large XML files.
    Is there any way to correct it? Any suggestions will be very helpful. Thank you.
    My code is below.
    public class MyContentHandlerDemo extends Thread implements ContentHandler{
    private ArrayList hitList = new ArrayList(1000);
    private ArrayList hitId = new ArrayList(1000);
    private ArrayList hspNum = new ArrayList(1000);
    private ArrayList hitLength = new ArrayList(1000);
    private ArrayList queryFrom = new ArrayList(1000);
    private ArrayList hspith = new ArrayList(1000);
    private ArrayList idith = new ArrayList(1000);
    private String localname;
    private Locator locator;
    private int know=1;
    private int knowid=1;
    private int knowlength=1;
    private int knowhitlength=1;
    private int knowhspnum=1;
    private int knowhspnumadd=1;
    private int knowhspnumlength=1;
    private int knowquery=1;
    private int knowqueryfrom=1;
    private int processon =1;
    private int processcount = 0;
    private int hspithnum=0;
    private int idithnum=0;
    String allstr;
    String addseq;
    char [] allchar;
    int icount=0;
    int lengthsum=0;
    public synchronized void setDocumentLocator(Locator locator) {
    System.out.println(" * setDocumentLocator() called");
    // We save this for later use if desired.
    this.locator = locator;
    public synchronized void startDocument() throws SAXException {
    System.out.println("Parsing begins...");
    public synchronized void endDocument() throws SAXException {
    try {
    FileOutputStream outputfileDemo;
    PrintStream printoutDemo;
    outputfileDemo= new FileOutputStream("apoe500.fasta");
    printoutDemo=new PrintStream(outputfileDemo);
    FileOutputStream reSaxfile;
    PrintStream printoutReSax;
    reSaxfile= new FileOutputStream("reSax.txt");
    printoutReSax=new PrintStream(reSaxfile);
    int m = hitList.size();
    for (int k=0; k < m; k++) {
    int comp = (((hitList.get(k)).toString()).length());
    String strComp = Integer.toString(comp);
    String hitleng = (hitLength.get(k)).toString();
    if(strComp.compareTo(hitleng)!=0)
    {System.out.println("Warning: Length is different at hit number (-1) " + hitId.get(k));}
    for (int l=0; l < hspith.size(); l++){
    printoutReSax.println((hspith.get(l)).toString());
    outputfileDemo.close();
    printoutDemo.close();
    reSaxfile.close();
    printoutReSax.close();
    } catch (IOException e) {
    System.out.println("IOException errors");
    System.out.println("...Parsing ends.");
    public synchronized void processingInstruction(String target, String data)
    throws SAXException {
    //System.out.println("PI: Target:" + target + " and Data:" + data);
    public synchronized void startPrefixMapping(String prefix, String uri) {
    //System.out.println("Mapping starts for prefix " + prefix +
    // " mapped to URI " + uri);
    public synchronized void endPrefixMapping(String prefix) {
    //System.out.println("Mapping ends for prefix " + prefix);
    public synchronized void startElement(String namespaceURI, String localName,
    String rawName, Attributes atts)
    throws SAXException {
    localname =localName;
    int which =100;
    if (localname.equals("Hit_id")) {which = 0;}
    if (localname.equals("Hsp_num")) {which = 1;}
    if (localname.equals("Hsp_hseq")) {which = 2;}
    if (localname.equals("Hsp_align-len")) {which =3;}
    if (localname.equals("Hsp_query-from")) {which =4;}
    switch (which){
    case 0: knowid=0;
    //icount=icount+1;
    break;
    case 1: knowhspnum=0;icount=icount+1;
    break;
    case 2: know=0; //icount=icount+1;
    break;
    case 3: knowlength=0; //icount=icount+1;
    break;
    case 4: knowquery=0; //icount=icount+1;
    break;
    default: knowid=1; know=1; knowlength=1; knowhspnum=1;knowhitlength=1;knowquery=1;
    public synchronized void endElement(String namespaceURI, String localName,
    String rawName)
    throws SAXException {
    //System.out.println("endElement: " + localName + "\n");
    public synchronized void characters(char[] ch, int start, int end)
    throws SAXException {
    String s = new String(ch, start, end);
    int process=100;
    if (knowid==0) {process=0;}
    if (knowhspnum==0){process=1;}
    if (know==0) {process=2;}
    if (knowlength==0) {process=3;}
    if(knowquery==0){process=4;}
    switch(process){
    case 0:
    idithnum = idithnum+1;
    //int start1 = start;
    //int end1 = end;
    //char [] datahold1 = new char[end1];
    //for (int i=0;i<end1;i++){
    //datahold1=ch[start1+i];
    //warn if the length is differernt
    int n=s.length();
    allchar = new char[n+1];
    allchar[0] = '>';
    for (int i=0; i<n; i++){
    allchar[i+1]=s.charAt(i);
    allstr = new String(allchar);
    hitId.add(allstr);
    knowid=1;
    processon=1;
    break;
    case 1:
    hspNum.add(s);
    if ((s.compareTo(Integer.toString(1)))!=0){
    String hspallstr = new String (allstr.concat(s));
    hitId.add(hspallstr);
    knowhspnum=1;
    processon=1;
    break;
    case 2:
    hitList.add(s);
    know=1;
    processon=1;
    break;
    case 3:
    hitLength.add(s);
    knowlength=1;
    processon=1;
    break;
    case 4:
    queryFrom.add(s);
    knowquery=1;
    processon=1;
    break;
    default: processon=0;
    public synchronized void ignorableWhitespace(char[] ch, int start, int end)
    throws SAXException {
    String s = new String(ch, start, end);
    public synchronized void skippedEntity(String name) throws SAXException {

    I put some more codes in characters(). Then I got OutOfMemory: Java Heap Error.
    I probably have to write something in startElement() to limit input for characters() method.
    Could anyone help me? I need to limit inputs for charactes() in startElement().
    I added some codes in characters() method
    public synchronized void characters(char[] ch, int start, int end)
            throws SAXException {
            String s;
            StringBuffer stringbuf1;
            String finalstring1;
            int process=100;
            if (knowid==0) {process=0;}
            if (knowhspnum==0){process=1;}
            if (know==0) {process=2;}
            if (knowlength==0) {process=3;}
            if(knowquery==0){process=4;}
            switch(process){
            case 0:
            //s = new String(ch, start, end);
            idithnum = idithnum+1;
            //int start1 = start;
            //int end1 = end;
            //char [] datahold1 = new char[end1];
            stringbuf1 = new StringBuffer();
            while(ch!=null){
            stringbuf1.append(ch);   
            finalstring1 = stringbuf1.toString();
            //warn if the length is differernt
            int n=finalstring1.length();
            allchar = new char[n+1];
            allchar[0] = '>';
            for (int i=0; i<n; i++){
            allchar[i+1]=finalstring1.charAt(i);
            allstr = new String(allchar);
            hitId.add(allstr);
            knowid=1;
            processon=1;
            break;
            case 1:
            //s = new String(ch, start, end);
            stringbuf1 = new StringBuffer();
            while(ch!=null){
            stringbuf1.append(ch);   
            finalstring1 = stringbuf1.toString();
            hspNum.add(finalstring1);
            if ((finalstring1.compareTo(Integer.toString(1)))!=0){
            String hspallstr = new String (allstr.concat(finalstring1));
            hitId.add(hspallstr);
            //System.out.println(allstr);
            knowhspnum=1;
            processon=1;
            break;
            case 2:
            //s = new String(ch, start, end);
            //int lengthend=end;
            stringbuf1 = new StringBuffer();
            while(ch!=null){
            stringbuf1.append(ch);   
            finalstring1 = stringbuf1.toString();
            checklength:
            while(know==0){
            if(lengthend!=new Integer((hitLength.get(hitLength.size()-1)).toString())){
            String s1=new String(ch, start, end);
            s = (((hitList.get((hitList.size())-1)).toString()).concat(s1));
            hitList.add(s);know=1;
            break;
            hitList.add(finalstring1);
            processon=1;
            break;
            case 3:
            //s = new String(ch, start, end);
            stringbuf1 = new StringBuffer();
            while(ch!=null){
            stringbuf1.append(ch);   
            finalstring1 = stringbuf1.toString();
            hitLength.add(finalstring1);
            knowlength=1;
            processon=1;
            break;
            case 4:
            //s = new String(ch, start, end);
            stringbuf1 = new StringBuffer();
            while(ch!=null){
            stringbuf1.append(ch);   
            finalstring1 = stringbuf1.toString();
            queryFrom.add(finalstring1);
            knowquery=1;
            processon=1;
            break;
            default: processon=0;

  • Error(23,19): method getName(java.lang.String) not found in class javax.swi

    Hi , when i try to run my program, i keep getting the error msg:
    Error(23,19): method getName(java.lang.String) not found in class javax.swing.JTextField
    I have checked the java API and it inherits from the awt.Component class and should be accessible via the jtextfield.
    I have tried the following:
    trying to initailise the JTextField at the start.
    Using getName works if i use it within the loop after setting the name.
    Does anybody know what i am doing wrong please?
    public class clsMember extends JPanel implements ActionListener {
        private JButton jbtnLog;
        private String surname;
        private JTextField txtItem;
        public clsMember() {
            super(new SpringLayout());
            makeInterface();
            surname = txtItem.getName("Surname").toString();
    private void makeInterface() {
         //code omitted
               for (int i = 0; i < numpairs; i++) {
                JLabel l = new JLabel(strLabels, JLabel.LEADING);
    this.add(l);
    //if the array item is salutation create a combobox
    if (strLabels[i] == "Salutation") {
    jcomSalutation = new JComboBox(strSalutation);
    jcomSalutation.setSelectedIndex(0);
    this.add(jcomSalutation);
    } else {
    txtItem = new JTextField(10);
    l.setLabelFor(txtItem);
    txtItem.setName(strLabels[i].replaceAll(" ", "")); //this is where the label is set and if i do a system.out it shows fine. getName works here too.
    this.add(txtItem);
    //code omitted

    If i have a loop that creates the jtextfields such as
                    txtItem = new JTextField(10);
                    l.setLabelFor(txtItem);
                    txtItem.setName(strLabels.replaceAll(" ", ""));
    this.add(txtItem);How is it then possible to assign to a string the value of a *specific jtextfield*. Lets say that one of these JTextfields has the name surname.
    How is it possible for me to writeString surname = surnamejtextfield.getText();                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • **Error** Scene 1, Layer 'actions', Frame 1, Line 664: 1087: Syntax error: extra characters found after end of program.

    Scene 1, Layer 'actions', Frame 1, Line 664: 1087: Syntax
    error: extra characters found after end of program.
    I am new to importing classes and I have been practicing
    making a photo gallery. I am stuck and I want to know if someone
    can help me with the error I am getting.
    If it is convenient, you can download and test my .zip at
    www.dhtmlguy.freeservers.com
    Thanks in advance!

    thanks...the small stuff gets me every time.

  • Problem with SAX characters method

    Well I already used SAX on couple occasions, and there was no problems. But this time I have weird situation. characters method from handler class (SAX parser) does not handle XML element at once, but in two passes. For example:
    <some>this is some text</some>is handled by calling characters method TWICE (e.g. 'this is' and 'some text'). Is this normal behavior, or I do not form XML file properly? If it is normal, can anyone tell me how to detect this behavior?
    Every help is appreciated. Cheers!
    Message was edited by:
    zly

    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXPSAX3.html
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4316794
    http://forum.java.sun.com/thread.jspa?threadID=5130656&tstart=0

  • Error: "Function or method not supported." when using RF List Mode on NI 5673E

    Hi,
    I am trying to use the RF List Mode in NI RFSG 5673E. I tried running the sample code "RFSG Configuration List Frequency and Power Sweep.vi" but an error would show up:
    "Error: niRFSGCreateConfigurationList.VI <ERR> The LO reported the following error: Function or method not supported." with the error code: BFFA4239. 
    I also tried running other sample codes that contain the Configuration List VI's but the same error appeared. I am using NI RFSG 1.8.5.
    I would really appreciate any help on this. Thanks!

    Hello jdlabrador,
    I setup a 5673E here and tried to run the same example.  I did not encounter an error.
    Other reports I've found pertaining to this error usually involved a large number of steps - there was not enough space on the hardware to accommodate them.  The error text you're seeing is a little different in that it states that the Create Configuration List method isn't supported for the LO.
    Do each of the modules in your 5673E (5450, 5611, 5652) pass a self-test in MAX?  
    Have you associated the 5450 and 5652 with the 5611?
    Could you post a screenshot of the fully-expanded Devices and Interfaces tree from MAX?
    Since RFSG 1.9.5 is available, it may be a good first-step to upgrade to it.  
    Best regards,
    Matthew H.
    Applications Engineer
    National Instruments

  • Unexpected error occurred in method 'Put' , usage 'SPViewStateCache' - Exception

    I am getting below error when I am trying to upload a document to SP 2013 using CSOM (Of BizTalk)
    Unexpected error occurred in method 'Put' , usage 'SPViewStateCache' - Exception 'Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode<ERRCA0018>:SubStatus<ES0001>:
    The request timed out.. Additional Information : The client was trying to communicate with the server :net.tcp://XXXX:22233  
    at Microsoft.ApplicationServer.Caching.DataCache.ThrowException(ResponseBody respBody, RequestBody reqBody)    
    at Microsoft.ApplicationServer.Caching.DataCache.InternalPut(String key, Object value, DataCacheItemVersion oldVersion, TimeSpan timeout, 
    DataCacheTag[] tags, String region, IMonitoringListener listener)  
    Somewhere down the logs then another following error is recorded:
    <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Warning"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Channels.SocketConnectionAbort.aspx</TraceIdentifier><Description>SocketConnection
    aborted</Description><AppDomain>/LM/W3SVC/2/ROOT/81d12ab944d94c29a629fae7508ad28b-1-130481510403888701</AppDomain><Source>System.ServiceModel.Channels.SocketConnection/15268232</Source></TraceRecord>
    06/25/2014 08:29:23.88  w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    System.ServiceModel Error: 131075 : 
    06/25/2014 08:29:23.88  w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier><Description>Throwing
    an exception.</Description><AppDomain>/LM/W3SVC/2/ROOT/81d12ab944d94c29a629fae7508ad28b-1-130481510403888701</AppDomain><Exception><ExceptionType>System.Net.Sockets.SocketException, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The
    I/O operation has been aborted because of either a thread exit or an application request</Message><StackTrace>   at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()     at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Obje...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ct sender, SocketAsyncEventArgs eventArgs)     at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationAsyncFailure(SocketError socketError, Int32 bytesTransferred, SocketFlags flags)     at System.Net.Sockets.SocketAsyncEventArgs.CompletionPortCallback(UInt32
    errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)     at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)  </StackTrace><ExceptionString>System.Net.Sockets.SocketException
    (0x80004005): The I/O operation has been aborted because of either a thread exit or an application request</ExceptionString><NativeErrorCode>3E3</NativeErrorCode></Exception></TraceRecord>
    06/25/2014 08:29:23.88  w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    System.ServiceModel Error: 131075 : 
    06/25/2014 08:29:23.88  w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier><Description>Throwing
    an exception.</Description><AppDomain>/LM/W3SVC/2/ROOT/81d12ab944d94c29a629fae7508ad28b-1-130481510403888701</AppDomain><Exception><ExceptionType>System.TimeoutException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The
    socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout.</Message><StackTrace>   at System.ServiceModel.Channels.SocketConne...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ction.EndRead()     at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.HandleIO(IConnection connection)     at System.ServiceModel.Channels.ConnectionStream.IOAsyncResult.OnAsyncIOComplete(Object state)    
    at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs eventArgs)     at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationAsyncFailure(SocketError socketError, Int32 bytesTransferred, SocketFlags
    flags)     at System.Net.Sockets.SocketAsyncEventArgs.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)     at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode,
    UInt32 numBytes, NativeOverlapped* pOVERLAP)  </StackTrace><ExceptionString>System.TimeoutEx...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ception: The socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout. ---&amp;gt; System.Net.Sockets.SocketException:
    The I/O operation has been aborted because of either a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()     at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object
    sender, SocketAsyncEventArgs eventArgs)     --- End of inner exception stack trace ---</ExceptionString><InnerException><ExceptionType>System.Net.Sockets.SocketException, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The
    I/O opera...  
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...tion has been aborted because of either a thread exit or an application request</Message><StackTrace>   at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()     at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object
    sender, SocketAsyncEventArgs eventArgs)</StackTrace><ExceptionString>System.Net.Sockets.SocketException (0x80004005): The I/O operation has been aborted because of either a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()
        at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs eventArgs)</ExceptionString><NativeErrorCode>3E3</NativeErrorCode></InnerException></Exception></TraceRecord>
    06/25/2014 08:29:23.88  w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    System.ServiceModel Error: 131075 : 
    06/25/2014 08:29:23.88  w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier><Description>Throwing
    an exception.</Description><AppDomain>/LM/W3SVC/2/ROOT/81d12ab944d94c29a629fae7508ad28b-1-130481510403888701</AppDomain><Exception><ExceptionType>System.TimeoutException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The
    socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout.</Message><StackTrace>   at System.ServiceModel.Channels.StreamConne...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ction.EndRead()     at System.ServiceModel.Channels.SessionConnectionReader.OnAsyncReadComplete(Object state)     at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)     at System.Net.LazyAsyncResult.Complete(IntPtr
    userToken)     at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)     at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)     at System.ServiceModel.Channels.ConnectionStream.IOAsyncResult.OnAsyncIOComplete(Object
    state)     at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs eventArgs)     at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationAsyncFailure(SocketError socketError, Int32 bytesTransferred,
    SocketFlags flags)     at System.Net.Sockets.SocketAsyncEv...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...entArgs.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)     at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
     </StackTrace><ExceptionString>System.TimeoutException: The socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion
    of a longer timeout. ---&amp;gt; System.IO.IOException: The read operation failed, see inner exception. ---&amp;gt; System.TimeoutException: The socket was aborted because an asynchronous receive from the socket did not complete within the allotted
    timeout of 00:01:00. The time allotted to this operation may have b...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...een a portion of a longer timeout. ---&amp;gt; System.Net.Sockets.SocketException: The I/O operation has been aborted because of either a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()
        at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs eventArgs)     --- End of inner exception stack trace ---     at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult
    result)     at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.End(IAsyncResult result)     at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)     --- End of inner exception stack trace ---
        at System.Net.Security.NegotiateStream.EndRead(IAsyncResult asyncResult)     at Syst...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...em.ServiceModel.Channels.StreamConnection.EndRead()     --- End of inner exception stack trace ---</ExceptionString><InnerException><ExceptionType>System.IO.IOException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The
    read operation failed, see inner exception.</Message><StackTrace>   at System.Net.Security.NegotiateStream.EndRead(IAsyncResult asyncResult)     at System.ServiceModel.Channels.StreamConnection.EndRead()</StackTrace><ExceptionString>System.IO.IOException:
    The read operation failed, see inner exception. ---&amp;gt; System.TimeoutException: The socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may
    have been a port...  
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ion of a longer timeout. ---&amp;gt; System.Net.Sockets.SocketException: The I/O operation has been aborted because of either a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()
        at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs eventArgs)     --- End of inner exception stack trace ---     at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult
    result)     at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.End(IAsyncResult result)     at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)     --- End of inner exception stack trace ---
        at System.Net.Security.NegotiateStream.EndRead(IAsyncResult asyncResult)     at System.Service...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...Model.Channels.StreamConnection.EndRead()</ExceptionString><InnerException><ExceptionType>System.TimeoutException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The
    socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout.</Message><StackTrace>   at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult
    result)     at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.End(IAsyncResult result)     at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)</StackTrace><ExceptionString>System.TimeoutException:
    The socket was aborted because an asynchronous receive fr...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...om the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout. ---&amp;gt; System.Net.Sockets.SocketException: The I/O operation has been aborted because
    of either a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()     at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs
    eventArgs)     --- End of inner exception stack trace ---     at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)     at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.End(IAsyncResult result)  
      at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)</ExceptionString>...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...<InnerException><ExceptionType>System.Net.Sockets.SocketException, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The I/O operation has been aborted because of either a thread
    exit or an application request</Message><StackTrace>   at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()     at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs
    eventArgs)</StackTrace><ExceptionString>System.Net.Sockets.SocketException (0x80004005): The I/O operation has been aborted because of either a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()
        at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Ob...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ject sender, SocketAsyncEventArgs eventArgs)</ExceptionString><NativeErrorCode>3E3</NativeErrorCode></InnerException></InnerException></InnerException></Exception></TraceRecord>
    06/25/2014 08:29:23.88  w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    System.ServiceModel Error: 131075 : 
    06/25/2014 08:29:23.88  w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier><Description>Throwing
    an exception.</Description><AppDomain>/LM/W3SVC/2/ROOT/81d12ab944d94c29a629fae7508ad28b-1-130481510403888701</AppDomain><Exception><ExceptionType>System.TimeoutException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The
    socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout.</Message><StackTrace>   at System.ServiceModel.Channels.StreamConne...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ction.EndRead()     at System.ServiceModel.Channels.SessionConnectionReader.OnAsyncReadComplete(Object state)</StackTrace><ExceptionString>System.TimeoutException: The socket was aborted because an asynchronous receive from the
    socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout. ---&amp;gt; System.IO.IOException: The read operation failed, see inner exception. ---&amp;gt; System.TimeoutException:
    The socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout. ---&amp;gt; System.Net.Sockets.SocketException:
    The I/O operation has been aborted because of ei...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ther a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()     at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs
    eventArgs)     --- End of inner exception stack trace ---     at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)     at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.End(IAsyncResult result)  
      at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)     --- End of inner exception stack trace ---     at System.Net.Security.NegotiateStream.EndRead(IAsyncResult asyncResult)     at System.ServiceModel.Channels.StreamConnection.EndRead()
        --- End of inner exception stack trace ---     at System.ServiceModel.Chann...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...els.StreamConnection.EndRead()     at System.ServiceModel.Channels.SessionConnectionReader.OnAsyncReadComplete(Object state)</ExceptionString><InnerException><ExceptionType>System.IO.IOException, mscorlib, Version=4.0.0.0,
    Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The read operation failed, see inner exception.</Message><StackTrace>   at System.Net.Security.NegotiateStream.EndRead(IAsyncResult asyncResult)    
    at System.ServiceModel.Channels.StreamConnection.EndRead()</StackTrace><ExceptionString>System.IO.IOException: The read operation failed, see inner exception. ---&amp;gt; System.TimeoutException: The socket was aborted because an asynchronous
    receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this oper...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ation may have been a portion of a longer timeout. ---&amp;gt; System.Net.Sockets.SocketException: The I/O operation has been aborted because of either a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()
        at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs eventArgs)     --- End of inner exception stack trace ---     at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult
    result)     at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.End(IAsyncResult result)     at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)     --- End of inner exception stack trace ---
        at System.Net.Security.NegotiateStream.EndRead(IAsyncResult asyncRes...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ult)     at System.ServiceModel.Channels.StreamConnection.EndRead()</ExceptionString><InnerException><ExceptionType>System.TimeoutException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The
    socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout.</Message><StackTrace>   at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult
    result)     at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.End(IAsyncResult result)     at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)</StackTrace><ExceptionString>System.TimeoutException:
    The socket was aborted because ...  
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout. ---&amp;gt; System.Net.Sockets.SocketException: The I/O operation
    has been aborted because of either a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()     at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender,
    SocketAsyncEventArgs eventArgs)     --- End of inner exception stack trace ---     at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)     at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.End(IAsyncResult
    result)     at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transpor...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...tResult)</ExceptionString><InnerException><ExceptionType>System.Net.Sockets.SocketException, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The I/O operation has been
    aborted because of either a thread exit or an application request</Message><StackTrace>   at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()     at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object
    sender, SocketAsyncEventArgs eventArgs)</StackTrace><ExceptionString>System.Net.Sockets.SocketException (0x80004005): The I/O operation has been aborted because of either a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()
        at System.ServiceModel.Channels.SocketCo...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...nnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs eventArgs)</ExceptionString><NativeErrorCode>3E3</NativeErrorCode></InnerException></InnerException></InnerException></Exception></TraceRecord>
    06/25/2014 08:29:23.88  w3wp.exe (0x2308)                       
    0x20BC SharePoint Foundation         
    Monitoring                    
    nasq Verbose 
    Entering monitored scope (SPFileStreamManager.GetStreamInfo). Parent SPSqlClient
    183e9e9c-5ed6-e0aa-f49d-829231a7c856
    06/25/2014 08:29:23.88  w3wp.exe (0x2308)                       
    0x20BC SharePoint Foundation         
    Monitoring                    
    b4ly Verbose 
    Regards
    Ritu Raj
    When you see answers and helpful posts,
    please click Vote As Helpful, Propose As Answer, and/or Mark As Answer

    Problem with distributed cache connection, Check below
    http://www.dmcinfo.com/latest-thinking/blog/id/8657/fix-sharepoint-2013-distributed-cache-timeouts
    http://habaneroconsulting.com/insights/SharePoint-2013-Distributed-Cache-Bug#.U6p506Nn01s
    http://social.technet.microsoft.com/forums/sharepoint/en-US/fd3bca97-5d75-4a67-87ca-aac7bb5f6352/setup-spn-for-appfabric-distributed-cache-in-sharepoint-2013
    http://social.msdn.microsoft.com/Forums/en-US/317ef084-1174-4c4e-8d23-d1c56bd0db73/sharepoint-2013-workflows-keep-crashing-due-to-distributed-logon-token-cache-timeouts-cache-keeps?forum=sharepointadmin
    If this helped you resolve your issue, please mark it Answered

  • Portal runtime error exception ID: error in init method

    Hi Experts
    I am getting the portal runtime error http://<fqdn>:<port>/irj/portal,  can anybody suggest me what to do.
    "Portal runtime error.
    An exception occurred while processing your request. Send the exception ID to your portal administrator.
    Exception ID: 02:27_06/09/10_68650050"
    Here is the log file
    02:27_06/09/10_68650050
    [EXCEPTION]
    com.sapportals.portal.prt.component.PortalComponentException: Error in init method
    Component : com.sap.netweaver.coll.appl.ui.room.CollaborationDetailedNavigation
    at com.sapportals.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:251)
    at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.refresh(PortalComponentContextItem.java:271)
    at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.getContext(PortalComponentContextItem.java:316)
    at com.sapportals.portal.prt.component.PortalComponentRequest.getComponentContext(PortalComponentRequest.java:387)
    at com.sapportals.portal.pb.PageBuilder.createIviewProfile(PageBuilder.java:443)
    at com.sapportals.portal.pb.PageBuilder.createiView(PageBuilder.java:391)
    at com.sapportals.portal.pb.PageBuilder.createAndAddiViews(PageBuilder.java:233)
    at com.sapportals.portal.pb.PageBuilder.doOnNodeReady(PageBuilder.java:635)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:388)
    at com.sapportals.portal.pb.PageBuilder.handleEvent(PageBuilder.java:815)
    at com.sapportals.portal.prt.component.CachablePortalComponent.handleEvent(CachablePortalComponent.java:703)
    at com.sapportals.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:252)
    at com.sapportals.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:368)
    at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)
    at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:642)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:235)
    at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:523)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:412)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    Caused by: com.sapportals.portal.prt.core.broker.PortalComponentInstantiationException: Could not instantiate implementation class com.sapportals.portal.navigation.CollaborationNavTree of Portal Component com.sap.netweaver.coll.appl.ui.room.CollaborationDetailedNavigation because: Could not instantiate implementation class
    at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getInstanceInternal(PortalComponentItemFacade.java:269)
    at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getComponentInstance(PortalComponentItemFacade.java:160)
    at com.sapportals.portal.prt.core.broker.PortalComponentItem.getComponentInstance(PortalComponentItem.java:732)
    at com.sapportals.portal.prt.component.PortalComponentContext.getComponent(PortalComponentContext.java:103)
    at com.sapportals.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:242)
    ... 35 more
    Caused by: com.sapportals.portal.prt.runtime.PortalRuntimeException: [PortalApplicationItem._prepare]: com.sap.netweaver.coll.appl.ui.room
    at com.sapportals.portal.prt.core.broker.PortalApplicationItem.prepare(PortalApplicationItem.java:427)
    at com.sapportals.portal.prt.core.broker.PortalApplicationItem._refresh(PortalApplicationItem.java:507)
    at com.sapportals.portal.prt.core.broker.PortalApplicationItem.getCoreLoader(PortalApplicationItem.java:1360)
    at com.sapportals.portal.prt.core.broker.PortalComponentItem.getClassLoader(PortalComponentItem.java:569)
    at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getClassLoader(PortalComponentItemFacade.java:102)
    at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getInstanceInternal(PortalComponentItemFacade.java:228)
    ... 39 more
    Caused by: com.sapportals.portal.prt.runtime.PortalRuntimeException: [PortalApplicationItem._prepare]: com.sap.netweaver.bc.rf.service
    at com.sapportals.portal.prt.core.broker.PortalApplicationItem.prepare(PortalApplicationItem.java:427)
    at com.sapportals.portal.prt.core.broker.PortalApplicationItem.prepare(PortalApplicationItem.java:387)
    ... 44 more
    Caused by: com.sapportals.portal.prt.runtime.PortalRuntimeException: Exception during start of application: SAPJ2EE::library:signature_lib
    at com.sapportals.portal.prt.core.broker.SAPJ2EEApplicationItem.prepare(SAPJ2EEApplicationItem.java:323)
    at com.sapportals.portal.prt.core.broker.PortalApplicationItem.prepare(PortalApplicationItem.java:387)
    ... 45 more
    Caused by: com.sapportals.portal.prt.core.broker.SAPJ2EELibraryNotFoundException: Could not find Library SAPJ2EE::library:signature_lib
    at com.sapportals.portal.prt.core.broker.SAPJ2EEApplicationItem.prepare(SAPJ2EEApplicationItem.java:277)
    ... 46 more. . .
    Thanks in advance
    Uday

    Hi Tobias
    Thanks for your response, i can able to access /nwa. The trace file while is posted got from /nwa.
    I have restarted the portal. Can you please tell me where can we check the errors when portal started?
    Thanks in advance
    Uday

  • Error: The AcquireConnection method call to the connection manager failed with error code 0xC0202009 using DB2 connection

    I have a SSIS project that I am newly running on the SQL server (2005) .  It was previously run on my PC.  I am importing data from a DB2 server to the SQL server.
    I am in the SA group on the server
    My connection to DB2 works
    When open the package and run it in preview mode, I can retrieve the data.
    When I execute the package I get the below errors:
    [MIDAS OLE DB Source [1]] Error: The AcquireConnection method call to the connection manager "NGMDSPA.alharris" failed with error code 0xC0202009.
    [DTS.Pipeline] Error: component "MIDAS OLE DB Source" (1) failed validation and returned error code 0xC020801C.
    What I have already done that has not worked:
    The original Protection level was set to EncryptSensitiveWithPassword. 
    I have reset the Package Password.
    I have set the protection level to DontSaveSensitive
    I saved the package on the server and set a Package Password.
    I created a new package, set the Protection level to DontSaveSensitive, set a package password in a configuration file using the Package Configuration Wizard.
    Error continues

    Yes.  The Drivers are installed and I have a successfull connection.  I am trouble shooting the issue on the server in BIDS.  I can connect to the DB2 server via the Connectionmanager.  I can also preview the data in the OLE
    DB source connection.  Therefore I know that I have a proper connection
    If you're setting option as DontSaveSensitive then you need to pass the connection information from configuration file/ config table. Otherwise it wont be able to use it for connecting to your source/destination servers. This is the recommended way as it
    will enable you to change connection info at runtime.
    If you want connection info to persist you need to use protection level as EncryptSensitiveUsingUserKey or EncryptSensitiveUsingPassword and set a password.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Error calling a method of the tree control in BDC

    I'm connecting two systems Iplan(project management tool) with SAP PS using SAP XI.
    I've written an BDC(RFC) to assign people for the activity in an project(cj20n) it works fine in the foreground. But it doesn't work in the background.It doesn't give me error also.I've sap all authorization.
    When I connect with XI its throwing me an error "Error calling a method of the tree control" message type A (using the same user to connect r3). I believe something we should do prior handling the tree control in a BDC. IF any body come across this situation please let me know. your help is appreciated.
    Regards
    Anand

    BDCs over enjoy transactions do not get along together.  The containers and controls is more of a gui thing, and in background sometimes the BDC has a hard time with them.  I would suggest using the non-enjoy tcode instead, CJ20.
    Regards,
    Rich Heilman

  • BDC -  How we can identify errors in Transaction method?.

    Hi ,
    How we can identify errors in Transaction method?.
    Regards
    Nikhil V Kumar

    HI
    CALL TRANSACTION 'FK01' USING IT_BDCDATA MODE 'A'
                            UPDATE 'S'
                            MESSAGES INTO IT_MESSAGES.
    IF SY-SUBRC <> 0.
    PERFORM FORMAT_MESSAGES.
    form FORMAT_MESSAGES .
    DATA: L_MSG(100).
    LOOP AT IT_MESSAGES.
    CALL FUNCTION 'FORMAT_MESSAGE'
    EXPORTING
       ID              = IT_MESSAGES-MSGID
       LANG            = SY-LANGU
       NO              = IT_MESSAGES-MSGNR
       V1              = IT_MESSAGES-MSGV1
       V2              = IT_MESSAGES-MSGV2
       V3              = IT_MESSAGES-MSGV3
       V4              = IT_MESSAGES-MSGV4
    IMPORTING
       MSG             = L_MSG
    EXCEPTIONS
       NOT_FOUND       = 1
       OTHERS          = 2
    write:/ l_msg.
      endloop.
    endform.                    " FORMAT_MESSAGES
    HOPE THIS HELPS,
    PRIYA.

  • SAP workflow -SAP error WL210 -Error triggering default method for object &

    Hi Experts,
    User is encountered with the error message "Error triggering default method for object &" when he is performing approval action in SES workitem .
    Could you please advise me how to avoid this issue.
    Thanks in advance for your valuable help.
    Rajani
    Edited by: Rajani SAPABAP on Sep 13, 2011 4:50 PM

    Hi Rajani,
    I think that it's an authorization issue.
    Please check if u find which authorization object is violated in SU53.
    Regards,
    Asit

  • ERROR TRIGGERING DEFAULT METHOD FOR OBJECT (INCOMING INVOICE).

    When trying to open invoices in my ERP inbox to authorise I get the following message.
    ERROR TRIGGERING DEFAULT METHOD FOR OBJECT (INCOMING INVOICE).
    . There might be an authorisation issue. but i am not confirm.
    I have checked the authorisation in SU53 also.
    is it possible that there is some other reason for it.
    If so then what are they?
    please help.

    Hi Naval,
            Is it a custom business object....make sure that the status of all object components are set to Implemented or released..and  regenerate the Object...
    Thanks
    Srinivas

  • Error(400,8): method include(java.lang.String, boolean) not found in class

    I have uploaded my Application which was running fine in other IDE to jdev 10.1.3, when i compile the follwing error error in jsp page.
    Error(400,8): method include(java.lang.String, boolean) not found in class javax.servlet.jsp.PageContext
    My jsp code where error is shown is
    <jsp:include page="querySections/generation.jsp" flush="true">
                                            <jsp:param name="TSN" value="<%=strParamValue[1]%>"/>
                                            <jsp:param name="SectionID" value="<%=String.valueOf(lngSectionID)%>"/>
                                       </jsp:include>
    pl help me in solving this its urgent...
    Thanks & Regards
    Lakshmi

    Hi,
    code snippet looks okay and is identical with what JDeveloper generates.
    Frank

  • Job is failing with the following error- Error calling a method of the tree

    dear SDNers,
    my question is where do i need to look for error.
    Will this be an ABAP issue?
    Please guide
    DETAILS
    In SM37 when we see the job XYZ, we get the following details.
       Job                              Ln    Job CreatedB    Status          Start date     Start time      Duration(sec.)     Delay (sec.)
      XYZ                                                                    Canceled        16.11.2009    10:11:30                  9                         27
    When the job log is checked this , we get the below details.
    The job XYZ is failing with the following error.
    Date      Time     Class  No.   Message
    +----
    +----
    2009/11/16 05:03:01 | 00     516 | Job started
    2009/11/16 05:03:01 | 00     550 | Step 001 started (program RBDMON00, variant
    SBCI287, user ID ABCDEF)
    2009/11/16 05:03:03 | TREE_C 000 | Error calling a method of the tree control
    2009/11/16 05:03:03 | 00     518 | Job cancelled
    Equest your assistance in knowing where to find the error for this.
    I have no clue as to where and how i need to debug or where i should i be looking for error.
    In BD87, the selection screen paramters that are given are changed on date (from and to) and IDOC status 51,66,69 and 64 and the message type is "Öutbound interface of picked shipments"
    Please guide.
    Regards,
    SuryaD.
    Edited by: SuryaD on Nov 23, 2009 5:36 PM
    Edited by: SuryaD on Nov 23, 2009 11:14 PM

    > 1. There is a job name ABCDEF
    > 2. When this job is run then the status shows cancelled and the job error log shows tHe details that "error calling a method of the tree control"
    > 3.ThIs error also points fingers to /link to BD87 as seen in the job log " (program RBDMON00, variant \SBCI287, user ID KRISF)"
    >
    BD87 is an IDOC processing.
    > My question to you Sampath.
    >
    > in order to answer your question on whether it is ALv or SALV.. please tell me as to how will i know which progrm is associated with the job ABCDEF?
    >
    Go to sm37 - double click on the job that was failed - Click on Step (on application tool bar) to get the program name - double click on the program name - new popup will be opened - then copy the program and variant
    Go to se38 - enter the program - execute (F8) - choose the variant that is there in the background job - run in forground first
    if the run is good - then check the program - SE38 - Display the program then see
    I just saw the above message BD87... .if that is true, you dont have to do all these
    I dont think it is possible to schedule a job with BD87. Is this the first time or is any job completed without errors for this?

Maybe you are looking for