Java Double calculations produce greater error than C++?

I wrote PLU (A=PLU) decomposition program in Java to solve Ax=B. A, P,L and U are square arrays. x and B are vectors. The error was great for large matrices.My instructor suggested me to use C++. So, I wrote the same thing in C++. The error is much less now. The code is almost identical. I thought that both languages use the same IEEE standard.
Is it possible that java handles double calculations worse than C++ does?

tmirzoev wrote:
matrix A and B are known. So, after my program computes x, I do Ax-B. Ideally, Ax-B=0. But that never happens because of the errors in floating point calculations. The problem that in Java that error Ax-b is much greater than in C++.Okay, but how do you know that Ax-b is greater in Java? Show your Java code and your C++ code.

Similar Messages

  • Downloading 4.0 onto XP it takes a long conection process, with boxes on unresponsive script and a java scipt app saying type error and is all very annoying so what can I do I want the old firefox back a

    I downloaded Firefox 4.0 replacing an earlier Firefox version. I have XP on my computer. When I now click on the Firefox icon after a time a window saying Unresponsive script and underneath script chrome etc comes up. I then press stop script and another window comes up Java Script application and type error. Eventually I get on to the internet but it's all very frustrating. I wish I had ignored the request to download 4.0
    Please help

    I can assure you that the sympton is indeed identical. For as the computer got worse, eventually it refused to start up and made 3 beeps. It has done this before, but today more times than before (just like when it first had this problem). Where-ever you go on the internet, it will tell you that the 3 beeps suggest the RAM is at fault. So, the same 3 beeps, means the same problem, which is the RAM.
    With that in mind, I re-ask my question with the same reasoning and justification; am I still covered under warranty? (Reasoning/Justification: Considering the original problem was not entirely fixed, though something else was to make the MacBook Pro last a little longer before the reoccurance of this problem).

  • Java.rmi.ServerException: Internal Server Error (serialization error....)

    Hi to all.
    I have two classes.
    The first is:
    public class FatherBean implements Serializable {
    public String name;
    public int id;
    /** Creates a new instance of ChildBean */
    public FatherBean() {
    this.name= null;
    this.id = 0;
    public String getName() {
    return name;
    public void setName(String name) {
    this.name = name;
    public int getId() {
    return id;
    public void setId(int id) {
    this.id = id;
    The second is :
    public class ChildBean extends FatherBean implements Serializable {
    public double number;
    /** Creates a new instance of ChildBean */
    public ChildBean() {
    super();
    this.number = 0.0;
    public double getNumber() {
    return number;
    public void setNumber(double number) {
    this.number = number;
    A test client class implements the following method that is exposed as web service:
    public java.util.Collection getBeans() {
    java.util.Collection beans = new ArrayList();
    ChildBean childBean1 = new ChildBean();
    ChildBean childBean2 = new ChildBean();
    childBean1.setId(100);
    childBean1.setName("pippo");
    childBean1.setNumber(3.9);
    childBean2.setId(100000);
    childBean2.setName("pluto");
    childBean2.setNumber(4.7);
    beans.add(childBean1);
    beans.add(childBean2);
    return beans;
    When I invoke the web service to url:
    http://localhost:8080/Prova
    and invoke the correspondent method on jsp client, throws exception:
    java.rmi.ServerException: Internal Server Error (serialization error: no serializer is registered for (class test.ChildBean, null))
         at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:357)
         at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:228)
         at ws.ProvaClientGenClient.ProvaRPC_Stub.getBeans(ProvaRPC_Stub.java:59)
         at ws.ProvaClientGenClient.getBeans_handler.doAfterBody(getBeans_handler.java:64)
         at jasper.getBeans_TAGLIB_jsp._jspService(_getBeans_TAGLIB_jsp.java:121)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
         at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
         at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
         at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
         at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
    Where is the problem? Will be ChildBean that extends FatherBean? Wich settings on Sun Java Studio Enterprise 6 2004Q1?
    Thank you.

    Hi,
    This forum is for Sun Java Studio Creator related questions. Could you pls post your message in the appropriate forum.
    Thank you
    Cheers :-)

  • Recently upgraded to a Canon Mark 3 and now having issues with my RAW files in Bridge and Photoshop. I am operating with CS4. Photoshop produces an error " Could not complete your request because photoshop does not recognize this type of file"

    Recently upgraded to a Canon Mark 3 and now having issues with my RAW files in Bridge and Photoshop. I have operating with CS4. Photoshop produces and error " Could not complete your request because photoshop does not recognize this type of file"

    Assuming you mean 5D Mark III, Photoshop CS4 cannot directly open raw files from your camera.
    Generally speaking, Adobe stopped updating older versions to be able to read raw files from newer cameras when they released a new major version of Photoshop. Photoshop CS4 is no longer receiving Camera Raw updates.
    You can double check this yourself:
    First you need to determine whether Adobe has released support for your new camera in your version of Photoshop. To do that, look at these two pages. You'll want to find out the earliest version of Camera Raw that can support your camera, then what version of Photoshop can run that version of Camera Raw.
    Camera Raw plug-in | Supported cameras
    Camera Raw-compatible Adobe applications
    If you find your camera is supported by your version of Photoshop, you need to download the latest update for Camera Raw. There's more information on how to do that here:
    Keeping Photoshop Up-To-Date
    If your version of Photoshop cannot support your camera, you can download and install the latest version of the free Adobe DNG Converter, which can take your raw files as input and put out DNG format files, which your version of Photoshop can open.
    Photoshop Help | Digital Negative (DNG)
    The DNG converter DOES work, but if you want maximal quality from your raw files (not to mention the convenience and ease of use of directly opening your raw files) you'll want the latest version of Photoshop. Adobe has made substantial improvements in raw conversion quality in recent years.
    -Noel

  • Strange double calculation result with JDK 1.4.2

    Hi,
    I've written a small benchmark to test the power of a Sharp Zaurus PDA. Wanting to compare it with my workstation, I ran it on the PC with JDK1.4.2 Beta and was really surprised to discover that the double calculation of Pi gave a non-correct result: Pi = 3.1413934230804443!!!
    I've tried to isolate the bug without success at the moment. It only happens when run from the Zjb program in JDK1.4.2, either from the command line or from Eclipse.
    The result is correct when run with JDK1.4.1, JDK1.4.1_01, JDK1.1.8 that are also setup on the PC. I extracted the faulty loop and executed the sniplet, but the result is OK. I added the previous lines (running the Ackerman function to test recursivity and stack management): still OK, from Eclipse and command line.
    I think the problem must be a configuration one on my computer: a 2xPII 350, Win2K SP3. Perhaps the 1.4.2 JVM is using an old library... I can't imagine that the Beta JVM would have such problem.
    Or there is a bug in the program which make the stack or the FPU registers break, but I can't find where: all other platforms I tested gave correct results.
    Could someone with a JDK1.4.2 installation test my program and post what were the results for the Pi calculation?
    The 10KB source is available on http://www.alterna.tv/zjb/Zjb.java
    Thanks.

    Yes, it was the Pentium, at the time when 100MHz was top speed...
    My CPUs are supposed not to suffer from that old disease.
    But if it were the case, new JVM can't drop software patches like this. Today, Intel started again the release of the new P4 at 3GHz, after adding a software patch for the hardware defect they had detected...
    I post the code for my small program here as my Web site is frequently down this week:
    import java.awt.BorderLayout;
    import java.awt.Button;
    import java.awt.Color;
    import java.awt.Dialog;
    import java.awt.Dimension;
    import java.awt.FlowLayout;
    import java.awt.Frame;
    import java.awt.Graphics;
    import java.awt.GridLayout;
    import java.awt.Label;
    import java.awt.List;
    import java.awt.Panel;
    import java.awt.TextField;
    import java.awt.Toolkit;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.io.BufferedInputStream;
    import java.io.BufferedOutputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.math.BigInteger;
    * Zjb: Zaurus Java Bechmark
    * @author GenePi
    class Zjb
         extends Frame
         static Zjb _mainWindow;
          * Number of benchmark runs.
         private final TextField _runs;
          * Results list
         private final List _results;
          * Wait, program is thinking...
         private final Label _wait;
          * Start button
         private final Button _start;
          * Benchmark running
         private volatile boolean _running = false;
          * Layout the main window.
         Zjb()
              super("Zaurus java benchmark 1.0");
              setLayout(new BorderLayout());
              // Input fields
              Panel top = new Panel(new GridLayout(1, 0));
              top.add(new Label("Number of runs"));
              _runs = new TextField("1");
              top.add(_runs);
              add(top, BorderLayout.NORTH);
              // Results list
              _results = new List();
              add(_results, BorderLayout.CENTER);
              // Start button
              final Panel bottom = new Panel(new FlowLayout(FlowLayout.RIGHT));
              _wait = new Label();
              bottom.add(_wait);
              _start = new Button("Start");
              _start.addActionListener(new ActionListener()
                   public void actionPerformed(final ActionEvent evt)
                        if (!_running)
                             // Clear previous results and start benchmark.
                             _results.clear();
                             _start.setLabel("Stop");
                             _wait.setText("Running...          ");
                             bottom.validate();
                             _running = true;
                        else
                             _start.setLabel("Start");
                             _wait.setText("");
                             _running = false;
              bottom.add(_start);
              // Quit button
              final Button quit = new Button("Quit");
              quit.addActionListener(new ActionListener()
                   public void actionPerformed(final ActionEvent evt)
                        System.exit(0);
              bottom.add(quit);
              add(bottom, BorderLayout.SOUTH);
              // Exit when main window closes
              addWindowListener(new WindowAdapter()
                   public void windowClosing(final WindowEvent evt)
                        System.exit(0);
              Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
              setSize(dim);
              validate();
          * The benchmarks
          * @param runs Number of runs
         private static void runBenchmarks(final int runs)
              long start;
              long end;
              long totalStart;
              long totalEnd;
              // Integer arithmetic
              start = System.currentTimeMillis();
              totalStart = start;
              int resultInt = 0;
              for (int i = 0; i < runs; i++)
                   resultInt = ackerman(3, 9);
                   // resultInt = ackerman(3, 7);
              end = System.currentTimeMillis();
              _mainWindow._results.add("Integer arithmetic: " + ((end - start) / 1000.0) + " s [Ack(3,9)=" + resultInt + "]");
              if (!_mainWindow._running)
                   return;
              // Float and double
              start = System.currentTimeMillis();
              double resultDouble = 0.0;
              for (int i = 0; i < runs; i++)
                   resultDouble = 0.0;
                   for (int j = 1; j < 1000000; j++)
                        resultDouble += 1.0 / ((double) j * (double) j);
                   System.out.println("resultDouble=" + resultDouble);
                   resultDouble = Math.sqrt(resultDouble * 6.0);
              end = System.currentTimeMillis();
              _mainWindow._results.add("Double arithmetic: " + ((end - start) / 1000.0) + " s [Pi=" + resultDouble + "]");
              if (!_mainWindow._running)
                   return;
              // Big operations
              start = System.currentTimeMillis();
              BigInteger resultBig = new BigInteger("1");
              for (int i = 0; i < runs; i++)
                   resultBig = fact(3000);
              end = System.currentTimeMillis();
              _mainWindow._results.add("Infinite arithmetic: " + ((end - start) / 1000.0) + " s [3000!=" + resultBig.toString().substring(1, 20) + "...]");
              if (!_mainWindow._running)
                   return;
              // Strings
              start = System.currentTimeMillis();
              String resultString = null;
              for (int i = 0; i < runs; i++)
                   final String alphabet = " qwertyuioplkjhgfdsazxcvbnm0789456123./*";
                   StringBuffer buf = new StringBuffer();
                   for (int j = 0; j < 100000; j++)
                        int pos = j % alphabet.length();
                        buf.append(alphabet.substring(pos, pos + 1));
                   resultString = buf.toString();
              end = System.currentTimeMillis();
              _mainWindow._results.add("Strings: " + ((end - start) / 1000.0) + " s [" + resultString.substring(1, 20) + "...]");
              if (!_mainWindow._running)
                   return;
              // Drawing
              start = System.currentTimeMillis();
              for (int i = 0; i < runs; i++)
                   final int size = 200;
                   Dialog dialog = new Dialog(_mainWindow, "Drawing...", true);
                   dialog.add(new TestPanel(dialog));
                   dialog.setSize(size, size);
                   dialog.show();
              end = System.currentTimeMillis();
              _mainWindow._results.add("Drawing: " + ((end - start) / 1000.0) + " s");
              if (!_mainWindow._running)
                   return;
              // File copy
              start = System.currentTimeMillis();
              String resultIO = "OK";
              loopIO:
              for (int i = 0; i < runs; i++)
                   final String tempName = "/tmp/Zjb.tmp";
                   try
                        BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(tempName));
                        for (int j = 0; j < 1000000; j++)
                             out.write((byte) j);
                        out.close();
                        BufferedInputStream in = new BufferedInputStream(new FileInputStream(tempName));
                        for (int j = 0; j < 1000000; j++)
                             int r = in.read();
                             if ((byte) r != (byte) j)
                                  resultIO = "Failed";
                                  System.err.println("Content mismatch at " + j);
                                  break loopIO;
                        in.close();
                        new File(tempName).delete();
                   catch(IOException ioe)
                        resultIO = "Failed";
                        System.err.println(ioe);
                        break loopIO;
              end = System.currentTimeMillis();
              _mainWindow._results.add("Files I/O: " + ((end - start) / 1000.0) + " s [1MB written/read/deleted: " + resultIO + "]");
              totalEnd = end;
              _mainWindow._results.add("");
              _mainWindow._results.add("Total: " + ((totalEnd - totalStart) / 1000.0) + " s");
          * Utility functions: Ackerman function
          * @param m
          * @param n
         private static int ackerman(final int m, final int n)
              if (m == 0)
                   return (n + 1);
              else if (n == 0)
                   return (ackerman(m - 1, 1));
              else
                   return ackerman(m - 1, ackerman(m, (n - 1)));
          * Factorial of big numbers.
          * @param n
          * @return
         private static BigInteger fact(final int n)
              final BigInteger one = new BigInteger("1");
              BigInteger num = new BigInteger("1");
              BigInteger fact = new BigInteger("1");
              for (int i = 2; i <= n; i++)
                   num = num.add(one);
                   fact = fact.multiply(num);
              return fact;
          * Benchmark entry point.
          * @param args Command line arguments
         public static void main(String[] args)
              _mainWindow = new Zjb();
              _mainWindow.show();
              synchronized (Zjb.class)
                   while (true)
                        try
                             Zjb.class.wait(500L);
                        catch (InterruptedException ie)
                             // Wake
                        if (_mainWindow._running)
                             try
                                  runBenchmarks(Integer.parseInt(_mainWindow._runs.getText()));
                             catch (NumberFormatException nfe)
                                  _mainWindow._runs.setText("1");
                                  runBenchmarks(1);
                             _mainWindow._running = false;
                             _mainWindow._start.setLabel("Start");
                             _mainWindow._wait.setText("");
    class TestPanel
         extends Panel
          * The dialog containing the panel.
         private final Dialog _dialog;
         TestPanel(final Dialog dialog)
              _dialog = dialog;
         public void paint(final Graphics g)
              Dimension dim = getSize();
              g.setColor(Color.white);
              g.fillRect(0, 0, dim.width, dim.height);
              for (int i = 0; i < 1000; i++)
                   Color color = new Color((int) (Math.random() * Integer.MAX_VALUE));
                   int x = (int) (Math.random() * dim.width);
                   int y = (int) (Math.random() * dim.height);
                   int width = (int) (Math.random() * dim.width);
                   int height = (int) (Math.random() * dim.height);
                   g.setColor(color);
                   g.fillRect(x, y, width, height);
              g.setColor(Color.white);
              g.fillRect(0, 0, dim.width, dim.height);
              for (int i = 0; i < 1000; i++)
                   Color color = new Color((int) (Math.random() * Integer.MAX_VALUE));
                   int x = (int) (Math.random() * dim.width);
                   int y = (int) (Math.random() * dim.height);
                   int width = (int) (Math.random() * dim.width);
                   int height = (int) (Math.random() * dim.height);
                   g.setColor(color);
                   g.fillOval(x, y, width, height);
              // Hide dialog when finished
              _dialog.hide();
    }

  • Java.lang.OutOfMemoryError:PermGen space error

    We haven't been able to go live with our help systems on RoboHelp Server 8 yet due to some major memory issues with Tomcat/RoboHelp Server. We've been working with Tulika on this issue, but I just wanted to check in and see if anyone else here has experienced such a thing, and if so....what did you do to fix it?
    After installing the server, having it up and running for a few months, and posting help systems to the server....it suddenly has serious memory issues that are making it crash.
    We were advised to configure the maximum and minimum heap space setings for Initial memory pool and maximum memory pool both to the following: 256, 512, 768 and 1024. 
    We are receiving the java.lang.OutOfMemoryError: PermGen space error when increasing the setting to 512.  When trying to increase the setting to 768 or 1024 Apache Tomcat uses 100% of the CPU and then stops after about a minute.  When trying to start the service back up it spikes to 100% CPU usage and then dies again. This happens continuously and makes it so the services constantly stop! If you try to hit a site that is hosted on the RH 8 Server it causes it to spike and crashes.
    Overview:
    Software being used Adobe Robohelp8 and Apache Tomcat 6.0.
    We have around 11 sites being hosted on Robohelp8.
    Server specs are 2.93GHz processor and 4G RAM.

    Hi jdcyclone1,
    You need to increase PermSpace available to your tomcat. You can do that using <tomcat-install-dir>/bin/tomcat6w.exe
    Just ensure that your “Maximum memory pool” and “XX:MaxPermSize” should not add up to more than actual memory you can make available to tomcat. The setting is as shown in this snapshot:

  • Java double

    hi reader
    am doing some exercises and wonder about calculations based upon java double. Is there any known issue regarding to faulty calculations utilizing double values ?? have attached my sample code..
    public abstract class Drink {
         String beschreibung = "Unbekanntes Getr�nk";
         int groesse = 0;
         int KLEIN      = 0;
         int NORMAL = 1;
         int GROSS      = 2;
         public String getBeschreibung(){
              return beschreibung;
         public int getGroesse(){
              return groesse;
         public void setGroesse(int groesse){
              this.groesse = groesse;
         public abstract double preis();
    public class Espresso extends Drink{
         public Espresso(){
              beschreibung = "Espresso";
         public double preis(){
              return 1.99;
    public abstract class TopicDecorator extends Drink{
         public abstract String getBeschreibung();
    public class Milk extends TopicDecorator{
         Drink getr�nk;
         int groesse = 0;
         public Milk(Drink getr�nk){
              this.getr�nk = getr�nk;
         public String getBeschreibung(){
              return getr�nk.getBeschreibung() + ", Milch";
         public int getGroesse(){
              this.groesse = getr�nk.getGroesse();
              return this.groesse;
         public double preis(){
              double preis = getr�nk.preis();
              if(getGroesse() == getr�nk.KLEIN){
                   preis += 0.15;               
              else if (getGroesse() == getr�nk.NORMAL) {
                   preis += 0.20;
              else if (getGroesse() == getr�nk.GROSS) {
                   preis += 0.25;
              return preis;     
    }whenever i test the application, the result of calculated price is not correct.

    result returned should look like 2.xx �
    but result is 2.xxxxxxxxx �
    test app:
    public class TestFrame {
         public static void main(String[] args) {
              Drink drink1 = new Espresso();
              System.out.println(drink1.getBeschreibung() + " " + drink1.preis() + " �");
              Drink drink2 = new HouseLabel();
              drink2.setGroesse(drink2.GROSS);
              drink2 = new Chocolate(drink2);
              drink2 = new Chocolate(drink2);
              drink2 = new Milk(drink2);
              System.out.println(drink2.getBeschreibung() + " " + drink2.preis() + " �");
    Message was edited by:
    digit-x

  • My iphone 4 when you upgrade the firmware on ios7.0.2 produced an error 3194

    my iphone 4 when you upgrade the firmware on ios7.0.2 produced an error 3194 ... now my phone is not working ... every time an error 3194 ... I can not update ios and drop naturally I do not Pogue. hosts cleaned, cut off the antivirus ... did everything I recommend in this case ((what do I do? (
    on other machines the same ...

    Some additional suggestions here that may help if you haven't tried them:
    http://support.apple.com/kb/ts4451
    Regards.

  • Good day. as I can do to update my iphone 4 to the latest version of ios 5. whenever you connect to the pc and try to update the waiting time is very long, sometimes up to 12 hours and despite the wait always produce an error message for a long time waiti

    good day. as I can do to update my iphone 4 to the latest version of ios 5. whenever you connect to the pc and try to update the waiting time is very long, sometimes up to 12 hours and despite the wait always produce an error message for a long time waiting

    Disable ALL security software (firewall, antivirus/spyware, etc.) running on your PC while updating.

  • The time characteristic consistency check has produced an error     DBMAN     62

    Hi
    We are getting an error while updating to one target as The time characteristic consistency check has produced an error""
    * Checked the respective PSA data field  which is fine. Dates are in correct format.
    * RSRV ran for the particular target. It had error but the jobs were successful till yesterday.
    * Data from 01.05.2014 is having the problem ( Which I got from the record number in PSA )
    NB: We are running on HANA database but the respective target is not yet HANA Optimised
    Details Figures Attached
    Any Idea.. What could  have gone wrong
    Regards
    Reshoi R

    Hi
    Record Number 2995 is shown in the figures attached.
    I have already carried out the deletion and automatic repair mentioned in RSCV061 even before posting this question but of no use ( I have shown that also in the figures attached at the posting time.
    Reporting is fine. The problem is while loading the data to the cube. The loading is fine till date 30.04.2014 but from the date 01.05.2014. The record is error while updating.
    The cube is partitioned from month 01.2008 to 12.2015.
    Regards
    Reshoi R

  • Java.rmi.ServerException: Internal Server Error (deserialization error: XML

    I am trying to transmit a document as a byte array to a web service using jax-rpc, and I get the following error:
    2004-05-25 08:04:39,468 exception [Thread-5] - [email protected]33fd java.rmi.ServerException: Internal Server Error (deserialization error: XML parsing error: com.sun.xml.rpc.sp.ParseException:58: Expected "</ns0:receivexmldocument>" to terminate element starting on line 2)
         at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:370)
         at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:231)
         at com.mobius.cmsl.client.contentindexlistener.ContentWebServiceListenerIF_Stub.receivexmldocument(ContentWebServiceListenerIF_Stub.java:63)
         at com.mobius.cmsl.adapters.convera.client.ContentWebServiceClient.sendxml(ContentWebServiceClient.java:89)
         at com.mobius.cmsl.adapters.convera.client.ContentInterceptor.doGet(ContentInterceptor.java:89)
         at com.mobius.cmsl.adapters.convera.client.ContentInterceptor.doPost(ContentInterceptor.java:110)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:536)
    The code looks like:
    Client:
    clientStub = (ContentWebServiceListenerIF_Stub)new ContentIndexService_Impl().
    getContentWebServiceListenerIFPort();
    clientStub._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, endPoint);
    obj = clientStub.receivexmldocument(cd.externalLink.contents,inxml);
    Web Service:
    public String receivexmldocument(byte docstream[],
    String inxml
    ) throws RemoteException {
    The wsdl looks like:
    <message name="ContentWebServiceListenerIF_receivexmldocument">
    <part name="arrayOfbyte_1" type="xsd:base64Binary"/>
    <part name="String_2" type="xsd:string"/></message>
    <operation name="receivexmldocument" parameterOrder="arrayOfbyte_1 String_2">
    <input message="tns:ContentWebServiceListenerIF_receivexmldocument"/>
    <output message="tns:ContentWebServiceListenerIF_receivexmldocumentResponse"/></operation>
    The documents I am sending do contain special characters like maybe japanese or italian.

    Sounds like the xml you are sending is not well-formed. Please start with simple xml documents to see if it works.

  • Which version doesn't produce this error: "there was an error opening this document. the file is damanged and could not be repaired"?

    This error message occasionally occurs with Acrobat 5 on XP 2.  However the same files can be opened with Acrobat 6.0.4 on Win98(se2).
         "There was an error opening this document. the file is damanged and could not be repaired."
    I'd like ot upgrade 5 on my XP system, but have read many posts complaining about the same error with newer versions.
    Is there a version that never produces this error on files that aren't actually damaged? And has anyone figured out what produces this error? (The posts I've seen suggest solutions that don't seem to work.)
    Thanks.
    Ellen

    Thanks, Prasanth.
    I've read posts about this problem happening on all versions, and wanted to see if it was least likely to happen in one version.
    I just need the basic function - the ability to read a pdf file.
    Of course, it seems to be a problem only for some, and there's no way of knowing the extent, so I will try an upgrade or two.
    Ellen

  • HT201210 iTunes update 11.1.4 produces an error message R6034 "An applicaton has made an attempt to load the C runtime library incorrectly" When that error is acknowledged, a second windows error 1114 "error 7" displays "iTunes was not installed correctly

    iTunes update 11.1.4 produces an error message R6034 "An applicaton has made an attempt to load the C runtime library incorrectly" When that error is acknowledged, a second windows error 1114 "error 7" displays "iTunes was not installed correctly".  I also tried to downloadiTunes 11.1.4 at th Apple website and that did not work either-It stalled with an erro message that stated the "mobile service" would  not open HELP!

    Hi Doug! I was having the same problem but after reading a lot of answers I found the solution. First of all you need unistall ALL THE SOFTWARE OF APPLE from your computer, I mean BONJOUR, QUICKTIME, ITUNES, APPLE SOFTWARE UPDATE, APPLE MOBILE DEVICE SUPPORT and the other one that is from compatibility with apps of apple, after that you must verify if this folders are removed if they don't then remove it:
    C:\Program Files\Bonjour
    C:\Program Files\Common Files\Apple\
    C:\Program Files\iTunes\
    C:\Program Files\iPod\ 
    If you have a 64-bit version of Windows, you'll need to confirm that the following folders have been removed: 
    C:\Program Files (x86)\Bonjour
    C:\Program Files (x86)\Common Files\Apple\
    C:\Program Files (x86)\iTunes\
    C:\Program Files (x86)\iPod\
    Then if you have ccleaner you can use it to clean all registers left, then reboot and try to install iTunes 11.1.4 again as administrator... That works for me, I hope that helps you too...

  • Double Float Margin Bug "error"

    I did a browser compatibility check on one of the pages that
    I am building and got this error.............
    "Line 112, Double Float Margin Bug 'error'
    When a margin is applied to a floated box on the same side as
    the direction of the float, the margin is doubled. This bug only
    affects the first float in a row of one or more floats.
    Affects: Internet Explorer 6.0
    Likelihood: Very Likely"
    I have many thumbnails for a gallery page in their own divs,
    within the content div, and they are floated in there.
    When I viewed solutions, they suggested:
    "When a margin is applied to a floated box on the same side
    as the direction the box is floated AND the floated box is the
    first one inside its containing box, the margin is doubled. (In
    other words, a left-floated box with margin-left set to move it
    away from its containing box will be twice as far away from the
    left edge of the containing box as intended.)
    SOLUTION
    Specify display: inline; for the affected float.
    DETAILED DESCRIPTION
    This bug only reproduces when the floated element's margin
    extends in the same direction as the float itself, and is between
    the float and the container box's inside edge. Subsequent floats
    with similar margins won't reproduce this bug- just the first float
    in any row of floated elements."
    Does anyone have any solutions, suggestions as how to fix
    this? I will attach my code. And if anyone has a better solution as
    to laying my thumbnail divs in another div container, please say
    so. The reason I am putting them in separate divs is because that
    is what someone suggested to use them with Lightbox2. He said they
    needed some kind of special CSS to enable some of the functions and
    they (the thumbnails) were easier to style if they were in their
    own separate divs. I'm open for any suggestions.
    Thanks!

    Just add "display:inline" to the styling like this:
    .image {
    background-color: #121922;
    height: 100px;
    width: 100px;
    float: left;
    margin: 20px;
    display: inline;
    }

  • Java.lag out of memory error

    my x2 cannot work with the pdf reader i downloaded from nokia store as there is java.lag out of memory error what should i do

    it is common in most s40 phones.....even my C3 does thesame

Maybe you are looking for

  • What is best practice for using Maintenance Optimizer to download SPS + EhP

    SAP indicates in note 1095233 and many other documents that the best practice is to implement an EhP along with an SP Stack in the same queue. Furthermore, the only way to download the components of an EhP is via Maintenance Optimizer. However, in st

  • How can i signout from icloud in my iphone without starting my phone?

    ..

  • Ibm MP4, divx, jmf 2.1.1e

    Hello. I've tested the above configuration to play a standard divx. i had problems, of course, and nothing finally works. Using jmf studio on XP, i get a pink background, and finally the program refuses to exit. In software mode (no acceleration sele

  • The search function on iPhone 4S hardly ever works

    From the home page, when I flick left to get to the search page, this feature almost never works.  I usually have to turn the phone off, back on again, and then I get to do ONE or TWO searches before it stops working again.  Since this appears to be

  • Sending FCP Segment to Shake

    Seen a bunch of info searching google, but no solution. Here is what I have. Warning, im a Star Wars dork, so im working on a fan film, actualy just some test footage to see how much of a pain this is going to be. So I have 11 mins of DV footage, cut