You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Josh Long <st...@gmail.com> on 2006/08/11 23:07:00 UTC

Easy insert and tapestry 4.1

Hello all,

Anyone had any success getting the tapfx easy-insert component working in
tapestry 4.1? I tried (err.. dropped it in my classpath under WEB-INF/lib/
and replaced a working <span jwcid="@Insert" value ="ognl: company.name">
company</span> with ${company.name} on Home.html ) it in mine and was
rewarded with :

vemodule.xml, line 23, column 21]
        at
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation
(AbstractServiceModelImpl.java:166)
        at
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceImplementation
(AbstractServiceModelImpl.java:140)
        at
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActualServiceImplementation
(SingletonServiceModel.java:69)
        at
$TemplateSource_10cfef59b2c._service($TemplateSource_10cfef59b2c.java)
        at
$TemplateSource_10cfef59b2c.getTemplate($TemplateSource_10cfef59b2c.java)
        at
$TemplateSource_10cfef59b2b.getTemplate($TemplateSource_10cfef59b2b.java)
        at
org.apache.tapestry.services.impl.ComponentTemplateLoaderImpl.loadTemplate(
ComponentTemplateLoaderImpl.java:55)
        at
$ComponentTemplateLoader_10cfef59bda.loadTemplate($ComponentTemplateLoader_10cfef59bda.java)
        at org.apache.tapestry.pageload.PageLoader.loadTemplateForComponent(
PageLoader.java:639)
        at org.apache.tapestry.BaseComponent.readTemplate(BaseComponent.java
:77)
        at org.apache.tapestry.BaseComponent.finishLoad(BaseComponent.java
:107)
        at $Exception_4.finishLoad($Exception_4.java)
        at org.apache.tapestry.pageload.PageLoader.constructComponent(
PageLoader.java:428)
        at org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java
:603)
        at $IPageLoader_10cfef59bd0.loadPage($IPageLoader_10cfef59bd0.java)
        at $IPageLoader_10cfef59bd1.loadPage($IPageLoader_10cfef59bd1.java)
        at org.apache.tapestry.pageload.PageSource.getPage(PageSource.java
:117)
        at $IPageSource_10cfef59b37.getPage($IPageSource_10cfef59b37.java)
        at org.apache.tapestry.engine.RequestCycle.loadPage(
RequestCycle.java:241)
        at org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java
:228)
        at org.apache.tapestry.error.ExceptionPresenterImpl.presentException
(ExceptionPresenterImpl.java:42)
        ... 40 more
Caused by: org.apache.hivemind.ApplicationRuntimeException: Parameter
parameters must not be null.
[jar:file:/home/jlong/.m2/repository/tapfx/easy-insert/0.15/easy-
insert-0.15.jar!/META-INF/hivemodule.xml, line 23, column 21]
        at
org.apache.hivemind.impl.InvokeFactoryServiceConstructor.constructCoreServiceImplementation
(InvokeFactoryServiceConstructor.java:66)
        at
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCoreServiceImplementation
(AbstractServiceModelImpl.java:108)
        at
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation
(AbstractServiceModelImpl.java:158)
        ... 60 more
Caused by: java.lang.NullPointerException: Parameter parameters must not be
null.
        at org.apache.hivemind.util.Defense.notNull(Defense.java:41)
        at
org.apache.hivemind.impl.ServiceImplementationFactoryParametersImpl.<init>(
ServiceImplementationFactoryParametersImpl.java:47)
        at
org.apache.hivemind.impl.InvokeFactoryServiceConstructor.constructCoreServiceImplementation
(InvokeFactoryServiceConstructor.java:59)
        ... 62 more
