Aggarwal Arpit

Ranch Hand
+ Follow
since Mar 04, 2012
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Aggarwal Arpit

thanks Bear for reply, but it is the last line of my code, so how can code be instered in response buffer
8 years ago

I am having a String str

I am writing to response and fetching in Ajax call

Now the question is, I am getting String but some extra string is appending to it like

to responseObject, don't know why, even i removed

Please help me to solve this issue.

Thanks In Advance!!
8 years ago
Hi Vibhuti,

I ma using JBoss 5.1 and in that I am not finding binding-manager at location:

Copy the folder jboss4.0.1sp1\docs\examples\binding-manager to jboss4.0.1sp1\server\node1\

Can you guide me what is the alternative for that

8 years ago
I need to implement JBoss Clustering and for that I read many docs on web, but not getting exact steps.
I modified server.xml with:

and not getting what to do after that.

Please help me
Thanks in Advance:)
9 years ago
Hi Ulf,

I downloaded zipped file of Aspirin from But not getting how to use it.
Can you please throw some light on how to work with Aspirin.

Thanks in Advance
9 years ago
Remove these three lines and then try

9 years ago
Hi, I am using Apache Common mail api to send e-mail and it's working fine.
Now i want to attach pdf as an attachment to the mail, content of attachment is an xhtml page of which I am passing url in my below code.
Actually I am able to attach attachment but the problem is, attachment is attached as .htm but I want as pdf.

Please help me to solve this.
Thanks in Advance.
9 years ago
Jeff, Thanks for your valuable reply:)
Now my code is working.
I changed HSSFRichTextString to

and then I user removeAll function of ArrayList to remove data pressent in Set

9 years ago
Hi Kemal,
I tried same thins with Set but actually the problem is I am getting the data in Set after reading Excel sheet using poi.
So when I am compiling with code:

I am getting exception as
Exception in thread "main" java.lang.ClassCastException: org.apache.poi.hssf.usermodel.HSSFRichTextString cannot be cast to java.lang.String
at java.lang.String.compareTo(Unknown Source)
at java.util.TreeMap.getEntry(Unknown Source)
at java.util.TreeMap.containsKey(Unknown Source)
at java.util.TreeSet.contains(Unknown Source)
at com.test.ReadExcelFile.showExelData(
at com.test.ReadExcelFile.main(

So I thought of this idea to convert into Object Array and then do something to find odd one out
9 years ago
Hi I have two arrays:
One Object array that I achieved after converting TreeSet and One String Array, In my selectedArray[] data is{"A","B","C"}

Now what I want to extract the data from my members[] which is not present in my selectedArray[] and store it in one ArrayList.
What I am doing is:

I am not getting correct output.
Please help me to solve this issue
Thanks in advance:)
9 years ago
Ulf, Does it mean, once response.getOutputStream() is passed to createPDF() method, then data is no more in response?

Can you please explain me with a code how to render it into byte[]?

9 years ago
Hi Ulf,

You are right that pdf is already created.
What I am doing is after creating pdf from OutputStream, I am trying to write that output stream to Byte Array and then making InputStream to read that Byte Array.Because i have to pass data in responseOutputStream as input to another method which is accepting as InputStream.
In doing this, I am getting null in InputStream. Here is my code

Please help me to write OutputStream in aByte Array and reading that array to inputStream.

Thanks in Advance:)
9 years ago
Hi Ulf, Thanks a lot for your valuable suggestion.
Now another issue I am facing is of conversion of ServletOutputStream to Input Stream.

Now What I am doing is ,

But it is now thrrowing an exception:

Please help me to resolve this issue.
9 years ago
Hi Ulf,
Can you please help me with an example?
9 years ago
Hi Paul, Iwant to keep this functionality as it is.
Now what I need is I am having another java class which is sending email, so I need to send this pdf as an attachment with that mail.
In class which is sending email there is an addAttachment() function but this function accepts argument as InputStrream and String

So, now what I thought either sending of this pdf as InputStream to this addAttachment method or saving this pdf file in a temporary location and then sending as a attachment to email.
But for both I am not getting how to proceed. any help would be appreciable:)
9 years ago