Aricie
Intégrateur de vos solutions d'avenir
DNN Community Forums

an error occured in bulk import PDF

Sort:
You are not authorized to post a reply.
Author
Messages


alek6dj











New Member



Posts:




New Member



    Hello, I buy this module because permit import from pdf, but not funcion correctly:

    I have DNN 5.0.1 under sql2500express on win2003server with IIS6 and .NET3.5

    I first install aricie-shared, second I install module page flip 5.0.0.2

    I go to bulk import, and upload a pdf with 9 pages in root of portal

    next, I clik on delete existing book and save, and the first time I try, module say an error ocurred, and not happend in dnn-logviewer

    in second try, i select same pdf upluadet, but now module say creating temporaly files...

    I observe task manager in windows, this show pdftoppm.exe.template working, and observe folder Arice.pageflip in root of portal, this create ppm files

    next, module say create image 1/9, in folder appear 1 jpg file, but module crash and interrupt process, "an error occured"

    in windows tasks appear DW20.exe

    In dnn-eventlog are nothing to read.

    But in Windows-Eventviewer, appear 2 errors and 1 advert:

    -System: WARNING: A process serving application pool 'AppPool #DNN' suffered a fatal communication error with the World Wide Web Publishing Service. The process id was '32200'. The data field contains the error number.

    -Application:  Event Type:    Error
    Event Source:    ASP.NET 2.0.50727.0
    Event Category:    None
    Event ID:    1334
    Date:        02/02/2010
    Time:        15:07:33
    User:        N/A
    Computer:    CT562
    Description:
    An unhandled exception occurred and the process was terminated.
    Application ID: /LM/w3svc/6/root
    Process ID: 32200
    Exception: System.NullReferenceException
    Message: Object reference not set to an instance of an object.
    StackTrace:    at GenePdf.GeneratePdf(String PathPdfSource, String PathDest, String PathDestMM, String PathExeMM, Int32 portalId, PortalSettings portalSettings)
       at ThreadParams.ExtractAndMakeIt()
       at ThreadParams.ExecuteThread()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.runTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()


    -Application: Event Type:    Error
    Event Source:    .NET Runtime 2.0 Error Reporting
    Event Category:    None
    Event ID:    5000
    Date:        02/02/2010
    Time:        15:07:39
    User:        N/A
    Computer:    CT562
    Description:
    EventType clr20r3, P1 w3wp.exe, P2 6.0.3790.3959, P3 45d6968e, P4 aricie.dnn.modules.pageflip, P5 5.0.0.0, P6 4ac9ebd6, P7 11e, P8 e0, P9 system.nullreferenceexception, P10 NIL.
     



    Deleted User











    New Member



    Posts:




    New Member



      Hi,

      I've  done many test with differents environments (DNN 4.9.x & DNN 5.1.x) and our module works fine. The DNN version 5.0.1 that you use, is a beta version and the DNN's API have breaking change that why you have an error in bulk import PDF.

      Please update your website to a release version of DotNetNuke (5.1.x or higher) for use our PageFlip module.

      Best regards,



      alek6dj











      New Member



      Posts:




      New Member



        Hello, problem not is dnn5, i have more than 30 buyed modules from difrent companys and all work fine.

        Tonight I proceeded to install a clean DNN 4.9, in new db, in new iis virtual folder

        then I created a new website with a clean installation, I only installed "Aricie shared" and "pageflip".
        I have run a new instance of DNN, I stopped the instance previously in iis for dnn5, and its corresponding "ApplicationPool", for instance dnn4.9 I used the "defaultApppoll.

        The result is similar, on the first try once the error appears and just creates a folder with the name of the pdf, but empty.

        On the second try, created some temporals, but finaly aborting the process in the same way.

        This time in the "windows" event viewer "Application" appears:

        """""

        An unhandled exception occurred and the process was terminated.
        Application ID: /LM/w3svc/3/root
        Process ID: 48780
        Exception: System.ArgumentException
        Message: The directory name C:\WEB\DNN\Portals\2\Aricie.PageFlip\sesrovirenc_e5n18\ is invalid.
        StackTrace:    at System.IO.FileSystemWatcher..ctor(String path, String filter)
           at System.IO.FileSystemWatcher..ctor(String path)
           at PDFToPPM..ctor(String pdfFile, String outputFileBaseName, String pdftoppmPATH)
           at GenePdf.GeneratePdf(String PathPdfSource, String PathDest, String PathDestMM, String PathExeMM, Int32 portalId, PortalSettings portalSettings)
           at ThreadParams.ExtractAndMakeIt()
           at ThreadParams.ExecuteThread()
           at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
           at System.Threading.ExecutionContext.runTryCode(Object userData)
           at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
           at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
           at System.Threading.ThreadHelper.ThreadStart()
        """"

        See you whe say: "The directory name C:\WEB\DNN\Portals\2\Aricie.PageFlip\sesrovirenc_e5n18\ is invalid."

        I think here is a possible bug, but original pdf file was named: sesrovirenc_e5n180.pdf, and folder created sesrovirenc_e5n180

        obviously the folder for the module does not match that it has created, so abort

         

        Next error in event viewer is:

        EventType clr20r3, P1 w3wp.exe, P2 6.0.3790.3959, P3 45d6968e, P4 system, P5 2.0.0.0, P6 4889de7a, P7 36cf, P8 60, P9 system.argumentexception, P10 NIL.

        --------

        Then I thought that maybe the bug is due to a limitation on the number of characters for the path, so I tried another pdf called "one.pdf"

        In this new attempt, appear this error:

        An unhandled exception occurred and the process was terminated.
        Application ID: /LM/w3svc/3/root
        Process ID: 14752
        Exception: System.Data.SqlClient.SqlException
        Message: Violation of UNIQUE KEY constraint 'IX_FolderPermission'. Cannot insert duplicate key in object 'dbo.FolderPermission'.
        The statement has been terminated.
        StackTrace:    at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
           at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
           at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
           at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
           at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
           at System.Data.SqlClient.SqlDataReader.get_MetaData()
           at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
           at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
           at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
           at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
           at System.Data.SqlClient.SqlCommand.ExecuteScalar()
           at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters)
           at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters)
           at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(String connectionString, String spName, Object[] parameterValues)
           at DotNetNuke.Data.SqlDataProvider.AddFolderPermission(Int32 FolderID, Int32 PermissionID, Int32 roleID, Boolean AllowAccess, Int32 UserID)
           at DotNetNuke.Security.Permissions.FolderPermissionController.AddFolderPermission(FolderPermissionInfo objFolderPermission)
           at DotNetNuke.Common.Utilities.FileSystemUtils.SetFolderPermission(Int32 PortalId, Int32 FolderId, Int32 PermissionId, Int32 RoleId, Int32 UserId, String relativePath)
           at DotNetNuke.Common.Utilities.FileSystemUtils.SetFolderPermissions(Int32 PortalId, Int32 FolderId, String relativePath)
           at DotNetNuke.Common.Utilities.FileSystemUtils.AddFolder(Int32 PortalId, String relativePath, Int32 StorageLocation)
           at DotNetNuke.Common.Utilities.FileSystemUtils.AddFolder(PortalSettings _PortalSettings, String parentFolder, String newFolder, Int32 StorageLocation)
           at DotNetNuke.Common.Utilities.FileSystemUtils.AddFolder(PortalSettings _PortalSettings, String parentFolder, String newFolder)
           at ThreadParams.ExtractAndMakeIt()
           at ThreadParams.ExecuteThread()
           at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
           at System.Threading.ExecutionContext.runTryCode(Object userData)
           at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
           at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
           at System.Threading.ThreadHelper.ThreadStart()

         



        Deleted User











        New Member



        Posts:




        New Member



          Hi,
          We have made again many tests with a lot of differents configurations and differents use process. In some use process, the folder rights was not good and threw your exception on 4.9.X and 5.1.X DNN version. We have made some change to avoid this kind of errors.

          But you will always unable to see this module worked in your 5.0.1 DNN's version because, as we said to you before, there is a breaking change in DNN's API. Don't forget that the DNN 5.0.1 is a beta version. We recommend you rather to upgrade your DNN instance to a 5.1.x version.

          Please download the new Aricie.PageFlip package. Thanks for support.

          Best regards,

          You are not authorized to post a reply.