Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Embperl

ERR: 9999: Error (no description) Unstructured forward jump

 

 

ModPerl embperl RSS feed   Index | Next | Previous | View Threaded


george at piskorsky

Oct 8, 2009, 1:16 PM

Post #1 of 5 (2410 views)
Permalink
ERR: 9999: Error (no description) Unstructured forward jump

Hello!

I have Apache2.2 with mod_perl and Embperl2.3. The following script does not work:

<!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN>
<HTML>
<HEAD>
<TITLE>Test</TITLE>
</HEAD>
<BODY>
[.-
@array = (1,2,3,4,5,6,7,8);
$num = scalar @array;
$i = 0;
-]
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=10>
[$ while ($i < $num) $]

[$ if (($i % 2) == 0) $]
<TR>
[$ endif $]

<TD> [+ $array[$i] +] </TD>

[.$ if (($i % 2 == 1) || ($num - 1 == $i)) $]
</TR>
[$ endif $]

[- $i++ -]
[$ endwhile $]
</TABLE>
</BODY>
</HTML>

Apache give empty page and in error-log of apache I see the following string:
[746]ERR: 9999: Error (no description) Unstructured forward jump, /usr/local/www/apache22/data/test1.epl Line 14 ->
Line 18

Can anybody help me?

--
George Piskorsky


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


david.g.williams at nasa

Oct 8, 2009, 1:41 PM

Post #2 of 5 (2267 views)
Permalink
RE: 9999: Error (no description) Unstructured forward jump [In reply to]

It is complaining because your code would create unbalanced <TR></TR> tags. Why are you writing <TR> when the modulus is 0 but writing </TR> if modulus is 1? I think you should redesign your code.

-----Original Message-----
From: George Piskorsky [mailto:george [at] piskorsky]
Sent: Thursday, October 08, 2009 4:16 PM
To: embperl [at] perl
Subject: ERR: 9999: Error (no description) Unstructured forward jump

Hello!

I have Apache2.2 with mod_perl and Embperl2.3. The following script does not work:

<!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN>
<HTML>
<HEAD>
<TITLE>Test</TITLE>
</HEAD>
<BODY>
[.-
@array = (1,2,3,4,5,6,7,8);
$num = scalar @array;
$i = 0;
-]
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=10>
[$ while ($i < $num) $]

[$ if (($i % 2) == 0) $]
<TR>
[$ endif $]

<TD> [+ $array[$i] +] </TD>

[.$ if (($i % 2 == 1) || ($num - 1 == $i)) $]
</TR>
[$ endif $]

[- $i++ -]
[$ endwhile $]
</TABLE>
</BODY>
</HTML>

Apache give empty page and in error-log of apache I see the following string:
[746]ERR: 9999: Error (no description) Unstructured forward jump, /usr/local/www/apache22/data/test1.epl Line 14 ->
Line 18

Can anybody help me?

--
George Piskorsky


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


ed_grimm at raytheon

Oct 9, 2009, 6:36 AM

Post #3 of 5 (2254 views)
Permalink
Re: 9999: Error (no description) Unstructured forward jump [In reply to]

Actually, it wouldn't generate imbalanced tags - the final if has additional logic to balance the last row - but it does trigger EmbPerl's imbalanced tag detection anyway. Either generate one row per loop iteratiom or turn off EmbPerl's table parsing. Since that loop will probably run faster unrolled once (so there's only one if check in it), and your table should have balanced rows anyway (put the if check on the *contents* of the second <TD>, rather than eliminating the whole element), I strongly recommend the former approach.


----- Original Message -----
From: "Williams, David G. (HQ-JF000)[INDYNE INC]" [david.g.williams [at] nasa]
Sent: 10/08/2009 03:41 PM EST
To: George Piskorsky <george [at] piskorsky>; "embperl [at] perl" <embperl [at] perl>
Subject: RE: 9999: Error (no description) Unstructured forward jump



It is complaining because your code would create unbalanced <TR></TR> tags. Why are you writing <TR> when the modulus is 0 but writing </TR> if modulus is 1? I think you should redesign your code.

-----Original Message-----
From: George Piskorsky [mailto:george [at] piskorsky]
Sent: Thursday, October 08, 2009 4:16 PM
To: embperl [at] perl
Subject: ERR: 9999: Error (no description) Unstructured forward jump