:WARN:  Nested in org.apache.hivemind.ApplicationRuntimeException: Unable to
construct service EastInsert.EasyTemplateSource: Parameter parameters must
not be null.
[jar:file:/home/jlong/.m2/repository/tapfx/easy-insert/0.15/easy-
insert-0.15.jar!/META-INF/hivemodule.xml, line 23, column 21]:
org.apache.hivemind.ApplicationRuntimeException: Unable to construct service
EastInsert.EasyTemplateSource: Parameter parameters must not be null.
[jar:file:/home/jlong/.m2/repository/tapfx/easy-insert/0.15/easy-
insert-0.15.jar!/META-INF/hivemodule.xml, line 23, column 21]


Thanks again for any help,

Josh

Re: Easy insert and tapestry 4.1

Posted by an...@di.uoa.gr.
I've yet to try it on 4.1 - i'll take a look at the
problem and post an update soon.

BTW, i'll probably allow customization of those characters
and default them to #{...} instead of ${...}
The reason is that tacos (and perhaps tapestry later on) provides a 
binding that also makes use of these characters, i.e.

<span jwcid="@Insert" 
  value="template:User ${user.name} is ${user.age} years old!"/>

which may not be that useful in this exact case, but is quite
handy for defining javascript effects, e.t.c.

>From Josh Long <st...@gmail.com>:

> Hello all,
> 
> Anyone had any success getting the tapfx easy-insert component working in
> tapestry 4.1? I tried (err.. dropped it in my classpath under WEB-INF/lib/
> and replaced a working <span jwcid="@Insert" value ="ognl: company.name">
> company</span> with ${company.name} on Home.html ) it in mine and was
> rewarded with :
> 
> vemodule.xml, line 23, column 21]
>         at
>
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation
> (AbstractServiceModelImpl.java:166)
>         at
>
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceImplementation
> (AbstractServiceModelImpl.java:140)
>         at
>
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActualServiceImplementation
> (SingletonServiceModel.java:69)
>         at
> $TemplateSource_10cfef59b2c._service($TemplateSource_10cfef59b2c.java)
>         at
> $TemplateSource_10cfef59b2c.getTemplate($TemplateSource_10cfef59b2c.java)
>         at
> $TemplateSource_10cfef59b2b.getTemplate($TemplateSource_10cfef59b2b.java)
>         at
> org.apache.tapestry.services.impl.ComponentTemplateLoaderImpl.loadTemplate(
> ComponentTemplateLoaderImpl.java:55)
>         at
>
$ComponentTemplateLoader_10cfef59bda.loadTemplate($ComponentTemplateLoader_10cfef59bda.java)
>         at org.apache.tapestry.pageload.PageLoader.loadTemplateForComponent(
> PageLoader.java:639)
>         at org.apache.tapestry.BaseComponent.readTemplate(BaseComponent.java
> :77)
>         at org.apache.tapestry.BaseComponent.finishLoad(BaseComponent.java
> :107)
>         at $Exception_4.finishLoad($Exception_4.java)
>         at org.apache.tapestry.pageload.PageLoader.constructComponent(
> PageLoader.java:428)
>         at org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java
> :603)
>         at $IPageLoader_10cfef59bd0.loadPage($IPageLoader_10cfef59bd0.java)
>         at $IPageLoader_10cfef59bd1.loadPage($IPageLoader_10cfef59bd1.java)
>         at org.apache.tapestry.pageload.PageSource.getPage(PageSource.java
> :117)
>         at $IPageSource_10cfef59b37.getPage($IPageSource_10cfef59b37.java)
>         at org.apache.tapestry.engine.RequestCycle.loadPage(
> RequestCycle.java:241)
>         at org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java
> :228)
>         at org.apache.tapestry.error.ExceptionPresenterImpl.presentException
> (ExceptionPresenterImpl.java:42)
>         ... 40 more
> Caused by: org.apache.hivemind.ApplicationRuntimeException: Parameter
> parameters must not be null.
> [jar:file:/home/jlong/.m2/repository/tapfx/easy-insert/0.15/easy-
> insert-0.15.jar!/META-INF/hivemodule.xml, line 23, column 21]
>         at
>
org.apache.hivemind.impl.InvokeFactoryServiceConstructor.constructCoreServiceImplementation
> (InvokeFactoryServiceConstructor.java:66)
>         at
>
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCoreServiceImplementation
> (AbstractServiceModelImpl.java:108)
>         at
>
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation
> (AbstractServiceModelImpl.java:158)
>         ... 60 more
> Caused by: java.lang.NullPointerException: Parameter parameters must not be
> null.
>         at org.apache.hivemind.util.Defense.notNull(Defense.java:41)
>         at
> org.apache.hivemind.impl.ServiceImplementationFactoryParametersImpl.<init>(
> ServiceImplementationFactoryParametersImpl.java:47)
>         at
>
org.apache.hivemind.impl.InvokeFactoryServiceConstructor.constructCoreServiceImplementation
> (InvokeFactoryServiceConstructor.java:59)
>         ... 62 more
> :WARN:  Nested in org.apache.hivemind.ApplicationRuntimeException: Unable to
> construct service EastInsert.EasyTemplateSource: Parameter parameters must
> not be null.
> [jar:file:/home/jlong/.m2/repository/tapfx/easy-insert/0.15/easy-
> insert-0.15.jar!/META-INF/hivemodule.xml, line 23, column 21]:
> org.apache.hivemind.ApplicationRuntimeException: Unable to construct service
> EastInsert.EasyTemplateSource: Parameter parameters must not be null.
> [jar:file:/home/jlong/.m2/repository/tapfx/easy-insert/0.15/easy-
> insert-0.15.jar!/META-INF/hivemodule.xml, line 23, column 21]
> 
> 
> Thanks again for any help,
> 
> Josh
> 


