evandro_araujo 6 de mar. de 2013
Tentei fazer isso, mas sem sucesso :
List dados = new ArrayList ();
Map record = null ;
for ( Tblusu usu : objectList1 ) {
record = new HashMap() ;
record.put("status", usu.getStatus()) ;
dados.add(record) ;
}
JRBeanCollectionDataSource fonteDados = new JRBeanCollectionDataSource ( dados ); */
erro :
GRAVE : java . lang . IllegalArgumentException : Indexed or mapped properties are not supported on objects of type Map : Nome do usuario , quando o status for Prestador grava o codigo do prestador ( cadprest -> codprest )
javax . faces . event . AbortProcessingException : java . lang . IllegalArgumentException : Indexed or mapped properties are not supported on objects of type Map : Nome do usuario , quando o status for Prestador grava o codigo do prestador ( cadprest -> codprest )
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 . StandardWrapper . service ( StandardWrapper . java : 1550 )
at org . apache . catalina . core . StandardWrapperValve . invoke ( StandardWrapperValve . java : 281 )
at org . apache . catalina . core . StandardContextValve . invoke ( StandardContextValve . java : 175 )
at org . apache . catalina . core . StandardPipeline . doInvoke ( StandardPipeline . java : 655 )
at org . apache . catalina . core . StandardPipeline . invoke ( StandardPipeline . java : 595 )
at org . apache . catalina . core . StandardHostValve . invoke ( StandardHostValve . java : 161 )
at org . apache . catalina . connector . CoyoteAdapter . doService ( CoyoteAdapter . java : 331 )
at org . apache . catalina . connector . CoyoteAdapter . service ( CoyoteAdapter . java : 231 )
at com . sun . enterprise . v3 . services . impl . ContainerMapper $AdapterCallable . call ( ContainerMapper . java : 317 )
at com . sun . enterprise . v3 . services . impl . ContainerMapper . service ( ContainerMapper . java : 195 )
at com . sun . grizzly . http . ProcessorTask . invokeAdapter ( ProcessorTask . java : 860 )
at com . sun . grizzly . http . ProcessorTask . doProcess ( ProcessorTask . java : 757 )
at com . sun . grizzly . http . ProcessorTask . process ( ProcessorTask . java : 1056 )
at com . sun . grizzly . http . DefaultProtocolFilter . execute ( DefaultProtocolFilter . java : 229 )
at com . sun . grizzly . DefaultProtocolChain . executeProtocolFilter ( DefaultProtocolChain . java : 137 )
at com . sun . grizzly . DefaultProtocolChain . execute ( DefaultProtocolChain . java : 104 )
at com . sun . grizzly . DefaultProtocolChain . execute ( DefaultProtocolChain . java : 90 )
at com . sun . grizzly . http . HttpProtocolChain . execute ( HttpProtocolChain . java : 79 )
at com . sun . grizzly . ProtocolChainContextTask . doCall ( ProtocolChainContextTask . java : 54 )
at com . sun . grizzly . SelectionKeyContextTask . call ( SelectionKeyContextTask . java : 59 )
at com . sun . grizzly . ContextTask . run ( ContextTask . java : 71 )
at com . sun . grizzly . util . AbstractThreadPool $Worker . doWork ( AbstractThreadPool . java : 532 )
at com . sun . grizzly . util . AbstractThreadPool $Worker . run ( AbstractThreadPool . java : 513 )
at java . lang . Thread . run ( Thread . java : 662 )
Caused by : java . lang . IllegalArgumentException : Indexed or mapped properties are not supported on objects of type Map : Nome do usuario , quando o status for Prestador grava o codigo do prestador ( cadprest -> codprest )
at org . apache . commons . beanutils . PropertyUtilsBean . getPropertyOfMapBean ( PropertyUtilsBean . java : 813 )
at org . apache . commons . beanutils . PropertyUtilsBean . getNestedProperty ( PropertyUtilsBean . java : 746 )
at org . apache . commons . beanutils . PropertyUtilsBean . getProperty ( PropertyUtilsBean . java : 846 )
at org . apache . commons . beanutils . PropertyUtils . getProperty ( PropertyUtils . java : 426 )
at net . sf . jasperreports . engine . data . JRAbstractBeanDataSource . getBeanProperty ( JRAbstractBeanDataSource . java : 111 )
at net . sf . jasperreports . engine . data . JRAbstractBeanDataSource . getFieldValue ( JRAbstractBeanDataSource . java : 96 )
at net . sf . jasperreports . engine . data . JRBeanCollectionDataSource . getFieldValue ( JRBeanCollectionDataSource . java : 100 )
at net . sf . jasperreports . engine . fill . JRFillDataset . setOldValues ( JRFillDataset . java : 1330 )
at net . sf . jasperreports . engine . fill . JRFillDataset . next ( JRFillDataset . java : 1231 )
at net . sf . jasperreports . engine . fill . JRFillDataset . next ( JRFillDataset . java : 1207 )
at net . sf . jasperreports . engine . fill . JRBaseFiller . next ( JRBaseFiller . java : 1554 )
at net . sf . jasperreports . engine . fill . JRVerticalFiller . fillReport ( JRVerticalFiller . java : 149 )
at net . sf . jasperreports . engine . fill . JRBaseFiller . fill ( JRBaseFiller . java : 909 )
at net . sf . jasperreports . engine . fill . JRBaseFiller . fill ( JRBaseFiller . java : 841 )
at net . sf . jasperreports . engine . fill . JRFiller . fill ( JRFiller . java : 88 )
at net . sf . jasperreports . engine . JasperFillManager . fill ( JasperFillManager . java : 653 )
at net . sf . jasperreports . engine . JasperFillManager . fill ( JasperFillManager . java : 634 )
at net . sf . jasperreports . engine . JasperFillManager . fillReport ( JasperFillManager . java : 956 )
at br . uniplan . controle . TblusuMbean . executarRelatorioguiaservico ( TblusuMbean . java : 337 )
at sun . reflect . NativeMethodAccessorImpl . invoke0 ( Native Method )
at sun . reflect . NativeMethodAccessorImpl . invoke ( NativeMethodAccessorImpl . java : 39 )
at sun . reflect . DelegatingMethodAccessorImpl . invoke ( DelegatingMethodAccessorImpl . java : 25 )
at java . lang . reflect . Method . invoke ( Method . java : 597 )
at com . sun . el . parser . AstValue . invoke ( AstValue . java : 254 )
at com . sun . el . MethodExpressionImpl . invoke ( MethodExpressionImpl . java : 302 )
at org . jboss . weld . util . el . ForwardingMethodExpression . invoke ( ForwardingMethodExpression . java : 39 )
at org . jboss . weld . el . WeldMethodExpression . invoke ( WeldMethodExpression . java : 50 )
at javax . faces . event . MethodExpressionActionListener . processAction ( MethodExpressionActionListener . java : 153 )
… 33 more
evandro_araujo 7 de mar. de 2013
tentei fazer isso : mas o erro continua
List < Tblusu > lista = new ArrayList < Tblusu >();
for ( Tblusu usu : objectList1 ) {
Tblusu pme = new Tblusu() ;
pme.setStatus(usu.getStatus()) ;
lista.add(pme) ;
}
JRBeanCollectionDataSource fonteDados = new JRBeanCollectionDataSource ( lista );
GRAVE : ‘ net . sf . jasperreports . engine . JRException ’ recebido ao invocar escuta de ação ‘# { tblusuMbean . executarRelatorioguiaservico } ’ para o componente ‘ j_idt9 ’
GRAVE : net . sf . jasperreports . engine . JRException : Error retrieving field value from bean : usuario do sistema
at net . sf . jasperreports . engine . data . JRAbstractBeanDataSource . getBeanProperty ( JRAbstractBeanDataSource . java : 123 )
at net . sf . jasperreports . engine . data . JRAbstractBeanDataSource . getFieldValue ( JRAbstractBeanDataSource . java : 96 )
at net . sf . jasperreports . engine . data . JRBeanCollectionDataSource . getFieldValue ( JRBeanCollectionDataSource . java : 100 )
at net . sf . jasperreports . engine . fill . JRFillDataset . setOldValues ( JRFillDataset . java : 1330 )
at net . sf . jasperreports . engine . fill . JRFillDataset . next ( JRFillDataset . java : 1231 )
at net . sf . jasperreports . engine . fill . JRFillDataset . next ( JRFillDataset . java : 1207 )
at net . sf . jasperreports . engine . fill . JRBaseFiller . next ( JRBaseFiller . java : 1554 )
at net . sf . jasperreports . engine . fill . JRVerticalFiller . fillReport ( JRVerticalFiller . java : 149 )
at net . sf . jasperreports . engine . fill . JRBaseFiller . fill ( JRBaseFiller . java : 909 )
at net . sf . jasperreports . engine . fill . JRBaseFiller . fill ( JRBaseFiller . java : 841 )
at net . sf . jasperreports . engine . fill . JRFiller . fill ( JRFiller . java : 88 )
at net . sf . jasperreports . engine . JasperFillManager . fill ( JasperFillManager . java : 653 )
at net . sf . jasperreports . engine . JasperFillManager . fill ( JasperFillManager . java : 634 )
at net . sf . jasperreports . engine . JasperFillManager . fillReport ( JasperFillManager . java : 956 )
at br . uniplan . controle . TblusuMbean . executarRelatorioguiaservico ( TblusuMbean . java : 348 )
at sun . reflect . NativeMethodAccessorImpl . invoke0 ( Native Method )
at sun . reflect . NativeMethodAccessorImpl . invoke ( NativeMethodAccessorImpl . java : 39 )
at sun . reflect . DelegatingMethodAccessorImpl . invoke ( DelegatingMethodAccessorImpl . java : 25 )
at java . lang . reflect . Method . invoke ( Method . java : 597 )
at com . sun . el . parser . AstValue . invoke ( AstValue . java : 254 )
at com . sun . el . MethodExpressionImpl . invoke ( MethodExpressionImpl . java : 302 )
at org . jboss . weld . util . el . ForwardingMethodExpression . invoke ( ForwardingMethodExpression . java : 39 )
at org . jboss . weld . el . WeldMethodExpression . invoke ( WeldMethodExpression . java : 50 )
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 . StandardWrapper . service ( StandardWrapper . java : 1550 )
at org . apache . catalina . core . StandardWrapperValve . invoke ( StandardWrapperValve . java : 281 )
at org . apache . catalina . core . StandardContextValve . invoke ( StandardContextValve . java : 175 )
at org . apache . catalina . core . StandardPipeline . doInvoke ( StandardPipeline . java : 655 )
at org . apache . catalina . core . StandardPipeline . invoke ( StandardPipeline . java : 595 )
at org . apache . catalina . core . StandardHostValve . invoke ( StandardHostValve . java : 161 )
at org . apache . catalina . connector . CoyoteAdapter . doService ( CoyoteAdapter . java : 331 )
at org . apache . catalina . connector . CoyoteAdapter . service ( CoyoteAdapter . java : 231 )
at com . sun . enterprise . v3 . services . impl . ContainerMapper $ AdapterCallable . call ( ContainerMapper . java : 317 )
at com . sun . enterprise . v3 . services . impl . ContainerMapper . service ( ContainerMapper . java : 195 )
at com . sun . grizzly . http . ProcessorTask . invokeAdapter ( ProcessorTask . java : 860 )
at com . sun . grizzly . http . ProcessorTask . doProcess ( ProcessorTask . java : 757 )
at com . sun . grizzly . http . ProcessorTask . process ( ProcessorTask . java : 1056 )
at com . sun . grizzly . http . DefaultProtocolFilter . execute ( DefaultProtocolFilter . java : 229 )
at com . sun . grizzly . DefaultProtocolChain . executeProtocolFilter ( DefaultProtocolChain . java : 137 )
at com . sun . grizzly . DefaultProtocolChain . execute ( DefaultProtocolChain . java : 104 )
at com . sun . grizzly . DefaultProtocolChain . execute ( DefaultProtocolChain . java : 90 )
at com . sun . grizzly . http . HttpProtocolChain . execute ( HttpProtocolChain . java : 79 )
at com . sun . grizzly . ProtocolChainContextTask . doCall ( ProtocolChainContextTask . java : 54 )
at com . sun . grizzly . SelectionKeyContextTask . call ( SelectionKeyContextTask . java : 59 )
at com . sun . grizzly . ContextTask . run ( ContextTask . java : 71 )
at com . sun . grizzly . util . AbstractThreadPool $ Worker . doWork ( AbstractThreadPool . java : 532 )
at com . sun . grizzly . util . AbstractThreadPool $ Worker . run ( AbstractThreadPool . java : 513 )
at java . lang . Thread . run ( Thread . java : 662 )
Caused by : java . lang . NoSuchMethodException : Unknown property ‘ usuario do sistema ’ on class ‘ class br . uniplan . modelo . planouni . Tblusu ’
at org . apache . commons . beanutils . PropertyUtilsBean . getSimpleProperty ( PropertyUtilsBean . java : 1322 )
at org . apache . commons . beanutils . PropertyUtilsBean . getNestedProperty ( PropertyUtilsBean . java : 770 )
at org . apache . commons . beanutils . PropertyUtilsBean . getProperty ( PropertyUtilsBean . java : 846 )
at org . apache . commons . beanutils . PropertyUtils . getProperty ( PropertyUtils . java : 426 )
at net . sf . jasperreports . engine . data . JRAbstractBeanDataSource . getBeanProperty ( JRAbstractBeanDataSource . java : 111 )
… 56 more
GRAVE : JSF1073 : javax . faces . event . AbortProcessingException obtido durante o processamento de INVOKE_APPLICATION 5 : UIComponent - ClientId = form : j_idt9 , Message = net . sf . jasperreports . engine . JRException : Error retrieving field value from bean : usuario do sistema
GRAVE : net . sf . jasperreports . engine . JRException : Error retrieving field value from bean : usuario do sistema
javax . faces . event . AbortProcessingException : net . sf . jasperreports . engine . JRException : Error retrieving field value from bean : usuario do sistema
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 . StandardWrapper . service ( StandardWrapper . java : 1550 )
at org . apache . catalina . core . StandardWrapperValve . invoke ( StandardWrapperValve . java : 281 )
at org . apache . catalina . core . StandardContextValve . invoke ( StandardContextValve . java : 175 )
at org . apache . catalina . core . StandardPipeline . doInvoke ( StandardPipeline . java : 655 )
at org . apache . catalina . core . StandardPipeline . invoke ( StandardPipeline . java : 595 )
at org . apache . catalina . core . StandardHostValve . invoke ( StandardHostValve . java : 161 )
at org . apache . catalina . connector . CoyoteAdapter . doService ( CoyoteAdapter . java : 331 )
at org . apache . catalina . connector . CoyoteAdapter . service ( CoyoteAdapter . java : 231 )
at com . sun . enterprise . v3 . services . impl . ContainerMapper $AdapterCallable . call ( ContainerMapper . java : 317 )
at com . sun . enterprise . v3 . services . impl . ContainerMapper . service ( ContainerMapper . java : 195 )
at com . sun . grizzly . http . ProcessorTask . invokeAdapter ( ProcessorTask . java : 860 )
at com . sun . grizzly . http . ProcessorTask . doProcess ( ProcessorTask . java : 757 )
at com . sun . grizzly . http . ProcessorTask . process ( ProcessorTask . java : 1056 )
at com . sun . grizzly . http . DefaultProtocolFilter . execute ( DefaultProtocolFilter . java : 229 )
at com . sun . grizzly . DefaultProtocolChain . executeProtocolFilter ( DefaultProtocolChain . java : 137 )
at com . sun . grizzly . DefaultProtocolChain . execute ( DefaultProtocolChain . java : 104 )
at com . sun . grizzly . DefaultProtocolChain . execute ( DefaultProtocolChain . java : 90 )
at com . sun . grizzly . http . HttpProtocolChain . execute ( HttpProtocolChain . java : 79 )
at com . sun . grizzly . ProtocolChainContextTask . doCall ( ProtocolChainContextTask . java : 54 )
at com . sun . grizzly . SelectionKeyContextTask . call ( SelectionKeyContextTask . java : 59 )
at com . sun . grizzly . ContextTask . run ( ContextTask . java : 71 )
at com . sun . grizzly . util . AbstractThreadPool $Worker . doWork ( AbstractThreadPool . java : 532 )
at com . sun . grizzly . util . AbstractThreadPool $Worker . run ( AbstractThreadPool . java : 513 )
at java . lang . Thread . run ( Thread . java : 662 )
Caused by : net . sf . jasperreports . engine . JRException : Error retrieving field value from bean : usuario do sistema
at net . sf . jasperreports . engine . data . JRAbstractBeanDataSource . getBeanProperty ( JRAbstractBeanDataSource . java : 123 )
at net . sf . jasperreports . engine . data . JRAbstractBeanDataSource . getFieldValue ( JRAbstractBeanDataSource . java : 96 )
at net . sf . jasperreports . engine . data . JRBeanCollectionDataSource . getFieldValue ( JRBeanCollectionDataSource . java : 100 )
at net . sf . jasperreports . engine . fill . JRFillDataset . setOldValues ( JRFillDataset . java : 1330 )
at net . sf . jasperreports . engine . fill . JRFillDataset . next ( JRFillDataset . java : 1231 )
at net . sf . jasperreports . engine . fill . JRFillDataset . next ( JRFillDataset . java : 1207 )
at net . sf . jasperreports . engine . fill . JRBaseFiller . next ( JRBaseFiller . java : 1554 )
at net . sf . jasperreports . engine . fill . JRVerticalFiller . fillReport ( JRVerticalFiller . java : 149 )
at net . sf . jasperreports . engine . fill . JRBaseFiller . fill ( JRBaseFiller . java : 909 )
at net . sf . jasperreports . engine . fill . JRBaseFiller . fill ( JRBaseFiller . java : 841 )
at net . sf . jasperreports . engine . fill . JRFiller . fill ( JRFiller . java : 88 )
at net . sf . jasperreports . engine . JasperFillManager . fill ( JasperFillManager . java : 653 )
at net . sf . jasperreports . engine . JasperFillManager . fill ( JasperFillManager . java : 634 )
at net . sf . jasperreports . engine . JasperFillManager . fillReport ( JasperFillManager . java : 956 )
at br . uniplan . controle . TblusuMbean . executarRelatorioguiaservico ( TblusuMbean . java : 348 )
at sun . reflect . NativeMethodAccessorImpl . invoke0 ( Native Method )
at sun . reflect . NativeMethodAccessorImpl . invoke ( NativeMethodAccessorImpl . java : 39 )
at sun . reflect . DelegatingMethodAccessorImpl . invoke ( DelegatingMethodAccessorImpl . java : 25 )
at java . lang . reflect . Method . invoke ( Method . java : 597 )
at com . sun . el . parser . AstValue . invoke ( AstValue . java : 254 )
at com . sun . el . MethodExpressionImpl . invoke ( MethodExpressionImpl . java : 302 )
at org . jboss . weld . util . el . ForwardingMethodExpression . invoke ( ForwardingMethodExpression . java : 39 )
at org . jboss . weld . el . WeldMethodExpression . invoke ( WeldMethodExpression . java : 50 )
at javax . faces . event . MethodExpressionActionListener . processAction ( MethodExpressionActionListener . java : 153 )
… 33 more
Caused by : java . lang . NoSuchMethodException : Unknown property ‘ usuario do sistema ’ on class ‘ class br . uniplan . modelo . planouni . Tblusu ’
at org . apache . commons . beanutils . PropertyUtilsBean . getSimpleProperty ( PropertyUtilsBean . java : 1322 )
at org . apache . commons . beanutils . PropertyUtilsBean . getNestedProperty ( PropertyUtilsBean . java : 770 )
at org . apache . commons . beanutils . PropertyUtilsBean . getProperty ( PropertyUtilsBean . java : 846 )
at org . apache . commons . beanutils . PropertyUtils . getProperty ( PropertyUtils . java : 426 )
at net . sf . jasperreports . engine . data . JRAbstractBeanDataSource . getBeanProperty ( JRAbstractBeanDataSource . java : 111 )
… 56 more
darksteel3000 7 de mar. de 2013
Vc realmente tem um atributo chamado: usuario do sistema?
evandro_araujo 7 de mar. de 2013
No comeco do relatorio estava assim o xml do relatorio
< field name = "usucod" class = "java.lang.String" >
< fieldDescription ><! [ CDATA [ usuario do sistema ]] ></ fieldDescription >
</ field >
< field name = "usunome" class = "java.lang.String" >
< fieldDescription ><! [ CDATA [ Nome do usuario , quando o status for Prestador grava o codigo do prestador ( cadprest -> codprest ) neste campo ]] ></ fieldDescription >
</ field >
< field name = "ususenha" class = "java.lang.String" >
< fieldDescription ><! [ CDATA [ Senha Criptografada ]] ></ fieldDescription >
</ field >
< field name = "status" class = "java.lang.String" >
< fieldDescription ><! [ CDATA [ Status da administradora A = ATIVO I = INATIVO ]] ></ fieldDescription >
</ field >
< field name = "origem" class = "java.lang.String" />
< field name = "nome" class = "java.lang.String" >
< fieldDescription ><! [ CDATA [ Nome do usuario ]] ></ fieldDescription >
</ field >
< field name = "id" class = "java.lang.Integer" />
< field name = "perfil" class = "java.lang.String" >
< fieldDescription ><! [ CDATA [ Perfil do Usuario ]] ></ fieldDescription >
</ field >
< field name = "codprest" class = "java.lang.Integer" >
< fieldDescription ><! [ CDATA [ Codigo do Prestador ]] ></ fieldDescription >
</ field >
editei para assim :
< field name = "status" class = "java.lang.String" >
< fieldDescription >< ! [ CDATA[status ] ] ></ fieldDescription >
</ field >
agora esta dando o seguinte erro :
GRAVE : net . sf . jasperreports . engine . JRException : Error retrieving field value from bean : Status da administradora A = ATIVO I = INATIVO
at net . sf . jasperreports . engine . data . JRAbstractBeanDataSource . getBeanProperty ( JRAbstractBeanDataSource . java : 123 )
at net . sf . jasperreports . engine . data . JRAbstractBeanDataSource . getFieldValue ( JRAbstractBeanDataSource . java : 96 )
at net . sf . jasperreports . engine . data . JRBeanCollectionDataSource . getFieldValue ( JRBeanCollectionDataSource . java : 100 )
at net . sf . jasperreports . engine . fill . JRFillDataset . setOldValues ( JRFillDataset . java : 1330 )
at net . sf . jasperreports . engine . fill . JRFillDataset . next ( JRFillDataset . java : 1231 )
at net . sf . jasperreports . engine . fill . JRFillDataset . next ( JRFillDataset . java : 1207 )
at net . sf . jasperreports . engine . fill . JRBaseFiller . next ( JRBaseFiller . java : 1554 )
at net . sf . jasperreports . engine . fill . JRVerticalFiller . fillReport ( JRVerticalFiller . java : 149 )
at net . sf . jasperreports . engine . fill . JRBaseFiller . fill ( JRBaseFiller . java : 909 )
at net . sf . jasperreports . engine . fill . JRBaseFiller . fill ( JRBaseFiller . java : 841 )
at net . sf . jasperreports . engine . fill . JRFiller . fill ( JRFiller . java : 88 )
at net . sf . jasperreports . engine . JasperFillManager . fill ( JasperFillManager . java : 653 )
at net . sf . jasperreports . engine . JasperFillManager . fill ( JasperFillManager . java : 634 )
at net . sf . jasperreports . engine . JasperFillManager . fillReport ( JasperFillManager . java : 956 )
at br . uniplan . controle . TblusuMbean . executarRelatorioguiaservico ( TblusuMbean . java : 348 )
at sun . reflect . NativeMethodAccessorImpl . invoke0 ( Native Method )
at sun . reflect . NativeMethodAccessorImpl . invoke ( NativeMethodAccessorImpl . java : 39 )
at sun . reflect . DelegatingMethodAccessorImpl . invoke ( DelegatingMethodAccessorImpl . java : 25 )
at java . lang . reflect . Method . invoke ( Method . java : 597 )
at com . sun . el . parser . AstValue . invoke ( AstValue . java : 254 )
at com . sun . el . MethodExpressionImpl . invoke ( MethodExpressionImpl . java : 302 )
at org . jboss . weld . util . el . ForwardingMethodExpression . invoke ( ForwardingMethodExpression . java : 39 )
at org . jboss . weld . el . WeldMethodExpression . invoke ( WeldMethodExpression . java : 50 )
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 . StandardWrapper . service ( StandardWrapper . java : 1550 )
at org . apache . catalina . core . StandardWrapperValve . invoke ( StandardWrapperValve . java : 281 )
at org . apache . catalina . core . StandardContextValve . invoke ( StandardContextValve . java : 175 )
at org . apache . catalina . core . StandardPipeline . doInvoke ( StandardPipeline . java : 655 )
at org . apache . catalina . core . StandardPipeline . invoke ( StandardPipeline . java : 595 )
at org . apache . catalina . core . StandardHostValve . invoke ( StandardHostValve . java : 161 )
at org . apache . catalina . connector . CoyoteAdapter . doService ( CoyoteAdapter . java : 331 )
at org . apache . catalina . connector . CoyoteAdapter . service ( CoyoteAdapter . java : 231 )
at com . sun . enterprise . v3 . services . impl . ContainerMapper $AdapterCallable . call ( ContainerMapper . java : 317 )
at com . sun . enterprise . v3 . services . impl . ContainerMapper . service ( ContainerMapper . java : 195 )
at com . sun . grizzly . http . ProcessorTask . invokeAdapter ( ProcessorTask . java : 860 )
at com . sun . grizzly . http . ProcessorTask . doProcess ( ProcessorTask . java : 757 )
at com . sun . grizzly . http . ProcessorTask . process ( ProcessorTask . java : 1056 )
at com . sun . grizzly . http . DefaultProtocolFilter . execute ( DefaultProtocolFilter . java : 229 )
at com . sun . grizzly . DefaultProtocolChain . executeProtocolFilter ( DefaultProtocolChain . java : 137 )
at com . sun . grizzly . DefaultProtocolChain . execute ( DefaultProtocolChain . java : 104 )
at com . sun . grizzly . DefaultProtocolChain . execute ( DefaultProtocolChain . java : 90 )
at com . sun . grizzly . http . HttpProtocolChain . execute ( HttpProtocolChain . java : 79 )
at com . sun . grizzly . ProtocolChainContextTask . doCall ( ProtocolChainContextTask . java : 54 )
at com . sun . grizzly . SelectionKeyContextTask . call ( SelectionKeyContextTask . java : 59 )
at com . sun . grizzly . ContextTask . run ( ContextTask . java : 71 )
at com . sun . grizzly . util . AbstractThreadPool $Worker . doWork ( AbstractThreadPool . java : 532 )
at com . sun . grizzly . util . AbstractThreadPool $Worker . run ( AbstractThreadPool . java : 513 )
at java . lang . Thread . run ( Thread . java : 662 )
Caused by : java . lang . NoSuchMethodException : Unknown property ‘ Status da administradora A = ATIVO I = INATIVO ’ on class ‘ class br . uniplan . modelo . planouni . Tblusu ’
at org . apache . commons . beanutils . PropertyUtilsBean . getSimpleProperty ( PropertyUtilsBean . java : 1322 )
at org . apache . commons . beanutils . PropertyUtilsBean . getNestedProperty ( PropertyUtilsBean . java : 770 )
at org . apache . commons . beanutils . PropertyUtilsBean . getProperty ( PropertyUtilsBean . java : 846 )
at org . apache . commons . beanutils . PropertyUtils . getProperty ( PropertyUtils . java : 426 )
at net . sf . jasperreports . engine . data . JRAbstractBeanDataSource . getBeanProperty ( JRAbstractBeanDataSource . java : 111 )
… 56 more
GRAVE : JSF1073 : javax . faces . event . AbortProcessingException obtido durante o processamento de INVOKE_APPLICATION 5 : UIComponent - ClientId = form : j_idt9 , Message = net . sf . jasperreports . engine . JRException : Error retrieving field value from bean : Status da administradora A = ATIVO I = INATIVO
GRAVE : net . sf . jasperreports . engine . JRException : Error retrieving field value from bean : Status da administradora A = ATIVO I = INATIVO
javax . faces . event . AbortProcessingException : net . sf . jasperreports . engine . JRException : Error retrieving field value from bean : Status da administradora A = ATIVO I = INATIVO
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 . StandardWrapper . service ( StandardWrapper . java : 1550 )
at org . apache . catalina . core . StandardWrapperValve . invoke ( StandardWrapperValve . java : 281 )
at org . apache . catalina . core . StandardContextValve . invoke ( StandardContextValve . java : 175 )
at org . apache . catalina . core . StandardPipeline . doInvoke ( StandardPipeline . java : 655 )
at org . apache . catalina . core . StandardPipeline . invoke ( StandardPipeline . java : 595 )
at org . apache . catalina . core . StandardHostValve . invoke ( StandardHostValve . java : 161 )
at org . apache . catalina . connector . CoyoteAdapter . doService ( CoyoteAdapter . java : 331 )
at org . apache . catalina . connector . CoyoteAdapter . service ( CoyoteAdapter . java : 231 )
at com . sun . enterprise . v3 . services . impl . ContainerMapper $AdapterCallable . call ( ContainerMapper . java : 317 )
at com . sun . enterprise . v3 . services . impl . ContainerMapper . service ( ContainerMapper . java : 195 )
at com . sun . grizzly . http . ProcessorTask . invokeAdapter ( ProcessorTask . java : 860 )
at com . sun . grizzly . http . ProcessorTask . doProcess ( ProcessorTask . java : 757 )
at com . sun . grizzly . http . ProcessorTask . process ( ProcessorTask . java : 1056 )
at com . sun . grizzly . http . DefaultProtocolFilter . execute ( DefaultProtocolFilter . java : 229 )
at com . sun . grizzly . DefaultProtocolChain . executeProtocolFilter ( DefaultProtocolChain . java : 137 )
at com . sun . grizzly . DefaultProtocolChain . execute ( DefaultProtocolChain . java : 104 )
at com . sun . grizzly . DefaultProtocolChain . execute ( DefaultProtocolChain . java : 90 )
at com . sun . grizzly . http . HttpProtocolChain . execute ( HttpProtocolChain . java : 79 )
at com . sun . grizzly . ProtocolChainContextTask . doCall ( ProtocolChainContextTask . java : 54 )
at com . sun . grizzly . SelectionKeyContextTask . call ( SelectionKeyContextTask . java : 59 )
at com . sun . grizzly . ContextTask . run ( ContextTask . java : 71 )
at com . sun . grizzly . util . AbstractThreadPool $Worker . doWork ( AbstractThreadPool . java : 532 )
at com . sun . grizzly . util . AbstractThreadPool $Worker . run ( AbstractThreadPool . java : 513 )
at java . lang . Thread . run ( Thread . java : 662 )
Caused by : net . sf . jasperreports . engine . JRException : Error retrieving field value from bean : Status da administradora A = ATIVO I = INATIVO
at net . sf . jasperreports . engine . data . JRAbstractBeanDataSource . getBeanProperty ( JRAbstractBeanDataSource . java : 123 )
at net . sf . jasperreports . engine . data . JRAbstractBeanDataSource . getFieldValue ( JRAbstractBeanDataSource . java : 96 )
at net . sf . jasperreports . engine . data . JRBeanCollectionDataSource . getFieldValue ( JRBeanCollectionDataSource . java : 100 )
at net . sf . jasperreports . engine . fill . JRFillDataset . setOldValues ( JRFillDataset . java : 1330 )
at net . sf . jasperreports . engine . fill . JRFillDataset . next ( JRFillDataset . java : 1231 )
at net . sf . jasperreports . engine . fill . JRFillDataset . next ( JRFillDataset . java : 1207 )
at net . sf . jasperreports . engine . fill . JRBaseFiller . next ( JRBaseFiller . java : 1554 )
at net . sf . jasperreports . engine . fill . JRVerticalFiller . fillReport ( JRVerticalFiller . java : 149 )
at net . sf . jasperreports . engine . fill . JRBaseFiller . fill ( JRBaseFiller . java : 909 )
at net . sf . jasperreports . engine . fill . JRBaseFiller . fill ( JRBaseFiller . java : 841 )
at net . sf . jasperreports . engine . fill . JRFiller . fill ( JRFiller . java : 88 )
at net . sf . jasperreports . engine . JasperFillManager . fill ( JasperFillManager . java : 653 )
at net . sf . jasperreports . engine . JasperFillManager . fill ( JasperFillManager . java : 634 )
at net . sf . jasperreports . engine . JasperFillManager . fillReport ( JasperFillManager . java : 956 )
at br . uniplan . controle . TblusuMbean . executarRelatorioguiaservico ( TblusuMbean . java : 348 )
at sun . reflect . NativeMethodAccessorImpl . invoke0 ( Native Method )
at sun . reflect . NativeMethodAccessorImpl . invoke ( NativeMethodAccessorImpl . java : 39 )
at sun . reflect . DelegatingMethodAccessorImpl . invoke ( DelegatingMethodAccessorImpl . java : 25 )
at java . lang . reflect . Method . invoke ( Method . java : 597 )
at com . sun . el . parser . AstValue . invoke ( AstValue . java : 254 )
at com . sun . el . MethodExpressionImpl . invoke ( MethodExpressionImpl . java : 302 )
at org . jboss . weld . util . el . ForwardingMethodExpression . invoke ( ForwardingMethodExpression . java : 39 )
at org . jboss . weld . el . WeldMethodExpression . invoke ( WeldMethodExpression . java : 50 )
at javax . faces . event . MethodExpressionActionListener . processAction ( MethodExpressionActionListener . java : 153 )
… 33 more
Caused by : java . lang . NoSuchMethodException : Unknown property ‘ Status da administradora A = ATIVO I = INATIVO ’ on class ‘ class br . uniplan . modelo . planouni . Tblusu ’
at org . apache . commons . beanutils . PropertyUtilsBean . getSimpleProperty ( PropertyUtilsBean . java : 1322 )
at org . apache . commons . beanutils . PropertyUtilsBean . getNestedProperty ( PropertyUtilsBean . java : 770 )
at org . apache . commons . beanutils . PropertyUtilsBean . getProperty ( PropertyUtilsBean . java : 846 )
at org . apache . commons . beanutils . PropertyUtils . getProperty ( PropertyUtils . java : 426 )
at net . sf . jasperreports . engine . data . JRAbstractBeanDataSource . getBeanProperty ( JRAbstractBeanDataSource . java : 111 )
… 56 more
darksteel3000 7 de mar. de 2013
Amigo, ele não consegue receber isso: Status da administradora A=ATIVO I=INATIVO
Estais utilizando a ferramenta visual?
ManoJava 7 de mar. de 2013
Qual a estrutura dessa classe “Tblusu” ? posta ai pra gente ver.
Att.
evandro_araujo 7 de mar. de 2013
Estou utilizando Ireport 5 (Visual), segue a estrutura da classe :
public class Tblusu implements Serializable {
private static final long serialVersionUID = 1L ;
@Basic ( optional = false )
@NotNull
@Size ( min = 1 , max = 6 )
@Column ( nullable = false , length = 6 )
private String usucod ;
@Id
@Basic ( optional = false )
@NotNull
@Size ( min = 1 , max = 40 )
@Column ( nullable = false , length = 40 )
private String usunome ;
@Size ( max = 20 )
@Column ( length = 20 )
private String ususenha ;
@Basic ( optional = false )
@NotNull
@Size ( min = 1 , max = 50 )
@Column ( nullable = false , length = 50 )
private String status ;
@Size ( max = 1 )
@Column ( length = 1 )
private String origem ;
@Size ( max = 50 )
@Column ( length = 50 )
private String nome ;
@Basic ( optional = false )
@Column ( nullable = false )
private int id ;
@Size ( max = 20 )
@Column ( length = 20 )
private String perfil ;
@ManyToOne
@JoinColumn ( name = "codprest" )
private Cadprest cadprest ;
public Tblusu () {
}
public Tblusu ( String usunome ) {
this . usunome = usunome ;
}
public Tblusu ( String usunome , String usucod , String status , int id ) {
this . usunome = usunome ;
this . usucod = usucod ;
this . status = status ;
this . id = id ;
}
getter e setters
evandro_araujo 7 de mar. de 2013
Resolvido
Map record = null ;
List dados = new ArrayList ();
// sua iteração
for ( Tblusu usu : objectList1 ) {
record = new HashMap() ;
record.put("status", usu.getStatus()) ;
dados.add(record) ;
}
// fim da sua iteração
JRBeanCollectionDataSource fonteDados = new JRBeanCollectionDataSource ( dados );