You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Mrutyunjay Sahasrabudhe <mr...@techmahindra.com> on 2010/08/17 12:19:54 UTC

unable to use afp:resource-level="external" for

Hi,

I am using FOP 1.0 version.

I am trying to use the afp:resource-level="external" for <fo:external-graphic> 
but getting an exception as below:

java.lang.ClassCastException: java.util.HashMap$Entry cannot be cast to 
org.apache.fop.afp.modca.StreamedResourceGroup

I did check replies on a similar query posted earlier and ensured that the 
user running FOP does have write persmissions to the file/directory where the 
external resource file is expected to be created.

It would be really great if you could help here.

Thanks & regards,
Mrutyunjay


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


Needs for GSS Tools to support Win7 and/or 64-bit?

Posted by Andrejus Chaliapinas <a....@infosana.com>.
Ron,

Please let me for if in near future - like 6-12 months from now GSS Tools
will need to support Win7 and 64-bit environment.

My standard test environment so far was only 32-bit based with Windows XP
32-bit or Windows Enterprise Server 2003 32-bit.

After we'll finalize financial part of TAMK project - it's possible that
I'll upgrade INFOSANA's available computers park to include 1 more with
Win7/64-bit into it. Of course, there is also need to have new MS C/C++
64-bit compiler purchased for INFOSANA then to be able to prepare 64-bit
executables.

If GSS will ever plan to cover partly that Win7/64-bit such support addition
into tools suites - I may decide in that direction even sooner.

Andrejus

---

INFOSANA - Information Systems Analysis and Adaptation.
IBM Advanced Business Partner
Ozo 15-25, LT-05126 Vilnius, Lithuania
Phone/fax: +370 5 2417995 Mobile: +370 686 09095 WWW:
http://www.infosana.com

"The only place where your dream becomes impossible is in your own
thinking." --Robert H. Schuller




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


Re: unable to use afp:resource-level="external" for

Posted by Julien Aymé <ju...@gmail.com>.
Hi Pete,

you're right, there is a bug there (line 161 on trunk), but it is not
fixed yet (on trunk, rev 986204).

Regards,
Julien

2010/8/17 Peter Hancock <pe...@gmail.com>:
> Hi,
> There is a bug in src/java/org/apache/fop/afp/AFPStreamer.java around line 160:
>  Iterator it = pathResourceGroupMap.entrySet().iterator();
> should be
>  Iterator it = pathResourceGroupMap.values().iterator();
>
> I think I fixed this is a patch I submitted recently.  Let me check..
>
> Pete
>
> On Tue, Aug 17, 2010 at 11:24 AM, Julien Aymé <ju...@gmail.com> wrote:
>> Hi,
>>
>> Could you provide the full stack trace, so that we can investigate the code?
>>
>> Thanks,
>>
>> Julien
>>
>> 2010/8/17 Mrutyunjay Sahasrabudhe <mr...@techmahindra.com>:
>>> Hi,
>>>
>>> I am using FOP 1.0 version.
>>>
>>> I am trying to use the afp:resource-level="external" for <fo:external-graphic>
>>> but getting an exception as below:
>>>
>>> java.lang.ClassCastException: java.util.HashMap$Entry cannot be cast to
>>> org.apache.fop.afp.modca.StreamedResourceGroup
>>>
>>> I did check replies on a similar query posted earlier and ensured that the
>>> user running FOP does have write persmissions to the file/directory where the
>>> external resource file is expected to be created.
>>>
>>> It would be really great if you could help here.
>>>
>>> Thanks & regards,
>>> Mrutyunjay
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>

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


Re: unable to use afp:resource-level="external"

Posted by Mrutyunjay Sahasrabudhe <mr...@techmahindra.com>.
Thansk a lot Peter and Julien.

I changed the line from the AFPStreamer.java as you suggested and checked that 
it is working as expected.

Thank you so much for your help.

Best regards,
Mrutyunjay



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


Re: unable to use afp:resource-level="external" for

Posted by Peter Hancock <pe...@gmail.com>.
Hi,