-- 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Easy insert and tapestry 4.1

Posted by andyhot <an...@di.uoa.gr>.
Just added 0.20 release - better update to it now...

FAQ is at
http://tapfx.sourceforge.net/multiproject/tapfx-easyinsert/faq.html
Prefixes can be changed by adding something like this in your
hivemodule.xml:

<contribution configuration-id="EasyInsert.Prefix">
    <use prefix="#" />
</contribution>

Don't know if this eventually be useful for others, but the new idea
here (for
the next release) is to allow such configurations:

<contribution configuration-id="EasyInsert.Prefix">
    <use prefix="#" for="ognl"/>
    <use prefix="%" for="message"/>
    <use prefix="*" for="prop"/>
</contribution>

Josh Long wrote:
> Seems to work wonderfully, Andreas! Very useful.. Thanks again, and
> apologies for the long delay.
>
> Josh
>
> On 8/11/06, andyhot@di.uoa.gr <an...@di.uoa.gr> wrote:
>> Hey josh, since i'm not yer ready for a release of easyinsert,
>> here's an untested jar to try...
>>
>>
>>
>> From Josh Long <st...@gmail.com>:
>>
>> > Hello all,
>> >
>> > Anyone had any success getting the tapfx easy-insert component
>> working in
>> > tapestry 4.1? I tried (err.. dropped it in my classpath under
>> WEB-INF/lib/
>> > and replaced a working <span jwcid="@Insert" value ="ognl:
>> company.name">
>> > company</span> with ${company.name} on Home.html ) it in mine and was
>> > rewarded with :
>> >
>> > vemodule.xml, line 23, column 21]
>> >         at
>> >
>> org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation
>>
>> > (AbstractServiceModelImpl.java:166)
>> >         at
>> >
>> > not be null.
>> > [jar:file:/home/jlong/.m2/repository/tapfx/easy-insert/0.15/easy-
>> > insert-0.15.jar!/META-INF/hivemodule.xml, line 23, column 21]:
>> > org.apache.hivemind.ApplicationRuntimeException: Unable to
>> construct service
>> > EastInsert.EasyTemplateSource: Parameter parameters must not be null.
>> > [jar:file:/home/jlong/.m2/repository/tapfx/easy-insert/0.15/easy-
>> > insert-0.15.jar!/META-INF/hivemodule.xml, line 23, column 21]
>> >
>> >
>> > Thanks again for any help,
>> >
>> > Josh
>> >
>>
>>
>> -- 
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Easy insert and tapestry 4.1

