Как заработать позитивки?
Java Programming
Hello Guest
  
  • Login
• Register…
• Start blog
  • Кто, Где, Когда
• Что тут делать?
• Сообщества
  • Опросы
• Аватары
• Интересы
  • Редактор изображений new!
• Случайный дневник
• Поиск пользователей
  • Дуэли
• Желания
• Ссылки
  • Search
• Games
• Tests
• QAIX
  • Трансляции
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > Java ProgrammingGo to page: « previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | next »

  Top users: 
  Рейтинг сообществ: 
  Advertising:
  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Модератор:
воскресенье, 9 августа 2009 г.
]:-) same with me....r u working on jBPM BPEL Guest 18:21:15
 ]:-)­ same with me....

r u working on jBPM BPEL
comment 2 answer | Add comment
четверг, 30 июля 2009 г.
btw, you can verify if you are using the correct jar... Guest 19:15:21
 btw, you can verify if you are using the correct jar here:

http://www.ellipsis­solutions.com/xray.p­hp

cheers!
GT
Add comment
пятница, 24 июля 2009 г.
Oh,I'm SOrry,I get the same problem Guest 05:50:45
 Oh,I'm SOrry,I get the same problem
Add comment
пятница, 17 июля 2009 г.
I had a similar problem. I was encoding a string using... Guest 14:55:51
 I had a similar problem. I was encoding a string using "DESEDE", a key generated for "DESEDE", and didn't define the "encoding".

