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

Notification

Icon
Error

Options
Go to last post Go to first unread
lfdgonzalez  
#1 Posted : Sunday, April 29, 2007 12:27:40 AM(UTC)
lfdgonzalez

Rank: Member

Groups: Member
Joined: 4/28/2007(UTC)
Posts: 4

Hello. I bought IU/Java hoping it would work the way I've wanted it to, but unfortunately, this simply hasn't been the case. I use the iuembed.js helper script and everything works just fine when I upload to my local testing server (Runs Apache/PHP), but whey I upload the files to the remote testing server to check for speed (it does too run Apache/PHP), ImageUploader just won't show. Here's a dump from my Java Console:
Code:
load: class com.aurigma.imageuploader.ImageUploader.class not found.
java.lang.ClassNotFoundException: com.aurigma.imageuploader.ImageUploader.class
	at sun.applet.AppletClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.applet.AppletClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.applet.AppletClassLoader.loadCode(Unknown Source)
	at sun.applet.AppletPanel.createApplet(Unknown Source)
	at sun.plugin.AppletViewer.createApplet(Unknown Source)
	at sun.applet.AppletPanel.runLoader(Unknown Source)
	at sun.applet.AppletPanel.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
	at sun.applet.AppletClassLoader.getBytes(Unknown Source)
	at sun.applet.AppletClassLoader.access$100(Unknown Source)
	at sun.applet.AppletClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	... 10 more
I have seen this problem reported in several threads in the forum, but somehow the solutions don't apply to me. Here's the source code from the page that has IU embedded in it:
Code:

<?php require_once('Connections/cnLocal.php'); ?>
<?php
$colname_rsAlbumDetails = "-1";
if (isset($_GET['albumID'])) {
  $colname_rsAlbumDetails = (get_magic_quotes_gpc()) ? $_GET['albumID'] : addslashes($_GET['albumID']);
}
mysql_select_db($database_cnLocal, $cnLocal);
$query_rsAlbumDetails = sprintf("SELECT id, title, albumdate FROM albums WHERE id = %s", $colname_rsAlbumDetails);
$rsAlbumDetails = mysql_query($query_rsAlbumDetails, $cnLocal) or die(mysql_error());
$row_rsAlbumDetails = mysql_fetch_assoc($rsAlbumDetails);
$totalRows_rsAlbumDetails = mysql_num_rows($rsAlbumDetails);
?><!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>Untitled Document</title>
</head>

<body>
<?php 

	// set sessionvar with album ID for passing
	$_SESSION['tmp_album_id'] = $_GET['albumID'];

?>


Crea un nuevo &aacute;lbum en tres simples pasos


[Imagen detallando una especie de &quot;Roadmap&quot;]


Paso 2 - Agrega im&aacute;genes a tu &aacute;lbum


&Aacute;lbum: <?php echo $row_rsAlbumDetails['title']; ?>

Fecha: <?php echo date('d/m/Y',strtotime($row_rsAlbumDetails['albumdate'])); ?>


[Ver si el plugin no est&aacute; instalado, si no, no ver]

Para que puedas subir im&aacute;genes a tu &aacute;lbum de manera conveniente, instalaremos un plug-in en tu computadora. La instalaci&oacute;n se hace una sola vez y toma alrededor de 1 minuto en banda ancha (infinitum, cable) o 2 minutos y medio si usas tel&eacute;fono (56k).


&iquest;Qu&eacute; riesgo hay? | El plug-in no se instala o veo solamente una hoja con una cruz roja | &iquest;Es compatible con Mac/Linux/Windows? 
<script language="javascript" src="iuembed.js"></script>
<script type="text/javascript">
//<![CDATA[
//Create JavaScript object that will embed Image Uploader to the page.
var iu = new ImageUploaderWriter("ImageUploader1", 650, 400);

//For ActiveX control full path to CAB file (including file name) should be specified.
iu.activeXControlCodeBase = "./ImageUploader4.cab";
iu.activeXControlVersion = "4,1,60,0";

//For Java applet only path to directory with JAR files should be specified (without file name).
iu.javaAppletCodeBase = "./";
iu.javaAppletCached = true;
iu.javaAppletVersion = "2.1.60.0";

iu.activeXControlEnabled = false;
iu.javaAppletEnabled = true;

iu.showNonemptyResponse = "off";

//Configure appearance.
iu.addParam("PaneLayout", "TwoPanes");
iu.addParam("ShowDebugWindow", "true");
iu.addParam("AllowRotate", "false");
iu.addParam("BackgroundColor", "#ccccff");

//Configure thumbnail settings.
iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", "120");
iu.addParam("UploadThumbnail1Height", "120");
iu.addParam("UploadThumbnail1JpegQuality", "60");

