Hey there,

I am trying to use PageRenderLinkSource by Injecting it into a component,
and then using it in a property getter, like so:

@Inject
private PageRenderLinkSource linkSource;

public String getDetermineURL() {
        org.apache.tapestry5.Link link =
linkSource.createPageRenderLink("Start");
        return link.toString();
}

My tml:
<?xml version="1.0" encoding="UTF-8"?>
<div t:type="any" t:id="lug_browse"
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";>

    <t:loop empty="emptyMap" source="mapEntries" value="currentMapEntry">
        <ul>
            <li>
                 ${determineUrl} ${mapEntryName} 
            </li>
        </ul>
    </t:loop>

    <t:block t:id="emptyMap">
        blah
    </t:block>
</div>

Whil debugging, I can see the getMapEntries() property be called, and then,
boom:
/Users/seth/Library/Application
Support/IntelliJIDEA80/JettyIntegration/bin/jetty.sh: line 47:  6709
Segmentation fault      "${JAVA_HOME}/bin/java" ${JETTY_OPTS} "$...@}"

Only debugging info I have at this time is this:

1) If I change my getDetermineURL() method to just 'return ""', then no
error occurs. In other words, the LinkSource is still @Inject'ed into the
component, but it's used nowhere in the component, making me think this is
some sort of IoC related error. 

2) If I trace out RenderQueueImpl which command is running, this is what
leads up to the error:

EXECUTING COMMAND: RenderBody[lug_browse.loop]
EXECUTING COMMAND: BeforeRenderBody[test/Browse:lug_browse.loop]
 EXECUTING COMMAND: Block[Body of test/Browse:lug_browse.loop, at
classpath:com/lugiron/midway/web/components/Browse.tml, line 4]
EXECUTING COMMAND: CompositeRenderCommand[Start[ ul], Start[ li], Start[ a]]
EXECUTING COMMAND: AttributeNS[ href "${determineUrl}"]
/Users/seth/Library/Application
Support/IntelliJIDEA80/JettyIntegration/bin/jetty.sh: line 47:  6709
Segmentation fault      "${JAVA_HOME}/bin/java" ${JETTY_OPTS} "$...@}"

If anyone has any suggestions as to what I could try in terms of debugging,
I'd appreciate it!

Regards,
Seth
-- 
View this message in context: 
http://www.nabble.com/Debugging-Segmentation-Fault-whenever-Inject-PageRenderLinkSource-tp24867051p24867051.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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

Reply via email to