Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
kolegio1  
#1 Posted : Thursday, January 31, 2008 2:13:09 AM(UTC)
kolegio1

Rank: Newbie

Groups: Member
Joined: 1/29/2008(UTC)
Posts: 3

I am currently doing work for a client who recently purchased your Dual Image Uploader application. The Active X version seems to work fine in Internet Explorer, however I am getting the following error meesage below with the Java Image Uploader version 5.0.15.0 in Firefox version 2.0.0.11. I am integrating the tool in an ASP.NET 2.0 environment.

The problem occurs when I select some images from the tool and click the Submit button. It gives me a

"The server attempted to redirect you, but server redirects are not supported" error.

Could you please tell me if this is being fixed or has been addressed. I did a search in your forum and found similiar problems including the session data disappearing and implementing a cookie fix but that did not help.

Edited by user Monday, November 23, 2009 1:29:33 AM(UTC)  | Reason: Not specified

kolegio1 attached the following image(s):
Screenshot.jpg
Alex Makhov  
#2 Posted : Friday, February 1, 2008 3:09:31 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups: Member
Joined: 8/3/2003(UTC)
Posts: 998

Hello,

Actually I'm almost completely sure the reason of the problem is in Cookies. Your ASP.NET upload processing page tries to get cookies, fails in the case of Java applet and tries to redirect you to the login page. Please, ensure that you have completely done everything right this article says:

PRB: Image Uploader for Java looses HTTP-only cookies.
Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
kolegio1  
#3 Posted : Monday, February 4, 2008 6:42:26 AM(UTC)
kolegio1

Rank: Newbie

Groups: Member
Joined: 1/29/2008(UTC)
Posts: 3

This thread did NOT help me as I mentioned before. There is still something wrong with the Java version of the tool. When adding the code stated in the article the application says: object not set to an instance of an object" when trying to access the cookie.

I looked in the headers and that cookie does not even exist. Only the ASP.NET_SessionId cookie is available. Is there something I have missed or am not including that should have accompanied that article?

Tim
Andrew  
#4 Posted : Friday, February 8, 2008 5:04:07 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 868

Thanks: 2 times
Was thanked: 26 time(s) in 26 post(s)
Hi Tim,

I am unsure whether the problem still exist - I tried to reproduce it according to information you sent us through email, but was able to upload successfully (I have just emailed you about this). But anyway, I will put my two cents into this problem. Maybe it will be helpful for someone.

In fact this problem is not necessary can be caused by missing cookies. This message appears every time when the server code tries to redirect you to some other page. When it happens, the connection established by Image Uploader is closed with HTTP code 300 (or 301, 302, etc - no matter).

Why it may happen?

1. Situation described in the article Alex refers. Although you tell that it cannot happen in your case, let me outline the reason of server redirect in this scenario. It happens if you are using cookie-based authentication but that cookie under certain circumstances is invisible for IU. So when Image Uploader tries to post anything to the upload processing page, it is deemed to be logged out, and the server redirects you to the login page.

2. Your server code just calls Server.Redirect method directly. I do not thing that it is your case, because I think you would notice that.

3. Some server error occurs (for example, insufficient permissions, syntax error, some unhandled exception, or something like this) and your server is configured to redirect the user to a specific "user-friendly" error page. In this case Image Uploader may get HTTP code 300 instead of HTTP code 500. This is also strange (since ActiveX works fine), but it worth to check out. Just try to debug the server page, maybe you will find anything.

How to fix it?

Well... Obviously it is necessary to check out all three points, especially the first one. I know you hate to hear about http-only cookies stuff again, but this is the most frequent reason of the problem, that's why guys recommend to take a look at it all the way. I think that the best way to understand whether the problem is in them or not is to disable http-only cookies and see whether it will work. To do it you should change appropriate web.config entry like this:

<httpCookies httpOnlyCookies="false" />

If it turned out that none of this helps, namely:

1. Upload still fails with the same error message with httpOnlyCookies = "false".
2. You do not call Server.Redirect anywhere in the Action page.
3. You do not have server-side error in this page (most likely it is not called at all, so the problem occurs before IIS passes the control into this page).

