3 Replies Latest reply on Jan 8, 2009 12:34 PM by maxandersen

    JBoss Tools Model Update NPE

    jboden

      Hi,

      Whenever I open an existing project in the new jboss tools editor, I get this error:

      An internal error occurred during: "JBoss Tools Model Update".

      java.lang.NullPointerException
      at java.util.Hashtable.put(Hashtable.java:394)
      at org.jboss.tools.jst.web.tld.TaglibMapping.findTldsInFolder(TaglibMapping.java:227)
      at org.jboss.tools.jst.web.tld.TaglibMapping.loadTldsInWebInf(TaglibMapping.java:172)
      at org.jboss.tools.jst.web.tld.TaglibMapping.revalidate(TaglibMapping.java:82)
      at org.jboss.tools.jsf.web.JSFWatcherContributor.updateProject(JSFWatcherContributor.java:49)
      at org.jboss.tools.common.model.project.Watcher.updateAll(Watcher.java:109)
      at org.jboss.tools.common.model.project.Watcher.access$0(Watcher.java:92)
      at org.jboss.tools.common.model.project.Watcher$WatcherRunnable.run(Watcher.java:52)
      at org.jboss.tools.common.model.XJob.runInWorkspace(XJob.java:156)
      at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

      Anyone know what it is and/or how to find out what's missing?
      Thanks!

        • 1. Re: JBoss Tools Model Update NPE
          maxandersen

          please report in jira and attach the content of your eclipse log (i.e. the file generate via Help > Report a problem)

          • 2. Re: JBoss Tools Model Update NPE
            jboden

            I actually tracked the problem down to one TLD file. If this is in web-inf, I get the error. The name is functions.tld. I removed all but one function definition and still get the NPE:

            <?xml version="1.0" encoding="UTF-8" ?>



            <tlib-version>1.0</tlib-version>
            1.1
            AA Functions
            http://www.foo.com/functions
            AA Functions


            isApproved
            <function-class>com.foo.aa.webapp.util.WebUtils</function-class>
            <function-signature>
            boolean isApproved(com.foo.aa.business.ReviewRecord)
            </function-signature>


            • 3. Re: JBoss Tools Model Update NPE
              maxandersen

              thanks for tracking down - please report it in jira with the steps we need to do to reproduce it (i..e attach a minimal project ?)