Hello!

I have Apache2.2 with mod_perl and Embperl2.3. The following script does not work:

<!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN>
<HTML>
<HEAD>
<TITLE>Test</TITLE>
</HEAD>
<BODY>
[.-
@array = (1,2,3,4,5,6,7,8);
$num = scalar @array;
$i = 0;
-]
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=10>
[$ while ($i < $num) $]

[$ if (($i % 2) == 0) $]
<TR>
[$ endif $]

<TD> [+ $array[$i] +] </TD>

[.$ if (($i % 2 == 1) || ($num - 1 == $i)) $]
</TR>
[$ endif $]

[- $i++ -]
[$ endwhile $]
</TABLE>
</BODY>
</HTML>

Apache give empty page and in error-log of apache I see the following string:
[746]ERR: 9999: Error (no description) Unstructured forward jump, /usr/local/www/apache22/data/test1.epl Line 14 ->
Line 18

Can anybody help me?

--
George Piskorsky


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


The following line is added for your protection and will be used for analysis if this message is reported as spam: (Raytheon Analysis: IP=140.211.11.3; e-from=embperl-return-8771-eg=raytheon.com [at] perl; from=david.g.williams [at] nasa; date=Oct 8, 2009 8:43:22 PM; subject=RE: 9999: Error (no description) Unstructured forward jump)

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


benik9 at yahoo

Oct 12, 2009, 9:57 AM

Post #4 of 5 (2234 views)
Permalink
Re: 9999: Error (no description) Unstructured forward jump [In reply to]

I guess it won't complain if you can run the loops and assemble an output table string, inside a [- -] block, and then output the obtained string with [+$table+].
The code will be messier and cgi-like but it can be one alternative, in case you want to keep the processing logic.


Ben Kim


----- Original Message ----
From: Ed Grimm <ed_grimm [at] raytheon>
To: George Piskorsky <george [at] piskorsky>; embperl [at] perl
Sent: Fri, October 9, 2009 8:36:39 AM
Subject: Re: 9999: Error (no description) Unstructured forward jump

Actually, it wouldn't generate imbalanced tags - the final if has additional logic to balance the last row - but it does trigger EmbPerl's imbalanced tag detection anyway. Either generate one row per loop iteratiom or turn off EmbPerl's table parsing. Since that loop will probably run faster unrolled once (so there's only one if check in it), and your table should have balanced rows anyway (put the if check on the *contents* of the second <TD>, rather than eliminating the whole element), I strongly recommend the former approach.


----- Original Message -----
From: "Williams, David G. (HQ-JF000)[INDYNE INC]" [david.g.williams [at] nasa]
Sent: 10/08/2009 03:41 PM EST
To: George Piskorsky <george [at] piskorsky>; "embperl [at] perl" <embperl [at] perl>
Subject: RE: 9999: Error (no description) Unstructured forward jump



It is complaining because your code would create unbalanced <TR></TR> tags. Why are you writing <TR> when the modulus is 0 but writing </TR> if modulus is 1? I think you should redesign your code.

-----Original Message-----
From: George Piskorsky [mailto:george [at] piskorsky]
Sent: Thursday, October 08, 2009 4:16 PM
To: embperl [at] perl
Subject: ERR: 9999: Error (no description) Unstructured forward jump

Hello!

I have Apache2.2 with mod_perl and Embperl2.3. The following script does not work:

<!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN>
<HTML>
<HEAD>
<TITLE>Test</TITLE>
</HEAD>
<BODY>
[.-
@array = (1,2,3,4,5,6,7,8);
$num = scalar @array;
$i = 0;
-]
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=10>
[$ while ($i < $num) $]

[$ if (($i % 2) == 0) $]
<TR>
[$ endif $]

<TD> [+ $array[$i] +] </TD>

[.$ if (($i % 2 == 1) || ($num - 1 == $i)) $]
</TR>
[$ endif $]

[- $i++ -]
[$ endwhile $]
</TABLE>
</BODY>
</HTML>

Apache give empty page and in error-log of apache I see the following string:
[746]ERR: 9999: Error (no description) Unstructured forward jump, /usr/local/www/apache22/data/test1.epl Line 14 ->
Line 18

