Hi,
When I try to create an Java instance I got this strange error message. It doesn't cause my program stop to work, but I'm confused about it, and why does it happen. Here is the complete code:
try{
$repository=new Java("depths.moodle.RepositoryFactory");
if (!isset($repository)){
throw new Exception("Could not create repository!");
}
} catch (Exception $e){
echo "Error (File: " .$e->getFile().", line ".$e->getLine()."): ".$e->getCause() ." end of message. <br>";
echo "<br> ".$e->getMessage();
echo "<br> ".$e;
}
$_SESSION['xy']="someValue";
$_SESSION['instance']=$repository;
echo "Session xy=".$_SESSION['xy'];
echo "<br>";
if (isset($_SESSION['instance']))
{echo "instance exists";
echo "<br>";}
else{
echo "instance does not exists";
}
?>
Output of this page is as follows:
Session xy=someValue
instance exists
protocol error: , Invalid document end at col 22. Check the back end log for details.
Could you please indicate what did cause this error?
Thanks,
Zoran
---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search.
|