Help coderanch get a
new server
by contributing to the fundraiser

Vamsi bhujanga

Greenhorn
+ Follow
since Jun 14, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Vamsi bhujanga

Iam not sure this is the right place to post this.Admin,please move it to the right location...
Do anyone know about what might be the issue for the following error:



Let me explain about the scenarios:
1)Our application is developed using java deployed on jboss.We are not using EJB/hibernate/spring etc., kind of advanced technologies.Its purely a core java application where we have used collections,multithreading extensively..
2)We are using a middleware - BEA Tuxedo version 8.0

From one of the Oracle BRM systems, our application receives requests in the form of xml.
Our application act as a backend for the BRM,receives the request and send to some 3rd party billing system API's (Kenan/Amdocs kind of billing system)..and update the tables/run procs etc.,

We are handling multiple requests using multithreading of java.When we receive more than (eg.,)10 records at a time,then we are getting the above error.
Instead,we are able to handle the same number of requests in synchronous way. For this,we have used join() method of the thread.But,this is not the requirement.

Moreover, we are also getting following error before the above exception...

I have googled a lot for both the errors but iam unable to find any solution..
Any suggestions on this - how to handle multiple requests at a time.Let me know,if you need more clarity on this...
15 years ago
We cant save it in the form of a file as we have many challenges in using it.
Is there any other alternate?
15 years ago
I need to store huge data (which is a xml data) in a CLOB datatype which is running on JBoss server.Iam successful in writing the code but my code has a big limitation that it can store upto 32523 (approx) characters.But,my application will be receiving the xml's of upto 2 GB (Approximately). But,iam unable to find the alternate for this.



When iam using to create CLOB object directly,it is giving Class Cast exception,thats the reason, i have tried using the above code.

I have tried to create clob in the following way which is giving Class cast exception.




Hence i tried using WrappedConnection of JBoss

But still throwing class cast exception.
Did anyone had this kind of issue/problem of storing more than 2 GB data into CLOB datatype?Is there any another alternate for this?
Please let me know

Thanks in advance.
15 years ago
Our application is deployed as a sar (inside sar - we have a war)and is deployed in JBoss4.0.3. Its a pure Java based application.
The issue is, when we make some changes in some java file and re-deploy it on JBoss,the new code is not reflecting at all. We have verified in all the ways -- clearing the temporary files inside JBoss,ensured that all the services are started properly... But still no result. We have verified the class files by copying from the server to our hard disk and decompiled it. It has the latest code....But,when running the application, these new changes are not refelecting

As such,the deployment is successful with no errors but latest updations are not updating..

Did anyone faced this kind of issue?Can somebody suggest me a solution or steps to be taken care?
Thanks in advance
Kiran
15 years ago
The chart is being created.
Iam able to save on the hard disk (on Windows OS).
It is a valid image

The same image when i tried to save on AIX server, it is restricting as i told in my above post.
Also, the directory where iam trying to save is not restricted on any security policy of the server.

Ulf Dittmer,
Hope, i answered to all the questions.

In my earlier post, i have mentioned that Adobe- no more supports SVG viewer. I am in search of 3rd party tool to save the image on the AIX. please suggest (Hope, my question is clear now).


15 years ago
I have copied the code of JFreeChart in my previous post (which iam using). What else can be updated in it? IS there anything incorrect or did i miss anything else??

Also,if everything is correct (iam sure it would be), what can be the alternate to save the image in the AIX?

Please suggest.
15 years ago

You mentioned Batik before, but I don't quite understand why that didn't work out. Can you post the specific details of that?



Batik is a bundled with FOP itself. We are even confused and struggling here in displaying SVG.
As i mentioned in my earlier post, SVG viewer is no longer supporting AIX.
Please suggest an alternate solution for this. Is there any 3rd party tool that can be useful to display chart on AIX OS.Iam searching for this kind of tool.Can anybody suggest me.

Thanks in advance.

15 years ago
As i mentioned in the post, some code is modified for some reasons. I have given the server location in place of C:/ directory.
Anyhow, here is the url which states that Adobe is discontinuing the SVG. Now, iam in search of any 3rd party tool which supports SVG on AIX.
Iam sure that some one would be working on this.Any help will be greatly appreciated.

http://www.adobe.com/svg/eol.html

Thanks in advance
15 years ago
Sorry i kept the wrong code initially. I have updated the previous post.
15 years ago
Moreover when we contacted IBM customer care, this is the reply we received.

IBM response:
Unfortunately Adobe's SVG Viewer is no longer available for AIX. We found that Adobe has decided to discontinue it's SVG Viewer product. Please refer the following links for more details.

http://www.adobe.com/svg/eol.html
http://www.adobe.com/svg/pdfs/ASV_EOL_FAQ.pdf

But there are some other Adobe products which currently supports SVG. Also there are a lot of third party SVG viewer products.


Please suggest

For the question: we are unable to see the bar graph chart



Here is the sample code we are using.. (SOme things are changed accordingly)



This code works fine and creates a jpeg on Windows OS.
But, this doesnot save when we run ON AIX. Basically, we need to save this on the server to do other operations.
15 years ago
We are preparing a bill template (say mobile bill kind of bill) and we need to display a chart for the last 3 months calls in the template.
We are able to display the template which is a pdf file using FOP. But, the actual problem is we need to display a generic graph in the pdf for each customer in the bill template.

We have tried using JFreechart and display the chart. Iam able to save in the windows machine. But, iam unable to save it in the server (this is a part of our busineess logic design where we are trying to store the chart in the server and append this to the pdf.)

For displaying SVG(Scalable Vector Graphics) images on the invoice after running fop-0.94, we need X11 library. But after installing this also, we are unable to see the bar graph chart on the invoice through X Manager (GUI for IBM AIX Server).

Moreover while generating bar graph through Jfreechart taking help of two libraries (jfreechart-1.0.4.jar,jcommon.jar) also, the same thing happens and we are unable to see the bar graph chart on the invoice through X Manager.

But in both the cases, we are getting the bar graph generated on Windows System successfully.

These are the responses from the fop-users and fop-development groups (where i browsed through google):-
If you just want to display SVG images, that requires Apache Batik in the classpath . Batik is bundled with FOP.

For SVG you need the batik libraries, which are part of the fop standard distribution. So the problem here seems to be something else.

I currently know of no FOP extensions that would allow to add bar graphs(you mean charts, right?) in a special XML dialect as part of an
fo:instream-foreign-object. So that means you have to generate SVG graphics from bar graphics using a third-party tool

Findings from the above discussions :-

It may be a case that something is missing in the AIX Operating System which is restricting us to allow/create dynamic images on the invoice through either of the above two methods.
15 years ago
Thanks for the suggestion given to use 'inputstream' which struck me to use the below code.
Here is the code.

You can write the above code in try-catch block according to your requirement.
I solved this issue.
If anybody needs assistance,send me a private message
The file is not coming from anywhere.The requirement is to insert the data into the BLOB column in the format i have shown.hence,i tried to create a file.But,as i told you,iam not supposed to create a file.Hence,my question is whether is there any alternate way to insert the data in the same format into BLOB column without creating a file.
Thanks for the reply.I would have kept the sample code as my questions are confusing.
Anyhow,here is the sample code.



In the above code,while creating a file itself,iam getting security issue as it is directly creating at the server.Later on i understood that iam not supposed to create a file at all (not even in local desk temporarily) but insert the data in the format which i showed above (Line numbers:6 to 10).
Is there any way of inserting the same data into BLOB column.Can you send me the sample code.(Not sure: Can we convert into bytes and insert into BLOB.)
Please suggest