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 10EAE1031E for ; Thu, 6 Jun 2013 07:55:20 +0000 (UTC) Received: (qmail 8391 invoked by uid 500); 6 Jun 2013 07:55:17 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 8358 invoked by uid 500); 6 Jun 2013 07:55:11 -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 8349 invoked by uid 99); 6 Jun 2013 07:55:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jun 2013 07:55:08 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [209.85.192.178] (HELO mail-pd0-f178.google.com) (209.85.192.178) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jun 2013 07:55:03 +0000 Received: by mail-pd0-f178.google.com with SMTP id w16so2990434pde.9 for ; Thu, 06 Jun 2013 00:54:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=z/Gi8l5ZmP9uKGx9UCpL5LyYe4AChv/SCe3XfWsHzMo=; b=DBx0W9eiAp47beWJJas/rmzoCgXvxBjJi+G8JHjuMw1JNaGAlmPd0RzFrzJ9RaEy0I 4LP87ZNeygm5ZeJXMLkot9yF5ClsPG4bFDzDDpin/Or9V1mSrNtTWjmh818Zir5F5Cx2 AzDGmGbLWrXFxJzDZi1Z0ehfmXE23nidV9RB9jFpGKlxv25IfmhT4HkafT2lcXhuPp9G vphrqHMVnV32GMAujRlYcqGDNyskpe1Tb6icNnFy9Rn0e9yRUD8x6pusSp1iYll1oGmm QdRdM8Typ4HCNA2bYI7Qz1bZAOv9nfHg/PLnEzZkoZ9kGy7m8uEZ+yKbbZ1Hj4ncjQZu 8mIw== X-Received: by 10.68.88.194 with SMTP id bi2mr36661734pbb.12.1370505263019; Thu, 06 Jun 2013 00:54:23 -0700 (PDT) Received: from [192.168.1.6] ([122.177.220.247]) by mx.google.com with ESMTPSA id pl9sm53459154pbc.5.2013.06.06.00.54.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Jun 2013 00:54:22 -0700 (PDT) Message-ID: <51B04027.30908@anantadvantages.com> Date: Thu, 06 Jun 2013 13:24:15 +0530 From: Sandeep Gupta User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 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> In-Reply-To: <19A9F10ED49E604BAB7F708C56DE7CCB1B9029A5@BWOSA001.bwo.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Gm-Message-State: ALoCoQmgVcBZ1hz7ATStGXxIzZo3EEZR4305O1wnF3Q49EEvTa/TjooZr5F+ocYQGDMxl8Xp6afo X-Virus-Checked: Checked by ClamAV on apache.org 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/* >> >>