Yep my patch for feature
(https://issues.apache.org/bugzilla/show_bug.cgi?id=49379) included a
fix.  It would be great if a commiter could review that patch and
commit the fix with the feature.

Pete

On Tue, Aug 17, 2010 at 11:52 AM, Peter Hancock <pe...@gmail.com> wrote:
> Hi,
> There is a bug in src/java/org/apache/fop/afp/AFPStreamer.java around line 160:
>  Iterator it = pathResourceGroupMap.entrySet().iterator();
> should be
>  Iterator it = pathResourceGroupMap.values().iterator();
>
> I think I fixed this is a patch I submitted recently.  Let me check..
>
> Pete
>
> On Tue, Aug 17, 2010 at 11:24 AM, Julien Aymé <ju...@gmail.com> wrote:
>> Hi,
>>
>> Could you provide the full stack trace, so that we can investigate the code?
>>
>> Thanks,
>>
>> Julien
>>
>> 2010/8/17 Mrutyunjay Sahasrabudhe <mr...@techmahindra.com>:
>>> Hi,
>>>
>>> I am using FOP 1.0 version.
>>>
>>> I am trying to use the afp:resource-level="external" for <fo:external-graphic>
>>> but getting an exception as below:
>>>
>>> java.lang.ClassCastException: java.util.HashMap$Entry cannot be cast to
>>> org.apache.fop.afp.modca.StreamedResourceGroup
>>>
>>> I did check replies on a similar query posted earlier and ensured that the
>>> user running FOP does have write persmissions to the file/directory where the
>>> external resource file is expected to be created.
>>>
>>> It would be really great if you could help here.
>>>
>>> Thanks & regards,
>>> Mrutyunjay
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>
>>
>

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


Re: unable to use afp:resource-level="external" for

Posted by Peter Hancock <pe...@gmail.com>.
Hi,
There is a bug in src/java/org/apache/fop/afp/AFPStreamer.java around line 160:
  Iterator it = pathResourceGroupMap.entrySet().iterator();
should be
  Iterator it = pathResourceGroupMap.values().iterator();

I think I fixed this is a patch I submitted recently.  Let me check..

Pete

On Tue, Aug 17, 2010 at 11:24 AM, Julien Aymé <ju...@gmail.com> wrote:
> Hi,
>
> Could you provide the full stack trace, so that we can investigate the code?
>
> Thanks,
>
> Julien
>
> 2010/8/17 Mrutyunjay Sahasrabudhe <mr...@techmahindra.com>:
>> Hi,
>>
>> I am using FOP 1.0 version.
>>
>> I am trying to use the afp:resource-level="external" for <fo:external-graphic>
>> but getting an exception as below:
>>
>> java.lang.ClassCastException: java.util.HashMap$Entry cannot be cast to
>> org.apache.fop.afp.modca.StreamedResourceGroup
>>
>> I did check replies on a similar query posted earlier and ensured that the
>> user running FOP does have write persmissions to the file/directory where the
>> external resource file is expected to be created.
>>
>> It would be really great if you could help here.
>>
>> Thanks & regards,
>> Mrutyunjay
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>

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


Re: unable to use afp:resource-level="external" for

Posted by Julien Aymé <ju...@gmail.com>.
Hi,

Could you provide the full stack trace, so that we can investigate the code?

Thanks,

Julien

2010/8/17 Mrutyunjay Sahasrabudhe <mr...@techmahindra.com>:
> Hi,
>
> I am using FOP 1.0 version.
>
> I am trying to use the afp:resource-level="external" for <fo:external-graphic>
> but getting an exception as below:
>
> java.lang.ClassCastException: java.util.HashMap$Entry cannot be cast to
> org.apache.fop.afp.modca.StreamedResourceGroup
>
> I did check replies on a similar query posted earlier and ensured that the
> user running FOP does have write persmissions to the file/directory where the
> external resource file is expected to be created.
>
> It would be really great if you could help here.
>
> Thanks & regards,
> Mrutyunjay
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>

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