Posted by Josh Long <st...@gmail.com>.
Seems to work wonderfully, Andreas! Very useful.. Thanks again, and
apologies for the long delay.

Josh

On 8/11/06, andyhot@di.uoa.gr <an...@di.uoa.gr> wrote:
> Hey josh, since i'm not yer ready for a release of easyinsert,
> here's an untested jar to try...
>
>
>
> From Josh Long <st...@gmail.com>:
>
> > Hello all,
> >
> > Anyone had any success getting the tapfx easy-insert component working in
> > tapestry 4.1? I tried (err.. dropped it in my classpath under WEB-INF/lib/
> > and replaced a working <span jwcid="@Insert" value ="ognl: company.name">
> > company</span> with ${company.name} on Home.html ) it in mine and was
> > rewarded with :
> >
> > vemodule.xml, line 23, column 21]
> >         at
> >
> org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation
> > (AbstractServiceModelImpl.java:166)
> >         at
> >
> > not be null.
> > [jar:file:/home/jlong/.m2/repository/tapfx/easy-insert/0.15/easy-
> > insert-0.15.jar!/META-INF/hivemodule.xml, line 23, column 21]:
> > org.apache.hivemind.ApplicationRuntimeException: Unable to construct service
> > EastInsert.EasyTemplateSource: Parameter parameters must not be null.
> > [jar:file:/home/jlong/.m2/repository/tapfx/easy-insert/0.15/easy-
> > insert-0.15.jar!/META-INF/hivemodule.xml, line 23, column 21]
> >
> >
> > Thanks again for any help,
> >
> > Josh
> >
>
>
> --
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Easy insert and tapestry 4.1

Posted by an...@di.uoa.gr.
Hey josh, since i'm not yer ready for a release of easyinsert,
here's an untested jar to try...



>From Josh Long <st...@gmail.com>:

> Hello all,
> 
> Anyone had any success getting the tapfx easy-insert component working in
> tapestry 4.1? I tried (err.. dropped it in my classpath under WEB-INF/lib/
> and replaced a working <span jwcid="@Insert" value ="ognl: company.name">
> company</span> with ${company.name} on Home.html ) it in mine and was
> rewarded with :
> 
> vemodule.xml, line 23, column 21]
>         at
>
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation
> (AbstractServiceModelImpl.java:166)
>         at
> 
> not be null.
> [jar:file:/home/jlong/.m2/repository/tapfx/easy-insert/0.15/easy-
> insert-0.15.jar!/META-INF/hivemodule.xml, line 23, column 21]:
> org.apache.hivemind.ApplicationRuntimeException: Unable to construct service
> EastInsert.EasyTemplateSource: Parameter parameters must not be null.
> [jar:file:/home/jlong/.m2/repository/tapfx/easy-insert/0.15/easy-
> insert-0.15.jar!/META-INF/hivemodule.xml, line 23, column 21]
> 
> 
> Thanks again for any help,
> 
> Josh
> 


-- 


Re: Easy insert and tapestry 4.1

Posted by Patrick Moore <pm...@yahoo.com>.
It says that the parameter 'parameters' must not be null....

--- Josh Long <st...@gmail.com> wrote:

