InternetAddress not being encoded

Hello all!
From a HTML-form I get this Input:
"&#1044;&#1072;&#1088;&#1100;&#1103; &#1040;&#1083;&#1072;&#1084;&#1087;&#1080;&#1077;&#1074;&#1072;" <darja@localhost>
Now on the server-side I do:
inetAddresses[ii] = new InternetAddress(actAddress);
debug:
actAddress= ""&#1044;&#1072;&#1088;&#1100;&#1103; &#1040;&#1083;&#1072;&#1084;&#1087;&#1080;&#1077;&#1074;&#1072;" <darja@localhost>"
Now I do:
mm.setRecipients(Message.RecipientType.TO, inetAddresses);
debug:
mm= MimeMessage (id=123)
Now the MimeMessage has this Header:
[13]= InternetHeaders$InternetHeader (id=176)
     line= "To: "&#1044;&#1072;&#1088;&#1100;&#1103; &#1040;&#1083;&#1072;&#1084;&#1087;&#1080;&#1077;&#1074;&#1072;" <darja@localhost>"
     name= "To"
     value= ""
Isn't this a bug? Shoudn't javamail (MimeMessage or InternetAddress) encode the Adress to:
=?koi8-r?Q?=E4=C1=D2=D8=D1_=E1=CC=C1=CD=D0=C9=C5=D7=C1?= <darja@localhost>
or something like that???
I would expect a debug-output like this:
[13]= InternetHeaders$InternetHeader (id=176)
     line= "To: =?koi8-r?Q?=E4=C1=D2=D8=D1_=E1=CC=C1=CD=D0=C9=C5=D7=C1?= <darja@localhost>"
     name= "To"
     value= ""
If I set a subject via "setSubject(myString)" then MimeMessage does the encoding for me.
I think this is not consistent...
Javamail shouldn't let me take care of encoding eMail-Adresses...
Best regards
lotk

Nice workaround, but I still think it is not
consistent, that in one case (setSubject) javamail
does the encoding for me but not in the other one...
But this is a matter of the API-specification.JavaMail does do the encoding if you use the constructor
that allows you to specify the personal name and email
address separately. The only time it expects to parse an
address in the form you gave it is when it appears in a
mail message, in which case it should be properly formatted.
Certainly no one is expected to type in an address in that
form.
Adding the ability to parse such an address might be a
reasonable addition, but I don't know how often it's likely to
be used. Certainly in the last 8 years this has never come up.
What about IDN-Domains? I didn't find anything about
it in the API-Docs and Google gives me just 5
(useless) results for "idn javamail
InternetAddress".
What if the input comming from a webform is "Martin
M�ller <martin@m�ller.com>"? I can see that the
resulting to-line is:
[13]= InternetHeaders$InternetHeader (id=75)
     line= "To: "Martin M�ller" <martin@m�ller.com>"
     name= "To"
     value= ""
How do I "xn-encode" this IDN-address (with
javamail-"standard accessory")?That's a good question. I don't know anything about IDN
support in Java in general, and certainly JavaMail doesn't
have any specific support for it.

Similar Messages

  • Ampersands not being encoded in recordset paging

    Trying to validate a page and it appears that the ampersands
    are not being encoded, thus not validating the page. When I create
    a link and use parameters the ampersands get encoded correctly, its
    just the next/previous links that don't appear to get encoded. Any
    ideas how to overcome this? The links in Dreamweaver are just
    variables, and I could try to replace the & in the function
    that creates them with &Amp; but I would have to do this
    everytime I used recordset paging.
    Steve

    I used the wrong syntax for the URLEncode, here is what made
    it work:
    <%
    MM_moveFirst = Server.URLEncode(MM_moveFirst)
    MM_moveLast = Server.URLEncode(MM_moveLast)
    MM_moveNext = Server.URLEncode(MM_moveNext)
    MM_movePrev = Server.URLEncode(MM_movePrev)
    %>
    Once I had sorted these I had to also sort all the other
    ones, and am still struggling to get it to validate, it seems like
    a lot of work, so will leave it for another day.

  • How to change the character set encoding not being a superset one

    HI, i have a fresh installed database, but i realize the character set support in my client is not good enough, since its a not production database i want to change the character set encoding to anothor one not being a superset of the old one.
    I have tried the "ALTER DATABASE CHARACTER SET WE8MSWIN1252" but it fails claiming i need a superset one.
    I guess its just a single steps to do it, i have all the privileges, just not the time to reinstall and setup everything.

    Do you know what that does to the existing data, though? My hunch would be that any characters which have a different binary representation in the source & target character sets would be corrupted.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Barcode printing -Barcode is not being scanned by the scanner.

    Hi,
    I am working on a rtf XML template creation for Pick slip Report. I have field called delivery_id which should be printed as barcode. I
    followed the instructions as per documents: 411899.1 and 373001.1.I downlaoded
    a demo version of the barcode font.(IDAutomationSC128L).
    I added it to the template . and registered the font in XMl publisher and ran the whole process
    which generates the report output. The report gave me a output as per the
    template witha a barcode.But the barcode reader did not read it. the barcode
    reader(I am using the Intermec Oracle Ready CK30 Handheld Computer) that I have
    is compataible with the following fonts.
    Supported Bar Code Symbologies
    Code 39, Code 39 Full ASCII, Code 93, Code128, UCC/EAN-128, Codabar, Code 11,
    DUN-14/16, EAN-8, EAN-13, 2 digit supplement, 5
    digit supplement, UPCA, UPC-E, 2/5, 2/5 I, 2/5 Matrix, EAN. UCC Composite, 2/5
    Industrial, MSI Plessey, Postnet, Code16K, Codablock A, Datamatrix, Maxicode,
    PDF417, MicroPDF417, QR Code.
    I have copied the sample encoder code from the XML Publisher user guide but when I tried to create the class file using javac command I got the following warnings
    C:\source>javac -g XXBarcodeUtil.java -Xlint:unchecked
    XXBarcodeUtil.java:26: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type
    java.util.Hashtable
    ENCODERS.put("code128a",mUtility.getClass().getMethod("code128a",clazz));
    ^
    XXBarcodeUtil.java:27: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type
    java.util.Hashtable
    ENCODERS.put("code128b",mUtility.getClass().getMethod("code128b",clazz));
    ^
    XXBarcodeUtil.java:28: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type
    java.util.Hashtable
    ENCODERS.put("code128c",mUtility.getClass().getMethod("code128c",clazz));
    ^
    3 warnings
    Can any one please let me know how to chnage the code so that these warnings wont be there.
    I got a class file eventhough there were warnings. and i put that class file in the path /u6/u0/ting/comn/java/oracle/apps/xdo/template/rtf/util
    I am getting a report with barcode. but the scanner is not reading it. ?
    DO i have to put the font in reports server path. I have put the font to this path in the server :athena2:/u6/u0/oracle/trng/appl/fnd/11.5.0/reports.
    Please help.
    Is there any stpes that i am missing.
    Thanks,
    Nisha

    Hi Nisha
    If you are using a code 128 barcode font then you need to call an encoding class to transform the input, delivery_id from say '123456789' to an encoded string string, say '!wrwr34353'
    It looks like you are on the right track. Some thoughts:
    1. You say its a demo font - are there any limitations that IDAutomation has documented e.g. it will not handle certain characters in the barcode font?
    2. You should not really copy and paste from the documentation - that was an example class. IDAutomation, I know provides the java code algorithms to encode the data correctly for their fonts. That said the basic structure of the class is good to use you just need to plug IDAutomation's java code into it
    3. You get warnings, this should not prevent the .class file being generated.
    4. To test that the class is being called correctly. Change the font on your delivery field to a humanly readable font, say Arial. Now run the template against the data - you should see the encoded value for the delivery id in the output. If its the same as the data in the XML delivery_id element then your class is not being called correctly. this could be caused by:
    a. The class is not in the classpath for the publisher engine - from your directory path it looks like you are using EBS and you are putting it in the right place. Whats the field contents for the barcode vendor registration field?
    b. The class is not encoding the result correctly - to test this and c. you should add a 'main' method that you can call to test the class outside of EBS
    c. the class is erroring out somewhere - see above
    If you are getting a barcode on your output then the font is in the right place. Are you testing in Template Builder or on the server? If the hardware is not reading it then I would suggest you check 1 and 2 above and then carry out step 4 to check its being encoded.
    you might also check out this blof article on the encoding - http://blogs.oracle.com/xmlpublisher/2006/06/advanced_barcode_support.html
    regards
    tim

  • Email attachments from SSRS email subscription are not being uploaded to an email enabled SharePoint 2013 document library

    Email attachments from SSRS email subscription are not being uploaded to an email enabled SharePoint 2013 document library.
    I have tested the library using a standard email (with attachment) to the library and this works fine. 
    I have monitored the drop folder on the server and I can see both emails being picked up in drop and processed by SharePoint.  The email sent from a regular email account is uploaded with the attachment, whereas the email sent via SSRS subscription
    email is uploaded and the attachment (report) is missing.

    An update on this.  The email when sending from SSRS subscription is received in the library and the attachment is contained within the .EML file uploaded.
    The behaviour that I would like from SSRS subscription emails are to just have the document and not the email.
    Below is a snippet of the .EML files I quick copied from the Drop folder.
    Email attachment snippet sent from SSRS Subscrption:
    ----boundary_2477_75fa3d73-56de-4948-ad82-6588f3a35b95
    Content-Type: application/octet-stream; name="Toilet Usage by Month.docx"
    Content-Transfer-Encoding: base64
    Content-Dis;
     filename="=?utf-8?B?VG9pbGV0IFVzYWdlIGJ5IE1vbnRoLmRvY3g=?="
    Content-ID: <10722c0f-749e-4ecb-ac3f-206317bae734>
    UEsDBBQAAAAIAEVcbEY4Xh4a5nsAAPJtMQARABwAd29yZC9kb2N1bWVudC54bWwgohgA
    KKAUAAAAAAAAAAAAAAAAAAAAAAAAAAAA7N1rr1/XcSforyL4VRooR3vd9to76Kihjto9
    I8T2TDvAzFuaPrE1kUiCouxWPv38DyX50nHSniCdyS96bIAUL+d/LnxO7Vq11qr6j//p
    v3/x+Qe/fnr75WevX/3lD9qfHz/44OnVy9e/+OzVL//yB1+9+9sfXj/44Mt3L1794sXn
    r189/eUPvn768gcf/KeP/uNv/uIXr19+9cXTq3cfPF7h1Zd/8evHH/7q3bs3f/Hhh1++
    /NXTFy++/PPXb55ePf7wb1+//eLFu8cv3/7ywy9evP27r9788OXrL968ePfZzz/7/LN3
    X3/Yj+P8wbcv8/rxXt+++otvX+KHX3z28u3rL1//7bvnN/mL13/7t5+9fPr2p+/e4os/
    5f1+8yaffPshv3+Pj4/l3a++e5Ff/1Pv9tdffP7d3/vNmz/lvf3i7YvfPL6AX3z+zTv6
    Email attachment snippet sent from Outlook:
    --_004_A4C6DCEDE4346446A79AFF493D278530FB87FA07MELABCDEXA1airp_
    Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document;
     name="Toilet Usage by Month.docx"
    Content-Description: Toilet Usage by Month.docx
    Content-Dis; filename="Toilet Usage by Month.docx";
     size=76574; creation-date="Thu, 12 Mar 2015 00:41:14 GMT";
     modification-date="Thu, 12 Mar 2015 00:41:14 GMT"
    Content-Transfer-Encoding: base64
    UEsDBBQAAAAIAMJcbEY4Xh4a5nsAAPJtMQARABwAd29yZC9kb2N1bWVudC54bWwgohgAKKAUAAAA
    AAAAAAAAAAAAAAAAAAAAAAAA7N1rr1/XcSforyL4VRooR3vd9to76Kihjto9I8T2TDvAzFuaPrE1
    kUiCouxWPv38DyX50nHSniCdyS96bIAUL+d/LnxO7Vq11qr6j//pv3/x+Qe/fnr75WevX/3lD9qf
    Hz/44OnVy9e/+OzVL//yB1+9+9sfXj/44Mt3L1794sXnr189/eUPvn768gcf/KeP/uNv/uIXr19+
    9cXTq3cfPF7h1Zd/8evHH/7q3bs3f/Hhh1++/NXTFy++/PPXb55ePf7wb1+//eLFu8cv3/7ywy9e
    vP27r9788OXrL968ePfZzz/7/LN3X3/Yj+P8wbcv8/rxXt+++otvX+KHX3z28u3rL1//7bvnN/mL

  • XSLT for adding Namespace is not being executed at runtime

    Hi Gurus,
    I am trying to add a Namespace to inbound xml and I wrote a simple XSLT mapping as below, when I execute this using XML spy or in Operation mapping manually it is working fine and giving me output as expected but at runtime it is not executing, I am getting same input xml as output xml and receiver agreement is failing...
    Appreciate your thoughts..
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:output method="xml" encoding="UTF-8"/>
            <xsl:template match="*">
              <ns0:SalesXmlExtended xmlns:ns0="urn:/company.com/H/sndr">
              <xsl:copy-of select="//SalesReportInfo"/>
         </ns0:SalesXmlExtended>
         </xsl:template>
    </xsl:stylesheet>
    input xml is as below....
    <?xml version="1.0" encoding="UTF-8"?>
    <SalesXmlExtended>
         <SalesReportInfo>
              <SalesReport>
                   <Detail>
                        <deptNum>0270</deptNum> etc...
    output I am getting in XMLSpy and OM is as below, this is exactly what I need...
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:SalesXmlExtended xmlns:ns0="urn:/company.com/H/sndr">
         <SalesReportInfo>
              <SalesReport>
                   <Detail>
                        <deptNum>0270</deptNum>
    Thanks...
    Sukarna...

    Hi Baskar,
    Yeah, that is what my issue is , it shouldn't be failing but it is...
    I tried by manipulating the required namespace in the input file and it is working fine with out any errors....so I am guessing the XSLT is not being executed...
    I am getting below error which is valid because the transformation is not happening
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?><!-- Technical Routing --> <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
    <SAP:Category>XIServer</SAP:Category>
    <SAP:Code area="OUTBINDING">CO_TXT_OUTBINDING_ERROR</SAP:Code>
    <SAP:P1>-BS_HOUSE_OF_FRASER_DEV</SAP:P1><SAP:P2>-BD1_100,urn:.com/HoF/POS/EOD/sndr.SI_Out_HoFSales_XML</SAP:P2>
    <SAP:P3/>
    <SAP:P4/>
    <SAP:AdditionalText>No standard agreement found for , BS_HOUSE_OF_FRASER_DEV, , BD1_100, urn:/HoF/POS/EOD/sndr, SI_Out_HoFSales_XML</SAP:AdditionalText
    ><SAP:Stack>Problem occurred in receiver agreement for sender -BS_HOUSE_OF_FRASER_DEV to receiver -

  • BPM Correlation from Dynamic Configuration not being filled

    Hey guys,
    I'm having the following problem with BPM correlation.
    In my correlation definition, I have 2 fields: one which is filled with information from the message payload, and another one which is filled with a context object (which was created with adapter metadata and filled with dynamic configuration, as refered here: /people/michal.krawczyk2/blog/2006/10/09/xi-dynamic-configuration-in-adapter-modules--one-step-further).
    All instances of BPM are with error status. And when I go into the workflow log for these processes, if I check the correlation object, it is like this:
    <?xml version="1.0" encoding="utf-8" ?>
    <CorrelationKey Version="001">
    <Field1 />
    <Field2>123456789</Field2>
    </CorrelationKey>
    Field1 is the one read from context object, and is not being filled (thus I think the error comes from here). Field2 is from payload and is being normally filled.
    Any ideas on this matter?
    Maybe the problem is not from the correlation. If not, what else could be the case? The BPM crashes on the very first step (one more reason to think that the correlation is the issue).
    Thanks in advance,
    Henrique.

    HI,
    In general Correlation , concept, whatever we configured in Correlation editor , i mean in runtime which xml element should filled with which element of which interface ..as you said you have configured the local correlation to block, in block it is the first receive step, while receiving the first message which is relevent to first recieve step , i mean if it receives the one message which is related to first receive step inteface .. the respective element data will be filled in correlation id and it will assign on giud for processing , so while assign the runtime data to correlation element ( imean filling stage) check you said two elements in correlation does the first message contains these two elements ??
    if so ok , no then check , and try to use the IM before calling the IP to fill the payload.
    Regards
    Chilla
    Oh closed!!
    Message was edited by:
            Chandra Sekhar Chilla
    Message was edited by:
            Chandra Sekhar Chilla

  • Data object is not being populated in BAM

    We are putting the data in JMS Queue. We have created an EMS in BAM. It is picking the data from JMS Queue, but the data object is not being populated. The request we are using here is given below:
    Request:
    <?xml version="1.0" encoding="UTF-8"?>
    <Test xmlns="http://education.com/OrderImport">
    <OrderLineReferenceNumber>abcad</OrderLineReferenceNumber>
    <WebOrderNumber>cccccg</WebOrderNumber>
    <OrderLineCount>gn</OrderLineCount>
    <LineNumber>4</LineNumber>
    <ISBN10>46564574</ISBN10>
    <ISBM13>6767</ISBM13>
    <ID>67</ID>
    <Status>78768</Status>
    </Test>
    Does anybody has any idea on that?
    Regards,
    Chandrachur.

    Hi Arun,
    Thanks for your prompt reply.
    We are not using any trasfomation here. We have created thje Data objects as per the message type in the request.
    Please find the dataobjects details we are using:
    Field name Field ID Field type Max length Scale Nullable Public Lookup Calculated Tip Text
    OrderLineReferenceNumber _OrderLineReferenceNumber string                                    100               -               No             Yes                   -                          -               - 
    WebOrderNumber _WebOrderNumber              string                                    100               -               Yes            Yes                   -                          -               - 
    OrderLineCount _OrderLineCount                 integer                                     -                 -               Yes            Yes                   -                          -               - 
    LineNumber _LineNumber                      integer                                     -                 -               Yes            Yes                   -                          -               - 
    ISBN10 _ISBN10                              string                                    100              -                Yes            Yes                  -                           -               - 
    ISBM13 _ISBM13                             string                                    100              -                Yes            Yes                  -                           -               -
    ID _ID                                    string                                    100              -                Yes            Yes                  -                           -               -  
    Status _Status                              string                                    100              -                Yes            Yes                  -                           -               -  
    Thanks again,
    Chandrachur.

  • Password not being included in Email Notification

    I am trying to include the password for a newly-created user, in the body of an Email Notification being sent out.
    But, the password is not being displayed.
    As we all know, IDM uses the following variable for "*Password*" :
    *<Field name='password.password'/>*
    So, I included the password variable in my Email Template, as follows :
    *<Variable name='mypassword'>*
    *<select>*
    *<ref>user.password.password</ref>*
    *</select>*
    *</Variable>*
    But, when the Email is sent, the password is displayed in the email body as follows :
    Password = "*Lighthouse_Fake_Password*"
    How can I get the password to be displayed in the Email?
    Thanks

    Hi Michael,
    since passwords are stored in encrypted format, you can not directly display them using user.password.password.
    You have to first decrypt them. Use below rule by passing account id to it.
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE Rule PUBLIC 'waveset.dtd' 'waveset.dtd'>
    <!--  MemberObjectGroups="#ID#Top" lastMod="8" lastModifier="Configurator" name="getUserPassword"-->
    <Rule name='getUserPassword' creator='Configurator' createDate='1242288447593' lastModifier='Configurator' lastModDate='1242361940859' lastMod='8' primaryObjectClass='Rule'>
      <RuleArgument name='accid'/>
      <block>
        <setvar name='passString'>
          <invoke name='decryptToString'>
            <get>
              <invoke name='getObject' class='com.waveset.ui.FormUtil'>
                <select>
                  <invoke name='getLighthouseContext'>
                    <ref>WF_CONTEXT</ref>
                  </invoke>
                  <ref>:display.session</ref>
                </select>
                <s>User</s>
                <ref>accid</ref>
              </invoke>
              <s>password</s>
            </get>
          </invoke>
        </setvar>
        <ref>passString</ref>
      </block>
      <MemberObjectGroups>
        <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
      </MemberObjectGroups>
      <Properties>
        <Property name='editorOriginalName' value='getUserPassword'/>
      </Properties>
    </Rule>

  • Changes to Writeback template not being recognized

    Changes that I am making to the template,WritebackTemplate.xml, are not being recognized.
    I'm getting an error, but the test is not what I see in the actual file
    .XML File: <update>UPDATE PS_UM_D_SCTYRECCTR SET RECRT_CNTR_ID ='@{c1}' WHERE RECRT_CNTR_SID = @{c2}
    Server Error: Template: ' UPDATE PS_UM_D_SCTYRECCTR SET RECRT_CNTR_ID = '@{1}' WHERE OPRID = @{0} AND RECRT_CNTR_SID = @{2}'
    Edited by: user10069456 on Feb 26, 2009 8:49 AM

    Yes - I should have sent the code in the first place - this is the latest version:
    <?xml version="1.0" encoding="utf-8"?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1">
    <WebMessageTable lang="en-us" system="WriteBack" table="Messages">
    <WebMessage name="UpdtRECRTID">
    <XML>
    <writeBack connectionPool="WritebackCP">
    <insert></insert>
    <update>UPDATE PS_UM_D_SCTYRECCTR SET RECRT_CNTR_ID ='@{c1}' WHERE OPRID ='@{c0}' AND RECRT_CNTR_SID = @{c2}</update>
    </writeBack>
    </XML>
    </WebMessage>
    </WebMessageTable>
    </WebMessageTables>
    Thank you.

  • Listeners keyDown are not being called when keyDown in an popup l

    For some reason the listeners titleWindow_keyDown are not being called when keyDown in an popup like so:
    <?xml version="1.0" encoding="utf-8"?>
    <s:SkinnablePopUpContainer xmlns:fx="http://ns.adobe.com/mxml/2009"
                               xmlns:s="library://ns.adobe.com/flex/spark"
                               xmlns:mx="library://ns.adobe.com/flex/mx" width="400" height="300"  keyDown="titleWindow_keyDown(event);" >
        <s:TitleWindow title="Edit Complaint" close="close()">
    private function titleWindow_keyDown(evt:KeyboardEvent):void {
                        if (evt.charCode == Keyboard.ESCAPE) {
                            close();
    Any ideas friends??

    But in my code it is a child inside SkinnablePopUpContainer:
    <s:SkinnablePopUpContainer xmlns:fx="http://ns.adobe.com/mxml/2009"
                               xmlns:s="library://ns.adobe.com/flex/spark"
                               xmlns:mx="library://ns.adobe.com/flex/mx" width="400" height="300"  keyDown="titleWindow_keyDown(event);" >
        <s:TitleWindow title="Edit Complaint" close="close()">

  • JSF: Method not being called

    Hi i've a problem that is grieving me. A method reference by a commandButton is not being called. Here's the code:
    JSP:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <%@page contentType="application/xhtml+xml"%>
    <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
    <title></title>
    </head>
    <body bgcolor="white">
    <f:view>
            <f:loadBundle basename="sisard.maqueta.web.resources.ApplicationMessages" var="messages"/>
         <h:form id="newBookForm">
                <h2><h:outputText value="#{messages.welcomeMessage}" />:</h2>
                <h3><h:outputText value="#{messages.insertnewbook}" />:</h3>
                    <table>
                        <tr>
                            <td>
                                <h:outputText value="#{messages.code}" />:
                            </td>
                            <td>
                                <h:inputText id="code" value="#{GestionLibros.code}">
                                </h:inputText>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <h:outputText value="#{messages.example}" />:
                            </td>
                            <td>
                                <h:inputText id="example" value="#{GestionLibros.example}">
                                </h:inputText>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <h:outputText value="#{messages.title}" />:
                            </td>
                            <td>
                                <h:inputText id="title" value="#{GestionLibros.title}">
                                </h:inputText>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <h:outputText value="#{messages.yearpublication}" />:
                            </td>
                            <td>
                                <h:inputText id="datePublication" value="#{GestionLibros.datePublication}">
                                </h:inputText>                       
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <h:outputText value="#{messages.isbn}" />:
                            </td>
                            <td>
                                <h:inputText id="isbn" value="#{GestionLibros.isbn}">
                                </h:inputText>                       
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <h:outputText value="#{messages.cifeditorial}" />:
                            </td>
                            <td>
                                <h:inputText id="cifeditorial" value="#{GestionLibros.cifEditorial}">
                                </h:inputText>                       
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <h:outputText value="#{messages.nifautor}" />:
                            </td>
                            <td>
                                <h:inputText id="nifautor" value="#{GestionLibros.nifAutor}">
                                </h:inputText>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                            </td>                       
                        </tr>
                    </table>
                    <h:commandButton id="submit" action="#{GestionLibros.insertNewBook}" value="Inserir"/>               
            </h:form>
    </f:view>
    </body>
    </html>The backing bean:
    package sisard.maqueta.web.cases.case01.view;
    import java.util.Calendar;
    import java.util.Date;
    import java.util.GregorianCalendar;
    import sisard.maqueta.sgl.model.exception.SGLException;
    import sisard.maqueta.sgs.model.exception.StockException;
    import sisard.maqueta.web.com.SGLManagedBean;
    import sisard.maqueta.web.com.ExceptionUtil;
    import sisard.maqueta.web.factory.DelegateFactory;
    public class GestionLibroManagedBean extends SGLManagedBean{
        private String code;
        private Long example;
        private String title;
        private Calendar datePublication;
        private String isbn;
        private String cifEditorial;
        private String nifAutor;
        public GestionLibroManagedBean() {
        public String insertNewBook() throws SGLException, StockException,
                                             Exception {
            DelegateFactory.getInstance().getLibroDelegate().insertarLibro(
                code,
                example,
                datePublication,
                isbn,
                title,
                cifEditorial,
                nifAutor);
                return "showBooksFound";
        public void setCode(String code) {
            this.code = code;
        public String getCode() {
            return code;
        public void setExample(Long example) {
            this.example = example;
        public Long getExample() {
            return example;
        public void setTitle(String title) {
            this.title = title;
        public String getTitle() {
            return title;
        public void setDatePublication(Date datePublication) {
            Calendar gregorianCalendar = new GregorianCalendar();
            gregorianCalendar.setTimeInMillis(datePublication.getTime());
            this.datePublication = gregorianCalendar;
        public Date getDatePublication() {
            return datePublication != null ? datePublication.getTime() : null;
        public void setIsbn(String isbn) {
            this.isbn = isbn;
        public String getIsbn() {
            return isbn;
        public void setCifEditorial(String cifEditorial) {
            this.cifEditorial = cifEditorial;
        public String getCifEditorial() {
            return cifEditorial;
        public void setNifAutor(String nifAutor) {
            this.nifAutor = nifAutor;
        public String getNifAutor() {
            return nifAutor;
    }faces-config.xml
    <?xml version="1.0" encoding="windows-1252"?>
    <!DOCTYPE faces-config PUBLIC
      "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
      "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config xmlns="http://java.sun.com/JSF/Configuration">
      <!-- ##################################################### -->
      <!-- MANAGED BEANS CASO DE USO 01- LIBROS -->
      <!-- ##################################################### -->
      <managed-bean>
        <managed-bean-name>BuscarLibros</managed-bean-name>
        <managed-bean-class>sisard.maqueta.web.cases.case01.view.BuscarLibroManagedBean</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
      </managed-bean>
      <managed-bean>
        <managed-bean-name>GestionLibros</managed-bean-name>
        <managed-bean-class>sisard.maqueta.web.cases.case01.view.GestionLibroManagedBean</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
      </managed-bean>
        <!-- ######################################## -->
        <!-- NAVIGATION RULES CASO DE USO A01-DATOS ADMINISTRATIVOS DE USUARIO -->
        <!-- ####################################################### -->
        <navigation-rule>
            <from-view-id>/searchBooks.jsp</from-view-id>
            <navigation-case>
                <from-outcome>showBooksFound</from-outcome>
                <to-view-id>/searchBooks.jsp</to-view-id>
            </navigation-case>
            <navigation-case>
                <from-outcome>insertNewBook</from-outcome>
                <to-view-id>/insertNewBook.jsp</to-view-id>
            </navigation-case>       
        </navigation-rule>
        <navigation-rule>
            <from-view-id>/insertNewBook.jsp</from-view-id>
            <navigation-case>
                <from-outcome>showBooksFound</from-outcome>
                <to-view-id>/searchBooks.jsp</to-view-id>
            </navigation-case>
        </navigation-rule>   
    </faces-config>Thanks in advance.

    Thanks for your reply. The problem was with Date datePublicacion. It was missing a converter.
    java.util.Date is deprecated. Is there a chance to use java.util.Calendar?

  • Resource action not being called

    The executable file not being called
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE Waveset PUBLIC 'waveset.dtd' 'waveset.dtd'>
    <Waveset>
    <ResourceAction name='AfterUpdate'>
    <ResTypeAction restype='Red Hat Linux' timeout='6000'>
    <act>
    /usr/local/vistaplus/vadmin c=mu us=$(USER_NAME) pas=$(USER_PASSWORD)
    exit
    </act>
    </ResTypeAction>
    </ResourceAction>
    </Waveset>

    yep, sorry for reposting but in that post I said I had it fixed but obviously its not. What's really change is that I cant recreate this problem on my laptop but on our dev and test environments this problem still exists. My initial thoughts is that this is an environment problem but i'm not totally convinced as the was settings etc are the same as on my laptop.

  • Counter not counting encoder over RTSI

    Hi all,
    I have a PCI-7358 (motion card) and a PCI-6602 (counter timer) both connected together with a RTSI cable. I have then configured an axis in MAX to route the encoder over RTSI-0 (Phase-A) & RTSI-1 (Phase-B). Then I added and configured the RTSI cable in MAX and added the PCI-6602 as its device (see MAX-1.jpg). Then with the appropriate motor / axis spinning I run the PCI-6602 test panel and configure as Edge counting and RTSI0 (see MAX-2.jpg), then I expect to see the counter increment – but it does not. Could it be something to do with mapping on the counter card? Am I missing something? Any ideas?
    -Martin
    Message Edited by Martin.D on 06-05-2007 08:22 PM
    Certified LabVIEW Architect
    Attachments:
    MAX-1.JPG ‏161 KB
    MAX-2.JPG ‏209 KB

    Hi Martin,
    We were finally able to get all the equipment needed to replicate this issue.  My colleague in the states saw the exact behavior that you described about not being able to route Axis 7 and 8 to RTSI in MAX. This has been documented and will be investigated in due course.
    In the meantime, if you do need to eventually route Axis 7 and 8's signals to RTSI, then you can do this programatically in LabVIEW using the Select Signal VI.  When we use this VI to route Axis 7 and 8's Phase A signal to RTSI, it works correctly, and we see the PCI-6602's test panels increment when counting the corresponding RTSI line.
    Thanks,
    Kirtesh Mistry
    National Instruments UK & Ireland

  • When I plug in my iPhone to sync, it starts but does not complete the process and several pieces of data are not being transferred to my iPhone from my MacBook Air.

    Problem:
    When I plug in my iPhone to sync, it starts but does not complete the process and several pieces of data are not being transferred to my iPhone from my MacBook Air.
    Any help that you can provide in helping my iPhone accurately sync with iPhoto and iTunes will be greatly appreciated.
    Symptoms:
    1)   Sync:  It’s not completing the sync.  Below, I’ve provided all of my settings from the iTunes Summary tab so that you might tell me if I’ve selected any incorrect options.  I prefer to sync the “old school” way – by connecting to the computer – as opposed to syncing over the cloud. Perhaps this is what’s causing the problem? Here is a list of the steps displayed in the iTunes window as the sync progresses:
    waiting for sync to start (step 1 of 7)
    backing up (step 2 of 7)
    preparing to sync (step 3 of 7)
    determining apps to sync (step 4 of 7)
    preparing apps to sync (step 5 of 7)
    importing photos (step 6 of 7)
    waiting for changes to be applied (step 7 of 7)
    syncing apps / copying 1 of 4 (App name) (step 7 of 7)
    canceling sync
    apple icon
    2)   Photos: I've selected only certain of my iPhoto albums to sync to my iPhone.  All of the albums are correct/complete in iPhoto.  All of the albums are listed on my iPhone, both before and after the sync, but the albums are empty (no actual photos) before and after the sync. Perhaps this is tied to the fact that the sync isn’t completing, but because “importing photos” is one of the steps that the incomplete sync displays, I don’t know.
    3)   Apps: When I launch iTunes and click on the Apps folder under the Library listing, then click on the Updates tab, iTunes searches for any Apps needing to be updated and provides a list.  If I click on Update All, the Apps are successfully updated in iTunes.  But, when I plug in my iPhone so that the updates will transfer to the apps on my iPhone, the updates don’t transfer to the apps on my iPhone and those apps still reflect that they need updating on the iPhone.
    Other Potential Pertinent Info:
    The flash memory hard drive on my MacBook Air recently died (perhaps a month or two ago).  Apple had emailed me about a known issue and literally the next day, my MacBook Air crashed.  I installed a new flash memory drive and re-installed everything from a backup off of an external hard drive.  Everything seems to be working fine; it recreated accurately all of my software and data, including iPhoto and iTunes, the pictures and songs (respectively) for which are stored on that hard drive, as opposed to being on the flash memory in the MacBook Air itself.  However, I don’t recall if the start of the sync problem described herein started happening at the same time that I replaced the flash memory drive.  All I know is that the computer is working perfectly in all respects and that even as the sync is failing, it at least says that it’s doing the right things and looking in the right places (e.g., the list of albums on my iPhone matches the list of albums in iTunes, etc.).
    Settings/Status:
    MacBook Air
    OSX v. 10.9
    iPhoto ’11 v. 9.5 (902.7)
    iPhone iOS 7.0.4
    iTunes v. 11.1.3 (8)
    Summary Tab
    Backups (This Computer)
    Options
    Automatically sync when this iPhone is connected
    Sync only checked songs and videos
    Photos Tab
    Sync Photos from iPhoto (429 Photos)
    Selected albums, Events, and Faces, and automatically include (no Events)
    Albums – 9 are selected

    You need to download iTunes on your computer. iOS 6 requires the latest version of iTunes which is 10.7.

Maybe you are looking for

  • Workflow conditional statement not working

    I have 2 level approvals of objects in Documents list. The document first uploaded by user and then first need to get approval from HR Line Manager and then get approval from HR manager. the attach image shows shows workflow , the issue is either I s

  • Diff b/w BAPI and Function Module.

    What is the difference between BAPI and Function Module.... By Interface programming do we mean posting data thru  BAPI,BDC....

  • Importance of Message ID in soap adapter

    Hi what is the importnace of message id in soap adapter ?? Are there any situations where we send it through query string or message payload ?? I know.......by default IE creates Message ID for any messages that passes through it. But still are there

  • Set location of nidobj & niobj files?

    I'd like to speed up the compilation of my large project on my laptop with a slow hard drive. Is there any way to set a new location for the .ni(d)obj files?  The target settings allow me to define the location of the .exe and the .cdb file, but what

  • Acquiring data from an ecoder and Ultrasonic sensor

    I have a controller card PCI-7340 and UMI-7774, connected to my PC, I want to implement an autonomous vehicle through mounting a quadrature encoder for velocity and position feedback and an ultrasonic sensor for obstacle determination and avoidance,