Can anybody help me?

--
George Piskorsky


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


The following line is added for your protection and will be used for analysis if this message is reported as spam: (Raytheon Analysis: IP=140.211.11.3; e-from=embperl-return-8771-eg=raytheon.com [at] perl; from=david.g.williams [at] nasa; date=Oct 8, 2009 8:43:22 PM; subject=RE: 9999: Error (no description) Unstructured forward jump)

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


andrewo at oriel

Oct 12, 2009, 1:52 PM

Post #5 of 5 (2233 views)
Permalink
RE: 9999: Error (no description) Unstructured forward jump [In reply to]

George,

To save searching through the docs, here's how to turn off embperl's
form/table/html parsing and just process the various types of code
blocks.

[$ syntax EmbperlBlocks $][# turn off special HTML processing #]

Do funky table stuff here

[$ syntax Embperl $][# back to normal #]

Cheers,

Andrew

> -----Original Message-----
> From: Ed Grimm [mailto:ed_grimm [at] raytheon]
> Sent: Saturday, 10 October 2009 12:37 AM
> To: George Piskorsky; embperl [at] perl
> Subject: Re: 9999: Error (no description) Unstructured forward jump
>
> Actually, it wouldn't generate imbalanced tags - the final if
> has additional logic to balance the last row - but it does
> trigger EmbPerl's imbalanced tag detection anyway. Either
> generate one row per loop iteratiom or turn off EmbPerl's
> table parsing. Since that loop will probably run faster
> unrolled once (so there's only one if check in it), and your
> table should have balanced rows anyway (put the if check on
> the *contents* of the second <TD>, rather than eliminating
> the whole element), I strongly recommend the former approach.
>
>
> ----- Original Message -----
> From: "Williams, David G. (HQ-JF000)[INDYNE INC]"
> [david.g.williams [at] nasa]
> Sent: 10/08/2009 03:41 PM EST
> To: George Piskorsky <george [at] piskorsky>;
> "embperl [at] perl" <embperl [at] perl>
> Subject: RE: 9999: Error (no description) Unstructured forward jump
>
>
>
> It is complaining because your code would create unbalanced
> <TR></TR> tags. Why are you writing <TR> when the modulus is
> 0 but writing </TR> if modulus is 1? I think you should
> redesign your code.
>
> -----Original Message-----
> From: George Piskorsky [mailto:george [at] piskorsky]
> Sent: Thursday, October 08, 2009 4:16 PM
> To: embperl [at] perl
> Subject: ERR: 9999: Error (no description) Unstructured forward jump
>
> Hello!
>
> I have Apache2.2 with mod_perl and Embperl2.3. The following
> script does not work:
>
> <!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN>
> <HTML>
> <HEAD>
> <TITLE>Test</TITLE>
> </HEAD>
> <BODY>
> [.-
> @array = (1,2,3,4,5,6,7,8);
> $num = scalar @array;
> $i = 0;
> -]
> <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=10>
> [$ while ($i < $num) $]
>
> [$ if (($i % 2) == 0) $]
> <TR>
> [$ endif $]
>
> <TD> [+ $array[$i] +] </TD>
>
> [.$ if (($i % 2 == 1) || ($num - 1 == $i)) $]
> </TR>
> [$ endif $]
>
> [- $i++ -]
> [$ endwhile $]
> </TABLE>
> </BODY>
> </HTML>
>
> Apache give empty page and in error-log of apache I see the
> following string:
> [746]ERR: 9999: Error (no description) Unstructured forward
> jump, /usr/local/www/apache22/data/test1.epl Line 14 ->
> Line 18
>
> Can anybody help me?
>
> --
> George Piskorsky
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe [at] perl
> For additional commands, e-mail: embperl-help [at] perl
>
>
> The following line is added for your protection and will be
> used for analysis if this message is reported as spam:
> (Raytheon Analysis: IP=140.211.11.3;
> e-from=embperl-return-8771-eg=raytheon.com [at] perl;
> from=david.g.williams [at] nasa; date=Oct 8, 2009 8:43:22 PM;
> subject=RE: 9999: Error (no description) Unstructured forward jump)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe [at] perl
> For additional commands, e-mail: embperl-help [at] perl
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl

ModPerl embperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.