Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Frontman2 beta: strange startup error

 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been using Frontman version 2 doing beta testing for a few months with no problems.

Now I've got a problem that has me baffled.

Background: I started getting "index out of bounds" exceptions when I called

ctx.forwardToView(destination);


Most strange, so I decided, as a good beta tester, to debug it. To do this, I had to create a Netbeans project for Frontman, so the debugger could bind the source to the .class files.
Now, I can't get any of Frontman to work.

The logs show:


13:34:36,848 INFO CommandBroker:57 - Initializing FrontMan...
13:34:36,849 DEBUG CommandBroker:39 - commandVerbsProperties=null
13:34:36,849 DEBUG CommandBroker:39 - commandPackages(raw) = null
13:34:36,849 DEBUG CommandBroker:39 - viewNamesProperties=null
13:34:36,850 DEBUG CommandBroker:39 - viewsPath=/WEB-INF/pages
13:34:36,850 WARN CommandBroker:87 - At least one of commandPackages or commandVerbsProperties must be specified; CommandBroker is unavailable


I have not changed the web.xml, or my calling code. All I'm trying to do is link in a jar file that knows about the sources.....
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
more debugging info:

from web.xml
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64633
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With Frontman 2, you can specify multiple base packages to search for auto-configured commands. So the init param has changed to commandPackages.
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
er, a change is OK, but why has it worked the past couple of months of Beta testing?

BTW: Probably should have a "change this" section added to the docs/
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, I made the fix:



no joy. get a different runtime error


 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like a cockpit error.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic