From: Jost B. <jos...@ya...> - 2005-09-06 16:30:46
|
Hi Jonathan, > I get a null pointer exception whenever I try to > "put" a session > variable with a null value. Thank you very much for the bug report. The non-j2ee Session (please see http://cvs.sourceforge.net/viewcvs.py/php-java-bridge/php-java-bridge/server/php/java/bridge/Session.java?rev=1.10&view=markup) is currently backed by a Hashtable. That must be a HashMap, of course[1]. If you have the JavaBridge backend running in eclipse, please change the line protected Hashtable map; to protected HashMap map; I will fix this bug for the official 2.0.8 release. -> PR1283148 (https://sourceforge.net/tracker/index.php?func=detail&aid=1283148&group_id=117793&atid=679233) > behavior? How should one > remove a single variable from the session store? Please use $session->remove($var). Please see http://cvs.sourceforge.net/viewcvs.py/php-java-bridge/php-java-bridge/server/php/java/bridge/ISession.java?view=markup > With that in mind, a full explanation of how to use > the bridge's Java > session store is in order. The java_get_session() invokes JavaBridge.getSession() which returns an ISession (see above). The actual implementation is either the servlet's HttpSessionFacade or our own Session.java, when the backend runs outside of a standard j2ee environment. > scratches the surface. What are all the available > methods? Please see the interface ISession.java above. -> PR1283154 (https://sourceforge.net/tracker/index.php?func=detail&aid=1283154&group_id=117793&atid=679233) > In general, the bridge's documentation could use a > lot of work. I'd be > willing to help flesh it out That would be great. If you want to document the 10 ISession methods, we can give you CVS write account. > Perhaps > using a wiki would help, so it could be more of a > collaborative effort? That's also a good idea. But then we need someone to maintain it. -> PR1283159 (https://sourceforge.net/tracker/index.php?func=detail&aid=1283159&group_id=117793&atid=679233) Regards, Jost Boekemeier [1] When we change from Hashtable to Hashmap, we must do the synchronization ourselfs. I guess that was the reason why I've used a Hashtable... ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |