473,385 Members | 1,373 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Stream closed Exception !! Need Help!!

18
Hi All;

I was trying to get this "source" into a BufferedReader ;
but when running it gives a Exception as follows:
-----------------------------------------------------------------------------------------
org.apache.fop.apps.FOPException: Stream closed

at java.io.CharArrayReader.ensureOpen(CharArrayReader .java:65)

at java.io.CharArrayReader.read(CharArrayReader.java: 95)

at java.io.BufferedReader.read1(BufferedReader.java:1 85)

at java.io.BufferedReader.read(BufferedReader.java:26 1)

at org.apache.fop.apps.Driver.render(Driver.java:542)


----------------------------------------------------------------------------------------------
public void render(InputSource source){

int start_2 = 0;
int offset_2 = -1;
int length_2 = 10000;
char [] buffer_2 = new char [length_2];

BufferedReader br = null;
if (source.getCharacterStream( ) != null) {
br = new BufferedReader(source.getCharacterStream( ));
br.read(buffer_2, start_2, length_2);
}
}

-------------------------------------------------------------------------------------------

how to overcome this??
Ur help will b greatly appreciatd :)
Regards
madumm
Mar 23 '07 #1
3 2948
madumm
18
just a test !!! Y no body is replying
Mar 23 '07 #2
RedSon
5,000 Expert 4TB
1.) Use code tags
2.) Seperate your error messages from your code
3.) Do you need to open your stream before reading it?
Mar 23 '07 #3
madumm
18
1.) Use code tags
2.) Seperate your error messages from your code
3.) Do you need to open your stream before reading it?

May be that's the reason;
I have used a BufferedReader and instantiated it; but getting an Exception called "Stream Closed" from CharArrayReader.java

Why is this happening!!
Mar 26 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: lawrence | last post by:
Dear Peter, Do we know anyone else who writes PHP code? There is too much work to do, especially if Costin and I are going to join our software together. The easiest way for us to join our...
2
by: serge | last post by:
Using some VB sample code on the Internet I have the following that works well and exports a set of records to an XML file: Dim oCmd, sSQL, oDom Set oDom =...
1
by: Jung Joon Park | last post by:
Hi everyone. I am JJ Park. I got some questions in C++. First of all, my English is not perfect, because I am foreigner. I have got C++ code, which have no syntex error in Visual C++ ver6.0...
1
by: Jim H | last post by:
I am on a project where I am supposed to send an XML document to a SQL Server stored procedure. The XML Doc is a list strings. If in my c# function I get a list values as (string psValueList),...
3
by: Mardy | last post by:
Hi all, I'm starting to think the way I've implemented my program (http://www.mardy.it/eligante) is all wrong. Basically, what I want is a web application, which might run as CGI scripts in...
5
by: Karl Prosser | last post by:
i'm having a very strange problem, i've been fighting it for more than 3 weeks. I am using WSE 3.0 t ocall a third party website, but when i call a method through the proxy object i get NO RESPONSE...
4
by: robinsand | last post by:
My apologies to those of you who are more advanced Visual C++ .NET programmers, but I am working on a project for an MBA course that is condensed into an eight-week schedule, and I need help...
2
by: smith4894 | last post by:
{ not sure you're aware of that but there are the newsgroups for all major operating systems. you might want to try asking in the forum 'comp.os.linux.development.apps', since memory-mapped files...
0
by: madumm | last post by:
Hi all I'm getting a "Stream Closed " Exception while trying to read from read() method doing this.. Can somebody help me in finding out y is it happening like that. my code...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.