Sign In  Sign Up Live-Chat

Concatinate is throwing "Object reference not set to an instance of an object." error after upgrade to Pdf.Kit 2.6.0.0

Last post 10-09-2007, 8:34 PM by kyle.peters. 19 replies.
Page 1 of 2 (20 items)   1 2 Next >
Sort Posts: Previous Next
  •  09-13-2007, 9:34 PM 94901

    Concatinate is throwing "Object reference not set to an instance of an object." error after upgrade to Pdf.Kit 2.6.0.0

    Received : 2007/09/13 21:34:50
    Message : I had my working for the most part, but it had occasionally been throwing a cast error. Your representative stated there was a fix for this in the latest release. So I went and downloaded Pdf.Kit 2.6.0.0 and now I can't get any filestream arrays to concatinate. Everytime the code runs, the Concatinate method throws an "Object reference not set to an instance of an object." error. The problem is that BOTH args going into the Concatinate method ARE objects (an array of 2 filestreams, and an output file stream.) The only other object that could fail would be the pdfEditor itself, and here's the call I used to create it...
    PdfFileEditor pdfEditor = new PdfFileEditor();
    that is right from your documentation!

    Right after that line, I hover over (VS 2005) the pdfEditor variable, and this is what I see..

    x682935b2be2ef7d8 = null

    So evidently the PDF header is null and throwing the error?  I saw a posting very similar to this the other day in this forum...

    http://www.aspose.com/Community/forums/thread/68143.aspx

    What's going on?

     

    Here's code to reproduce error..

    FileStream pdf1 = new FileStream(@"C:\1.pdf", FileMode.Open);

    FileStream pdf2 = new FileStream(@"C:\2.pdf", FileMode.Open);

    Stream[] pdfStreams = new Stream[] { pdf1, pdf2 };

    FileStream outputPDF = new FileStream(@"C:\Help_AsposeTeam.pdf", FileMode.Create);

    PdfFileEditor pdfEditor = new PdfFileEditor();

    pdfEditor.Concatenate(pdfStreams, outputPDF);

    outputPDF.Close();


    Please assit. Kyle


    This message was posted using Aspose.Live 2 Forum
     
  •  09-13-2007, 10:35 PM 94906 in reply to 94901

    Re: Concatinate is throwing "Object reference not set to an instance of an object." error after upgrade to Pdf.Kit 2.6.0.0

    Hi,

    Can you please attach some of the pdf for testing purpose so that we can more accurately determine the cause of the problem.

    Thanks.

     
  •  09-14-2007, 2:45 AM 94921 in reply to 94906

    Re: Concatinate is throwing "Object reference not set to an instance of an object." error after upgrade to Pdf.Kit 2.6.0.0

    Hi, Kyle

    We can not reproduce your error, could you please attach your pdf for our testing?

    Thanks.

    Georgie Yuan
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  09-14-2007, 1:10 PM 95008 in reply to 94921

    Re: Concatinate is throwing "Object reference not set to an instance of an object." error after upgrade to Pdf.Kit 2.6.0.0

    Attachment: Present (inaccessible)

    Here is on of two files that I have been testing with.  I guees I have to make another post for the other one because it doesn't appear that I can attch two files at once.

     
  •  09-14-2007, 1:11 PM 95009 in reply to 95008

    Re: Concatinate is throwing "Object reference not set to an instance of an object." error after upgrade to Pdf.Kit 2.6.0.0

    Attachment: Present (inaccessible)
    and here's the second file...
     
  •  09-14-2007, 1:46 PM 95010 in reply to 95009

    Re: Concatinate is throwing "Object reference not set to an instance of an object." error after upgrade to Pdf.Kit 2.6.0.0

    Hi,

    I have tested your code with thte files that you provided and was able to reproduce the error. This has been recorded as a bug and assigned the number PDFKITNET-3743. We will try our best to resolve this issue as soon as possible.

    Thanks.

     
  •  09-18-2007, 2:33 PM 95338 in reply to 95010

    Re: Concatinate is throwing "Object reference not set to an instance of an object." error after upgrade to Pdf.Kit 2.6.0.0

    What is the status of this bug fix (PDFKITNET-3743)?
     
  •  09-19-2007, 10:03 PM 95506 in reply to 95338

    Re: Concatinate is throwing "Object reference not set to an instance of an object." error after upgrade to Pdf.Kit 2.6.0.0

    Hi,

    we will fix this bug in this weekend.


    Allen Wen
    Developer
    Aspose Changsha Team

    About Us
    Contact Us
     
  •  09-20-2007, 4:58 PM 95640 in reply to 95506

    Re: Concatinate is throwing "Object reference not set to an instance of an object." error after upgrade to Pdf.Kit 2.6.0.0

    Great!  I look forward to it!
     
  •  09-24-2007, 1:38 PM 95949 in reply to 95506

    Re: Concatinate is throwing "Object reference not set to an instance of an object." error after upgrade to Pdf.Kit 2.6.0.0

    Allen Wen (SeaWolf),

    Has the fix been released?  Where/what do I need to do go in order to get the fix?

    Kyle

     
  •  09-24-2007, 11:50 PM 95987 in reply to 95949

    Re: Concatinate is throwing "Object reference not set to an instance of an object." error after upgrade to Pdf.Kit 2.6.0.0

    Hi kyle,

    we have fix this bug, but the new version has not been released, it will be released with three days.


    Allen Wen
    Developer
    Aspose Changsha Team

    About Us
    Contact Us
     
  •  09-25-2007, 2:35 AM 96008 in reply to 95987

    Re: Concatinate is throwing "Object reference not set to an instance of an object." error after upgrade to Pdf.Kit 2.6.0.0

    We have published hotfix 2.6.1. But this fix is not included in 2.6.1. We will soon provide a new dll for you to test.

    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  09-26-2007, 10:44 AM 96274 in reply to 95949

    Re: Concatinate is throwing "Object reference not set to an instance of an object." error after upgrade to Pdf.Kit 2.6.0.0

    Attachment: Present (inaccessible)

    Hi Kyle,

    now you can download the new dll (seeing the attachment)to test, if you have any questions,please inform me.


    Allen Wen
    Developer
    Aspose Changsha Team

    About Us
    Contact Us
     
  •  09-26-2007, 6:04 PM 96332 in reply to 96274

    Re: Concatinate is throwing "Object reference not set to an instance of an object." error after upgrade to Pdf.Kit 2.6.0.0

    *Ugh*

    Okay, with the new Aspose.Pdf.Kit 2.6.1.0 I pulled down today, I am STILL getting the following error...

    Unable to cast object of type 'xeb116a323308e2f7.xacd3aca1cf90fb28' to type 'xeb116a323308e2f7.xe3033695b7f6d53d'.
    Stack Track:    at Aspose.Pdf.Kit.PdfFileEditor.Concatenate(Stream[] inputStreams, Stream outputStream)
       at Fluor.DDMEmailRetrievalProcess.DominoAccess.ConcatinatePDFs()
       at Fluor.DDMEmailRetrievalProcess.DominoAccess.ProcessDominoEmails()"

    I don't get this on every document, but enough to make it an issue.  This casting error was the original reason I pulled Aspose.Pdf.Kit 2.6.0.0 - because one of the Aspose.Pdf.Kit techs said it contained a fix for the casting error.  As the story goes, after I installed 2.6.0.0 is when I started receiving the  "Object reference not set to an instance of an object." error that started this thread.  I don't seem to be getting THAT error any more, but I am back at square one with the casting error! 

    Please assist quickly...I like your products, but my client is becoming very skeptical of my recommendation to go with Aspose.Pdf.Kit

    Regards,

    Kyle Peters

     
  •  09-26-2007, 6:39 PM 96334 in reply to 96332

    Re: Concatinate is throwing "Object reference not set to an instance of an object." error after upgrade to Pdf.Kit 2.6.0.0

    Hi,

    Can you provide some sample documents that can lead to error, it help us to test the problem.


    Allen Wen
    Developer
    Aspose Changsha Team

    About Us
    Contact Us
     
Page 1 of 2 (20 items)   1 2 Next >
View as RSS news feed in XML