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=1Reading cookies
Cookies: PHPSESSID=0ccadaac115d2092c4efb0bafd906d1b
Reading referer
Referer:
http://29awx3ytc.site.ap...projectid=140&page=1Aurigma 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+' /> <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%"> </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"> </td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<td class="pages"><a href="manageprojects.php">Manage Projects</a> > <a href="manageactvieprojects.php"> Manage Projects Files</a> > 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> </td>
<td> </td>
<td> </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> </td>
<td height="25"><div style="0;" class="navr"><img src="images/Bullet.jpg"/> <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> </td>
<td height="25"><div style="0;" class="nav"><img src="images/Bullet.jpg"/> <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"> </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: