IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Servlets/JSP Java Discussion :

NullPointerException dans une JSP


Sujet :

Servlets/JSP Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Inscrit en
    Octobre 2007
    Messages
    121
    Détails du profil
    Informations forums :
    Inscription : Octobre 2007
    Messages : 121
    Par défaut NullPointerException dans une JSP
    Bonjour,

    j'ai cette erreur qui persiste et qui signe. Pourriez vous m'aider s'il vous plait.

    1/ voici l'erreur :
    Error calling action method of component with id local:frmUserDefinedReport:saveInfo_submitButton

    Caused by:
    java.lang.NullPointerException - /WEB-INF/tags/js_submit.jspx @76,8 action="#{action}": java.lang.NullPointerException
    2/ je pense que ça renvoie a ce code , si je me trompe pourriez vous le dire pour que je cherche :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
     
    <!-- 
     
    	jsSubmit: Exposes a commandButton as a Javascript function
     
    	Parameters:
    		id
    		name
    		action 
    		actionListener
    		immediate
    		bypassRequired
    		bypassConverter
    -->
     
    <ui:composition 
    	xmlns:jsp="http://java.sun.com/JSP/Page" 
    	xmlns:ui="http://java.sun.com/jsf/facelets" 
    	xmlns:f="http://java.sun.com/jsf/core" 
    	xmlns:h="http://java.sun.com/jsf/html" 
    	xmlns:a4j="http://richfaces.org/a4j" 
    	xmlns:rich="http://richfaces.org/rich" 
    	xmlns:c="http://java.sun.com/jstl/core" 
    	xmlns:dmfas="http://dmfas.unctad.org/jsf" 
    	xmlns:utils="http://dmfas.unctad.org/utils">
     
    	<c:if test="${empty immediate}">
    	    <c:set var="immediate" value="true" />
    	</c:if>
     
    	<c:if test="${empty bypassRequired}">
    	    <c:set var="bypassRequired" value="true" />
    	</c:if>
     
    	<c:if test="${empty bypassConverter}">
    	    <c:set var="bypassConverter" value="true" />
    	</c:if>
     
    	<c:if test="${empty onPerform}">
    	    <c:set var="onPerform" value="" />
    	</c:if>
     
    	<c:if test="${empty rendered}">
    	    <c:set var="rendered" value="true" />
    	</c:if>
     
    	<dmfas:compositeControl
    		id="#{id}"
    		methodBindings="action=java.lang.String; 
    			actionListener=void javax.faces.event.ActionEvent;">
     
    			<utils:div forceId="#{id}_wrapperDiv" rendered="#{rendered}">
     
    				<c:if test="${not empty action and not empty actionListener}">
    					<h:commandButton
    						id="#{id}_submitButton"
    						value="#{id}_submitButton"
    						immediate="#{immediate}"
    						action="#{action}"
    						actionListener="#{actionListener}"
    						style="display: none;"
    						rendered="#{rendered}"						
    						>	
    					</h:commandButton>
    				</c:if>
    				<c:if test="${not empty action and empty actionListener}">
    					<h:commandButton
    						id="#{id}_submitButton"
    						value="#{id}_submitButton"
    						immediate="#{immediate}"
    						action="#{action}"
    						style="display: none;"
    						rendered="#{rendered}"						
    						>	
    					</h:commandButton>
    				</c:if>
    				<c:if test="${empty action and not empty actionListener}">
    					<h:commandButton
    						id="#{id}_submitButton"
    						value="#{id}_submitButton"
    						immediate="#{immediate}"
    						actionListener="#{actionListener}"
    						style="display: none;"
    						rendered="#{rendered}"
    						>
    					</h:commandButton>
    				</c:if>
    				<c:if test="${empty action and empty actionListener}">
    					<h:commandButton
    						id="#{id}_submitButton"
    						value="#{id}_submitButton"
    						immediate="#{immediate}"
    						style="display: none;"
    						rendered="#{rendered}"
    						>
    					</h:commandButton>
    				</c:if>
     
    			</utils:div>			
     
    			<h:panelGroup rendered="#{rendered}">					
    				<script type='text/javascript'>
                                    //<![CDATA[
                                    
                                            function #{name}() {                                            
                                                    var div = document.getElementById("#{id}_wrapperDiv");
                                                    var btn = div.getElementsByTagName("input")[0];
                                            
                                                    try {
                                                            eval("#{onPerform}");
                                                    } catch(e) {}
                                            
                                                    if (#{bypassConverter}) {addBypassConverter(btn.form);} 
                                            
                                                    if (#{bypassRequired}) {addBypassRequired(btn.form);}
                                            
                                                    blockAjaxScreen();
                                                    showBusy();
                                            
                                                    btn.click();                                            
                                            }
                                            
                                    //]]>
                                    </script>
    			</h:panelGroup>
     
    	</dmfas:compositeControl>	
     
    </ui:composition>
    3/je vous envoie egalement le Stack Trace

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    javax.faces.FacesException: Error calling action method of component with id local:frmUserDefinedReport:saveInfo_submitButton
    	at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
    	at javax.faces.component.UICommand.broadcast(UICommand.java:127)
    	at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321)
    	at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:296)
    	at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253)
    	at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:466)
    	at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
    	at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:103)
    	at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
    	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:183)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
    	at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
    	at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
    	at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.unctad.framework.auditing.interceptors.AuditRequestCycleFilter.doFilter(AuditRequestCycleFilter.java:54)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.unctad.framework.nocache.NoCacheFilter.doFilter(NoCacheFilter.java:72)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
    	at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
    	at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
    	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    	at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:124)
    	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    	at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
    	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    	at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
    	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    	at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
    	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    	at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
    	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    	at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
    	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    	at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
    	at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
    	at org.unctad.framework.security.filter.SecurityTraceFilter.doFilter(SecurityTraceFilter.java:37)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    	at java.lang.Thread.run(Thread.java:662)
    Caused by: javax.faces.el.EvaluationException: javax.el.ELException: /WEB-INF/tags/js_submit.jspx @76,8 action="#{action}": java.lang.NullPointerException
    	at javax.faces.component._MethodExpressionToMethodBinding.invoke(_MethodExpressionToMethodBinding.java:82)
    	at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:57)
    	... 54 more
    Caused by: javax.el.ELException: /WEB-INF/tags/js_submit.jspx @76,8 action="#{action}": java.lang.NullPointerException
    	at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:74)
    	at javax.faces.component._MethodExpressionToMethodBinding.invoke(_MethodExpressionToMethodBinding.java:78)
    	... 55 more
    Caused by: java.lang.NullPointerException
    	at org.unctad.dmfas.view.grid.operationHandler.UdrAggregatesOperationHandler.update(UdrAggregatesOperationHandler.java:140)
    	at org.unctad.framework.grid.GridDefinitionData.executeOperations(GridDefinitionData.java:554)
    	at org.unctad.dmfas.service.impl.GridOperationsServiceImpl.executeOperations(GridOperationsServiceImpl.java:37)
    	at org.unctad.dmfas.service.impl.GridOperationsServiceImpl$$FastClassByCGLIB$$1fd943e4.invoke(<generated>)
    	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
    	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:77)
    	at org.unctad.framework.auditing.interceptors.AuditServiceLayerAdvice.beforeGridExecuteOperation(AuditServiceLayerAdvice.java:322)
    	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 org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:627)
    	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:616)
    	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:64)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    	at org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:54)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:160)
    	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    	at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
    	at org.unctad.dmfas.service.impl.GridOperationsServiceImpl$$EnhancerByCGLIB$$68a1e2cb.executeOperations(<generated>)
    	at org.unctad.dmfas.service.impl.GridOperationsServiceImpl$$FastClassByCGLIB$$1fd943e4.invoke(<generated>)
    	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
    	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    	at org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:66)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    	at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
    	at org.unctad.dmfas.service.impl.GridOperationsServiceImpl$$EnhancerByCGLIB$$3d17e62a.executeOperations(<generated>)
    	at org.unctad.dmfas.service.impl.UserDefinedReportServiceImpl.updateUserDefinedReport(UserDefinedReportServiceImpl.java:201)
    	at org.unctad.dmfas.service.impl.UserDefinedReportServiceImpl$$FastClassByCGLIB$$82ac7042.invoke(<generated>)
    	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
    	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:77)
    	at org.unctad.framework.validator.UserDefinedReportValidator.validateSave(UserDefinedReportValidator.java:104)
    	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 org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:627)
    	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:616)
    	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:64)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:160)
    	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:77)
    	at org.unctad.framework.auditing.interceptors.AuditServiceLayerAdvice.beforeUpdateDataWithGrid(AuditServiceLayerAdvice.java:233)
    	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 org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:627)
    	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:616)
    	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:64)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:160)
    	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:77)
    	at org.unctad.framework.auditing.interceptors.AuditServiceLayerAdvice.beforeUpdateData(AuditServiceLayerAdvice.java:141)
    	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 org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:627)
    	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:616)
    	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:64)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:160)
    	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:165)
    	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    	at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
    	at org.unctad.dmfas.service.impl.UserDefinedReportServiceImpl$$EnhancerByCGLIB$$715ac5cb.updateUserDefinedReport(<generated>)
    	at org.unctad.dmfas.service.impl.UserDefinedReportServiceImpl$$FastClassByCGLIB$$82ac7042.invoke(<generated>)
    	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
    	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    	at org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:66)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    	at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
    	at org.unctad.dmfas.service.impl.UserDefinedReportServiceImpl$$EnhancerByCGLIB$$66485d88.updateUserDefinedReport(<generated>)
    	at org.unctad.dmfas.view.bean.UserDefinedReportBean.saveUserDefinedReport(UserDefinedReportBean.java:847)
    	at org.unctad.dmfas.view.bean.UserDefinedReportBean$$FastClassByCGLIB$$820eaa77.invoke(<generated>)
    	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
    	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    	at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:160)
    	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    	at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
    	at org.unctad.dmfas.view.bean.UserDefinedReportBean$$EnhancerByCGLIB$$e77b6328.saveUserDefinedReport(<generated>)
    	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 org.apache.el.parser.AstValue.invoke(AstValue.java:152)
    	at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
    	at org.unctad.framework.auditing.AwareMethodExpression.invoke(AwareMethodExpression.java:90)
    	at org.apache.el.parser.AstIdentifier.invoke(AstIdentifier.java:109)
    	at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
    	at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
    	... 56 more

  2. #2
    Membre Expert Avatar de Nico02
    Homme Profil pro
    Developpeur Java/JEE
    Inscrit en
    Février 2011
    Messages
    728
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hérault (Languedoc Roussillon)

    Informations professionnelles :
    Activité : Developpeur Java/JEE
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Février 2011
    Messages : 728
    Par défaut
    Il est écrit noir sur blanc @76,8 action="#{action}": java.lang.NullPointerException.

    Tu as un numéros de ligne, avec un jolie NPE et en prime tu as un beau message Error calling action method of component with id local:frmUserDefinedReport:saveInfo_submitButton.

    J'aurais bien une petite idée mais avant je suis curieux savoir vers quoi pointe ton "#{action}" ?

    EDIT : j'imagine que ce post est un doublon avec celui ci , donc peux-tu le clore stp ?

  3. #3
    Membre confirmé
    Inscrit en
    Octobre 2007
    Messages
    121
    Détails du profil
    Informations forums :
    Inscription : Octobre 2007
    Messages : 121
    Par défaut
    Nico02 bsr oui c est un doublon je suis entrain de le fermer.

    parcontre peux tu m aider stp pour cette erreur je suis vraiment debutante en java.

    que dois je faire ou te fournir stp?

  4. #4
    Expert éminent
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 482
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 46
    Localisation : Belgique

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 482
    Par défaut
    JSF et le java web en général, je l'ai déjà dit plusieurs fois, ce n'est pas un domaine pour débuter. Quand on ne maitrise pas les bases du java, ça deviens très dur de maitriser un application web sans foutre le bordel partout.


    Pour le reste, le b-a-ba de java, c'est d'apprendre à lire une exception: Il faut tout lire, pas s'arrêter au début, et si je lit la tienne:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    Caused by: java.lang.NullPointerException
    at org.unctad.dmfas.view.grid.operationHandler.UdrAggregatesOperationHandler.update(UdrAggregatesOperationHandler.java:140)
    at org.unctad.framework.grid.GridDefinitionData.executeOperations(GridDefinitionData.java:554)
    Donc tu va voir quel n'importe quoi tu est occupé de faire avec UdrAggregatesOperationHandler.java:140 pour savoir ce qui est null et en tirer les conséquence.


    PS: faudra que je me décide définitivement à écrire un billet sur comment lire les exceptions en java

  5. #5
    Membre confirmé
    Profil pro
    Inscrit en
    Décembre 2008
    Messages
    146
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2008
    Messages : 146
    Par défaut
    Je ne comprend pas le code de ton bouton que cherches tu à faire en fait ? Ce bouton doit réaliser quelle action ?

  6. #6
    Modérateur
    Avatar de joel.drigo
    Homme Profil pro
    Ingénieur R&D - Développeur Java
    Inscrit en
    Septembre 2009
    Messages
    12 430
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Ingénieur R&D - Développeur Java
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Septembre 2009
    Messages : 12 430
    Billets dans le blog
    2
    Par défaut
    Salut,

    Citation Envoyé par tchize_ Voir le message
    PS: faudra que je me décide définitivement à écrire un billet sur comment lire les exceptions en java
    Ça fait un moment que ça me démange aussi : si tu veux un coup de main sur le sujet, je suis partant. D'ailleurs j'avais plus ou moins commencé sur ce post...
    L'expression "ça marche pas" ne veut rien dire. Indiquez l'erreur, et/ou les comportements attendus et obtenus, et donnez un Exemple Complet Minimal qui permet de reproduire le problème.
    La plupart des réponses à vos questions sont déjà dans les FAQs ou les Tutoriels, ou peut-être dans une autre discussion : utilisez la recherche interne.
    Des questions sur Java : consultez le Forum Java. Des questions sur l'EDI Eclipse ou la plateforme Eclipse RCP : consultez le Forum Eclipse.
    Une question correctement posée et rédigée et vous aurez plus de chances de réponses adaptées et rapides.
    N'oubliez pas de mettre vos extraits de code entre balises CODE (Voir Mode d'emploi de l'éditeur de messages).
    Nouveau sur le forum ? Consultez Les Règles du Club.

  7. #7
    Membre confirmé
    Inscrit en
    Octobre 2007
    Messages
    121
    Détails du profil
    Informations forums :
    Inscription : Octobre 2007
    Messages : 121
    Par défaut
    je cherche a obtenir les resultats d'une requette

    NicoO2, tu disais avoir une idee...

  8. #8
    Expert éminent
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 482
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 46
    Localisation : Belgique

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 482
    Par défaut
    Citation Envoyé par Nico02 Voir le message
    J'aurais bien une petite idée mais avant je suis curieux savoir vers quoi pointe ton "#{action}" ?
    Si tu pense à null, la réponse est non selon moi, vu la présence du c:if juste au dessus.

    Une remarque au passage: tu as trois commandButton qui ont l'id "id="#{id}_submitButton"" et ça, en JSF, ce n'est pas bon.


    Autre chose: tu as regardé ce qui se passe dans le code à l'endroit de l'erreur comme demandé??

  9. #9
    Modérateur
    Avatar de OButterlin
    Homme Profil pro
    Inscrit en
    Novembre 2006
    Messages
    7 313
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Novembre 2006
    Messages : 7 313
    Billets dans le blog
    1
    Par défaut
    Citation Envoyé par tchize_ Voir le message
    Une remarque au passage: tu as trois commandButton qui ont l'id "id="#{id}_submitButton"" et ça, en JSF, ce n'est pas bon.
    Il y a des conditions différentes au-dessus


    Qui a-t-il derrière "#{action}" ?
    N'oubliez pas de consulter les FAQ Java et les cours et tutoriels Java

  10. #10
    Expert éminent
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 482
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 46
    Localisation : Belgique

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 482
    Par défaut
    Citation Envoyé par OButterlin Voir le message
    Il y a des conditions différentes au-dessus
    Le condition font juste qu'on effectue pas le rendu, il me semble, pas qu'ils sont absents de l'arbre JSF. Mais c'est vrait que je joue jamais avec les c:if vu que c'était totalement déconseiller lors de JSF 1

  11. #11
    Modérateur
    Avatar de OButterlin
    Homme Profil pro
    Inscrit en
    Novembre 2006
    Messages
    7 313
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Novembre 2006
    Messages : 7 313
    Billets dans le blog
    1
    Par défaut
    Citation Envoyé par tchize_ Voir le message
    Le condition font juste qu'on effectue pas le rendu, il me semble, pas qu'ils sont absents de l'arbre JSF. Mais c'est vrait que je joue jamais avec les c:if vu que c'était totalement déconseiller lors de JSF 1
    Normalement, ils sont absents de l'arbre de composants, je suppose que ça doit fonctionner comme l'attribut "rendered" de primefaces (sinon il y aurait une erreur lors de la demande d'affichage).
    Personnellement, je n'utilises pas non plus les <c:if>, d'ailleurs je n'utilise pas du tout le <c:...>, rendered est largement assez puissant.
    N'oubliez pas de consulter les FAQ Java et les cours et tutoriels Java

Discussions similaires

  1. Problème de "java.lang.NullPointerException" dans une JSP
    Par abdoulfall dans le forum Servlets/JSP
    Réponses: 1
    Dernier message: 11/02/2012, 04h46
  2. [ XML ][ XSL ][ JSP ] afficher du xml dans une JSP
    Par zozolh2 dans le forum Servlets/JSP
    Réponses: 9
    Dernier message: 17/07/2009, 20h34
  3. [jsp] include dynamique dans une jsp
    Par petitelulu dans le forum Servlets/JSP
    Réponses: 9
    Dernier message: 04/03/2005, 07h59
  4. navigation dans une jsp avec javascript
    Par petitelulu dans le forum Général JavaScript
    Réponses: 3
    Dernier message: 15/11/2004, 18h55
  5. [struts][jsp]Inclusion dans une jsp
    Par GreenJay dans le forum Servlets/JSP
    Réponses: 2
    Dernier message: 17/06/2004, 11h43

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo