[Logo] Forums for GrailsFlow, Weceem, XSLfast
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Nullpointer during start application  XML
Forum Index » Weceem Forum
Author Message
tomeq



Joined: 02/09/2009 08:09:13
Messages: 7
Offline

Hello,

My environment:
Linux
Grails 1.1.1
Weceem 0.2

Steps:
1. create new app
2. install weceem plugin
3. start application

after that, when i try to go to the admin page, there is NullPointer Exception raised:
(...)
Caused by: java.lang.NullPointerException: Cannot get property 'name' on null object
at org.weceem.controllers.RepositoryController$_closure1.doCall(RepositoryController.groovy:77)
at org.weceem.controllers.RepositoryController$_closure1.doCall(RepositoryController.groovy)

It looks that the 1ST step should be declaration of Space, after that it works correctly

Another problem that i noticed is bug on the 'edit page' of space:
27: <g:render plugin="weceem"template="/space/form" model="[space: space]"/>

lack of space before template

But when i try to go through 'hello world' example then the result is unfortunately error 404:
RequestURI=/smartportal/grails/content/show.dispatch

..and i have not an idea how to solve the last problem

regards

tomasz
marcpalmer



Joined: 04/06/2009 13:36:35
Messages: 286
Location: UK
Offline

Yes, in 0.2 the plugin does not create any spaces. 0.3 Resolves this.

- -
Twitter: wangjammer5
Blog: http://www.anyware.co.uk
Grails plugins: http://www.grailsrocks.com
[WWW]
Anonymous



but what is acorrect flow?

1. create space name:'test' (uri is empty)
2. create html content 'hello world' (extra: alias URI: 'index.html')

and what is a correct path to my content?

http://<server>/<app-name>/test/index.html doesn't work
marcpalmer



Joined: 04/06/2009 13:36:35
Messages: 286
Location: UK
Offline

If you don't specify a URI for the space, then it maps to <appcontext>/

So for your example, the URL is http://<server>/<app-name>/index.html

If you set the uri on the space to say "yeehaa" the URL would be

http://<server>/<app-name>/yeehaa/index.html


- -
Twitter: wangjammer5
Blog: http://www.anyware.co.uk
Grails plugins: http://www.grailsrocks.com
[WWW]
Anonymous



hmm,

something is wrong in my process.
I suppose that at least Action: 'preview selected' should work... but it doesn't

below there are a debug logs from my application:

marcpalmer



Joined: 04/06/2009 13:36:35
Messages: 286
Location: UK
Offline

It works fine for us. Did you select a row first? Did you mark the content as "Published" status? If it is not published, it will show 404

It is showing status as "Status : 1". I think that is draft. Previewing non-published content is not currently supported.

This message was edited 1 time. Last update was at 02/09/2009 11:58:53


- -
Twitter: wangjammer5
Blog: http://www.anyware.co.uk
Grails plugins: http://www.grailsrocks.com
[WWW]
Anonymous



Also for status:' published' the same (404) result
tomeq



Joined: 02/09/2009 08:09:13
Messages: 7
Offline

Also for status:' published' the same (404) result

so i will try to debug ContentController

or do you have any other idea

maybe the important thing is that i use it without acegi plugin (?)

regards

tomasz
marcpalmer



Joined: 04/06/2009 13:36:35
Messages: 286
Location: UK
Offline

No this is not an issue. If you run-app the plugin on its own it works fine. I don't think there is a generic bug. Please detail the exact steps to reproduce this problem.

- -
Twitter: wangjammer5
Blog: http://www.anyware.co.uk
Grails plugins: http://www.grailsrocks.com
[WWW]
tomeq



Joined: 02/09/2009 08:09:13
Messages: 7
Offline

Ok,



0. Run netbeans 6.7.1, Clear DB & project, there is only weceem plugin installed ( of course with searchable,etc...)
1. grails run-app
2. click space controller (http://localhost:8080/smartportal/admin/space/list)
3. add a new space (name:test, Uri is empty)
4. click 'Content' (http://localhost:8080/smartportal/admin/repository/treeTable?space=test) and the +New Content
5. create HTML content: name: content1, content: this is a test, status: Published (4), extra. Alias Uri: index.html
6. save it
7. select the page on the page list
8. and click 'Preview selected' from 'More Actions'
9. the result is 404 ( and the page address is showed as expected: http://localhost:8080/smartportal/index.html)

regards

tomasz
tomeq



Joined: 02/09/2009 08:09:13
Messages: 7
Offline

the problem is solved,
reason: alias URI with '.html' doesn't work


regards

tomasz
 
Forum Index » Weceem Forum
Go to:   
Powered by JForum 2.1.8 © JForum Team