> Hello all,
> 
> Anyone had any success getting the tapfx easy-insert component working in
> tapestry 4.1? I tried (err.. dropped it in my classpath under WEB-INF/lib/
> and replaced a working <span jwcid="@Insert" value ="ognl: company.name">
> company</span> with ${company.name} on Home.html ) it in mine and was
> rewarded with :
> 
> vemodule.xml, line 23, column 21]
>         at
>
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation
> (AbstractServiceModelImpl.java:166)
>         at
>
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceImplementation
> (AbstractServiceModelImpl.java:140)
>         at
>
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActualServiceImplementation
> (SingletonServiceModel.java:69)
>         at
> $TemplateSource_10cfef59b2c._service($TemplateSource_10cfef59b2c.java)
>         at
> $TemplateSource_10cfef59b2c.getTemplate($TemplateSource_10cfef59b2c.java)
>         at
> $TemplateSource_10cfef59b2b.getTemplate($TemplateSource_10cfef59b2b.java)
>         at
> org.apache.tapestry.services.impl.ComponentTemplateLoaderImpl.loadTemplate(
> ComponentTemplateLoaderImpl.java:55)
>         at
>
$ComponentTemplateLoader_10cfef59bda.loadTemplate($ComponentTemplateLoader_10cfef59bda.java)
>         at org.apache.tapestry.pageload.PageLoader.loadTemplateForComponent(
> PageLoader.java:639)
>         at org.apache.tapestry.BaseComponent.readTemplate(BaseComponent.java
> :77)
>         at org.apache.tapestry.BaseComponent.finishLoad(BaseComponent.java
> :107)
>         at $Exception_4.finishLoad($Exception_4.java)
>         at org.apache.tapestry.pageload.PageLoader.constructComponent(
> PageLoader.java:428)
>         at org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java
> :603)
>         at $IPageLoader_10cfef59bd0.loadPage($IPageLoader_10cfef59bd0.java)
>         at $IPageLoader_10cfef59bd1.loadPage($IPageLoader_10cfef59bd1.java)
>         at org.apache.tapestry.pageload.PageSource.getPage(PageSource.java
> :117)
>         at $IPageSource_10cfef59b37.getPage($IPageSource_10cfef59b37.java)
>         at org.apache.tapestry.engine.RequestCycle.loadPage(
> RequestCycle.java:241)
>         at org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java
> :228)
>         at org.apache.tapestry.error.ExceptionPresenterImpl.presentException
> (ExceptionPresenterImpl.java:42)
>         ... 40 more
> Caused by: org.apache.hivemind.ApplicationRuntimeException: Parameter
> parameters must not be null.
> [jar:file:/home/jlong/.m2/repository/tapfx/easy-insert/0.15/easy-
> insert-0.15.jar!/META-INF/hivemodule.xml, line 23, column 21]
>         at
>
org.apache.hivemind.impl.InvokeFactoryServiceConstructor.constructCoreServiceImplementation
> (InvokeFactoryServiceConstructor.java:66)
>         at
>
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCoreServiceImplementation
> (AbstractServiceModelImpl.java:108)
>         at
>
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation
> (AbstractServiceModelImpl.java:158)
>         ... 60 more
> Caused by: java.lang.NullPointerException: Parameter parameters must not be
> null.
>         at org.apache.hivemind.util.Defense.notNull(Defense.java:41)
>         at
> org.apache.hivemind.impl.ServiceImplementationFactoryParametersImpl.<init>(
> ServiceImplementationFactoryParametersImpl.java:47)
>         at
>
org.apache.hivemind.impl.InvokeFactoryServiceConstructor.constructCoreServiceImplementation
> (InvokeFactoryServiceConstructor.java:59)
>         ... 62 more
> :WARN:  Nested in org.apache.hivemind.ApplicationRuntimeException: Unable to
> construct service EastInsert.EasyTemplateSource: Parameter parameters must
> not be null.
> [jar:file:/home/jlong/.m2/repository/tapfx/easy-insert/0.15/easy-
> insert-0.15.jar!/META-INF/hivemodule.xml, line 23, column 21]:
> org.apache.hivemind.ApplicationRuntimeException: Unable to construct service
> EastInsert.EasyTemplateSource: Parameter parameters must not be null.
> [jar:file:/home/jlong/.m2/repository/tapfx/easy-insert/0.15/easy-
> insert-0.15.jar!/META-INF/hivemodule.xml, line 23, column 21]
> 
> 
> Thanks again for any help,
> 
> Josh
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org