I'm trying to figure this one out:

Person person = new Person();
  | person.setHobbies(new HashMap());
  | Iterator i = person.getHobbies().values().iterator();
  | 
  | Util.getClusterCache().putObject("/test", person);
  | person = (Person)Util.getClusterCache().getObject("/test");
  | 
  | i = person.getHobbies().values().iterator();
  | ...
  | public static synchronized TreeCacheAop getClusterCache(){
  |     if(treeCache == null){
  |             try {
  |                     treeCache = new TreeCacheAop();
  |                     PropertyConfigurator config = new PropertyConfigurator(); // 
configure tree cache. 
  |                     config.configure(treeCache, "META-INF/replSync-service.xml");
  |                     treeCache.startService();
  |             } catch (Exception e) {
  |                     traceLog.fatal("Error while initializing JBoss cache", e);
  |             }
  |     }
  |     return treeCache;
  | }

Why does line 8 (.values.iterator()) cause a NullPointerException but line 3 doesn't?


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848887#3848887

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848887


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to