Hindusthan Kamal

Greenhorn
+ Follow
since Jul 26, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Hindusthan Kamal

Hi Morris,

Thanks for your reply.

I found why the issue occurs,

Weblogic-12x uses 'weblogic.xml.saaj.*' package to handle SAAJ where as weblogic-10x support this through 'weblogic.webservice.core.soap.*'.

For weblogic 10x:
SOAPMessageImpl is handled by 'weblogic.webservice.core.soap.SOAPMessageImpl'.

For weblogic 12x:
SOAPMessageImpl is handled by 'weblogic.xml.saaj.SOAPMessageImpl'

The error occurs because, I used to intercept it weblogic.webservice.core.soap.SOAPMessageImpl is used instead of weblogic.xml.saaj.SOAPMessageImpl

So, we need to use 'weblogic.xml.saaj.*' package for handling respective operations.
9 years ago
Hi,

I have a SAAJ sample application which is working fine in tomcat6.

But the same application is failing with "java.lang.ClassCastException" exception in weblogic 12.1.1. I have attached the application.



Please let me know if any one knows some pointer.

Thanks,
Kamal
9 years ago
Greeting to all,

I have a doubt,

My motive is to create a method that will check a string for null, isEmpty and also for maxLength, this should be done with a single method, if anything is wrong, it should throw a runtime exception.

I have done this for checking for null and empty,



Now I want to include the parameter for maxLength to check whether the length not exceeds the maxLength,

can any one help me with this.

My idea is to pass a third parameter as int or long, that will get the value for the maxLength and can put a condition, if the value for the maxLength is 0 means there is no need to check for maxLength condition

Is this will be a fine solution or you guys have any other solution to make this more refine ?
12 years ago
Thanks for you reply Ernest Friedman-Hill

It's an wounder full suggestion...

I try'd with your code it's working fine but with this code also it's generates some error in reading some files.(I had attached a text file please try your code with this file).

Content in this file is not important but the first two lines are important, if we can read the first two lines its enough to get the name from the contact number and the date sent.

Try it and please guide me through this...

Have a great day...!!!
13 years ago
Hai to all..,

I had developed an application to read the text file that is stored in my computer from mobile, all are working fine but some files create problems in reading the file content, like the file i had attached with this..

Can any one please tell why this particular file creates problem in reading the contents...

I had attached a text file with this...


and the code I am using is



I try'd with BufferedReader also, but have the same problem,

Can any one please give me a solution for this..
13 years ago
Thank you Sam Mercs....

I will try it...
13 years ago
It's nice to hear a reply Sam Mercs ,

Ya I need to display it in Swing based component, I will try to use browser component, if you know how to use it guide me, I will post if I face any difficulties with that..

Have a Nice Day..!!
13 years ago
Hai to all,

I am trying to read emails from the server, I had a problem that many emails contain HTML coding or HTML elements (Like links and images), my question is how to convert or display the HTML elements.

I try'd with html.parser.ParserDelegator but I don't know how to use it, can any one help me to solve this.

Is there any other way how to convert or display the HTML elements.

13 years ago
I had created a java class which has array list, I has passed the array list as JRBeanCollectionDataSource to jasper report as



The error I am facing is

net.sf.jasperreports.engine.JRException: Error retrieving field value from bean : new JRBeanCollectionDataSource(sub_para)


I think the error is in jasper report, I am using ireport tool to design the reports

My question is how to create a new parameter in the main report, and how to pass the parameter to sub report..

Please help me to solve this...



I had created a java class which has array list, I has passed the array list as JRBeanCollectionDataSource to jasper report as



The error I am facing is

net.sf.jasperreports.engine.JRException: Error retrieving field value from bean : new JRBeanCollectionDataSource(sub_para)


I think the error is in jasper report, I am using ireport tool to design the reports

My question is how to create a new parameter in the main report, and how to pass the parameter to sub report..

Please help me to solve this...



Thank you for you comments and I got the answer too...
13 years ago
Error loading object from file in jasper reports
13 years ago
How to post questions in hot folder in coderanch can any one tell me....

:banghead: :beerchug:
13 years ago
Hai to all I am new to jasper reports can any one help me to solve this problem

I had created a java bean with two string variable,
I had created a java class to set the values this is the java class,


package cls_PrintJasper;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperCompileManager;
import net.sf.jasperreports.engine.JasperFillManager;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.JasperPrintManager;
import net.sf.jasperreports.engine.JasperReport;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
import net.sf.jasperreports.engine.util.JRLoader;

public class Cls_Action {
@SuppressWarnings("unchecked")
public static void main(String ar[]) throws JRException
{
try {
ArrayList<Cls_Bean> al=new ArrayList<Cls_Bean>();
HashMap jasperParameter = new HashMap();
JasperReport jasperreport = null;
int i;
for(i=1;i<=10;i++)
{
Cls_Bean frm = new Cls_Bean();
frm.setRno(""+i);
frm.setStuname("ABC"+i);
al.add(frm);
}
String Context="D:\\Jasper Workouts\\FirstJasperReport\\src\\jasperDesign\\FirstReport.jrxml";
jasperreport = (JasperReport)JRLoader.loadObject(Context);
System.out.println("Report Created");
JasperPrint jasperprint;
jasperprint = JasperFillManager.fillReport(jasperreport, jasperParameter,new JRBeanCollectionDataSource(al));
JasperReport jasperReport = JasperCompileManager.compileReport(Context);
JasperPrintManager.printReport(jasperprint, false);
} catch (Exception e)
{
System.out.println(e);
}

}
}

This is the Error I got

net.sf.jasperreports.engine.JRException: Error loading object from file : D:\Jasper Workouts\FirstJasperReport\src\jasperDesign\FirstReport.jrxml

13 years ago