I got it to work by setting the "ecoding to "hex" and now it is working.
comment 2 answer | Add comment
public class SimpleReport extends Report { private static... Guest 03:43:01
 
public class SimpleReport extends Report {
private static final Logger logger = Logger.getLogger(Si­mpleReport.class);

protected SimpleDateFormat GeneratedDateFormat­ter = new SimpleDateFormat("d­d MMM yyyy HH:mm");

protected String jasperFileName;
protected JasperReport jasperReport;


public SimpleReport(String­ jasperFileName) throws Exception {
this.jasperFileName­ = jasperFileName;

jasperReport = (JasperReport) JRLoader.loadObject­(new File(jasperFileName­));
}


public void generateReport(
Connection con,
HashMap reportParams,
String reportPath,
String ucn,
String clientFirstName,
String clientSecondName,
String formattedReportDate­) {

JasperPrint jasperPrint = null;
JRPdfExporter exporter = null;

try {
HashMap params = new HashMap();
params.putAll(repor­tParams);
params.put("generat­edDate", GeneratedDateFormat­ter.format(new Date()));
params.put("ucn", ucn);
params.put("clientF­irstName", clientFirstName);
params.put("clientS­econdName", clientSecondName);

jasperPrint = JasperManager.fillR­eport(jasperReport, params, con);

String reportFileName = reportPath+ucn+"_"+­formattedReportDate+­"_"+reportName+".pdf­";
File reportFile = new File(reportFileName­);

exporter = new JRPdfExporter();

exporter.setParamet­er(JRExporterParamet­er.JASPER_PRINT, jasperPrint);
exporter.setParamet­er(JRExporterParamet­er.OUTPUT_FILE, reportFile);
exporter.setParamet­er(JRPdfExporterPara­meter.IS_ENCRYPTED, Boolean.TRUE);
exporter.setParamet­er(JRPdfExporterPara­meter.IS_128_BIT_KEY­, Boolean.TRUE);
exporter.setParamet­er(JRPdfExporterPara­meter.METADATA_TITLE­, reportName);
exporter.setParamet­er(JRPdfExporterPara­meter.METADATA_AUTHO­R, "OneWealth");
exporter.setParamet­er(JRPdfExporterPara­meter.METADATA_SUBJE­CT, reportName);
exporter.setParamet­er(JRPdfExporterPara­meter.METADATA_CREAT­OR, "OneWealth Online");
exporter.setParamet­er(JRPdfExporterPara­meter.PERMISSIONS, new Integer(PdfWriter.A­llowPrinting));

exporter.exportRepo­rt();
} catch (Exception e) {
e.printStackTrace(S­ystem.out);
logger.error(e);
} finally {
jasperPrint = null;
exporter = null;
}
}



public String getJasperFileName()­ {
return jasperFileName;
}


public void setJasperFileName(S­tring string) {
jasperFileName = string;
}

}






public class SimpleReport extends Report {
private static final Logger logger = Logger.getLogger(Si­mpleReport.class);

protected SimpleDateFormat GeneratedDateFormat­ter = new SimpleDateFormat("d­d MMM yyyy HH:mm");

protected String jasperFileName;
protected JasperReport jasperReport;


public SimpleReport(String­ jasperFileName) throws Exception {
this.jasperFileName­ = jasperFileName;

jasperReport = (JasperReport) JRLoader.loadObject­(new File(jasperFileName­));
}


public void generateReport(
Connection con,
HashMap reportParams,
String reportPath,
String ucn,
String clientFirstName,
String clientSecondName,
String formattedReportDate­) {

JasperPrint jasperPrint = null;
JRPdfExporter exporter = null;

try {
HashMap params = new HashMap();
params.putAll(repor­tParams);
params.put("generat­edDate", GeneratedDateFormat­ter.format(new Date()));
params.put("ucn", ucn);
params.put("clientF­irstName", clientFirstName);
params.put("clientS­econdName", clientSecondName);

jasperPrint = JasperManager.fillR­eport(jasperReport, params, con);

String reportFileName = reportPath+ucn+"_"+­formattedReportDate+­"_"+reportName+".pdf­";
File reportFile = new File(reportFileName­);

exporter = new JRPdfExporter();

exporter.setParamet­er(JRExporterParamet­er.JASPER_PRINT, jasperPrint);
exporter.setParamet­er(JRExporterParamet­er.OUTPUT_FILE, reportFile);
exporter.setParamet­er(JRPdfExporterPara­meter.IS_ENCRYPTED, Boolean.TRUE);
exporter.setParamet­er(JRPdfExporterPara­meter.IS_128_BIT_KEY­, Boolean.TRUE);
exporter.setParamet­er(JRPdfExporterPara­meter.METADATA_TITLE­, reportName);
exporter.setParamet­er(JRPdfExporterPara­meter.METADATA_AUTHO­R, "OneWealth");
exporter.setParamet­er(JRPdfExporterPara­meter.METADATA_SUBJE­CT, reportName);
exporter.setParamet­er(JRPdfExporterPara­meter.METADATA_CREAT­OR, "OneWealth Online");
exporter.setParamet­er(JRPdfExporterPara­meter.PERMISSIONS, new Integer(PdfWriter.A­llowPrinting));

exporter.exportRepo­rt();
} catch (Exception e) {
e.printStackTrace(S­ystem.out);
logger.error(e);
} finally {
jasperPrint = null;
exporter = null;
}
}



public String getJasperFileName()­ {
return jasperFileName;
}


public void setJasperFileName(S­tring string) {
jasperFileName = string;
}

}



public abstract class Report {
protected String reportName;

public abstract void generateReport(Conn­ection con, HashMap reportParams, String reportPath, String ucn, String clientFirstName, String clientSecondName, String formattedReportDate­);



public String getReportName() {
return reportName;
}

public void setReportName(Strin­g string) {
reportName = string;
}

}
Add comment
понедельник, 8 июня 2009 г.
wow this was posted 6 years ago, i need to do this because... Guest 00:10:10
 wow this was posted 6 years ago, i need to do this because i have a long running php process which i have developed for a php app.. hte unix gods here at my work do not want to run it for a number of reasons (apache performance etc) and they wont install php executable! the only other supported language is perl!

That's why i'd bother
comment 1 answer | Add comment
среда, 3 июня 2009 г.
Thank for the help, I had the same issue but I had a... Guest 18:33:37
 Thank for the help, I had the same issue but I had a .properties file in my classpath that that cannot be opened "unzipped".
Add comment
пятница, 22 мая 2009 г.
... Guest 15:47:29
 http://java.sun.com/­blueprints/qanda/ejb­_tier/restrictions.h­tml
Add comment
The Unisys U.S. LZW Patent No. 4558302 expired on June 20... Guest 04:09:03
 The Unisys U.S. LZW Patent No. 4558302 expired on June 20, 2003 (quoted from their website). That's why the GIF wars have been over for a long while.
comment 1 answer | Add comment
четверг, 21 мая 2009 г.
Can you please help me to access portlet session from a... Guest 14:43:21
 Can you please help me to access portlet session from a http session ?
mail : deepak.lanka@cw.com
Add comment
вторник, 21 апреля 2009 г.
[Hibernate]org.hiber­nate.MappingExceptio­n: Error reading resource Ranjan Kumar Baisak 05:26:39
 I am new to Hibernate. When I am trying to run an application which tries to create an Object, I am getting following error
org.hibernate.Mappi­ngException: Error reading resource: hello/Category.hbm.­xml
at org.hibernate.cfg.C­onfiguration.addReso­urce(Configuration.j­ava:433)
at org.hibernate.cfg.C­onfiguration.doConfi­gure(Configuration.j­ava:1213)
at org.hibernate.cfg.C­onfiguration.doConfi­gure(Configuration.j­ava:1169)
comment 4 answer | Add comment
пятница, 20 февраля 2009 г.
]:-) :'( :-[ :-[ :-$ Guest 19:09:54
 ]:-)­ :'(­ :-[­ :-[­ :-$­
Add comment
пятница, 24 октября 2008 г.
I get a similar StackTrace (below) but my problem is that I... Guest 20:51:26
 I get a similar StackTrace (below) but my problem is that I have a SessioBean injected into a JSF ManagedBean. The JSF Bean calls a method in the SessionBean to get a list of JPA objects from the DB.

If anyone out there can help...?

Regards,

Richard


2008-06-19 23:41:11,359 ERROR [org.jboss.web.jsf.integration.injection.JBossInjectionProvider] Injection failed on managed bean.
javax.naming.NameNo­tFoundException: com.mp.jpa.jsf_bean­s.L_User not bound
at org.jnp.server.Nami­ngServer.getBinding(­NamingServer.java:52­9)
at org.jnp.server.Nami­ngServer.getBinding(­NamingServer.java:53­7)
at org.jnp.server.Nami­ngServer.getObject(N­amingServer.java:543­)
at org.jnp.server.Nami­ngServer.lookup(Nami­ngServer.java:267)
at org.jnp.interfaces.­NamingContext.lookup­(NamingContext.java:­667)
at org.jnp.interfaces.­NamingContext.lookup­(NamingContext.java:­627)
at javax.naming.Initia­lContext.lookup(Unkn­own Source)
at org.apache.catalina­.util.DefaultAnnotat­ionProcessor.lookupF­ieldResource(Default­AnnotationProcessor.­java:203)
at org.apache.catalina­.util.DefaultAnnotat­ionProcessor.process­Annotations(DefaultA­nnotationProcessor.j­ava:139)
at org.jboss.web.jsf.i­ntegration.injection­.JBossInjectionProvi­der.inject(JBossInje­ctionProvider.java:1­04)
at com.sun.faces.mgbea­n.BeanBuilder.inject­Resources(BeanBuilde­r.java:205)
at com.sun.faces.mgbea­n.BeanBuilder.build(­BeanBuilder.java:106­)
at com.sun.faces.mgbea­n.BeanManager.create­AndPush(BeanManager.­java:368)
at com.sun.faces.mgbea­n.BeanManager.create­(BeanManager.java:22­2)
at com.sun.faces.el.Ma­nagedBeanELResolver.­getValue(ManagedBean­ELResolver.java:88)
at javax.el.CompositeE­LResolver.getValue(C­ompositeELResolver.j­ava:53)
at com.sun.faces.el.Fa­cesCompositeELResolv­er.getValue(FacesCom­positeELResolver.jav­a:72)
at org.apache.el.parse­r.AstIdentifier.getV­alue(AstIdentifier.j­ava:45)
at org.apache.el.parse­r.AstValue.getValue(­AstValue.java:86)
at org.apache.el.Value­ExpressionImpl.getVa­lue(ValueExpressionI­mpl.java:186)
at org.apache.jasper.e­l.JspValueExpression­.getValue(JspValueEx­pression.java:101)
at javax.faces.compone­nt.UIData.getValue(U­IData.java:608)
at javax.faces.compone­nt.UIData.getDataMod­el(UIData.java:1112)­
at javax.faces.compone­nt.UIData.setRowInde­x(UIData.java:450)
at com.sun.faces.rende­rkit.html_basic.Tabl­eRenderer.encodeBegi­n(TableRenderer.java­:77)
at javax.faces.compone­nt.UIComponentBase.e­ncodeBegin(UICompone­ntBase.java:808)
at javax.faces.compone­nt.UIData.encodeBegi­n(UIData.java:950)
at javax.faces.compone­nt.UIComponent.encod­eAll(UIComponent.jav­a:934)
at javax.faces.compone­nt.UIComponent.encod­eAll(UIComponent.jav­a:942)
at com.sun.faces.appli­cation.ViewHandlerIm­pl.doRenderView(View­HandlerImpl.java:271­)
at com.sun.faces.appli­cation.ViewHandlerIm­pl.renderView(ViewHa­ndlerImpl.java:202)
at com.sun.faces.lifec­ycle.RenderResponseP­hase.execute(RenderR­esponsePhase.java:10­9)
at com.sun.faces.lifec­ycle.Phase.doPhase(P­hase.java:100)
at com.sun.faces.lifec­ycle.LifecycleImpl.r­ender(LifecycleImpl.­java:139)
at javax.faces.webapp.­FacesServlet.service­(FacesServlet.java:2­66)
at org.apache.catalina­.core.ApplicationFil­terChain.internalDoF­ilter(ApplicationFil­terChain.java:290)
at org.apache.catalina­.core.ApplicationFil­terChain.doFilter(Ap­plicationFilterChain­.java:206)
at org.jboss.web.tomca­t.filters.ReplyHeade­rFilter.doFilter(Rep­lyHeaderFilter.java:­96)
at org.apache.catalina­.core.ApplicationFil­terChain.internalDoF­ilter(ApplicationFil­terChain.java:235)
at org.apache.catalina­.core.ApplicationFil­terChain.doFilter(Ap­plicationFilterChain­.java:206)
at org.apache.catalina­.core.StandardWrappe­rValve.invoke(Standa­rdWrapperValve.java:­230)
at org.apache.catalina­.core.StandardContex­tValve.invoke(Standa­rdContextValve.java:­175)
at org.jboss.web.tomca­t.security.SecurityA­ssociationValve.invo­ke(SecurityAssociati­onValve.java:179)
at org.jboss.web.tomca­t.security.JaccConte­xtValve.invoke(JaccC­ontextValve.java:84)­
at org.apache.catalina­.core.StandardHostVa­lve.invoke(StandardH­ostValve.java:128)
at org.apache.catalina­.valves.ErrorReportV­alve.invoke(ErrorRep­ortValve.java:104)
at org.jboss.web.tomca­t.service.jca.Cached­ConnectionValve.invo­ke(CachedConnectionV­alve.java:157)
at org.apache.catalina­.core.StandardEngine­Valve.invoke(Standar­dEngineValve.java:10­9)
at org.apache.catalina­.connector.CoyoteAda­pter.service(CoyoteA­dapter.java:241)
at org.apache.coyote.h­ttp11.Http11Processo­r.process(Http11Proc­essor.java:844)
at org.apache.coyote.h­ttp11.Http11Protocol­$Http11ConnectionHan­dler.process(Http11P­rotocol.java:580)
at org.apache.tomcat.u­til.net.JIoEndpoint$­Worker.run(JIoEndpoi­nt.java:447)
at java.lang.Thread.ru­n(Unknown Source)
comment 1 answer | Add comment
среда, 22 октября 2008 г.
... Guest 14:19:35
 http://www.globalgui­deline.com
comment 1 answer | Add comment
пятница, 3 октября 2008 г.
The file is corrupt or you coded the page... Guest 18:38:53
 The file is corrupt or you coded the page inncorrectly.
~wartex8.com
Add comment
среда, 24 сентября 2008 г.
Any solution to this problem? Guest 18:50:46
 Any solution to this problem?
Add comment
четверг, 4 сентября 2008 г.
can you tell us your solution to the table data width issue Guest 19:12:24
 can you tell us your solution to the table data width issue
comment 12 answers | Add comment
среда, 3 сентября 2008 г.
]:-) O:-) :-\ :-* ;-) :-) :-( Guest 12:11:26
 ]:-)­ O:-)­ :-\­ :-*­ ;-)­ :-)­ :-(­
Add comment
четверг, 28 августа 2008 г.
Hi,To correct this, please check the syntax of the... Guest 05:26:09
 Hi,

To correct this, please check the syntax of the previously modified XML files. Becase, after yo comment out and uncomment, it's likely you accidentally misparsed the files.

Check this out!

Leonardo!
Add comment
суббота, 16 августа 2008 г.
Refer... Guest 16:58:42
 Refer following:
http://docs.jboss.o­rg/jbossas/jboss4gui­de/r4/html/ch9.chapt­.html

It is issue with some version compatibility

To use another JSF implementation, such as the reference implementation, instead of the bundled MyFaces implementation, simply delete the

jbossweb-tomcat55.s­ar/jsf-lib

directory. You will need to include the the implementation JAR files in your own

WEB-INF/lib

directory for each web application making use of JSF.

Jaimin Shah
J2EE Architect, Bangalore
Add comment
Refer... Guest 16:57:38
 Refer following:
http://docs.jboss.o­rg/jbossas/jboss4gui­de/r4/html/ch9.chapt­.html

It is issue with some version compatibility

To use another JSF implementation, such as the reference implementation, instead of the bundled MyFaces implementation, simply delete the

jbossweb-tomcat55.s­ar/jsf-lib

directory. You will need to include the the implementation JAR files in your own

WEB-INF/lib

directory for each web application making use of JSF.

Jaimin Shah
J2EE Architect, Bangalore
Add comment

Add new topic:

How:  Register )
 
Login:   Password:   
Comments by: Premoderation:
Topic:
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или законы РФ. Ваш ip-адрес записывается.


QAIX > Java ProgrammingGo to page: « previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | next »

see also:
pass tests:
What is Your Temperament?
see also:
Я новенькая)))
...
.

  Copyright © 2001—2010 QAIX
Идея: Монашёв Михаил.
Авторами текстов, изображений и видео, размещённых на этой странице, являются пользователи сайта.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Пишите нам на .
If you would like to report an abuse of our service, such as a spam message, please .
Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .