Return-Path: X-Original-To: apmail-myfaces-users-archive@www.apache.org Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 988B510809 for ; Wed, 31 Jul 2013 03:05:08 +0000 (UTC) Received: (qmail 86974 invoked by uid 500); 31 Jul 2013 03:05:05 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 86837 invoked by uid 500); 31 Jul 2013 03:04:59 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 86829 invoked by uid 99); 31 Jul 2013 03:04:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jul 2013 03:04:57 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcontrib@cibinetonline.com designates 69.89.16.30 as permitted sender) Received: from [69.89.16.30] (HELO oproxy13-pub.unifiedlayer.com) (69.89.16.30) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 31 Jul 2013 03:04:52 +0000 Received: (qmail 17513 invoked by uid 0); 31 Jul 2013 03:04:27 -0000 Received: from unknown (HELO host109.hostmonster.com) (74.220.207.109) by oproxy13.unifiedlayer.com with SMTP; 31 Jul 2013 03:04:27 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cibinetonline.com; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:To:MIME-Version:From:Date:Message-ID; bh=97AwPkUK3C1GuGhvUbsT+kGvrXihTik66Lzfh0vBnn4=; b=URBXHfhUVqkQUUh52wXaMgfObhSJsn6AACRHSpoputSeFQ/aYvfkVcwp93JeBRPUSEAwGnbuD61PddnVc1tgyvqipjCkb3GGsB+hefJOLlKuY7+QG1cVHoxoNP5kMc+m; Received: from [190.56.136.98] (port=33141 helo=server.cibinetonline) by host109.hostmonster.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.80) (envelope-from ) id 1V4MiB-0006US-7V for users@myfaces.apache.org; Tue, 30 Jul 2013 21:04:27 -0600 Message-ID: <51F87EB9.3080704@cibinetonline.com> Date: Tue, 30 Jul 2013 21:04:25 -0600 From: Edu Garcia User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: MyFaces Discussion Subject: Re: AW: AW: Trinidad: Null pointer exception in trinidad References: <51B02662.9000307@anantadvantages.com> <19A9F10ED49E604BAB7F708C56DE7CCB1B902964@BWOSA001.bwo.local> <51B03A48.1050602@anantadvantages.com> <19A9F10ED49E604BAB7F708C56DE7CCB1B9029A5@BWOSA001.bwo.local> <51B04027.30908@anantadvantages.com> In-Reply-To: <51B04027.30908@anantadvantages.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Identified-User: {1114:host109.hostmonster.com:cibineto:cibinetonline.com} {sentby:smtp auth 190.56.136.98 authed with gcontrib@cibinetonline.com} X-Virus-Checked: Checked by ClamAV on apache.org First you need to have facelets configured. After that, I would do this: ...... if this doesn't work, I suggest you to check your faces configurations and web.xml El Thu 06 Jun 2013 01:54:15 AM CST, Sandeep Gupta escribió: > Hi > > Yes, the Example 2 mentions what you have suggested. But as I > mentioned, when I tried this , I got Facelet exception in faces servlet > > "The processing instruction target matching "[xX][mM][lL]" is not > allowed" > > and dialog does not open. > > Regards > > Sandeep > > On 6/6/2013 1:13 PM, Krebs Roland / BWO Systems AG wrote: >> Hi Sandeep >> >> I'm using JSP, not xhtml. But according to >> http://en.wikipedia.org/wiki/XHTML , this should be a valid >> statement. (See also 'Example 2') >> >> Regards >> Roland >> -----Ursprüngliche Nachricht----- >> Von: Sandeep Gupta [mailto:sgupta@anantadvantages.com] >> Gesendet: Donnerstag, 6. Juni 2013 09:29 >> An: users@myfaces.apache.org >> Betreff: Re: AW: Trinidad: Null pointer exception in trinidad >> >> Hi >> >> I tried adding >> >> >> >> on top of file and deployed the project. >> On pressing coomandbutton to open dialog for file attachment, now it >> gives error (and dialog does not open) >> >> It is giving Facelet exception "The processing instruction target >> matching "[xX][mM][lL]" is not allowed" >> >> Thanks anyway for suggestion. >> >> regards >> >> Sandeep >> >> >> On 6/6/2013 12:41 PM, Krebs Roland / BWO Systems AG wrote: >>> Hello Sandeep >>> >>> The core dump says that no encoding has been set, so try to add on >>> top of your xhtml file your encoding, so for example: >>> or >>> >>> >>> Regards, >>> Roland >>> >>> -----Ursprüngliche Nachricht----- >>> Von: Sandeep Gupta [mailto:sgupta@anantadvantages.com] >>> Gesendet: Donnerstag, 6. Juni 2013 08:04 >>> An: users@myfaces.apache.org >>> Betreff: Trinidad: Null pointer exception in trinidad >>> >>> Hi >>> >>> I am using trinidad 2.0 in Jboss AS7 environment (JSF builtin Jboss) >>> on windows . I am trying to upload a file to server using trinidad >>> fileupload (tr:inputFile) component. >>> >>> When the form is submitted to server on pressing a commandButton, I >>> get Nullpointer exception. I have tried using tomahawk >>> inputFileUpload component instaed of trinidad component for >>> inputfile but the NPE remains same. >>> >>> Any help/pointers to resolve this issue will be greatly appreciated. >>> >>> rgds >>> >>> Sandeep Gupta >>> >>> java.lang.NullPointerException >>> org.apache.myfaces.trinidadinternal.config.upload.UploadRequestWrapper.setCharacterEncoding(UploadRequestWrapper.java:83) >>> >>> com.sun.faces.context.ExternalContextImpl.setRequestCharacterEncoding(ExternalContextImpl.java:212) >>> >>> javax.faces.context.ExternalContextWrapper.setRequestCharacterEncoding(ExternalContextWrapper.java:561) >>> >>> javax.faces.context.ExternalContextWrapper.setRequestCharacterEncoding(ExternalContextWrapper.java:561) >>> >>> javax.faces.application.ViewHandler.initView(ViewHandler.java:488) >>> com.sun.faces.application.view.MultiViewHandler.initView(MultiViewHandler.java:111) >>> >>> javax.faces.application.ViewHandlerWrapper.initView(ViewHandlerWrapper.java:274) >>> >>> javax.faces.application.ViewHandlerWrapper.initView(ViewHandlerWrapper.java:274) >>> >>> com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:115) >>> >>> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) >>> >>> javax.faces.webapp.FacesServlet.service(FacesServlet.java:593) >>> >>> >>> >>> Here is my attachFile.xhtml >>> >>> >> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> >>> >> xmlns:f="http://java.sun.com/jsf/core" >>> xmlns:h="http://java.sun.com/jsf/html" >>> xmlns:ui="http://java.sun.com/jsf/facelets" >>> xmlns:tr="http://myfaces.apache.org/trinidad" >>> xmlns:t="http://myfaces.apache.org/tomahawk" > >>> >>> >>> >>> Choose File >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >> inlineStyle="width:100%;"> >>> >>> >> inlineStyle="width:100%;"> >>> >> action="#{PackageJSFBean.doneAttachFile}"> >>> >> action="#{PackageJSFBean.cancelAttachFile}" >>> immediate="true"> >>> >>> >>> >>> >>> >>> >>> >>> >> label="Identifers file" >>> valueChangeListener="#{PackageJSFBean.onSelecthlIdFile}"> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> Here is relevant portions of web.xml >>> >>> >>> trinidad >>> org.apache.myfaces.trinidad.webapp.TrinidadFilter>> r-class> >>> >>> >>> >>> >>> trinidad >>> faces >>> >>> >>> >>> >>> >>> Faces Servlet >>> javax.faces.webapp.FacesServlet >>> 1 >>> >>> >>> >>> faces >>> javax.faces.webapp.FacesServlet >>> >>> >>> >>> resources >>> org.apache.myfaces.trinidad.webapp.ResourceServlet>> vlet-class> >>> >>> >>> >>> >>> >>> Faces Servlet >>> *.xhtml >>> >>> >>> >>> Faces Servlet >>> *.jsf >>> >>> >>> >>> resources >>> /adf/* >>> >>> > >