MarshalException: Missing end tag for body or Envelop

Hi, I am new at this, pls advise.
I have been trying to code a 'hello world' that returns a string, as below.
//==================
package simple;
public class HelloWorld{
public String sayHello() {
return "hello";
//===================
and my buil.xml looks like this
//===================
<project name="simple" default ="all">
<property file="../properties.txt"/>
<property name="temp_dir" value="tmp_build" />
<target name="all" depends="clean,ear,deploy" />
<target name="clean" >
<delete dir="${classDir}/tutorial/simple" />
<delete file="${appDir}/simple.ear" />
<delete dir="${temp_dir}" />
<delete file="client.jar" />
</target>
<target name="build" depends="ear" />
<target name="ear" >
<delete dir="${temp_dir}" />
<mkdir dir="${temp_dir}" />
<mkdir dir="${temp_dir}/WEB-INF" />
<mkdir dir="${temp_dir}/WEB-INF/classes" />
<javac srcdir="." includes="HelloWorld.java"
destdir="${temp_dir}" />
<servicegen
destEar="simple.ear"
warName="simple.war"
contextURI="simple">
<service
javaClassComponents="simple.HelloWorld"
targetNamespace="http://examples/simple"
serviceName="Echo"
serviceURI="/HelloWorld"
     generateTypes="True"
expandMethods="True"
style="document">
<client
packageName="tutorial.simple.client"
clientJarName="client.jar"
/>
</service>
<classpath>
<pathelement path="${temp_dir}"/>
<pathelement path="${java.class.path}"/>
</classpath>
</servicegen>
</target>
<target name="deploy">
<copy file="simple.ear" todir="${appDir}"/>
</target>
</project>
//======================
I manage to deploy and run the service on weblogic through the browser. Next, when I try to run it on Java Wirelesss Tookit. I get a "MarshalException: Missing end tag for Body or Evelop" error.
I basically used the stub generator from WTK and use them as below
//====================
try {
String str = service.sayHello();
System.out.println( str );
} catch (Exception e) {
e.printStackTrace();
//=====================
I have no problem running other examples, just this one which i coded on my own. Can anyone pls enlightent me :)

Hi all,
as many developers I have encountered the famous "java.rmi.MarshallException:(1)Missing end tag for Body or Envelope" during the development of my WS app for J2ME (JSR 172).
It is correct that is the empty tag <soapenv:Header /> causing this error.
To fix this error, it is necessary to stop the server to generate this empty header in the response stream.
I have fixed this error for Axis2: unfortunaly it is necessary to modify a class in Axiom library. This library is used in Axis2 to produce the SOAP response, you can download the source code at http://ws.apache.org/commons/axiom/source-repository.html.
Here the class to modify:
axiom\modules\axiom-impl\src\main\java\org\apache\axiom\soap\impl\llom\soap11\SOAP11Factory.java
by commenting the line 273 in the method called getDefaultEnvelope() to prevent the empty header insertion in SOAP response:
public SOAPEnvelope getDefaultEnvelope() throws SOAPProcessingException {
        OMNamespace ns =
                new OMNamespaceImpl(
                        SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
                        SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
        SOAPEnvelopeImpl env = new SOAPEnvelopeImpl(ns, this);
        //createSOAPHeader(env); the line to be commented
        createSOAPBody(env);
        return env;
    }Finally you have to recompile Axiom using Maven to obtain the fixed package axiom-impl.jar and to replace this package on the lib repository of your Axis2 server.
A little tricky to fix this bug but now my app runs perfectly ;)
Enjoy!
Romain Pellerin
http://www.gasp-mobilegaming.org

Similar Messages

  • WS - "java.rmi.MarshalException: (1)Missing end tag for Body or Envelope"

    HI All,
    I'm new of this forum but I really hope you could help me solving the problem I have to connect Web Services and midlets.
    Somehow my configuration works with some services I've found online but when I invoke very simple services deployed on my server(s) I always have "java.rmi.MarshalException: (1)Missing end tag for Body or Envelope" exception"
    Let me add some more information to the problem:
    System Configuration:
    - JBoss (but I also tried axis) - standard installation (http/1.1)
    - WTK 2.5 (but I also tried 2.2) - standard installation
    - I tried "trusted" and "untrusted" security configuration of the servlet
    - Netbeans IDE 5.0 (to create both Midlets and WS)
    - WS uses document/literal as expected by JSR 172
    The midlet is created with no problems but at the time of invocation the server throws the above exception (which is part of rmi. remoteException)
    By monitoring the network both at client and server side I noticed that the information received is chuncked after 768 bytes. However, If the (soap) reponse is less than such value, I still have the error.
    Using Http/1.1. at the mobile side, the service does not return me anything (0kb) while if I set the mobile device to http/1.0, I get the above error.
    I really have to make the midlet running so any type of help will be really appreciated!!
    Thanks in advance

    Hi all,
    as many developers I have encountered the famous "java.rmi.MarshallException:(1)Missing end tag for Body or Envelope" during the development of my WS app for J2ME (JSR 172).
    It is correct that is the empty tag <soapenv:Header /> causing this error.
    To fix this error, it is necessary to stop the server to generate this empty header in the response stream.
    I have fixed this error for Axis2: unfortunaly it is necessary to modify a class in Axiom library. This library is used in Axis2 to produce the SOAP response, you can download the source code at http://ws.apache.org/commons/axiom/source-repository.html.
    Here the class to modify:
    axiom\modules\axiom-impl\src\main\java\org\apache\axiom\soap\impl\llom\soap11\SOAP11Factory.java
    by commenting the line 273 in the method called getDefaultEnvelope() to prevent the empty header insertion in SOAP response:
    public SOAPEnvelope getDefaultEnvelope() throws SOAPProcessingException {
            OMNamespace ns =
                    new OMNamespaceImpl(
                            SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
                            SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
            SOAPEnvelopeImpl env = new SOAPEnvelopeImpl(ns, this);
            //createSOAPHeader(env); the line to be commented
            createSOAPBody(env);
            return env;
        }Finally you have to recompile Axiom using Maven to obtain the fixed package axiom-impl.jar and to replace this package on the lib repository of your Axis2 server.
    A little tricky to fix this bug but now my app runs perfectly ;)
    Enjoy!
    Romain Pellerin
    http://www.gasp-mobilegaming.org

  • WT 2.5 / WT 2.5.2 - Web Services problem - Missing end tag??

    Hi,
    I'm trying to create a J2ME web services client using the wireless toolkit. I used the Stub Generator to create my STUB from my WSDL file.
    With the Wireless Toolkit 2.5 I was getting a "Missing end tag for body or envelope" error when I invoked a web method. I read that this was a problem with that version of the Wireless Toolkit (a parsing problem).
    I then upgraded to Wireless Toolkit 2.5.2. When running my app on the emulator, the "Missing end tag for body or envelope" error went away, and I was successfully invoking web methods, and the results were being parsed fine. However, when I put this .jar on to my handset (a Nokia E70) I still see the "Missing end tag for body or envelope" error!
    Does anyone know why this is?

    The IDE i'm using is NetBeans. I have WTK2.5 and WTK2.5.2 installed. When I flick the "emulator platform" from WTK2.5 to WTK2.5.2 the error "Missing end tag for body or envelope" does go away, and the SOAP response is successfully parsed. However, when I flick it back to WTK2.5, I get the error back. The SOAP message is being sent properly, and a good response is returned. The problem is with parsing the response. WTK2.5 can't seem to parse it, but WTK2.5.2 can.
    So I can get the application working fine (when the emulator platform is set to WTK2.5.2), but the problem is, I still get the error when I install the app on any phone, and I don't understand why???
    If anyone can shed any light on this, i'd be very grateful.
    p.s I've tested the app on the following handsets:
    Sony Ericsson P1i, K800i
    Nokia E70, E61

  • F:verbatim - missing end tag

    im trying to use f:verbatim tag in my code, and when im writing something like-
    <f:verbatim>
    <table><tr><td>
    </f:verbatim>
    <h:outputText value="x"/>
    <f:verbatim>
    </td></tr></table>
    </f:verbatim>
    im getting the message - "missing end tag table"
    what im doing wrong?
    thanks in advanced.

    I get the same thing in my IDE. It works anyways. I think the compiler/parser in the IDE gets very confused when I use f:verbatim and h:outputText.
    Try running the code anyways and see if it works. If you can, test it in several different browsers (IE, FF, Safari, etc...).
    I am using the IBM WSAD 5.1.2 IDE. Which is based off of Eclipse.
    CowKing

  • Mail package: missing end tag error

    Hi All
    I am using mail package for my receiver mail adapter.
    I have the required configuration for mail package as shown below:
    <ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
      <Subject>Test Subject</Subject>
      <From>From Sender</From>
      <To>To Sender</To> 
      <Content_Type>text</Content_Type>
      <Content>
      <Valid_Object>1000006-AAA-AAA</Valid_Object>
      <Company_Code>1001</Company_Code>
      </Content>
    </ns1:Mail>
    I get the following error in the communication channel monitoring:
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: com.sap.aii.messaging.util.XMLScanException: expecting end tag: Mail, but found {}Content at state 1
    How can i set this expected end tag?
    I thought </ns1:Mail> is the end tag and it is defined properly.
    Thanks
    Chandra

    Hello Sebin
    I have a proxy to mail scenario.
    I am extracting data from SAP and I have to send it in email as a text attachment.
    So, i am using mail package. My message type is as follows (as suggested by documentation):
    <ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
    <Subject>Test Subject</Subject>
    <From>Sender email</From>
    <To>Receiver email</To>
    <Content_Type>text</Content_Type>
    <Content>
    <Valid_Object>1000006-AAA-AAA</Valid_Object>
    <Company_Code>1001</Company_Code>
    </Content>
    <Content>
    <Valid_Object>1000006-BBB-BBB</Valid_Object>
    <Company_Code>1002</Company_Code>
    </Content>
    </ns1:Mail>
    I also checked 'keep attachments' option. I am not using adapter specific message attributes for mail adapter.
    Now, i am getting the following error in communication channel monitoring:
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException:
    com.sap.aii.messaging.util.XMLScanException: expecting end tag: Mail, but found {}Content at state 1
    I have a start tag "http://sap.com/xi/XI/Mail/30" as suggested by documentation.
    I thought, end tag can only be </ns1:Mail> which closes initially opened start tag with the same name.
    What is the mistake here? How can i get the end tag?
    Many Thanks
    Chandra

  • End tag for "img" omitted, but OMITTAG NO was specified.

    i am just wondering why it is that dw created <img>
    tags are all missing closing tags, therefore closing validation, or
    am i missing something here, maybe a doctype issue?
    link
    link

    DW doesn't create code like this -
    <img src="
    http://www.boyerrv.com/Assets/Images/Logo.gif"
    alt="Boyer RV
    Center - Home" width="149" height="109"></img>
    Users do.
    As for the rest of it, I'd assume that this is legacy code
    that was not
    converted to XHTML. Try COMMANDS | Clean up XHTML.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "m0piqsutjjqv4du" <[email protected]> wrote
    in message
    news:eji9p6$dpj$[email protected]..
    >i am just wondering why it is that dw created <img>
    tags are all missing
    > closing tags, therefore closing validation, or am i
    missing something
    > here,
    > maybe a doctype issue?
    >
    > link
    http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.boyerrv.com%2Fi
    > ndex.html
    >

  • JavaDoc Conflicts  "Missing @param tag for....

    Has anybody seen this before? if so, what does it mean, i get it in my code, the application runs fine, but i cannot step through that part of the code, as it takes me directly to the .class file version.

    the code in which i have the conflicts in is as follows:
    //Code Start Here
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import javax.swing.event.*;
    public class DTree extends JPanel {
    protected DefaultMutableTreeNode rootNode;
    protected DefaultTreeModel treeModel;
    protected JTree tree;
    private Toolkit toolkit = Toolkit.getDefaultToolkit();
    public DTree() {
    rootNode = new DefaultMutableTreeNode("Enterprise");
    treeModel = new DefaultTreeModel(rootNode);
    treeModel.addTreeModelListener(new MyTreeModelListener());
    tree = new JTree(treeModel);
    tree.setEditable(true);
    tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
    tree.addTreeExpansionListener(new myTreeExpansionListner());
    tree.setShowsRootHandles(true);
    JScrollPane scrollPane = new JScrollPane(tree);
    setLayout(new GridLayout(1,0));
    add(scrollPane);
    /** Remove all nodes except the root node. */
    public void clear() {
    rootNode.removeAllChildren();
    treeModel.reload();
    /** Remove the currently selected node. */
    public void removeCurrentNode() {
    TreePath currentSelection = tree.getSelectionPath();
    if (currentSelection != null) {
    DefaultMutableTreeNode currentNode = (DefaultMutableTreeNode)
    (currentSelection.getLastPathComponent());
    MutableTreeNode parent = (MutableTreeNode)(currentNode.getParent());
    if (parent != null) {
    treeModel.removeNodeFromParent(currentNode);
    return;
    // Either there was no selection, or the root was selected.
    toolkit.beep();
    /** Add child to the currently selected node. */
    public DefaultMutableTreeNode addObject(Object child, TreePath parentPath) {
    DefaultMutableTreeNode parentNode = null;
    if (parentPath == null) {
    parentNode = rootNode;
    } else {
    parentNode = (DefaultMutableTreeNode) parentPath.getLastPathComponent();
    return addObject(parentNode, child, true);
    public DefaultMutableTreeNode addObject(DefaultMutableTreeNode parent,
    Object child, String a) {
    return addObject(parent, child, false);
    public DefaultMutableTreeNode addObject(DefaultMutableTreeNode parent,
    Object child,
    boolean shouldBeVisible) {
    DefaultMutableTreeNode childNode =
    new DefaultMutableTreeNode(child);
    if (parent == null) {
    parent = rootNode;
    treeModel.insertNodeInto(childNode, parent,
    parent.getChildCount());
    // Make sure the user can see the lovely new node.
    if (shouldBeVisible) {
    tree.scrollPathToVisible(new TreePath(childNode.getPath()));
    return childNode;
    class MyTreeModelListener implements TreeModelListener {
    public void treeNodesChanged(TreeModelEvent e) {
    DefaultMutableTreeNode node;
    node = (DefaultMutableTreeNode)
    (e.getTreePath().getLastPathComponent());
    * If the event lists children, then the changed
    * node is the child of the node we've already
    * gotten. Otherwise, the changed node and the
    * specified node are the same.
    try {
    int index = e.getChildIndices()[0];
    node = (DefaultMutableTreeNode)
    (node.getChildAt(index));
    } catch (NullPointerException exc) {}
    System.out.println("The user has finished editing the node.");
    System.out.println("New value: " + node.getUserObject());
    public void treeNodesInserted(TreeModelEvent e) {
    public void treeNodesRemoved(TreeModelEvent e) {
    public void treeStructureChanged(TreeModelEvent e) {
    class myTreeExpansionListner implements TreeExpansionListener{
    public void treeExpanded(TreeExpansionEvent e){
    public void treeCollapsed(TreeExpansionEvent e){
    //Code End Here

  • Problem Editing HEAD tag for Facebook Open Graph

    In order for pages to play nice with some of the new Facebook features they can add meta tag content to identify the page as a specific "object" in the Facebook Graph.
    The problem is they ask you to add some namespace information as an attribute in the head tag and when I try to put anything in the actual tag itself I get an error:
    Header must contain <head> and </head> tags.
    I'm attempting to make the head tag look something like this:
    <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# my_fb_app: http://ogp.me/ns/fb/my_fb_app#">
    I have an end tag for head, I just thing the validation fails if you put anything in the head tag itself.
    Any ideas?
    Thanks,
    Greg

    <tt>prefix</tt> is not an HTML atttribute: it is part of RDF (which I haven't got my head round at all). However I get the same error on apex.oracle.com using
    <head class="foo"><tt>class</tt> is one of the HTML global attributes permitted on the <a href="<tt>head</tt> element, so this is definitely a parsing bug in APEX.
    Couple of possible workarounds:
    <li>In the examples in RDFa spec the <tt>prefix</tt> occurs in the <tt>html</tt> element, which APEX 4.1 will permit.
    <li>Add the <tt>prefix</tt> to the <tt>head</tt> element using a Dynamic Action/JavaScript on page load.
    You might try these and see whether they are compatible with whatever Facebook is doing.
    Please include the following information when posting a question (especially if it might be a bug):
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used

  • Service call exception java.lang. missing soap end tag..

    Hi Experts,
    I did the soap to rfc sync interface and Create the java deployble client proxy application in nwds. In Nwds i maintaine the PI parameters message server host,port and exectue the application. it is working fine. but i was deploying the another j2ee engine server messager server host name and port parameters I am getting the error. that is Service call exception java.lang. mising soap end tag.
    Could you help me.
    Thanks & Regards,
    Veera

    hi,
    restarting the java stack would be enough. You can do that at SMICM. Before you should deregister all queues in SMQR so that incoming messages has to wait in the queue. Of coz all synchronous msgs would fail, as well messages going to your Java Inbound Adapters.
    note:reward points if solution found helpfull.....
    regards
    chandrakanth.k

  • Missing Beginning/Ending balances for Italian company on RFSSLD00

    We are using report RFSUMB00 ( TA  F_IT_01) for the hard closing procedure for our Italian company.
    The process is known and working properly.
    Now we have been requested for reporting beginning and ending balances for past fiscal years using report RFSSLD00. Due to hard closing procedure there are no beginning and ending balances visible on this report. As workaround we have provided the requested figures using reports  RFBILA00 (beginning and ending) and RFSSLD00 (debit and credit) except periods 13 to 16 which have been used for hard closing process.
    Are there any other solution for this Italian reporting problem of RFSSLD00?

    Hard to tell really.If I were trying to trouble shoot this myself, my hunch would be that is a calculation order problem i.e. the second part of your calc is being calculated at the same time as the first part. Check your application log to see how many passes are being made. Generally, essbase will show a "Calculating ..." type message for each pass detailing what is being calculated.If this shows that these items are being calc'd at the same time, you could try putting the ending inv part of the calc into a second fix statement (even though both fixes are the same) to force the sequence of the calc.Hope this helps.

  • SQL CASE statement in XML template- End tag does not match start tag 'group

    Hi All,
    I am developing a report that has the SQL CASE statement in the query. I am trying to load this into RTF with report wizard and it gives me below error
    oracle.xml.parser.v2.XMLParseException: End tag does not match start tag 'group'
    Does XML publisher support CASE statement?
    My query is something like this
    SELECT customercode,
    SUM(CASE WHEN invoicedate >= current date - 30 days
    THEN balanceforward ELSE 0 END) AS "0-30",
    SUM(CASE WHEN invoicedate BETWEEN current date - 60 days
    AND current date - 31 days
    THEN balanceforward ELSE 0 END) AS "31-60",
    SUM(CASE WHEN invoicedate < current date - 60 days
    THEN balanceforward ELSE 0 END) AS "61>",
    SUM(balanceforward) AS total_outstanding
    FROM MyTable
    GROUP BY customercode
    ORDER BY total_outstanding DESC
    Please advice if the CASE statement or the double quotes are causing this error
    Thanks,
    PP

    I got this to work in the XML but the data is returning zeros for all the case statements. When I run this in toad I get results for all the case conditions but when ran in XML the data displayed is all zeros. I am not sure what I am missing. Can someone shed some light on this please
    Thanks!
    PP

  • Best practice for implementing META tags for content items?

    Hello,
    The portal site I'm responsible for managing our content (www.sers.state.pa.us) runs on the following WebCenter products:
    WebCenter Interaction 10.3.0.1
    WebCenter Publisher 6.5
    WebCenter Studio 2.2 MP1
    Content Service 10gR3
    The agency I work for is one of many for the commonwealth of PA, which use this product suite, and I'm encountering some confusion on how to apply META tags to the content items for our site, so we can have effective search results. According to the [W3C site's explanation on META tag standards|http://www.w3schools.com/tags/tag_meta.asp], the tags for description, keywords, etc, should be within the head region of the HTML document. However, with how the WebCenter suite's configuration is set up, the head section of the HTML is closed off by the end of the template code for a common header portlet. I was advised to add fields to our presentation and data entry templates for content, to add these meta fields, however, since they are then placed within the body section of the HTML as a result, these tags fail to have any positive impact on the search results. Instead, many of our content items, when searched for, the description in the search results only shows text that is displayed in the header and left navigation of our template, which come early in the body section of the HTML.
    Please advise as to possible method(s) that would be best to implement usage of META tags so we can get our pages containing content to come up in search results with this relevant data.
    Thanks in advance,
    Brian

    if i remember right the index server will capture meta tags even if they are not in the <head> section. it is not well formed html but I think i remember that we created meta tags down in the body section and the index server still picked them up. you might try this and see if it still works. i believe it worked in 10gR3. Let me know your results.

  • Error message end tag and start tags dont match when publishing to flickr from lightroom 5.3

    I have had an ongoing problem that lightroom publishing to flickr times out frequently when uploading many photos.  However, for about the last week or two weeks i have been getting a different error message:
    Error message: “Can’t update this collection.  An internal error has occurred:  End tag ‘body’ does not match the start tag ‘hr’. 
    Windows 7 system.
    I set up a photoset in lightroom (have tried both smart and regular photosets with same results).  These photosets can contain anywhere from 16 to 3000 or more photos. The first photos are uploaded – maybe 10, maybe 100, maybe 1000.  Then it generally seems to stop working.  Sometimes I can continue publishing new photos or republishing, sometimes I cant.  For example I currently have 11 flickr publish photosets in one lightroom catalog, with the following success numbers:
    NAHCR00 total 3044, published: 1851
    NAHCR01 total 748,published: all
    NAHCR03 total: 532 published: all
    NAHCR04  total: 412 published: all
    NAHCR05 total: 340 published: 152
    NAHCR07 total: 248 published: 50
    NAHCR08 total: 524 published: 197
    NAHCR09 total: 44 published: all
    NAHCR10 total: 40 published: all
    NAHCR11 total: 32 published: all
    NAHCR12 total: 124 published: 4
    I have succeeded in uploading over 28000 pictures from flickr (mostly from three other lightroom catalogs to several flickr account, both paid and free).  The other catalogs marks the photosets as public  and generally seems to be more successful at uploading.
    All of these problem photosets are marked as private so that only I can see them.  The  photos themselves have peculiar names including many special characters including chinese characters, arabic alphabets, spaces, commas, exclamation marks etc etc.  I tried telling lightroom to rename the files to names with no special characters but it still fails.
    I emailed Flickr with the above information and this was their response:
    Thank you for contacting Yahoo Flickr.
    I would first like to apologize for any inconvenience you have experienced while attempting to upload photos to your Flickr account.
    First, Lightroom is a 3rd-party application; we can't offer any support for it. Please contact the developer of that application for help.
    With that said, please note that there's a known issue with Avast's Web Shield and AVG antivirus that causes issues with uploads. If you have either of these applications, disable the "Link Scanner", add Uploadr to the exceptions list, and then try to upload. If the issue persists, temporarily turn off the anti-virus / firewall and try to upload again.
    Please also see the following article on Flickr's upload limitations:
    Flickr upload limitations
      Lastly, here are some general troubleshooting steps that you can try: 
    Most connection issues arise due to a problem between your computer and Flickr and are often temporary. Try the following:
    Briefly power off any broadband modems and routers to reset the network connection.
    If you connect wirelessly, move your computer closer to the wireless access point, or 'plug in'.
    If you're connected through a router, try plugging directly into the broadband modem.
    See your manual for configuration options if the router is slowing or blocking uploads.
    Also, try lowering your # or matching it to your ISP's value.
      Additional troubleshooting 
    Try uploading with an alternate method:The web upload page, the Uploadr app, or upload by email.
    If you're using an older version of Uploadr, update to the latest version.
    Search our forums to see if there are any specific network hardware incompatibilities.
    I realize that this isn't a satisfying response to your request, and I am sorry for that. Please let me know if I may be of further assistance, or if you have any questions or concerns.
    Thank you again for contacting Yahoo Flickr.
    Regards,
    Elliot
      Yahoo Customer Care

    I had the same problen with Lightroom 5 - Prepares the files but won't Upload to Blurb. Tried numerours times. It is a Landscape size Book 132 Pages. There is a BUG in Lightroom and here is how I got it to work:
    Check each slide and make sure APPLY BACKGROUND GLOBALLY, GRAPHIC or BACKGROUND COLOR and not checked,. If so Uncheck them.
    Go to EDIT and SELECT ALL Slides in the Book.
    Select Apply Background Globally - turn it off and on several times, then leave it off
    Select GRAPHIC - turn it off and then turn it on and off several times
    Select BACKGROUND COLOR - turn it on then off then on then off
    I ended up with APPLY GLOBALLY unchecked for Every Page.
    GRAPHIC was turned on with a Graphic set at 12% Opacity on every Page
    Again check each page first for these Checkmarks or just fix exverything with SELECT ALL.
    Background Color was Turned off. 
    NOW UPLOAD THE BOOK - It took a couple hours but it uploaded without a hitch., I turned off all Firewalls and Plugged directly into the Router. I am using an IMac 27" with 32 GB of memory and this is the only way it would work. The Mac is about 7 days old and Lightroom 5 is also 7 days old. BUGGIEST piece of software I have ever used.
    Note - one of the above steps fixes the BUG - I am not sure which one but one will fix your book. It finally uploaded to BLURB today. It took a few hours though.

  • Custom tag for Marquee in JSF

    Hi,
    I am trying to develop a custom tag for Marquee in JSF, my usecase is to display a value from managed bean(Dynamically). please find the code below and guide me where i have made mistake
    regards
    Sandeep
    Component class:
    package customtags;
    import javax.el.ValueExpression;
    import javax.faces.component.UIComponentBase;
    import javax.faces.context.FacesContext;
    public class Marquee extends UIComponentBase {
         public static final String COMPONENT_TYPE = "marqueecomp";
         public static final String RENDERER_TYPE = "marqueeRenderer";
         private Object[] _state = null;
         private String value;
         public String getValue() {
              if (null != this.value) {
                   return this.value;
              ValueExpression _ve = getValueExpression("value");
              return (_ve != null) ? (String) _ve.getValue(getFacesContext()
                        .getELContext()) : null;
         public void setValue(String marquee) {
              this.value = marquee;
         public String getFamily() {
              // TODO Auto-generated method stub
              return COMPONENT_TYPE;
    //     public void encodeBegin(FacesContext context) throws IOException {
    //          ResponseWriter writer = context.getResponseWriter();
    //          writer.startElement("marquee", this);
    //          writer.write(getValue());
    //          writer.endElement("marquee");
         public void restoreState(FacesContext context, Object state) {
              this._state = (Object[]) _state;
              super.restoreState(_context, this._state[0]);
              value = (String) this._state[1];
         public Object saveState(FacesContext _context) {
              if (_state == null) {
                   _state = new Object[2];
              state[0] = super.saveState(context);
              _state[1] = value;
              return _state;
    Tag Class:
    package customtags;
    import javax.el.ValueExpression;
    import javax.faces.component.UIComponent;
    import javax.faces.webapp.UIComponentELTag;
    public class MarqueeTag extends UIComponentELTag {
         protected ValueExpression marquee;
         public String getComponentType() {
              // TODO Auto-generated method stub
              return Marquee.COMPONENT_TYPE;
         public String getRendererType() {
              // TODO Auto-generated method stub
              return Marquee.RENDERER_TYPE;
         * protected void setProperties(UIComponent component) {
         * super.setProperties(component); Marquee marqComp = (Marquee) component;
         * if (marquee != null) { marqComp.setValue(marquee); } }
         protected void setProperties(UIComponent component) {
              super.setProperties(component);
              Marquee marqComp = null;
              try {
                   marqComp = (Marquee) component;
              } catch (ClassCastException cce) {
                   throw new IllegalStateException(
                             "Component "
                                       + component.toString()
                                       + " not expected type. Expected: com.foo.Foo. Perhaps you're missing a tag?");
              if (marquee != null) {
                   //marqComp.setValueExpression("value", marquee);
                   marqComp.setValue("fsdfsdfsdfsdfsd");
         * @return the marquee
         public ValueExpression getMarquee() {
              return marquee;
         * @param marquee
         * the marquee to set
         public void setMarquee(ValueExpression marquee) {
              this.marquee = marquee;
    *.tld file*
    <?xml version="1.0" encoding="UTF-8"?>
    <taglib xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd"
         version="2.1">
         <tlib-version>1.0</tlib-version>
         <short-name>marqueecomp</short-name>
         <uri>http://tags.org/marquee</uri>
         <tag>
              <name>marqueeTag</name>
    <tag-class>customtags.MarqueeTag</tag-class>
    <body-content>empty</body-content>
    <attribute>
    <description><![CDATA[Your description here]]></description>
    <name>id</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <description><![CDATA[Your description here]]></description>
    <name>value</name>
    </attribute>
         </tag>
    </taglib>
    Renderer class:
    package customtags;
    import java.io.IOException;
    import javax.faces.component.UIComponent;
    import javax.faces.context.FacesContext;
    import javax.faces.context.ResponseWriter;
    import javax.faces.render.Renderer;
    public class MarqueeRenderer extends Renderer {
         public void encodeBegin(final FacesContext facesContext,
    final UIComponent component) throws IOException {
    super.encodeBegin(facesContext, component);
    final ResponseWriter writer = facesContext.getResponseWriter();
    writer.startElement("DIV", component);
    /*String styleClass =
    (String)attributes.get(Shuffler.STYLECLASS_ATTRIBUTE_KEY);
    writer.writeAttribute("class", styleClass, null);*/
    public void encodeEnd(final FacesContext facesContext,
    final UIComponent component) throws IOException {
    final ResponseWriter writer = facesContext.getResponseWriter();
    writer.endElement("DIV");
    in Faces-Config:
    <component>
              <display-name>marqueecomp</display-name>
              <component-type>marqueecomp</component-type>
              <component-class>customtags.Marquee</component-class>
              <component-extension>
    <renderer-type>marqueeRenderer</renderer-type>
    </component-extension>
         </component>
         <render-kit>
    <renderer>
    <component-family>marqueecomp</component-family>
    <renderer-type>marqueeRenderer</renderer-type>
    <renderer-class>customtags.MarqueeRenderer</renderer-class>
    </renderer>
    </render-kit>
    In class path --->marquee.taglib.xml
    <?xml version="1.0"?>
    <!DOCTYPE facelet-taglib PUBLIC
    "-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN"
    "http://java.sun.com/dtd/facelet-taglib_1_0.dtd">
    <facelet-taglib>
    <namespace>http://tags.org/marquee</namespace>
    <tag>
    <tag-name>marqueeTag</tag-name>
    <component>
    <component-type>marqueecomp</component-type>
    <renderer-type>marqueeRenderer</renderer-type>
    </component>
    </tag>
    </facelet-taglib>
    *.xhtml file*
    <html xmlns="http://www.w3.org/1999/xhtml"
         xmlns:ui="http://java.sun.com/jsf/facelets"
         xmlns:h="http://java.sun.com/jsf/html"
         xmlns:f="http://java.sun.com/jsf/core" xml:lang="en" lang="en"
         xmlns:a4j="http://richfaces.org/a4j"
         xmlns:rich="http://richfaces.org/rich" xmlns:mycomp="http://tags.org/marquee">
    <head>
    <title>DEBTDOC Home Page</title>
    <meta http-equiv="keywords" content="enter,your,keywords,here" />
    <meta http-equiv="description"
         content="A short description of this page." />
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" type="text/css" href="../css/common.css"></link>
    <script language="javascript" src="../script/common.js"></script>
    </head>
    <body>
    <f:view>
    <mycomp:marqueeTag value="hello World"></mycomp:marqueeTag>

    There exist the JSTL SQL taglib, but I don't recommend this. It should only be used for quick development and testing. For database connectivity, rather create a data layer with DAO classes which you on its turn just plug in your business layer (with servlets).

  • End tag unbalanced.......mah...help me..

    org.apache.jasper.JasperException: /pages/Login.jsp(85,2) The end tag "</f:view" is unbalanced
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:134)
         org.apache.jasper.compiler.Parser.checkUnbalancedEndTag(Parser.java:1706)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1561)
         org.apache.jasper.compiler.Parser.parseBody(Parser.java:1789)
         org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1060)
         org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1367)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1560)
         org.apache.jasper.compiler.Parser.parseBody(Parser.java:1789)
         org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1060)
         org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1367)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1560)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:670)
         org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:637)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:43)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)This is my Login.jsp
    !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
      <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
      <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
      <f:view>
        <html>
          <head>
            <title>
              <h:outputText value="ProjectTrack"/>
            </title>
            <link rel="stylesheet" type="text/css" href="stylesheet.css"/>
            <script language="JavaScript">
               function set_image(button, img)
               button.src = img;
            </script>
          </head>
          <body>
            <h:form>
              <h:panelGrid columns="2" border="0" cellpadding="3" cellspacing="3">
                <h:graphicImage url="/images/logo.gif" alt="Welcome to ProjectTrack"
                 title="Welcome to ProjectTrack" width="149" height="160"/>
                <h:panelGrid columns="3" border="0" cellpadding="5" cellspacing="3"
                 headerClass="login-heading">
                  <f:facet name="header">
                    <h:outputText value="ProjectTrack" />
                  </f:facet>
                  <h:outputLabel for="userNameInput">
                    <h:outputText value="Enter your user name:"/>
                  </h:outputLabel>
                  <h:inputText id="userNameInput" size="20" maxlength="30"
                   required="true">
                    <f:validateLength minimum="5" maximum="30"/>
                  </h:inputText>
                  <h:message for="userNameInput" styleClass="errors"/>
                  <h:outputLabel for="passwordInput">
                    <h:outputText value="Password:"/>
                  </h:outputLabel>
                  <h:inputSecret id="passwordInput" size="20" maxlength="20"
                   required="true">
                    <f:validateLength minimum="5" maximum="15"/>
                  </h:inputSecret>
                  <h:message for="passwordInput" styleClass="errors"/>
                  <h:outputLabel for="groupInput">
                    <h:outputText value="Enter your user group:"/>
                  </h:outputLabel>
                  <h:inputText id="gorupInput" size="20" maxlength="30"
                   required="true">
                    <f:validateLength minimum="5" maximum="30"/>
                  </h:inputText>
                  <h:message for="groupInput" styleClass="errors"/>
                  <h:panelGroup/>
                  <h:commandButton action="Ok" title="Submit"image="#{facesContext.externalContext.requestContextPath}/images/submit.gif"
                   onmouseover="set_image(this,
                   '#{facesContext.externalContext.requestContextPath}/images/submit_over.gif')"
                   onmouseout="set_image(this,
                   '#{facesContext.externalContext.requestContextPath}/images/submit.gif');"/>
                  <h:panelGroup/>
                </h:panelGrid>
              </h:panelGrid>
          </body>
        </html>
      </f:view>

    Another error is that
    <h:inputText id="gorupInput" size="20" maxlength="30"
    required="true">
    Look at the id. It should be:
    <h:inputText id="groupInput" size="20" maxlength="30"
    required="true">
    This is the Manning's example. Luck with that.

Maybe you are looking for