In this case we need to take a deeper look into this. What we need from you is:
  • Link to your page with all necessary login information, etc.
  • Information about the browser you use, etc.
  • If the problem happens from time to time (e.g. if you send a certain number of files or something like this), information how to get it assuredly.
  • Java console output.
I hope this helps.

Edited by user Friday, February 8, 2008 5:04:56 PM(UTC)  | Reason: Not specified

sb&o  
#5 Posted : Sunday, September 14, 2008 9:26:27 PM(UTC)
sb&o

Rank: Newbie

Groups: Member
Joined: 9/14/2008(UTC)
Posts: 4

Hello,

I m getting the same probleme then kolegio1 , I followed all the steps defined by
Andre (http://forums.aurigma.com/yaf_postst2174.aspx)

I use
JavaAppletVersion =5.5.1.0
ASP.NET 2.0 environment
Firefox 3.0.1

thank you for your help

SB&O



Java console output.

EndOf Result page
Aurigma ImageUploader version: 5.5.1.0
Current document URL: http://www.mesvacancesen...x?Content=UploadPictures
Reading cookies
Cookies: __utmz=86540676.1220625462.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=86540676.4499255388262031000.1220625462.1221470547.1221473193.37; temporaryOrder=sessionId=dc0ffc15-1b95-4b04-88ea-9b30ed13d6b4&orderExpires=20/09/2008 16:33:23; __utmc=86540676; __utmb=86540676.17.10.1221473193
Reading referer
Referer: http://www.mesvacancesen...x?Content=UploadPictures
Aurigma ImageUploader version: 5.5.1.0
Current document URL: http://www.mesvacancesen...x?Content=UploadPictures
Reading cookies
Cookies: __utmz=86540676.1220625462.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=86540676.4499255388262031000.1220625462.1221470547.1221473193.37; temporaryOrder=sessionId=a79b70d6-791b-41fc-aba2-687b94a62209&orderExpires=20/09/2008 16:33:23; __utmc=86540676; __utmb=86540676.20.10.1221473193
Reading referer
Referer: http://www.mesvacancesen...x?Content=UploadPictures
Uploading to http://www.mesvacancesen...cmd=UploadPictureCommand
Setting HTTP params: Host=www.mesvacancesenphoto.com
Cookies:<__utmz=86540676.1220625462.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=86540676.4499255388262031000.1220625462.1221470547.1221473193.37; temporaryOrder=sessionId=a79b70d6-791b-41fc-aba2-687b94a62209&orderExpires=20/09/2008 16:33:23; __utmc=86540676; __utmb=86540676.20.10.1221473193>
Starting upload
15 sept. 2008 12:40:46 org.apache.commons.httpclient.HttpMethodBase processCookieHeaders
ATTENTION: Invalid cookie header: "temporaryOrder=sessionId=a79b70d6-791b-41fc-aba2-687b94a62209&orderExpires=30/09/2008 12:36:12; expires=Tue, 30-Sep-2008 10:36:12 GMT; path=/". Unable to parse expiration date parameter: Tue
Status =[302]
Server redirection attempt: "/Default.aspx?Content=SummaryTransfer"
UploadException occured
###Error occured###
Status=[ERROR]
Progress=[0]
ValueMax=[0]
Value=[11]
[ErrorPage]
/Default.aspx?Content=SummaryTransfer
[EndOfErrorPage]
Uploading to http://3suissesphoto.fr/...cmd=UploadPictureCommand
Trying to resolve host IP...
Host IP = [195.68.104.99]
15 sept. 2008 12:45:01 org.apache.commons.httpclient.HttpMethodBase processResponseHeaders
ATTENTION: Invalid cookie header: "temporaryOrder=sessionId=f5316c5e-e2c6-4d4a-8865-f1d8b9776b5d&orderExpires=30/09/2008 12:40:27; expires=Tue, 30-Sep-2008 10:40:27 GMT; path=/". Unable to parse expiration date parameter: Tue
Status =[200]
Upload complete. Result page:


Dmitry  
#6 Posted : Wednesday, September 17, 2008 7:10:04 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
The problem was resolved in this case.
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
maruthi  
#7 Posted : Monday, November 16, 2009 12:56:30 PM(UTC)
maruthi

Rank: Newbie

Groups: Member
Joined: 11/16/2009(UTC)
Posts: 3

Hello Friends,

I am currently doing work for a client who recently purchased your Dual Image Uploader application. The Active X version key is giving invalid license key , however I am getting the following error meesage below with the Java Image Uploader version 5.0.15.0 in Firefox version 2.0.0.11. I am integrating the tool in PHP 5 environment.

The problem occurs when I select some images from the tool and click the Submit button. It gives me a

"The server attempted to redirect you, but server redirects are not supported" error. This eror is occuring only on client machine and it is working fine on developer machine. Not sure what the problem is actually... We have tried placing the code for AddCookie as mentioned in most of the threads. But my problem is not solved. Can any one please help me over this. And below is the java console error that client is receiving....

Please let me know what kind of fix i can do for fixing this as it is very important to me...


Java Plug-in 1.6.0_17
Using JRE version 1.6.0_17-b04 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\joseph

c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>



Reading certificates from 75650 http://29awx3ytc.site.ap...ripts/ImageUploader6.jar | C:\Documents and Settings\joseph\Application Data\Sun\Java\Deployment\cache\6.0\31\2c6e961f-3575ab47-6.1.4.0-.idx
Aurigma ImageUploader version: 6.1.4.0
Current document URL: http://29awx3ytc.site.ap...projectid=140&page=1
Reading cookies
Cookies: PHPSESSID=0ccadaac115d2092c4efb0bafd906d1b
Reading referer
Referer: http://29awx3ytc.site.ap...projectid=140&page=1
Aurigma ImageUploader version: 6.1.4.0
Current document URL: http://29awx3ytc.site.ap...ubcatid=&foldername=
Reading cookies
Cookies: PHPSESSID=0ccadaac115d2092c4efb0bafd906d1b
Reading referer
Referer: http://29awx3ytc.site.ap...ubcatid=&foldername=
Unspecified error invoking method or accessing property "ImageUploader1_PreserveHttpCookies"
Reading certificates from 75650 http://29awx3ytc.site.ap...ripts/ImageUploader6.jar | C:\Documents and Settings\joseph\Application Data\Sun\Java\Deployment\cache\6.0\31\2c6e961f-3575ab47-6.1.4.0-.idx
Uploading to http://29awx3ytc.site.ap...oriyid=362&subcatid=
Reading certificates from 75650 http://29awx3ytc.site.ap...ripts/ImageUploader6.jar | C:\Documents and Settings\joseph\Application Data\Sun\Java\Deployment\cache\6.0\31\2c6e961f-3575ab47-6.1.4.0-.idx
Cookies:<PHPSESSID=0ccadaac115d2092c4efb0bafd906d1b>
Setting HTTP params: Host=29awx3ytc.site.aplus.net
Starting upload
Abort
###Error occurred###
Status=[CANCEL]
Progress=[0]
ValueMax=[0]
Value=[0]
[ErrorPage]
statusText
[EndOfErrorPage]
Unspecified error invoking method or accessing property "ImageUploader1_PreserveHttpCookies"
Uploading to http://29awx3ytc.site.ap...oriyid=362&subcatid=
Cookies:<PHPSESSID=0ccadaac115d2092c4efb0bafd906d1b>
Setting HTTP params: Host=29awx3ytc.site.aplus.net
Starting upload
Reading certificates from 75650 http://29awx3ytc.site.ap...ripts/ImageUploader6.jar | C:\Documents and Settings\joseph\Application Data\Sun\Java\Deployment\cache\6.0\31\2c6e961f-3575ab47-6.1.4.0-.idx

Status = [200]
Nov 16, 2009 11:55:01 AM org.apache.commons.httpclient.HttpMethodBase getResponseBody
WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
Server response:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Tilton Pacific Construction Manage Projects</title>
<link href="css/css.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/javascript">
function refreshpage(projectid,categoriyid,subid,foldername)
{
catid=document.getElementById('category').value;
subid=document.getElementById('subcategory').value;

window.location.href="uploadcategorynew.php?foldername="+foldername+"&projectid="+projectid+"&categoriyid="+catid+"&subcatid="+subid;
}
function addfield()
{
var ni = document.getElementById('addfilefield');
var numi = document.getElementById('noofdocuments');
var num = (document.getElementById('noofdocuments').value -1)+ 2;
numi.value = num;
var newdiv = document.createElement('div');
var divIdName = 'my'+num+'Div';
newdiv.setAttribute('id',divIdName);
newdiv.style.display='block';
newdiv.innerHTML = '<br /><input type="file" name=docsattachments['+num+'] id=docsattachments'+num+' /> &nbsp; &nbsp;<a href=javascript:removeElement("'+divIdName+'","'+num+'")>Remove</a><br />';
ni.appendChild(newdiv);

}
function removeElement(divNum,num) {
var d = document.getElementById('addfilefield');
var olddiv = document.getElementById(divNum);
document.getElementById('docsattachments'+num).value='';
olddiv.style.display='none';
olddiv.innerHTML='';
}
function confirmdelete(plansid,delete1,afterdelete,catid,subcatid,foldername)
{

var al=confirm("Are you sure you want to Delete this document(s)?");
if(al==true)
{
deletedocuments(plansid,delete1,afterdelete,catid,subcatid,foldername);
}
else
{
return false;
}
}

function getSubCategories(categoriyid,subcatid,foldername)
{

document.getElementById('categoriyid').value=categoriyid;
document.getElementById('subcatid').value=subcatid;
var projectid=document.getElementById('projectid').value; window.location="uploadcategorynew.php?categoriyid="+categoriyid+"&projectid="+projectid+"&subcatid="+subcatid+"&foldername="+foldername;;

}
function getSubCategories1(categoriyid,subcatid,foldername)
{

document.getElementById('categoriyid').value=categoriyid;
document.getElementById('subcatid').value=subcatid;
var projectid=document.getElementById('projectid').value;
window.location="uploadcategorynew.php?categoriyid="+categoriyid+"&projectid="+projectid+"&subcatid="+subcatid+"&foldername="+foldername;

}
function deletedocuments(plansid,projectid,afterdelete,catid,subcatid,foldername)
{
// alert(plansid);
// alert(projectid);
// alert(catid);
// alert(subcatid);
var req=createrequest();
req.open("GET","getuploaddocsajax.php?plansid="+plansid+"&projectid="+projectid+"&afterdelete="+afterdelete+"&categoryid="+catid+"&foldername="+foldername+"&subcatid="+subcatid+"&delete=delete");
req.send(null);
req.onreadystatechange=function()
{
if(req.readyState==4 && req.status==200)
{
res=req.responseText;
resultdisplay=res.split("@@@$$$@@@");
resultdisplay[0]=LTrim(RTrim(resultdisplay[0]));
if(resultdisplay[0]!="secondbox")
{
document.getElementById('subcategoryDiv').innerHTML=resultdisplay[0];
}
document.getElementById('displaydocuments').innerHTML=resultdisplay[1];

}
}
}

function LTrim( value ) {

var re = /\s*((\S+\s*)*)/;
return value.replace(re, "$1");

}
function RTrim( value ) {

var re = /((\s*\S+)*)\s*/;
return value.replace(re, "$1");

}


//Folder name validation

function foldercheck()
{

var repltext;

h= prompt('Please enter folder name:','');

var req=createrequest();
req.open("GET","folderverify.php?foldername="+h,true);
req.send(null);
req.onreadystatechange=function()
{


if(req.readyState==4 && req.status==200)
{
var res=req.responseText;

if(res!="")
{
window.location = "/admin/uploadcategorynew.php?mess="+res+"&projectid=140";
//document.getElementById("errmail").innerHTML=res;

}

return false;
}
}
}
function createrequest()
{
var http=null;
try
{
// Firefox, Opera 8.0+, Safari
http=new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer
try
{
http=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
http=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return http;
}

</script>
</head>
<body>
<form method="post">
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="3%">&nbsp;</td>
<td width="97%" height="55"><img src="images/logo.jpg" alt="" /></td>
</tr>
</table>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="22"><img src="images/titlesleft.jpg" width="22" height="71" /></td>
<td valign="top" background="images/titlesbg.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="padding-left:1px">
<tr>
<td height="40" class="titles">&nbsp;</td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<td class="pages"><a href="manageprojects.php">Manage Projects</a>&nbsp; >&nbsp;<a href="manageactvieprojects.php"> Manage Projects Files</a> &nbsp;>&nbsp; Upload Documents</td>
</tr>
</table></td>
<td align="right"><img src="images/titlesright.jpg" width="27" height="71" /></td>
</tr>
<tr>
<td width="22" background="images/pageleftshadow.jpg"><img src="images/pageleftshadow.jpg" width="22" height="1" /></td>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="198" height="200" valign="top" class="navbg" style="padding-left:1px"><table width="190" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width="8"><img src="images/mainnavleft.gif" width="8" height="28" /></td>
<td background="images/mainnavbg.gif"><span class="pages">Welcome,</span> <span class="ongoing">Admin</span></td>
<td width="8"><img src="images/mainnavright.gif" width="8" height="28" /></td>
</tr>
<tr>
<td background="images/left.gif"><img src="images/left.gif" width="8" height="1" /></td>
<td class="td"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" height="8"></td>
<td ></td>
</tr>
<tr>
<td width="14%" valign="top"><img src="images/bullet.gif" width="25" height="20" /></td>
<td width="86%" height="25"><div class="nav"><a href="managesubcontroctoraccounts.php">Manage Subcontractor Accounts</a></div></td>
</tr>
<tr>
<td><img src="images/bullet.gif" width="25" height="20" /></td>
<td height="25"><div class="nav"><a href="manageprojects.php">Manage Projects</a></div></td>
</tr>
<tr>
<td>&nbsp;</td>
<td height="25"><div style="0;" class="navr"><img src="images/Bullet.jpg"/>&nbsp;<a href="manageactvieprojects.php">Manage Project Files</a></div></td>
</tr>
<tr>
<td><img src="images/bullet.gif" width="25" height="20" /></td>
<td height="25"><div class="nav"><a href="managepublicsite.php">Manage Text on Public Site</a></div></td>
</tr>
<tr>
<td>&nbsp;</td>
<td height="25"><div style="0;" class="nav"><img src="images/Bullet.jpg"/>&nbsp;<a href="managecategories.php">Manage Categories</a></div></td>
</tr>

<tr>
<td><img src="images/bullet.gif" width="25" height="20" /></td>
<td height="25"><div class="nav"><a href="managenews.php">Manage News</a></div></td>
</tr>

<tr>
<td><img src="images/bullet.gif" width="25" height="20" /></td>
<td height="25"><div class="nav"><a href="changePassword.php">Change Password</a></div></td>
</tr>
<tr>
<td><img src="images/bullet.gif" width="25" height="20" /></td>
<td height="25"> <div class="nav"><a href="logout.php">Logout</a></td>
</tr>
</table></td>
<td background="images/right.gif"><img src="images/right.gif" width="8" height="1" /></td>
</tr>
</table>
<table width="190" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/navbottom.gif" width="190" height="6" /></td>
</tr>
</table>
<br />
<br /></td>
<td height="400" valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td align="left"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0" summary="Buttons">
<tbody>
<tr>
<td width="577" class="jive-icon" align="center">&nbsp;</td>
</tr>
<tr>
<td width="577" colspan="4" class="jive-icon" align="center"></td>
</tr>
<tr>
<td height="30" colspan="2" class="h2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25" colspan="2" align="left"
Trace message truncated for length over 10K


Upload complete. Result page:
Dmitry  
#8 Posted : Tuesday, November 17, 2009 4:34:40 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello,

As far as I understand actually you experience two problems:
  • "invalid license key" with Image Uploader ActiveX,
  • problem with redirect in Image Uploader Java.
You mentioned that you use version 5.0.15 but in Image Uploader Java dump listed in your post and in our records I see that license keys for this domain were issued for Image Uploader 6. You need to make sure that you import correct license key and use correct version of Image Uploader ActiveX.

As for the problem with redirect. There can be two issues: you perform server redirect on a page receiving upload or it is standard issue with cookies. To check it you need to try upload images with Image Uploader ActiveX (it handles cookies correctly and does not need the workaround described in the PRB: Image Uploader for Java looses HTTP-only cookies topic). If it works okay, most probably Image Uploader Java does not send some cookies. To debug it you need to get to know what cookies are used in your web application. For example, you can do it using Fiddler2 web debugger: you just make dump of request sent by Image Uploader ActiveX and search for set of cookies. After that you need to implement sending of these cookies for Image Uploader Java via AddCookie method.
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.