Jump to content
Ketarin forum

Unhandled exception (Ketarin 1.06.272)


FranciscoR
 Share

Recommended Posts

1z304d5.png

 

<?xml version="1.0" encoding="utf-16"?>
<Jobs>
 <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="afa061c7-7491-47ae-b49b-097a5ebfefca">
   <DownloadBeta>Default</DownloadBeta>
   <DownloadDate xsi:nil="true" />
   <CheckForUpdatesOnly>true</CheckForUpdatesOnly>
   <VariableChangeIndicator />
   <CanBeShared>true</CanBeShared>
   <ShareApplication>false</ShareApplication>
   <ExclusiveDownload>false</ExclusiveDownload>
   <HttpReferer />
   <Variables>
     <item>
       <key>
         <string>download_url</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>true</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>(?<=href\=")(\w+\:\/\/[\w][\w\-?\w.:]+\/?[\w\s\.?=%&=\-/,\)\(]*)(?:".*?{linktext:replace: :[\s]*?}\<)</Regex>
           <Url>http://www.softpedia.com/progDownload/DriveImage-XML-Download-27914.html</Url>
           <Name>download_url</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>version</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>(??<=\<title\>Download.*?(?:.*?\/){0}\s)(\d+(?:\.\d+)+?(?:.*?){0})(?=\s[\-\/\[]{0}))</Regex>
           <Url>http://www.softpedia.com/get/System/Hard-Disk-Utils/DriveImage-XML.shtml</Url>
           <Name>version</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>linktext</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>Textual</VariableType>
           <Regex />
           <TextualContent>External Mirror 1</TextualContent>
           <Name>linktext</Name>
         </UrlVariable>
       </value>
     </item>
   </Variables>
   <ExecuteCommand>{rem} copy /y {file} {shared}</ExecuteCommand>
   <ExecutePreCommand>{rem} del /q {shared}\{appname:replace:SP_:}*.*</ExecutePreCommand>
   <Category>Test</Category>
   <SourceType>FixedUrl</SourceType>
   <DeletePreviousFile>false</DeletePreviousFile>
   <Enabled>true</Enabled>
   <FileHippoId />
   <LastUpdated xsi:nil="true" />
   <TargetPath>{target}\{category}\{appname:replace:SP_:}_{version}.{url:ext}</TargetPath>
   <FixedDownloadUrl>{download_url}</FixedDownloadUrl>
   <Name>SP_DriveImage XML</Name>
 </ApplicationJob>
</Jobs>

Link to comment
Share on other sites

  • 2 months later...

The image doesn't appear on my computer, but I took a screen shot of the error I received. I have a different version, so I'll post the error. I'm using 1.0.7.285.

 

https://www.onlinefilefolder.com/2sctEYRPe8PT5g

 

This is a link to the screen capture jpg image. I can't see a way to attach the image to this message. If you are a developer, feel free to PM me and I'll send you the screen capture image directly. Hope it helps.

 

Thanks,

JimR

Link to comment
Share on other sites

Environment: Vista Ultimate SP2, 64bit, 4GB. Keratin running on an external HDD. (Error was happening before on Vista SP1).

 

Problem: When trying to download Crossloop, the error occurs.

 

Steps: Using the following XML code as a guide, create an entry in Ketarin for Crossloop.

 

<ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="672f0e5e-d08d-4287-b6f0-85b99fb43fd1">
   <DownloadBeta>Default</DownloadBeta>
   <DownloadDate xsi:nil="true" />
   <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
   <VariableChangeIndicator />
   <CanBeShared>true</CanBeShared>
   <ShareApplication>false</ShareApplication>
   <ExclusiveDownload>false</ExclusiveDownload>
   <HttpReferer />
   <Variables>
     <item>
       <key>
         <string>version</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>StartEnd</VariableType>
           <Regex />
           <Url>http://crossloop.com/ipage.htm?id=download</Url>
           <StartText>http://download.crossloop.com/crossloopsetup.exe</StartText>
           <EndText>.exe</EndText>
           <Name>version</Name>
         </UrlVariable>
       </value>
     </item>
   </Variables>
   <ExecuteCommand />
   <ExecutePreCommand />
   <Category>Support</Category>
   <SourceType>FixedUrl</SourceType>
   <PreviousLocation>P:\Toolkit_CD\Support\Crossloop_setup.exe</PreviousLocation>
   <DeletePreviousFile>true</DeletePreviousFile>
   <Enabled>true</Enabled>
   <FileHippoId />
   <LastUpdated>2009-03-06T22:08:32.4432405</LastUpdated>
   <TargetPath>P:\Toolkit_CD\Support\Crossloop_setup.exe</TargetPath>
   <FixedDownloadUrl>http://download.crossloop.com/crossloopsetup.exe{version}.exe</FixedDownloadUrl>
   <Name>CrossLoop</Name>
 </ApplicationJob>

 

Here is the original page I used to create the download link:

http://www.crossloop.com/ipage.htm?id=predownload

 

Results:

Crossloop download stays at 0.0mb. Other threads continue to download. When all the other threads are complete, the stuck thread will remain. Program will shutdown when OK button is clicked on the error message.

 

Expected Results:

Error caught and Crossloop message is logged and presented to user at end of job.

Thread is cancelled.

 

Other notes:

By removing the Crossloop entry, the program works as expected. I was able to change the download link and fix the error through the normal program dialogs. My guess is that the int32 variable was in overflow because the added digits to the url link made the url path too long. Compare the original XML with my fixed entry below.

 

Original

<FixedDownloadUrl>http://download.crossloop.com/crossloopsetup.exe{version}.exe</FixedDownloadUrl>

 

The original link turned into this:

http://download.crossloop.com/CrossloopSetup.exe?1249491666576.exe

 

So I changed it to this and it now works:

<FixedDownloadUrl>http://download.crossloop.com/crossloopsetup.exe</FixedDownloadUrl>

 

I hope that helps. I think that if there are other apps where the path is too long, the program may crash again.

 

Thanks,

JimR

Edited by JimR
Link to comment
Share on other sites

Try the XML below, no such error.

<?xml version="1.0" encoding="utf-16"?>
<Jobs>
 <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <DownloadBeta>Default</DownloadBeta>
   <DownloadDate xsi:nil="true" />
   <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
   <VariableChangeIndicator />
   <CanBeShared>true</CanBeShared>
   <ShareApplication>false</ShareApplication>
   <ExclusiveDownload>false</ExclusiveDownload>
   <HttpReferer />
   <Variables>
     <item>
       <key>
         <string>filename</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>http://download.crossloop.com/([^\d]+[\d]+)\.exe</Regex>
           <Url>http://www.crossloop.com/ipage.htm?id=download</Url>
           <Name>filename</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>version</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>ver ([\d\.]+)<</Regex>
           <Url>http://www.crossloop.com/ipage.htm?id=download</Url>
           <Name>version</Name>
         </UrlVariable>
       </value>
     </item>
   </Variables>
   <ExecuteCommand />
   <ExecutePreCommand />
   <Category>Test</Category>
   <SourceType>FixedUrl</SourceType>
   <PreviousLocation>D:\Programas\Test\Crossloop_2.51.exe</PreviousLocation>
   <DeletePreviousFile>false</DeletePreviousFile>
   <Enabled>true</Enabled>
   <FileHippoId />
   <LastUpdated>2009-08-05T18:51:38.1124055+01:00</LastUpdated>
   <TargetPath>{target}\{category}\{appname}_{version}.{url:ext}</TargetPath>
   <FixedDownloadUrl>http://download.crossloop.com/{filename}.exe</FixedDownloadUrl>
   <Name>Crossloop</Name>
 </ApplicationJob>
</Jobs>

05-08-2009 18:50:49: Crossloop: Replacing {filename} in 'http://download.crossloop.com/{filename}.exe' with 'CrossloopSetup.exe?1249494657342'
05-08-2009 18:50:49: Crossloop: Using referer: http://www.crossloop.com/ipage.htm?id=download
05-08-2009 18:50:49: Crossloop: Server source file: /CrossloopSetup.exe
05-08-2009 18:50:50: Crossloop: Replacing {version} in '{target}\Test\Crossloop_{version}.exe' with '2.51'
05-08-2009 18:50:50: Crossloop: Determined target file name: D:\Programas\Test\Crossloop_2.51.exe
05-08-2009 18:50:50: Crossloop: Checking if update is required...
05-08-2009 18:50:50: Crossloop: Update required, 'D:\Programas\Test\Crossloop_2.51.exe' does not yet exist
05-08-2009 18:51:38: Crossloop: Executing command:  echo %DATE% %TIME% Crossloop_2.51.exe >> D:\Programas\Updates.txt &  tree D:\Programas /f /a > D:\Programas\List.txt
05-08-2009 18:51:38: Crossloop: Command result: D:\Ketarin> echo %DATE% %TIME% Crossloop_2.51.exe >> D:\Programas\Updates.txt &  tree D:\Programas /f /a > D:\Programas\List.txt

D:\Ketarin>
05-08-2009 18:51:42: Crossloop: Replacing {version} in '{version}' with '2.51'
05-08-2009 18:51:43: Update finished

Edited by FranciscoR
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.