Error "Data receive failed [Read timed out]" while trying to see the results from an algorithm

Hello all,
I finally got my PA running almost perfectly with HANA online mode.
I tried to execute Apriori at a sample from my data, and then visualize the results. But after more then 2 hours waitting it to open, it gave me this error:
Does anyone knows what it means?
I have already changed the time out for 3000 (it was 300 originally).
I thing it's pretty strange because I filtered to analyse only something about 200 thousand lines!
Can anyone help me with that?
Regards and thanks

There is far too much whitespace in that code.
Anyways, some comments.
void act(BufferedReader src,String line) throws IOException // counting characters
   char[] arrayOfChars = line.toCharArray();
   for ( int i=0; i<(line.toCharArray().length);i++ ) { // length of the line
   ...Why are you calling toCharArray again? You already have a reference to the array.
   for ( int a=0; a<=freqsorted.length; a++){
      temp = new int[(freqsorted.length)+1];
      if(freqsorted[a]<freqsorted[a+1]){
         temp[a]=freqsorted[a];
         freqsorted[a]=freqsorted[a+1];
         freqsorted[a+1]=temp[a];
      System.out.println(freqsorted[a]);
   }Array indices go from 0 to array.length - 1. Your indices go from 0 to length + 1, where are you expecting to get those 2 extra elements from?

Similar Messages

  • Error while trying to visualize the results from algorithms (connect with Rserver)

    Hello all, I'm trying to execute Apriori to create a relation purchase between products.
    I execute the algorithm and it work perfectly, but when I change the view to change the results, it appears the following error:
    Does anyone knows what might be happening?
    Regards

    Hi Jugren,
    Good to know you were finally able to run the algorithm .
    Regarding the error that you are getting, I too got a similar one and I followed the steps below.
    You need to maintain some parameters in the file indexserver.ini and xsengine.ini if using XSJS
    Maintain the below parameters:
    cer_timeout default is 300 seconds. Increase it to some 3000 secs.  This parameter is particular important, since it defines the maximal run time allowed for a single R function execution.
    cer_rserve_addresses Has to be set as follows "host1:port1" where host and port are the places where your R-Serve is installed
         ○ 
    cer_rserve_maxsendsize: maximum size of a result transferred from R to SAP HANA (in Kbytes). Make sure its 0 (no limit)
    It should work for you as well.

  • My itunes 10.5 says my "connection has timed out" while trying to download the iOS5 update

    i just downloaded the new itunes update and am trying to update my iphone 4g with th iOS 5 software. the software gets over halfway done and "times out" how can i fix this?

    re-download it... Apple server too busy

  • Read of HTTP Request POST parameters failed:Read timed out

    Hi !
    Any one seen this exception . any ideas of the cause?
    java.lang.RuntimeException: Read of HTTP Request POST parameters failed: Read timed out
    at org.apache.catalina.connector.HttpRequestBase.parseParameters(HttpRequestBase.j ava:665)
    at org.apache.catalina.connector.HttpRequestBase.getParameterValues(HttpRequestBase.java :737)
    at org.apache.catalina.connector.RequestFacade.getParameterValues(RequestFacade.java:170 )
    Thanks,

    Assuming there is nothing wrong with
    org.apache.catalina.connector.HttpRequestBase.parseParameters
    I can only think of 2 things:
    1. The timeout is set for an extremely short time in the Apache settings (server.xml&#51032;)
    2. The client application is sending the POST verry slow or incorrect. For example the
    client says that the POST is 500 long than sends 200 and leaves the connection open.
    You can try and post the following:
    request.txt:
    POST /somePath/somefile.js HTTP/1.1
    Host: localhost:44
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041217
    Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Connection: keep-alive
    Content-Type: application/x-www-form-urlencoded
    Content-Length: 45
    depreciatedButWontPostWithoutAName=some+valueThe client sending the request:
    import java.io.*;
    import java.net.*;
    import java.io.DataOutputStream;
    import java.applet.Applet;
    public class appTest extends Applet implements Runnable {
         public static final int HTTP_PORT = 80;
         public static final String hostName = "localhost";
         public void run() {
              try{
                   InetAddress addr = InetAddress.getByName(hostName);
                   Socket s = new Socket(addr,HTTP_PORT);
                   BufferedWriter wr = new BufferedWriter(new OutputStreamWriter(s.getOutputStream(), "UTF8"));
                   s.setSoTimeout(2000);
                   File fileToSend = new File("request.txt");
                   FileInputStream fleHTML = new FileInputStream(fileToSend);
                   StringBuffer sbHTMFile = new StringBuffer();
                   int b = fleHTML.read();
                   while(b!=-1){
                        sbHTMFile.append((char) b);
                        b = fleHTML.read();
                   wr.write(sbHTMFile.toString());
                   wr.flush();
                   BufferedReader rd = new BufferedReader(new InputStreamReader(s.getInputStream()));
                   String line;
                   while ((line = rd.readLine()) != null) {
                        System.out.println(line);
                   wr.close();
                   rd.close();
                   } catch (Exception e) {
                        e.printStackTrace();
         public void init(){
              new Thread(this).start();
         public appTest(){
              new Thread(this).start();
         // main program
         public static void main(String argv[]) throws Exception {
              new appTest();
    }In appTest.java change HTTP_PORT to the port you need and hostName to the
    hostname you need.
    In request.txt change the /somePath/somefile.js to the location you desire.
    And change Host: localhost:44 to the hostname and post you desire.

  • I am getting an error message that my network connection has timed out. while trying to update my iPhone on iTunes. Has anyone found a solution? I was given some advice about turning off my firewall and/or virus protection but am nervous about doing that.

    I get a message that my network connection has timed out while trying to update my iPhone on iTunes. Has anyone else had that problem and if so what solutions have you found? I was told to turn off my firewall and/or virus protection while updating but am nervous about doing that for obvious reasons. I'm also disgusted with Apple not providing free tech support.

    See this article about the ports that have to be open during the update process. iTunes has to contact Apple during the download. iTunes for Windows: Troubleshooting security software issues

  • Getting session has timed out while trying to redeem a gift card. have had no problem in the past.  am running a g4 since 2002 with os 10.4 and itunes 9. have no internet problems and can connect to store ok. so far apple no help keeps blaming it on othrs

    am having trouble for the first time trying to redeem a gift card. Everything same on computer, OS, and internet connection. have been able to redeem other cards. this time am getting "SESSION HAS TIMED OUT" while trying to redeem card. have contacted apple and checked out all their suggestion iE:( must be your connection. typed in code wrong, too old version of itunes, etc) anything but why would a gift card code bee tied to a specific vetrsion of ITUNES. Rediculous!! there has to be others out there that have an older version if itune than i have. has anyone ever had the error "SESSION HAS TIMED OUT" and if so was it corrected?? any information other than apples {change password and give us lots of personal info they probably have) would be appreciated..

    Hello,
    As far as I can see, that Verizon Jet Pack wireless Modem uses WPA2 to connect.
    The Router might complicate things right now.
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    Is that Interface dragged to the top of Network>Show:>Network Port Configurations and checked ON?
    The Interface that connects to the Internet, needs to be drug to the top of System Preferences>Network>Show:>Network Port Configurations and checked ON.
    If using Wifi/Airport...
    Instead of joining your Network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed.

  • ITunes store keeps saying that my session has timed out when trying to buy a product from the store

    I Tunes is telling me that my session has timed out when trying to buy a gift voucher, which i have done many times before.
    The most recent change i'v made to my computer before this happened was to download an update (MacOSX updatecombo 10.7.3dmg)
    a couple of weeks ago. I'v turned off the firewall as suggested whilst trying to transact and turned it back on again, but don't know
    what else to try. The problem is three days old as i left and came back to it to see if there might be a glitch in the system.
    I'v been able to access the credit i have in the store, but not buy the itunes voucher to email to my own a/c. Please help someone if you can
    Sandystone.

    Thanks for your suggestion Ned01, I tried this as a last ditch attempt, unfortunatly it made no difference in my case, but i'm pleased it did for you. However, because you reminded me to have another go at this problem, i tried something else (which i'd unsucsessfuly tried before), that is, i deleted the 'CLICK & SAVE " a/c i'd set up recently,  and reverted to my previous payment me and would you know it , this time it worked !! I set up a trail purchase and it worked.
    It seems to me that other poeple with this problem have to solve it by trail and error, but thank you for your help.Sandystone..

  • Error while trying to delete the universe from CMS

    Dear All,
    I am getting "Unable to reconnect to the CMS XXXXXXXXX. The session has been logged off or has expired" error while trying to delete any universe from the CMS. I tried restarting tomcat but it didnt work. I am unable to delete any universe from CMS. We have BO XI R2 SP2 environment on Windows 2003 Server.
    regards,
    Umair

    SAP NOTE - 1199539 gives a possible solution to this problem:
    When attempting to delete or migrate a universe, the following error message appears:
    "Unable to reconnect to the CMS BUSOBJDV.ACSAD.NCSU.EDU. The session has been logged off or has expired."
    Environment
    BusinessObjects Enterprise Premium XI Release 2 SP1 CHF15
    JDK version 1.4.2_08
    Tomcat version is the same as that shipped with the product
    Cause
    The universes and connection pages are special (AFAIK) compared to the other pages because they are pure JSP, while most of the other Central Management Console (CMC) pages still go though the CMC and use COM/C++ code unaffected by the Java Virtual Machine (JVM). If the JVM has not been updated against Eastern Daylight Savings Time (EDST), it may calculate the incorrect time locally, and problems may occur with token expiry or validation.
    Resolution
    Update the Tomcat JDK to JDK 1.5.0_11 for EDST:
    1. Go to the Microsoft web site and verify if you have the time zone update installed.
    2. Download JDK 1.5.0_11.
    3. Install JDK 1.5.0_11 on your server.
    4. Modify the JAVA_HOME here:
    C:\Program Files\Business Objects\Tomcat\bin\setenv.bat
    as follows:
    set JAVA_HOME=C: \Program Files\Java\jdk1.5.0_11\jre
    5. In Java Virtual Machine and Java Class Path, modify JAVA properties for Tomcat (Start > Programs > Tomcat > Tomcat Configuration > Java). Replace the default Business Objects JDK 1.4 directory:
    C:\Program Files\Business Objects\j2sdk1.4.2_08
    with JDK 1.5.0_11:
    C:\Program Files\Java\jdk1.5.0_11
    6. Go to Windows Time Zone (double-click Windows time) then on the Time Zone tab, select the automatically adjust clock for day light saving changes check box against EST time zone.
    7. Restart Tomcat and the Central Management Server (CMS) and, if possible, reboot your computer.
    Hope this works anyone facing this problem on Windows servers.
    Not sure what the solution is for BO instances running on Solaris. We have business objects/Weblogic running on a solaris server. I tried just changing java home to jdk1.5.0_12 but this didn't work.

  • Apple ID keeps timing out while trying to sign in after updating to iOS5

    I updated my iPhone 4 to iOS5 and now while trying to sign in using my apple ID (on the phone) I keep getting an error message saying "Could Not Sign In : The request timed out."

    Same thing is happening here, I can't get past the startup wizard, I had to skip the step - I don't know whether that will screw up my setup or not.

  • Why does muse keep timing out while trying to publish

    Heres the site signvisions.com
    Just made an .oam file for an html5 intro,
    but software is bogging down and timing out
    telling me i need to verify my account, then tells me my comp is offline and to connect to the internet,
    i have intertnet, im sending this post. The file isnt huge.. Any solutions? Assests panel doesnt show any unsampled alerts

    Are you publishing to adobe business catalyst, or using the Muse FTP upload to another host, or some other software to upload?

  • My computer keeps saying "network connection has timed out" while trying to update what do i do, my computer keeps saying "network connection has timed out" while trying to update what do i do

    my computer keeps saying "network connection timed out" when my update to IOS5 is almost finished. Do I need to do something else? can you give me the steps of how to update

    If you also disabled the firewall. try the Manual Install in the following:
    iDevice Troubleshooting 101 :: iPhone, iPad, iPod touch

  • Read timed out while uploading file via CAF webservice

    Hi there,
    I am trying to upload an xml file from a Web Dynpro application via webservice.
    Web Dynpro:
    public void importFile( )  {
        //@@begin importFile()
           try {
                   wdContext.currentImportFileElement().setFileName(wdContext.currentContextElement().getFileUploadUI().getResourceName());               
                     wdContext.currentImportFileElement().setFileBase64Binary(getByteArrayFromResource(wdContext.currentContextElement().getFileUploadUI()));                 
                   wdContext.currentRequest_ImportFileElement().modelObject().execute();
                   msgMgr.reportSuccess(wdContext.currentImportFileResponseElement().getMessage());          
                } catch (FileNotFoundException e) {
                   e.printStackTrace();
                   msgMgr.reportException(e.getLocalizedMessage());
                } catch (IOException e) {
                   e.printStackTrace();
                   msgMgr.reportException(e.getLocalizedMessage());
                } catch (WDWSModelExecuteException e) {
                   e.printStackTrace();
                   msgMgr.reportException(e.getLocalizedMessage());
        //@@end
    getByteArrayFromResource:
    private byte[] getByteArrayFromResource(IWDResource resource)
    throws FileNotFoundException, IOException {
    InputStream in = resource.read(false);
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    int length;
    byte[] part = new byte[10 * 1024];
    while ((length = in.read(part)) != -1) {
    out.write(part, 0, length);
    in.close();
    return out.toByteArray();
    in CAF:
    InputStream is = toInputStream(fileBase64Binary);
    private InputStream toInputStream(byte[] fileBase64Binary) {               
              InputStream is = null;          
              try {               
                   ByteArrayInputStream bais = new ByteArrayInputStream(fileBase64Binary);     
                   is = bais;               
              } catch (Exception e) {
                   e.printStackTrace();
              return is;
    Anybody could help me with this issue? Is there a better way to upload the file (about 4-10MB) via a webservice? Special settings for the webservice?
    Regards

    I dont use IBM's ftp library, but I do know networking.
    It seems either IBM got the protocol wrong (not going to happen) or (more likely) the socket being used has timedout due to inactivity (no input to read), that means a few things.
    1. Are you calling the methods in the correct sequence?
    If you have a protocol that needs you to login first, then send files and you just send the file first, this
    will cause an error.
    2. Sockets have java.net.SocketOptions associated with them: Check the socket settings for SO_LINGER, SO_TIMEOUT.
    If you set the SO_TIMEOUT to 0, you will have an idefinite socket connection (persistent connection). But, remember if the server has nothing to send, their simply is nothing to send
    and so you should NOT being trying to read an empty input stream.
    3. Closing: Are you closing the connection/streams anywhere other than where it should be done.
    Hint: Closing a connection is the last thing to do.
    Happy hunting, and remember Duke Dollars to me is like an answered question to you.

  • Trying to play a video on CNN for my school class. Warning message recieved; Vidoe has timed out while trying to play. Please be sure to check that plug ins are not blocking java or flash player.

    I can play videos but not the ones I need for my classroom. I cannot get them to play even though I unblocked everything java and everything flash player I could find. I would love a solution to this problem asap! Thank you very much.

    I FIXED IT!
    FYI for the rest of you that might be having the same problem. DON'T USE A BELKIN ROUTER WITH AOL ON A MBP!!!!! It ***** wirelessly. or even hard connected, it won't connect. I went to best buy today, and got a refund on the belkin. I then went to J&R and got a D-Link router. And now it works perfect. I can now chat on AOL yet again, and I tried all the other web browsers I have and messengers, and warcraft 3 online via battlenet. And it works great. I want to give you guys a special thanks for taking time out to answer back to my post. FYI! Belkin wireless G routers do not connect you to AOL wirelessly on MBP's. No matter how much you mess around on them. I highly recommend a D-Link Router. They are easy to set up as long as you READ ( AND I MEAN IT!!!) read the instructions before you set anything up on it. Use the CD that it comes with, and you'll be good to go. Set it up and it works great Almost no dead zones in the house, and now I can use the MBP with all it's cababilities. Thanks people. I really appreciate it.
    P.S. I called belkin last night when i decided to get a refund on my router for today and when i talked to the tech, after puersuading him to tell me the truth. And stop BS'ing me, he broke down and admited that AOL does not work wirelessly on MBP's. So to make a long story short this time, There you go. And one last note, I'm very happy now with my d-link router. I honestly thought it would suck. Not being a brand name router or anything. But amazingly, it works like a brand name item! Again, many thanks all.
    Bruce

  • Error while trying to run the SimpleQueueSender  from the JMS tutorial

    I have j2sdkee1.3 and j2sdk1.4.2_16. While running the program SimpleQueueSender from the the JMS tutorials,
    I am getting this error.
    Queue name is MyQueue
    JNDI API lookup failed: javax.naming.CommunicationException: java.rmi.MarshalExc
    eption: CORBA MARSHAL 1398079699 Maybe; nested exception is:
    org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge : Mis
    matched serialization UIDs : Source (Rep. IDRMI:com.sun.enterprise.jms.Connectio
    nFactoryWrapperStandalone:98F786F596CFC210:25708D070B9BE261) = 25708D070B9BE261
    whereas Target (Rep. ID RMI:com.sun.enterprise.jms.ConnectionFactoryWrapperStand
    alone:98F786F596CFC210:9AF5BC4828398A2D) = 9AF5BC4828398A2D vmcid: SUN minor c
    ode: 211 completed: Maybe
    at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.mapSystemExceptio
    n(ShutdownUtilDelegate.java:100)
    Please help.

    Looks like classpath problem.
    Please punch in more details,

  • HT1688 my iphone keeps timing out when trying to access the app store

    once I get to the app store, it just keeps saying "loading..." how do I fix this??

    All apps are tied to the Apple ID they are purchased with and is not transferable.
    You should delete them and re-download them with your new Apple ID.

Maybe you are looking for

  • Problem using standard libraries in C++ class

    Hi I am new to JNI. I am having problems using standard C++ library. My java code looks like public class JavaSide { public native void sayHello(); static { System.loadLibrary("NativeSideImpl"); public static void main(String[] args) { JavaSide app =

  • View full file names of mail attachment titles in MAIL application (Apple)

    I often get many attachments sent to me and when I am looking through emails for some reason all attachments show up as an ICON with a shortened version of the name of the file. It is always just the first 10 or so characters of the title and the las

  • Apps crash after I launch them

    I get this one alot I tap an app to launch it, it starts to open. sometimes makes to main screen but then dumps me out to springboard for example, i launch weatherbug and it crashes i launch it 3 more times, 3 rd time it remains open i launch we rule

  • DSL connection gets slower than dial up at night

    For the last week my DSL connection has been getting really slow in the late afternoon and evening. It is fine in the morning. Also in the evening I have started getting error messages such as Request Timeout, The connection was reset while the page

  • IPhone videos are syncing incorrectly.

    Okay, so I just had a problem even opening the Videos app on my iPhone, but now that I've gotten that resolved, my iPhone still will not cooperate with me. I've downloaded several music videos for easy access, and labeled them as TV Shows. I have the