//Configure URL files are uploaded to.
iu.addParam("Action", "upload.php");

//Configure URL where to redirect after upload.
iu.addParam("RedirectUrl", "albumready.php");

//Tell Image Uploader writer object to generate all necessary HTML code to embed 
//Image Uploader to the page.
iu.writeHtml();
//]]>
	</script>
Una vez que hayas subido tus im&aacute;genes, se te llevar&aacute; al siguiente paso.
</body>
</html>
<?php
mysql_free_result($rsAlbumDetails);
?>
Both iuembed.js and ImageUploader2.jar are in the root directory. If I even try with a simpler page, I get the same results:
Code:

<!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>Untitled Document</title>
</head>

<body>
<script language="javascript" src="iuembed.js"></script>
<script type="text/javascript">
//<![CDATA[
//Create JavaScript object that will embed Image Uploader to the page.
var iu = new ImageUploaderWriter("ImageUploader1", 650, 400);

//For ActiveX control full path to CAB file (including file name) should be specified.
iu.activeXControlCodeBase = "./ImageUploader4.cab";
iu.activeXControlVersion = "4,1,60,0";

//For Java applet only path to directory with JAR files should be specified (without file name).
iu.javaAppletCodeBase = "./";
iu.javaAppletCached = true;
iu.javaAppletVersion = "2.1.60.0";

iu.activeXControlEnabled = false;
iu.javaAppletEnabled = true;

iu.showNonemptyResponse = "off";

//Configure appearance.
iu.addParam("PaneLayout", "TwoPanes");
iu.addParam("ShowDebugWindow", "true");
iu.addParam("AllowRotate", "false");
iu.addParam("BackgroundColor", "#ccccff");

//Configure thumbnail settings.
iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", "120");
iu.addParam("UploadThumbnail1Height", "120");
iu.addParam("UploadThumbnail1JpegQuality", "60");

//Configure URL files are uploaded to.
iu.addParam("Action", "upload.php");

//Configure URL where to redirect after upload.
iu.addParam("RedirectUrl", "albumready.php");

//Tell Image Uploader writer object to generate all necessary HTML code to embed 
//Image Uploader to the page.
iu.writeHtml();
//]]>
</script>
</body>
</html>
Oddly enough, I uploaded the demos to the remote server and IU seems to work just fine. Have a look: http://vivelafoto.fgbdesign.biz/demophp/BasicDemo/index.php This is my directory structure. I've made sure everything is in the right place: / /uploadPictures.php (references ImageUploader in same dir) /iuembed.js /ImageUploader2.jar /demophp (this is where the demos reside) /ImageUploader2.jar /BasicDemo /Common /Gallery /index.php /iuembed.js The page in this example (uploadPictures.php) references the top-level ImageUploader2.jar, not the one that's in the demophp directory. What am I doing wrong? This thing is driving me absolutely nuts. Can anybody please provide any help? Best regards, FGB.

Edited by user Tuesday, December 18, 2007 3:57:21 AM(UTC)  | Reason: Not specified

lfdgonzalez  
#2 Posted : Monday, April 30, 2007 1:29:03 PM(UTC)
lfdgonzalez

Rank: Member

Groups: Member
Joined: 4/28/2007(UTC)
Posts: 4

Due to the success obtained in searching for help everywhere and trial and error tests, I decided to copy the whole BasicDemo directory, rename the files then build that section of the app around it. It works now, it's just that now I'm lying here puzzled and thinking what the ... went wrong with my previous attempt. Tech support? Nope, they didn't answer me. FGB.
lfdgonzalez  
#3 Posted : Tuesday, May 01, 2007 5:20:10 AM(UTC)
lfdgonzalez

Rank: Member

Groups: Member
Joined: 4/28/2007(UTC)
Posts: 4

I e-mailed them on Sunday at 11:30PM (GMT-6). Yup, I tried mostly everything but as I stated in my previous post, I had to build around the BasicDemo. It works allright now, I'm even running some tests as I post. Thanks, FGB.
Alex Makhov  
#4 Posted : Sunday, May 06, 2007 2:05:05 PM(UTC)
Alex Makhov

Rank: Advanced Member

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

Hello, So did you fix the problem?
Sincerely yours, Alex Makhov UserPostedImage Follow Aurigma on Twitter!
lfdgonzalez  
#5 Posted : Monday, May 07, 2007 12:36:18 AM(UTC)
lfdgonzalez

Rank: Member

Groups: Member
Joined: 4/28/2007(UTC)
Posts: 4

Yes, I did. I tried a workaround. I took the BasicDemo then built the portion of the WebApp I needed using the index.php file as a base. I based it down to the directory structure and next time, what do you know, it worked. FGB.
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.