• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Frontman2 beta: strange startup error

 
Rancher
Posts: 4803
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 4803
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
more debugging info:

from web.xml
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 4803
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 4803
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So, I made the fix:



no joy. get a different runtime error


 
Pat Farrell
Rancher
Posts: 4803
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks like a cockpit error.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic