joeltw2010 26 de jun. de 2012
de onde vem isso?
como e o codigo?
oque voce esta querendo fazer?
relatorio em que e como?
tendo isso da pra da uma ajuda =D
Diego_Adriano 26 de jun. de 2012
Pô … então …rs
Descobri que isso é pau na JVM … mas reiniciei a maquina e voltou a funcionar …
Ai me deparei com outro erro que era por não mudar a Linguagem de Grovy pra Java …
É relatório do IReport, estou tentando abrir pelo JSF …
Diego_Adriano 26 de jun. de 2012
Meu código:
public void gerarRelatorio (){
ExternalContext externalContext = FacesContext . getCurrentInstance (). getExternalContext ();
ServletContext context = ( ServletContext ) externalContext . getContext ();
String arquivo = context . getRealPath ( "/relatorios_report/Impressoes.jasper" );
ELContext elContext = FacesContext . getCurrentInstance (). getELContext ();
this . entityManager = ( EntityManager ) FacesContext . getCurrentInstance ().
getApplication (). getELResolver (). getValue ( elContext , null , "entityManager" );
ControleBoletoRepository boletoRepository = new ControleBoletoRepository ( this . entityManager );
lancamentos = boletoRepository . bolaimprimir ();
JRDataSource jrds = new JRBeanCollectionDataSource ( lancamentos );
gerarRelatorioWeb ( jrds , null , arquivo );
}
public void gerarRelatorioWeb ( JRDataSource jrds , Map < Object , Object > parametros , String arquivo ){
ServletOutputStream outputStream = null ;
FacesContext context = FacesContext . getCurrentInstance ();
HttpServletResponse response = ( HttpServletResponse ) context . getExternalContext (). getResponse ();
try {
outputStream = response . getOutputStream ();
JasperRunManager . runReportToPdfStream ( new FileInputStream ( new File ( arquivo )), response . getOutputStream (), parametros , jrds );
response . setContentType ( "application/pdf" );
outputStream . flush ();
outputStream . close ();
context . renderResponse ();
context . responseComplete ();
} catch ( Exception erro ) {
System . out . println ( "Não foi possivel gerar relatório!" + erro );
}
}
Puts .. agora estou com esse erro ..
Jun 26 , 2012 3 : 29 : 16 PM javax . faces . event . MethodExpressionActionListener processAction
Grave : ' java . lang . NoClassDefFoundError ' recebido ao invocar escuta de ação '# { relatoriosBoletos . gerarRelatorio } ' para o componente ' j_idt47 '
Jun 26 , 2012 3 : 29 : 17 PM javax . faces . event . MethodExpressionActionListener processAction
Grave : java . lang . NoClassDefFoundError : org / codehaus / groovy / control / CompilationFailedException
at java . lang . Class . getDeclaredConstructors0 ( Native Method )
at java . lang . Class . privateGetDeclaredConstructors ( Class . java : 2404 )
at java . lang . Class . getConstructor0 ( Class . java : 2714 )
at java . lang . Class . newInstance0 ( Class . java : 343 )
at java . lang . Class . newInstance ( Class . java : 325 )
at net . sf . jasperreports . engine . JasperCompileManager . getCompiler ( JasperCompileManager . java : 472 )
at net . sf . jasperreports . engine . JasperCompileManager . loadEvaluator ( JasperCompileManager . java : 238 )
at net . sf . jasperreports . engine . fill . JRFillDataset . createCalculator ( JRFillDataset . java : 420 )
at net . sf . jasperreports . engine . fill . JRBaseFiller . < init > ( JRBaseFiller . java : 432 )
at net . sf . jasperreports . engine . fill . JRVerticalFiller . < init > ( JRVerticalFiller . java : 77 )
at net . sf . jasperreports . engine . fill . JRVerticalFiller . < init > ( JRVerticalFiller . java : 87 )
at net . sf . jasperreports . engine . fill . JRVerticalFiller . < init > ( JRVerticalFiller . java : 57 )
at net . sf . jasperreports . engine . fill . JRFiller . createFiller ( JRFiller . java : 142 )
at net . sf . jasperreports . engine . fill . JRFiller . fillReport ( JRFiller . java : 78 )
at net . sf . jasperreports . engine . JasperFillManager . fillReport ( JasperFillManager . java : 624 )
at net . sf . jasperreports . engine . JasperFillManager . fillReport ( JasperFillManager . java : 605 )
at net . sf . jasperreports . engine . JasperRunManager . runReportToPdfStream ( JasperRunManager . java : 370 )
at br . com . boletos . relatorios . RelatoriosBoletos . gerarRelatorioWeb ( RelatoriosBoletos . java : 67 )
at br . com . boletos . relatorios . RelatoriosBoletos . gerarRelatorio ( RelatoriosBoletos . java : 55 )
at sun . reflect . NativeMethodAccessorImpl . invoke0 ( Native Method )
at sun . reflect . NativeMethodAccessorImpl . invoke ( NativeMethodAccessorImpl . java : 57 )
at sun . reflect . DelegatingMethodAccessorImpl . invoke ( DelegatingMethodAccessorImpl . java : 43 )
at java . lang . reflect . Method . invoke ( Method . java : 601 )
at org . apache . el . parser . AstValue . invoke ( AstValue . java : 262 )
at org . apache . el . MethodExpressionImpl . invoke ( MethodExpressionImpl . java : 278 )
at javax . faces . event . MethodExpressionActionListener . processAction ( MethodExpressionActionListener . java : 153 )
at javax . faces . event . ActionEvent . processListener ( ActionEvent . java : 88 )
at javax . faces . component . UIComponentBase . broadcast ( UIComponentBase . java : 769 )
at javax . faces . component . UICommand . broadcast ( UICommand . java : 300 )
at javax . faces . component . UIViewRoot . broadcastEvents ( UIViewRoot . java : 794 )
at javax . faces . component . UIViewRoot . processApplication ( UIViewRoot . java : 1259 )
at com . sun . faces . lifecycle . InvokeApplicationPhase . execute ( InvokeApplicationPhase . java : 81 )
at com . sun . faces . lifecycle . Phase . doPhase ( Phase . java : 101 )
at com . sun . faces . lifecycle . LifecycleImpl . execute ( LifecycleImpl . java : 118 )
at javax . faces . webapp . FacesServlet . service ( FacesServlet . java : 593 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 305 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 210 )
at br . com . boletos . filter . ControleFiltro . doFilter ( ControleFiltro . java : 33 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 243 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 210 )
at org . apache . catalina . core . StandardWrapperValve . invoke ( StandardWrapperValve . java : 224 )
at org . apache . catalina . core . StandardContextValve . invoke ( StandardContextValve . java : 169 )
at org . apache . catalina . authenticator . AuthenticatorBase . invoke ( AuthenticatorBase . java : 472 )
at org . apache . catalina . core . StandardHostValve . invoke ( StandardHostValve . java : 168 )
at org . apache . catalina . valves . ErrorReportValve . invoke ( ErrorReportValve . java : 98 )
at org . apache . catalina . valves . AccessLogValve . invoke ( AccessLogValve . java : 927 )
at org . apache . catalina . core . StandardEngineValve . invoke ( StandardEngineValve . java : 118 )
at org . apache . catalina . connector . CoyoteAdapter . service ( CoyoteAdapter . java : 407 )
at org . apache . coyote . http11 . AbstractHttp11Processor . process ( AbstractHttp11Processor . java : 987 )
at org . apache . coyote . AbstractProtocol$AbstractConnectionHandler . process ( AbstractProtocol . java : 579 )
at org . apache . tomcat . util . net . JIoEndpoint$SocketProcessor . run ( JIoEndpoint . java : 309 )
at java . util . concurrent . ThreadPoolExecutor . runWorker ( ThreadPoolExecutor . java : 1110 )
at java . util . concurrent . ThreadPoolExecutor$Worker . run ( ThreadPoolExecutor . java : 603 )
at java . lang . Thread . run ( Thread . java : 722 )
Caused by : java . lang . ClassNotFoundException : org . codehaus . groovy . control . CompilationFailedException
at org . apache . catalina . loader . WebappClassLoader . loadClass ( WebappClassLoader . java : 1701 )
at org . apache . catalina . loader . WebappClassLoader . loadClass ( WebappClassLoader . java : 1546 )
... 54 more
Jun 26 , 2012 3 : 29 : 17 PM com . sun . faces . context . AjaxExceptionHandlerImpl log
Grave : JSF1073 : javax . faces . event . AbortProcessingException obtido durante o processamento de INVOKE_APPLICATION 5 : UIComponent - ClientId = j_idt46 : j_idt47 , Message = java . lang . NoClassDefFoundError : org / codehaus / groovy / control / CompilationFailedException
Jun 26 , 2012 3 : 29 : 17 PM com . sun . faces . context . AjaxExceptionHandlerImpl log
Grave : java . lang . NoClassDefFoundError : org / codehaus / groovy / control / CompilationFailedException
javax . faces . event . AbortProcessingException : java . lang . NoClassDefFoundError : org / codehaus / groovy / control / CompilationFailedException
at javax . faces . event . MethodExpressionActionListener . processAction ( MethodExpressionActionListener . java : 182 )
at javax . faces . event . ActionEvent . processListener ( ActionEvent . java : 88 )
at javax . faces . component . UIComponentBase . broadcast ( UIComponentBase . java : 769 )
at javax . faces . component . UICommand . broadcast ( UICommand . java : 300 )
at javax . faces . component . UIViewRoot . broadcastEvents ( UIViewRoot . java : 794 )
at javax . faces . component . UIViewRoot . processApplication ( UIViewRoot . java : 1259 )
at com . sun . faces . lifecycle . InvokeApplicationPhase . execute ( InvokeApplicationPhase . java : 81 )
at com . sun . faces . lifecycle . Phase . doPhase ( Phase . java : 101 )
at com . sun . faces . lifecycle . LifecycleImpl . execute ( LifecycleImpl . java : 118 )
at javax . faces . webapp . FacesServlet . service ( FacesServlet . java : 593 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 305 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 210 )
at br . com . boletos . filter . ControleFiltro . doFilter ( ControleFiltro . java : 33 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 243 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 210 )
at org . apache . catalina . core . StandardWrapperValve . invoke ( StandardWrapperValve . java : 224 )
at org . apache . catalina . core . StandardContextValve . invoke ( StandardContextValve . java : 169 )
at org . apache . catalina . authenticator . AuthenticatorBase . invoke ( AuthenticatorBase . java : 472 )
at org . apache . catalina . core . StandardHostValve . invoke ( StandardHostValve . java : 168 )
at org . apache . catalina . valves . ErrorReportValve . invoke ( ErrorReportValve . java : 98 )
at org . apache . catalina . valves . AccessLogValve . invoke ( AccessLogValve . java : 927 )
at org . apache . catalina . core . StandardEngineValve . invoke ( StandardEngineValve . java : 118 )
at org . apache . catalina . connector . CoyoteAdapter . service ( CoyoteAdapter . java : 407 )
at org . apache . coyote . http11 . AbstractHttp11Processor . process ( AbstractHttp11Processor . java : 987 )
at org . apache . coyote . AbstractProtocol$AbstractConnectionHandler . process ( AbstractProtocol . java : 579 )
at org . apache . tomcat . util . net . JIoEndpoint$SocketProcessor . run ( JIoEndpoint . java : 309 )
at java . util . concurrent . ThreadPoolExecutor . runWorker ( ThreadPoolExecutor . java : 1110 )
at java . util . concurrent . ThreadPoolExecutor$Worker . run ( ThreadPoolExecutor . java : 603 )
at java . lang . Thread . run ( Thread . java : 722 )
Caused by : java . lang . NoClassDefFoundError : org / codehaus / groovy / control / CompilationFailedException
at java . lang . Class . getDeclaredConstructors0 ( Native Method )
at java . lang . Class . privateGetDeclaredConstructors ( Class . java : 2404 )
at java . lang . Class . getConstructor0 ( Class . java : 2714 )
at java . lang . Class . newInstance0 ( Class . java : 343 )
at java . lang . Class . newInstance ( Class . java : 325 )
at net . sf . jasperreports . engine . JasperCompileManager . getCompiler ( JasperCompileManager . java : 472 )
at net . sf . jasperreports . engine . JasperCompileManager . loadEvaluator ( JasperCompileManager . java : 238 )
at net . sf . jasperreports . engine . fill . JRFillDataset . createCalculator ( JRFillDataset . java : 420 )
at net . sf . jasperreports . engine . fill . JRBaseFiller . < init > ( JRBaseFiller . java : 432 )
at net . sf . jasperreports . engine . fill . JRVerticalFiller . < init > ( JRVerticalFiller . java : 77 )
at net . sf . jasperreports . engine . fill . JRVerticalFiller . < init > ( JRVerticalFiller . java : 87 )
at net . sf . jasperreports . engine . fill . JRVerticalFiller . < init > ( JRVerticalFiller . java : 57 )
at net . sf . jasperreports . engine . fill . JRFiller . createFiller ( JRFiller . java : 142 )
at net . sf . jasperreports . engine . fill . JRFiller . fillReport ( JRFiller . java : 78 )
at net . sf . jasperreports . engine . JasperFillManager . fillReport ( JasperFillManager . java : 624 )
at net . sf . jasperreports . engine . JasperFillManager . fillReport ( JasperFillManager . java : 605 )
at net . sf . jasperreports . engine . JasperRunManager . runReportToPdfStream ( JasperRunManager . java : 370 )
at br . com . boletos . relatorios . RelatoriosBoletos . gerarRelatorioWeb ( RelatoriosBoletos . java : 67 )
at br . com . boletos . relatorios . RelatoriosBoletos . gerarRelatorio ( RelatoriosBoletos . java : 55 )
at sun . reflect . NativeMethodAccessorImpl . invoke0 ( Native Method )
at sun . reflect . NativeMethodAccessorImpl . invoke ( NativeMethodAccessorImpl . java : 57 )
at sun . reflect . DelegatingMethodAccessorImpl . invoke ( DelegatingMethodAccessorImpl . java : 43 )
at java . lang . reflect . Method . invoke ( Method . java : 601 )
at org . apache . el . parser . AstValue . invoke ( AstValue . java : 262 )
at org . apache . el . MethodExpressionImpl . invoke ( MethodExpressionImpl . java : 278 )
at javax . faces . event . MethodExpressionActionListener . processAction ( MethodExpressionActionListener . java : 153 )
... 28 more
Caused by : java . lang . ClassNotFoundException : org . codehaus . groovy . control . CompilationFailedException
at org . apache . catalina . loader . WebappClassLoader . loadClass ( WebappClassLoader . java : 1701 )
at org . apache . catalina . loader . WebappClassLoader . loadClass ( WebappClassLoader . java : 1546 )
... 54 more
Jun 26 , 2012 3 : 29 : 17 PM com . sun . faces . application . view . FaceletViewHandlingStrategy handleRenderException
Grave : Error Rendering View [ / pages / relatorios / impressao . xhtml ]
java . lang . IllegalStateException : getOutputStream () has already been called for this response
at org . apache . catalina . connector . Response . getWriter ( Response . java : 633 )
at org . apache . catalina . connector . ResponseFacade . getWriter ( ResponseFacade . java : 214 )
at com . sun . faces . context . ExternalContextImpl . getResponseOutputWriter ( ExternalContextImpl . java : 723 )
at com . sun . faces . application . view . FaceletViewHandlingStrategy . createResponseWriter ( FaceletViewHandlingStrategy . java : 930 )
at com . sun . faces . application . view . FaceletViewHandlingStrategy . renderView ( FaceletViewHandlingStrategy . java : 376 )
at com . sun . faces . application . view . MultiViewHandler . renderView ( MultiViewHandler . java : 131 )
at com . sun . faces . lifecycle . RenderResponsePhase . execute ( RenderResponsePhase . java : 121 )
at com . sun . faces . lifecycle . Phase . doPhase ( Phase . java : 101 )
at com . sun . faces . lifecycle . LifecycleImpl . render ( LifecycleImpl . java : 139 )
at javax . faces . webapp . FacesServlet . service ( FacesServlet . java : 594 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 305 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 210 )
at br . com . boletos . filter . ControleFiltro . doFilter ( ControleFiltro . java : 33 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 243 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 210 )
at org . apache . catalina . core . StandardWrapperValve . invoke ( StandardWrapperValve . java : 224 )
at org . apache . catalina . core . StandardContextValve . invoke ( StandardContextValve . java : 169 )
at org . apache . catalina . authenticator . AuthenticatorBase . invoke ( AuthenticatorBase . java : 472 )
at org . apache . catalina . core . StandardHostValve . invoke ( StandardHostValve . java : 168 )
at org . apache . catalina . valves . ErrorReportValve . invoke ( ErrorReportValve . java : 98 )
at org . apache . catalina . valves . AccessLogValve . invoke ( AccessLogValve . java : 927 )
at org . apache . catalina . core . StandardEngineValve . invoke ( StandardEngineValve . java : 118 )
at org . apache . catalina . connector . CoyoteAdapter . service ( CoyoteAdapter . java : 407 )
at org . apache . coyote . http11 . AbstractHttp11Processor . process ( AbstractHttp11Processor . java : 987 )
at org . apache . coyote . AbstractProtocol$AbstractConnectionHandler . process ( AbstractProtocol . java : 579 )
at org . apache . tomcat . util . net . JIoEndpoint$SocketProcessor . run ( JIoEndpoint . java : 309 )
at java . util . concurrent . ThreadPoolExecutor . runWorker ( ThreadPoolExecutor . java : 1110 )
at java . util . concurrent . ThreadPoolExecutor$Worker . run ( ThreadPoolExecutor . java : 603 )
at java . lang . Thread . run ( Thread . java : 722 )
Jun 26 , 2012 3 : 29 : 17 PM org . apache . catalina . core . StandardWrapperValve invoke
Grave : Servlet . service () for servlet [ Faces Servlet ] in context with path [ / boletos ] threw exception
java . lang . IllegalStateException : getOutputStream () has already been called for this response
at org . apache . catalina . connector . Response . getWriter ( Response . java : 633 )
at org . apache . catalina . connector . ResponseFacade . getWriter ( ResponseFacade . java : 214 )
at com . sun . faces . context . ExternalContextImpl . getResponseOutputWriter ( ExternalContextImpl . java : 723 )
at com . sun . faces . context . PartialViewContextImpl . createPartialResponseWriter ( PartialViewContextImpl . java : 431 )
at com . sun . faces . context . PartialViewContextImpl . access$300 ( PartialViewContextImpl . java : 71 )
at com . sun . faces . context . PartialViewContextImpl$DelayedInitPartialResponseWriter . getWrapped ( PartialViewContextImpl . java : 582 )
at javax . faces . context . PartialResponseWriter . startDocument ( PartialResponseWriter . java : 115 )
at org . primefaces . context . PrimePartialResponseWriter . startDocument ( PrimePartialResponseWriter . java : 205 )
at org . primefaces . context . PrimePartialResponseWriter . startDocument ( PrimePartialResponseWriter . java : 205 )
at com . sun . faces . context . AjaxExceptionHandlerImpl . handlePartialResponseError ( AjaxExceptionHandlerImpl . java : 199 )
at com . sun . faces . context . AjaxExceptionHandlerImpl . handle ( AjaxExceptionHandlerImpl . java : 123 )
at com . sun . faces . lifecycle . Phase . doPhase ( Phase . java : 119 )
at com . sun . faces . lifecycle . LifecycleImpl . render ( LifecycleImpl . java : 139 )
at javax . faces . webapp . FacesServlet . service ( FacesServlet . java : 594 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 305 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 210 )
at br . com . boletos . filter . ControleFiltro . doFilter ( ControleFiltro . java : 33 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 243 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 210 )
at org . apache . catalina . core . StandardWrapperValve . invoke ( StandardWrapperValve . java : 224 )
at org . apache . catalina . core . StandardContextValve . invoke ( StandardContextValve . java : 169 )
at org . apache . catalina . authenticator . AuthenticatorBase . invoke ( AuthenticatorBase . java : 472 )
at org . apache . catalina . core . StandardHostValve . invoke ( StandardHostValve . java : 168 )
at org . apache . catalina . valves . ErrorReportValve . invoke ( ErrorReportValve . java : 98 )
at org . apache . catalina . valves . AccessLogValve . invoke ( AccessLogValve . java : 927 )
at org . apache . catalina . core . StandardEngineValve . invoke ( StandardEngineValve . java : 118 )
at org . apache . catalina . connector . CoyoteAdapter . service ( CoyoteAdapter . java : 407 )
at org . apache . coyote . http11 . AbstractHttp11Processor . process ( AbstractHttp11Processor . java : 987 )
at org . apache . coyote . AbstractProtocol$AbstractConnectionHandler . process ( AbstractProtocol . java : 579 )
at org . apache . tomcat . util . net . JIoEndpoint$SocketProcessor . run ( JIoEndpoint . java : 309 )
at java . util . concurrent . ThreadPoolExecutor . runWorker ( ThreadPoolExecutor . java : 1110 )
at java . util . concurrent . ThreadPoolExecutor$Worker . run ( ThreadPoolExecutor . java : 603 )
at java . lang . Thread . run ( Thread . java : 722 )
Diego_Adriano 26 de jun. de 2012
Opa .. diminuindo o erro.
Isso era a solução do antigo:
Agora o novo
Não foi possivel gerar relatório ! net . sf . jasperreports . engine . JRException : Error retrieving field value from bean : lancamentos_dataemissao
Jun 26 , 2012 3 : 52 : 50 PM com . sun . faces . application . view . FaceletViewHandlingStrategy handleRenderException
Grave : Error Rendering View [ / pages / relatorios / impressao . xhtml ]
java . lang . IllegalStateException : getOutputStream () has already been called for this response
at org . apache . catalina . connector . Response . getWriter ( Response . java : 633 )
at org . apache . catalina . connector . ResponseFacade . getWriter ( ResponseFacade . java : 214 )
at com . sun . faces . context . ExternalContextImpl . getResponseOutputWriter ( ExternalContextImpl . java : 723 )
at com . sun . faces . application . view . FaceletViewHandlingStrategy . createResponseWriter ( FaceletViewHandlingStrategy . java : 930 )
at com . sun . faces . application . view . FaceletViewHandlingStrategy . renderView ( FaceletViewHandlingStrategy . java : 376 )
at com . sun . faces . application . view . MultiViewHandler . renderView ( MultiViewHandler . java : 131 )
at com . sun . faces . lifecycle . RenderResponsePhase . execute ( RenderResponsePhase . java : 121 )
at com . sun . faces . lifecycle . Phase . doPhase ( Phase . java : 101 )
at com . sun . faces . lifecycle . LifecycleImpl . render ( LifecycleImpl . java : 139 )
at javax . faces . webapp . FacesServlet . service ( FacesServlet . java : 594 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 305 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 210 )
at br . com . boletos . filter . ControleFiltro . doFilter ( ControleFiltro . java : 33 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 243 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 210 )
at org . apache . catalina . core . StandardWrapperValve . invoke ( StandardWrapperValve . java : 224 )
at org . apache . catalina . core . StandardContextValve . invoke ( StandardContextValve . java : 169 )
at org . apache . catalina . authenticator . AuthenticatorBase . invoke ( AuthenticatorBase . java : 472 )
at org . apache . catalina . core . StandardHostValve . invoke ( StandardHostValve . java : 168 )
at org . apache . catalina . valves . ErrorReportValve . invoke ( ErrorReportValve . java : 98 )
at org . apache . catalina . valves . AccessLogValve . invoke ( AccessLogValve . java : 927 )
at org . apache . catalina . core . StandardEngineValve . invoke ( StandardEngineValve . java : 118 )
at org . apache . catalina . connector . CoyoteAdapter . service ( CoyoteAdapter . java : 407 )
at org . apache . coyote . http11 . AbstractHttp11Processor . process ( AbstractHttp11Processor . java : 987 )
at org . apache . coyote . AbstractProtocol$AbstractConnectionHandler . process ( AbstractProtocol . java : 579 )
at org . apache . tomcat . util . net . JIoEndpoint$SocketProcessor . run ( JIoEndpoint . java : 309 )
at java . util . concurrent . ThreadPoolExecutor . runWorker ( ThreadPoolExecutor . java : 1110 )
at java . util . concurrent . ThreadPoolExecutor$Worker . run ( ThreadPoolExecutor . java : 603 )
at java . lang . Thread . run ( Thread . java : 722 )
Jun 26 , 2012 3 : 52 : 50 PM org . apache . catalina . core . StandardWrapperValve invoke
Grave : Servlet . service () for servlet [ Faces Servlet ] in context with path [ / boletos ] threw exception
java . lang . IllegalStateException : getOutputStream () has already been called for this response
at org . apache . catalina . connector . Response . getWriter ( Response . java : 633 )
at org . apache . catalina . connector . ResponseFacade . getWriter ( ResponseFacade . java : 214 )
at com . sun . faces . context . ExternalContextImpl . getResponseOutputWriter ( ExternalContextImpl . java : 723 )
at com . sun . faces . context . PartialViewContextImpl . createPartialResponseWriter ( PartialViewContextImpl . java : 431 )
at com . sun . faces . context . PartialViewContextImpl . access$300 ( PartialViewContextImpl . java : 71 )
at com . sun . faces . context . PartialViewContextImpl$DelayedInitPartialResponseWriter . getWrapped ( PartialViewContextImpl . java : 582 )
at javax . faces . context . PartialResponseWriter . startDocument ( PartialResponseWriter . java : 115 )
at org . primefaces . context . PrimePartialResponseWriter . startDocument ( PrimePartialResponseWriter . java : 205 )
at org . primefaces . context . PrimePartialResponseWriter . startDocument ( PrimePartialResponseWriter . java : 205 )
at com . sun . faces . context . AjaxExceptionHandlerImpl . handlePartialResponseError ( AjaxExceptionHandlerImpl . java : 199 )
at com . sun . faces . context . AjaxExceptionHandlerImpl . handle ( AjaxExceptionHandlerImpl . java : 123 )
at com . sun . faces . lifecycle . Phase . doPhase ( Phase . java : 119 )
at com . sun . faces . lifecycle . LifecycleImpl . render ( LifecycleImpl . java : 139 )
at javax . faces . webapp . FacesServlet . service ( FacesServlet . java : 594 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 305 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 210 )
at br . com . boletos . filter . ControleFiltro . doFilter ( ControleFiltro . java : 33 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 243 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 210 )
at org . apache . catalina . core . StandardWrapperValve . invoke ( StandardWrapperValve . java : 224 )
at org . apache . catalina . core . StandardContextValve . invoke ( StandardContextValve . java : 169 )
at org . apache . catalina . authenticator . AuthenticatorBase . invoke ( AuthenticatorBase . java : 472 )
at org . apache . catalina . core . StandardHostValve . invoke ( StandardHostValve . java : 168 )
at org . apache . catalina . valves . ErrorReportValve . invoke ( ErrorReportValve . java : 98 )
at org . apache . catalina . valves . AccessLogValve . invoke ( AccessLogValve . java : 927 )
at org . apache . catalina . core . StandardEngineValve . invoke ( StandardEngineValve . java : 118 )
at org . apache . catalina . connector . CoyoteAdapter . service ( CoyoteAdapter . java : 407 )
at org . apache . coyote . http11 . AbstractHttp11Processor . process ( AbstractHttp11Processor . java : 987 )
at org . apache . coyote . AbstractProtocol$AbstractConnectionHandler . process ( AbstractProtocol . java : 579 )
at org . apache . tomcat . util . net . JIoEndpoint$SocketProcessor . run ( JIoEndpoint . java : 309 )
at java . util . concurrent . ThreadPoolExecutor . runWorker ( ThreadPoolExecutor . java : 1110 )
at java . util . concurrent . ThreadPoolExecutor$Worker . run ( ThreadPoolExecutor . java : 603 )
at java . lang . Thread . run ( Thread . java : 722 )
Diego_Adriano 26 de jun. de 2012
Nossa … que vacilo … eu estava alterando o Relatório no IReport e estava esquecendo de atualizar na aplicação, alterei a linguagem pra Java e já era …
Agora estranho é esse aqui:
Error retrieving field value from bean: lancamentos_id
Diego_Adriano 26 de jun. de 2012
Já entendi … as variaveis dentro do Relatorios eram diferentes das variaveis vindas do codigo, corrigi mas esta dando erro no relacionamento.
Como irei fazer isso:
Java
@ManyToOne
@JoinColumn(name="cliente")
private Cliente cliente;
Não tenho ideia de como fazer isso no IReport