Connection reset when uploading a report to ras server.

Hi,
We're running the jboss app in the linux box and use the java sdk to extract the crystal report with the ras on the remote window box. We got the below exception when extracting one of the crystal report. Any idea what's going on?
The trace log is also attached below.
Thanks,
Min
com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Unable to connect to the server: . - Connection reset-- Error code:-2147217387 Error code name:connectServer
at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.TCPIPCommunicationAdapter.request(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.y.a(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.if(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.do(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(Unknown Source)
crystalras_xxx_ras.log
TraceLog 2009  5  6 16:24:40.256 5892 5872 (.\dts\dts.cpp:961): CreateAgent: creating agent=8
TraceLog 2009  5  6 16:24:40.256 5892 5216 (\servers\ras\dtsagent\cdtsagent.cpp:2463): doOneRequest saRequestId_verifyLogon in
TraceLog 2009  5  6 16:24:40.865 5892 5216 (\servers\ras\dtsagent\cdtsagent.cpp:2465): doOneRequest saRequestId_verifyLogon out [NoError]
TraceLog 2009  5  6 16:24:40.865 5892 5872 (.\dts\dts.cpp:1000): RemoveKey: removing agent=8
TraceLog 2009  5  6 16:24:40.912 5892 5872 (.\dts\dts.cpp:961): CreateAgent: creating agent=9
TraceLog 2009  5  6 16:24:40.912 5892 3152 (.\dts\cdtsagent.cpp:717): doOneRequest caReservedRequestId_CreateServerAgent in
TraceLog 2009  5  6 16:24:40.928 5892 3152 (.\dts\cdtsagent.cpp:744): doOneRequest caReservedRequestId_CreateServerAgent out [NoError]
TraceLog 2009  5  6 16:24:43.319 5892 3152 (.\dts\cdtsagent.cpp:749): doOneRequest caReservedRequestId_CloseServerAgent in
TraceLog 2009  5  6 16:24:43.334 5892 3152 (.\dts\cdtsagent.cpp:757): doOneRequest caReservedRequestId_CloseServerAgent out [NoError]
TraceLog 2009  5  6 16:24:43.334 5892 5872 (.\dts\dts.cpp:1000): RemoveKey: removing agent=9
crystalras_xxx.log
Timestamp     ProcessID     ThreadID     Message
[Wed May 06 23:24:40 2009]     5892     5872     (.\dts\dts.cpp:1793): trace message:
TraceLog 2009  5  6 16:24:40.256 5892 5872 (.\dts\dts.cpp:961): CreateAgent: creating agent=8
[Wed May 06 23:24:40 2009]     5892     5216     trace message: XmlSerializer: before creating object
[Wed May 06 23:24:40 2009]     5892     5216     trace message: XmlSerializer: after creating object
[Wed May 06 23:24:40 2009]     5892     5216     (.\dts\dts.cpp:1793): trace message:
TraceLog 2009  5  6 16:24:40.256 5892 5216 (\servers\ras\dtsagent\cdtsagent.cpp:2463): doOneRequest saRequestId_verifyLogon in
[Wed May 06 23:24:40 2009]     5892     5216     (.\comexports.cpp:25): trace message: DllGetClassObject called.
[Wed May 06 23:24:40 2009]     5892     5216     (y:\servers\ras\rasauditing\classfactory.h:43): trace message: Getting instance of class factory.
[Wed May 06 23:24:40 2009]     5892     5216     (y:\servers\ras\rasauditing\classfactory.h:56): trace message: Got instance of class factory.
[Wed May 06 23:24:40 2009]     5892     5216     (y:\servers\ras\rasauditing\classfactory.h:115): trace message: Class factory QueryInterface called.
[Wed May 06 23:24:40 2009]     5892     5216     (y:\servers\ras\rasauditing\classfactory.h:99): trace message: Class factory addref'ed.
[Wed May 06 23:24:40 2009]     5892     5216     (y:\servers\ras\rasauditing\classfactory.h:131): trace message: Class factory QI succeeded..
[Wed May 06 23:24:40 2009]     5892     5216     (y:\servers\ras\rasauditing\classfactory.h:154): trace message: Attempting to create instance of COM component...
[Wed May 06 23:24:40 2009]     5892     5216     (y:\servers\ras\rasauditing\classfactory.h:178): trace message: Successfully created COM object.
[Wed May 06 23:24:40 2009]     5892     5216     (y:\servers\ras\rasauditing\classfactory.h:107): trace message: Class factory released.
[Wed May 06 23:24:40 2009]     5892     5216     (.\infosessionmgr.cpp:1896): trace message: GetApslist: apsList size: 1
[Wed May 06 23:24:40 2009]     5892     5216     (.\infosessionmgr.cpp:1897): trace message: GetApsListm_Members.GetCount()==1
[Wed May 06 23:24:40 2009]     5892     5216     (.\infosessionmgr.cpp:1898): trace message: GetApsList m_InactiveMembers.GetSize()==0
[Wed May 06 23:24:40 2009]     5892     5216     (.\infostore.cpp:265): trace message: CInfoStore::Query: SELECT SI_SERVER_NAME,SI_CLUSTER_NAME,SI_SERVER_IS_ALIVE,SI_SERVER_IOR,SI_SYSTEM_INFO FROM CI_SYSTEMOBJS WHERE (SI_PARENTID = 16 AND SI_SERVER_KIND = 'aps') OR SI_ID = 4
[Wed May 06 23:24:40 2009]     5892     5216     trace message: CInfoStore::QueryEx() returned 2 objects with more to come? 0
[Wed May 06 23:24:40 2009]     5892     5216     trace message: CInfoSessionManager::GetApsListFromNS: APS MIN.SYMYVR.LOCAL is alive.  Adding to active members
[Wed May 06 23:24:40 2009]     5892     5216     trace message: CInfoSessionManager::ClusterInfo::UpdateRegistry: Updating min.symyvr.local; to registry
[Wed May 06 23:24:40 2009]     5892     5216     (.\infosessionmgr.cpp:1896): trace message: GetApslist: apsList size: 1
[Wed May 06 23:24:40 2009]     5892     5216     (.\infosessionmgr.cpp:1897): trace message: GetApsListm_Members.GetCount()==1
[Wed May 06 23:24:40 2009]     5892     5216     (.\infosessionmgr.cpp:1898): trace message: GetApsList m_InactiveMembers.GetSize()==0
[Wed May 06 23:24:40 2009]     5892     5216     (.\infosessionmgr.cpp:1896): trace message: GetApslist: apsList size: 1
[Wed May 06 23:24:40 2009]     5892     5216     (.\infosessionmgr.cpp:1897): trace message: GetApsListm_Members.GetCount()==1
[Wed May 06 23:24:40 2009]     5892     5216     (.\infosessionmgr.cpp:1898): trace message: GetApsList m_InactiveMembers.GetSize()==0
[Wed May 06 23:24:40 2009]     5892     5216     trace message: Executing query SELECT SI_PRODUCT_VERSION FROM CI_SYSTEMOBJECTS WHERE SI_PARENTID = 26 AND SI_NAME = 'secEnterprise' to get auth properties
[Wed May 06 23:24:40 2009]     5892     5216     (.\infostore.cpp:265): trace message: CInfoStore::Query: SELECT SI_PRODUCT_VERSION FROM CI_SYSTEMOBJECTS WHERE SI_PARENTID = 26 AND SI_NAME = 'secEnterprise'
[Wed May 06 23:24:40 2009]     5892     5216     trace message: CInfoStore::QueryEx() returned 1 objects with more to come? 0
[Wed May 06 23:24:40 2009]     5892     5216     trace message: ClientPing_impl::add_session_handle: session handle (23793J9ujwvkFe3QPWTsv) added
[Wed May 06 23:24:40 2009]     5892     5216     (.\infosessionmgr.cpp:690): trace message: User: guest logged on
[Wed May 06 23:24:40 2009]     5892     5216     trace message: ClientPing_impl::remove_session_handle: remove session handle (23793J9ujwvkFe3QPWTsv). succeded=true
[Wed May 06 23:24:40 2009]     5892     5216     (.\proxy_impl.cpp:436): trace message: LOGOFF implicit session logoff: userId[11], m_uri[osca:iiop://MIN.SYMYVR.LOCAL/SI_SESSIONID=23793J9ujwvkFe3QPWTsv], sessionId[23793], m_sSessionHandle[23793J9ujwvkFe3QPWTsv]
[Wed May 06 23:24:40 2009]     5892     5216     (.\dts\dts.cpp:1793): trace message:
TraceLog 2009  5  6 16:24:40.865 5892 5216 (\servers\ras\dtsagent\cdtsagent.cpp:2465): doOneRequest saRequestId_verifyLogon out [NoError]
[Wed May 06 23:24:40 2009]     5892     5872     (.\dts\dts.cpp:1793): trace message:
TraceLog 2009  5  6 16:24:40.865 5892 5872 (.\dts\dts.cpp:1000): RemoveKey: removing agent=8
[Wed May 06 23:24:40 2009]     5892     5872     (.\dts\dts.cpp:1793): trace message:
TraceLog 2009  5  6 16:24:40.912 5892 5872 (.\dts\dts.cpp:961): CreateAgent: creating agent=9
[Wed May 06 23:24:40 2009]     5892     3152     (.\dts\dts.cpp:1793): trace message:
TraceLog 2009  5  6 16:24:40.912 5892 3152 (.\dts\cdtsagent.cpp:717): doOneRequest caReservedRequestId_CreateServerAgent in
[Wed May 06 23:24:40 2009]     5892     3152     (.\dts\dts.cpp:1793): trace message:
TraceLog 2009  5  6 16:24:40.928 5892 3152 (.\dts\cdtsagent.cpp:744): doOneRequest caReservedRequestId_CreateServerAgent out [NoError]
[Wed May 06 23:24:43 2009]     5892     3152     (.\dts\dts.cpp:1793): trace message:
TraceLog 2009  5  6 16:24:43.319 5892 3152 (.\dts\cdtsagent.cpp:749): doOneRequest caReservedRequestId_CloseServerAgent in
[Wed May 06 23:24:43 2009]     5892     3152     (.\dts\dts.cpp:1793): trace message:
TraceLog 2009  5  6 16:24:43.334 5892 3152 (.\dts\cdtsagent.cpp:757): doOneRequest caReservedRequestId_CloseServerAgent out [NoError]
[Wed May 06 23:24:43 2009]     5892     5872     (.\dts\dts.cpp:1793): trace message:
TraceLog 2009  5  6 16:24:43.334 5892 5872 (.\dts\dts.cpp:1000): RemoveKey: removing agent=9
Edited by: limin9 on May 7, 2009 1:29 AM
Edited by: limin9 on May 7, 2009 1:30 AM

I tried to put the debug information in java code by applying clientSDKOptions.xml. And I found the report file is cut off when being passed to ras. I'm wondering if there is any file size limitation to use ras api?

Similar Messages

  • Connection reset when inserting file to BLOB column

    Friends,
    When inserting a file to a BLOB clomun and the file is more than 1KB, I receive the following message: java.sql.SQLException: Io exception: Connection reset
    The code is this:
    int fileLength = (int)file.length();
    System.out.println("File length: "+fileLength);
    int cod = (int)(Math.random() * 1000);
    String sql = "INSERT INTO BLOB_TABLE VALUES(?,?)";
    try {
    FileInputStream fis = new FileInputStream(file);
    PreparedStatement pstmt = connection.prepareStatement(sql);
    pstmt.setInt(1, cod);
    pstmt.setBinaryStream(2, fis, fileLength);
    pstmt.executeUpdate();
    System.out.println("File insert sucess!");
    connection.close();
    Does anybody know what this can be? My database is oracle.
    Thanks!

    When you create objects on the database they are stored in the data dictionary by default in UPPER case.
    So in this line:
    src_loc bfile := bfilename('example_lob_dir', 'example.gif'); -- source location
    you need to reference the name of the directory object in upper case. e.g.
    src_loc bfile := bfilename('EXAMPLE_LOB_DIR', 'example.gif'); -- source location
    ;)

  • Connection reset when accessing HTTPS through proxy

    Since upgrading to firefox 27 when trying to access https://www.birtles.org.uk I receive a connection reset or connection interrupted error. I am connecting through a proxy. Firefox 26 works correctly.
    I have tried on 3 different machines 2 windows and one Mac with the same results.

    Same issue and resolution for me when I try to access https://mail.ntlworld.com. I'm also connecting through a proxy, have tried both of them available to me. It works fine using other browsers, just firefox causing issues.
    Also on an unrelated note, https://support.mozilla.org/en-US/users/register keeps redirecting to the login page. Tried on multiple browsers, in the end had to use mobile to create an account.

  • Connection Reset when compiling PL/SQL Package

    Recently a strange issue appeared on my office PC. When I try To compile a PL/SQL package on specific Oracle instance I get an error message:
    Error: Io exception: Connection reset by peer: socket write error
    And the connection is reset. I even cannot reconnect to database schema. To open connection again I have to restart SQL Developer. In spite of this issue I can execute SELECT queries in SQL worksheet and view data in tables. Error message appears only when compiling packages in any schema on database instance in our local network and only on my PC. Other office PCs works fine without any errors. I am able to compile packages on remote database from my PC.
    Same error message shows up in different SQL Developer versions and also in JDeveloper. SQL Developer restart, Windows restart, database instance restart doesn't help.
    Used software:
    SQL Developer versions: 1.2.1 and 1.1
    JDeveloper version: 10.1.3.2
    Oracle Database on local network: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit
    Remote Oracle Database: Oracle Database 10g Release 10.2.0.3.0 - Production
    OS: Windows XP Pro SP2
    Thanks,
    Raymond

    I am trying to convert the values in a selected
    column into 1 and 0 so that I can display all 1s in
    one column, all 0s in another. I am doing this in a
    PL/SQL package. However ORACLE compiler does not
    like the CASE construct.
    Does anyone know how to group values in a column into
    several new columns. If CASE WHEN construct is not
    doable in PL/SQL, what alternatives are there?
    Thanks.
    CURSOR v_Cursor IS
    SELECT A.D_CODE, A.M_CODE, TEST_START ,
    , C.C_NAME,C.P_ID,
    SUM(CASE WHEN MONTHS_BETWEEN(SYSDATE, D.P_DOB)/12 >
    40 AND MONTHS_BETWEEN(SYSDATE, D.P_DOB)/12 <85 ANDB.B_CODE IN '11.1','222.2','272.4') THEN 1 ELSE 0
    END) QUALIFIEDUse the Decode function. This has been around in oracle SQL for ages and works like a case construct.
    You would do something like
    select ...
    sum( decode (MONTHS_BETWEEN(SYSDATE, D.P_DOB)/12 >
    40 AND MONTHS_BETWEEN(SYSDATE, D.P_DOB)/12 <85 AND
    B.B_CODE IN ('11.1','222.2','272.4') 1,0 )

  • JDBC Connection Reset when using many processes on 64 bit system

    Hi,
    we've a annoying JDBC connection problem since we migrated our Java server to a 64 bit operating system. Here our environment.
    Database Machine:
    Oracle 10g
    Linux 32 Bit (but same problem on 64 Bit)
    Application Servers Machine:
    JDBC driver 11.1.0.6
    SUN Java 1.6.0_06 64bit
    Linux 64 bit (SLES 10 SP2)
    We have 6 different Java server processes (but with the same code) which all create some connections to the same database (running on a different Hardware). All 6 Java server processes starting at the same time (via scripts).
    Everything was fine, until we migrated the application server machine from 32 bit Linux to 64 bit Linux. From this day on, the half (or one more or less) of our application server processes can't longer connect to the database. The application server processes which have the problem product the following stack trace:
    java.sql.SQLRecoverableException: I/O Exception: Connection reset
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:281)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:118)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:224)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:296)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:611)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:455)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:494)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:199)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:30)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:154)
    at com.aaaa.utils.db.DbConnectionPool.<init>(DbConnectionPool.java:130)
    It looks like a network problem with the system but all other network stuff works without problems, between the two machines.
    - We use the thin JDBC driver (no OCI)
    - No firewalls are active on both systems
    - Both systems are in the same subnet connected to the same switch
    - The DNS configuration on both systems are ok (forward and reverse)
    - We've found the same problem on different application-server/database-server pairs with 64 bit application server hardware - but not all of our 64 bit server systems have this problem.
    - When running application server process and database on the same system (connecting via localhost) the problem does not longer appear.
    - The same database machine connected from a 32 bit application server (with 6 different java processes starting at the same time) works without a problem.
    We've tried a lot of things to isolate the problem - but with no success.
    - Same problem with SUN Java 1.6.0_06 32 bit (on 64 bit Linux)
    - Same problem with SUN Java 1.6.0_15 (32 and 64 bit)
    - Played with some JDBC connection properties (oracle.jdbc.TcpNoDelay, oracle.jdbc.ReadTimeout, oracle.net.CONNECT_TIMEOUT, oracle.net.disableOob, oracle.jdbc.RetainV9LongBindBehavior, oracle.jdbc.StreamChunkSize) without a positive result.
    - We've updated Linux network driver
    - We've changed to an completeky other NIC
    - We've tried an other Linux 64 distribution
    - We've increased the PROCESSES parameter in the init.ora
    - We've tried the JDBC driver 11.1.0.6
    - We've tried the _g version of the JDBC driver, but the debugging output simply tell us "Connection Reset" without a hint why.
    - We've tried a more complex JDBC connect string (
    "jdbc:oracle:thin:@(DESCRIPTION=" +
    "(ADDRESS_LIST=" +
    "(ADDRESS=(PROTOCOL=TCP)" +
    "(HOST=host)" + =
    "(PORT=port)" +
    ")" +
    ")" +
    "(CONNECT_DATA=" +
    "(SERVICE_NAME=sid)" +
    "(SERVER=DEDICATED)" +
    ")" +
    Nothing of this things helped us to isolate the problem.
    When we start our application server processes with a long pause (>1 min) between every process start. The problem does not occure. When we start only one application server with the same number of connections as the 6 different application server processes, everything works fine.
    We have absolute no idea why
    - this only occures on 64 bit Linux
    - independent if it's a 32 bit or 64 bit JVM
    - does not occure on all 64 bit application server machines / database machine pairs
    - never occure on the same 64 bit app server hardware when using a 32 bit Linux
    - using the Oracle JDBC 10g driver (10.xxx) there is no problem (but because of other issues, we need to use the JDBC 11g driver)
    Does anybody has an idea what our problem is?
    Thanks in advance,
    greetings

    I was recently struggling with this exact same problem. I opened a ticket with Oracle and this is what they told me.
    java.security.SecureRandom is a standard API provided by sun. Among various methods offered by this class void
    nextBytes(byte[])
    is one. This method is used for generating random bytes. Oracle 11g JDBC drivers use this API to generate random number during
    login. Users using Linux have been encountering SQLException("Io exception: Connection
    reset").
    The problem is two fold
    1. The JVM tries to list all the files in the /tmp (or alternate tmp directory set by -Djava.io.tmpdir) when
    SecureRandom.nextBytes(byte[]) is invoked. If the number of files is large the
    method takes a long time
    to respond and hence cause the server to timeout
    2. The method void nextBytes(byte[]) uses /dev/random on Linux and on some machines which lack the random
    number generating hardware the operation slows down to the extent of bringing the whole login process to
    a halt. Ultimately the the user encounters SQLException("Io exception:
    Connection reset")
    Users upgrading to 11g can encounter this issue if the underlying OS is Linux which is running on a faulty hardware.
    Cause
    The cause of this has not yet been determined exactly. It could either be a problem in
    your hardware or the fact
    that for some reason the software cannot read from dev/random
    Solution
    Change the setup for your application, so you add the next parameter to the java command:
    -Djava.security.egd=file:/dev/../dev/urandom
    We made this change in our java.security file and it has gotten rid of the error.

  • Connection reset when closing the client program.

    when closing the client program I get the error message Connection Reset
    at ServerThread.run(SeverThread.java:244)
    which is the following file
    i've marked the 244: on this file on the left of the file.
    after this I have the client program which is called Client.java
    the error happens when I close the client program and the error is on the serverthread side of the application. Please anyone help out with this one.. Thanks.
    //SererThread.java
    import java.net.*;
    import java.io.*;
    import java.util.Date;
    import java.util.Calendar;
    import javax.swing.*;
    public class ServerThread extends Thread {
    private Socket socket = null;
    String outputStrings = "";
    public ServerThread(Socket socket) {
         super("ServerThread");
         this.socket = socket;
         Calendar c = Calendar.getInstance();
         int hr = c.get(Calendar.HOUR_OF_DAY);
         int hour=hr-1;
         int min = c.get(Calendar.MINUTE);
         int sec = c.get(Calendar.SECOND);
         String timeOfConnect [] = new String[100];
         int conCtr = 0;
    int curState = 0;
         String entries [][] = new String[5][100];
    public String getInput(String theInput) {
    String sentToClient = null;
         Calendar c = Calendar.getInstance();
         int hr = c.get(Calendar.HOUR_OF_DAY);
         int hour=hr-1;
         int min = c.get(Calendar.MINUTE);
         int sec = c.get(Calendar.SECOND);
         int day = c.get(Calendar.DAY_OF_WEEK);
         int month = c.get(Calendar.MONTH);
         int year = c.get(Calendar.YEAR);
         int pm = c.get(Calendar.PM);
         String strHr = Integer.toString(hour);
         String strMin = Integer.toString(min);
         String theInputSeg = "";     
         if(theInput!= null)     
         for(int a=0;a<theInput.length();a++)
              char inputCharArray [] = theInput.toCharArray();
              if(inputCharArray[a]==';')
                   theInputSeg = theInput.substring(0,a);
    if (curState == 0) {
    if(c.PM==1&& hour == 8)
         sentToClient = "yes";
    curState = 1;
    } else if (curState == 1) {
         for(int a=0;a<3;a++)
                   //System.out.println("theInput:" + theInput);
                   //System.out.println("a:" + entries[0][a]);
                   //System.out.println("a:" + entries[1][a]);               
                   //if()
                   if(theInputSeg.equalsIgnoreCase("CUSCarissa_Calton25242526")||theInputSeg.equalsIgnoreCase("CUSSan_Htat27242526")
                        ||theInputSeg.equalsIgnoreCase("CUSSadam_Husien20909990"))
                   //if(theInput.equalsIgnoreCase(entries[0][a])||theInput.equalsIgnoreCase(entries[1][a]))
                        System.out.println("buy...");
                        curState = 0;
                        sentToClient = "Bye.";
                   else
                        System.out.println("buy...!");
                        curState = 0;
                        sentToClient = "Hello.";
    return sentToClient;
    public void run() {
         int next = 0;     
         BufferedWriter bw = null;
         byte [] b = null;
         BufferedWriter bw1 = null;
         try{
    //JOptionPane.showMessageDialog(null,"Sizz");
    String fileNameStr = "C:\\San Server Data\\cInputCustData.txt";
    File f = new File(fileNameStr);
    long size = f.length();
    b = new byte[(int)size];
    FileInputStream fis = new FileInputStream(f);
    BufferedInputStream bis = new BufferedInputStream(fis);
    int count = 0, index = 0;
    int byteRed = 0;
    int sizeInt = (int)size;
    while (bis.available() > size-1)//16848 )
    bis.read(b,index,(int)size);
    //int bytesRead = bis.read(b,index,(int)size2);
    //size2 -= count;
    //index += count;
    //System.out.println( "hello:" + b[index]);
    //index++;
    //bis should be closed in a finally block.
    bis.close() ;
    catch(IOException io)
    System.out.println("Oh oh io error");
         //System.out.println("cInputCustData: \n" + new String(b));
         String bStr = new String(b);
         char charbStr []= bStr.toCharArray();
         String header []= new String[5];
         int ctr = 0;
         int e = 0;
    boolean first = true;
         for(int q=0;q<5;q++)
              for(int u=0;u<100;u++)
                   entries[q]= new String("");                    
         //System.out.println("b: " + bStr);
         for(int s=0; s<charbStr.length;s++)
              if(s<charbStr.length-1)
              if(charbStr[s]==':'&&charbStr[s+1]==':')
                   //System.out.println(" s0: " + s);                    
                   for(int ss=s+2;ss<s+12;ss++)
                        //System.out.println("ss: "+ ss + " s: " + s);                         
                        if(charbStr[ss]==':')
                             //System.out.println("in");     
                             header[ctr] = bStr.substring(s,ss);               
                             //System.out.println("1ss: " + ss + " s: " + s);          
                             for(int c=ss+1;c<charbStr.length;c++)               
                                  if(charbStr[c]==':')
                                       //System.out.println("ctr: " + ctr + " " +"entries[0]" + entries[0][0]+ "\n"+ entries[0][1] + "\n" + entries[1][0] + "\n" + entries[1][1]);
                                       if(ss<charbStr.length)entries[ctr][e++] = bStr.substring(ss+1,c);
                                       //System.out.println("c:" + c);
                                       ss= c;
                        ctr++;
                        e=0;
              //System.out.println("header: " + header);                         
                                  //System.out.println("entires[0]0: " + entries[0][0]);
                                  //System.out.println("entires[0]1: " + entries[0][1]);
                                  //System.out.println("entires[1]0: " + entries[1][0]);
                                  //System.out.println("entires[1]1: " + entries[1][1]);
                                  //System.out.println("entires[2]0: " + entries[2][0]);
                                  //System.out.println("entires[2]1: " + entries[2][1]);
              String timeConnect[][] = new String[5][100];
              char myChars[] = null;
              for(int d=0;d<5;d++)
                   for(int f = 0;f<100-1;f++)
                        for(int cs=0;cs<entries[d][f].length();cs++)
                             if(!(entries[d][f].equals("")))
                                  myChars = entries[d][f].toCharArray();
                             for(int a=0;a<entries[d][f].length();a++)
                                  if(myChars[a]==';')
                                       for(int k=a;k<entries[d][f].length();k++)
                                            timeConnect[d][f]= entries[d][f].substring(a,k);
                                       //     System.out.println("time: " + timeConnect[d][f]);
         //for(int o=0;o<5;o++)
              //System.out.println("Header["+o+"]" + header[o]);
         try {
         PrintWriter output = new PrintWriter(socket.getOutputStream(), true);
         BufferedReader input = new BufferedReader(
                        new InputStreamReader(
                        socket.getInputStream()));
         String inLine, outLine;
         outLine = getInput(null);
         output.println(outLine);
         while ((inLine = input.readLine()) != null) {
    244: outLine = getInput(inLine);
              output.println(outLine);
              System.out.println(inLine);
              outputStrings += inLine;
              //if(inLine.equals("Hello."))break;
              timeOfConnect[conCtr++]= " " Integer.toString(hour)":"+Integer.toString(min)+":"+Integer.toString(sec);
              if(c.PM==1){System.out.println("HL");timeOfConnect[conCtr-1]+="PM";}
              System.out.println(timeOfConnect[conCtr-1]);
              outputStrings += "\n"+ timeOfConnect[conCtr-1];
              //System.out.println("output");     
              try {
                   //FileWriter fw1 = new FileWriter("C:\\San Server Data\\Connectlog.txt");
                   bw1 = new BufferedWriter(new FileWriter("C:\\San Server Data\\Connectlog.txt",true));
                   //PrintWriter pw2 = new PrintWriter(bw1);
                        System.out.println(outputStrings);
                        //pw2.println(outputStrings);
                        if(next == 0)          
                             bw1.write(outputStrings);
                        if(next == 1)
                             bw1.write(outputStrings+ " D");
                        bw1.newLine();
                        bw1.flush();
                   //pw2.close();
                        catch (IOException io) {
                   System.out.println("Oh oh, Got and IOException error!"+io);
                        finally{
                             if(bw1 != null) try{
                                  bw1.close();
                             catch(IOException io)     
         output.close();
         input.close();
         socket.close();
    if(next == 0)next = 1;
         else if(next == 1)next = 0;
         //WONCUS1 won = new WONCUS1();
         //String m[] = new String[1];      
         //won.main(m);
         //won.start();     
         } catch (IOException err) {
         err.printStackTrace();
    //Client.java
    public class Client {          
    public static Socket Socket = null;
    public static BufferedReader i = null;
         public static PrintWriter o = null;
         public static String packetString = "CUSCarissa_Calton25242526"; //product id
         public static BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    public static String fromServer;
    public static String fromUser;
    public static void main(String[] args) throws IOException {
         int ars=0;
         if (args.length > 0)
              ars = Integer.parseInt(args[0]);
    try {
         Socket = new Socket("localhost", 4444);
    o = new PrintWriter(Socket.getOutputStream(), true);
    i= new BufferedReader(new InputStreamReader(Socket.getInputStream()));
    } catch (UnknownHostException err) {
    System.err.println("Can not find Server!");
    System.exit(1);
    } catch (IOException e) {
    System.err.println("Couldn't get initialisation files to be represented in true statement!");
    System.exit(1);
    while ((fromServer = i.readLine()) != null) {
         //int hour = Integer.parseInt(fromServer);
         //System.out.println("Server: " + fromServer);
         System.out.println("Server: " + fromServer);     
         if (fromServer.equals("Bye."))
    break;
         if (fromServer.equals("Hello."))
    break;
    fromUser = packetString;
         if (fromUser != null) {
    System.out.println("Client: " + fromUser);
    //o.println(fromUser);
              String getComp = InetAddress.getLocalHost().getHostName();
              String ip = InetAddress.getLocalHost().getHostAddress();
              o.println(fromUser+";"+getComp + " " + ip);
              //o.println(getComp + " " + ip);

    "onclose event of application", at least do something such as call wait() on ReadersWhy? Who is going to notify() it?
    and close the Sockets and then Readers/WritersI won't even ask why about that because it is 100% dead wrong. Close the outermost Writer or OutputStream. That flushes the output, closes the socket, and closes any input streams or readers. Taking your advice the flush() cannot occur. But the evidence is that he is closing the socket: in fact the operating system does that anyway. Possibly he needs to take the advice about closing the Writer/OutputStream, to cause the flush(), which might stop the server from writing. But that depends on the application. If it's legal in the application protocol for the client to exit while the server is still writing he will just have to put up with the 'connection resets', or at least interpret them properly rather than just logging them as an error.
    If your using a window(GUI) you can use the main frame with a Window closing event.And that's completely irrelevant because the error happens on the server.

  • "Access denied" when opening report on RAS Server

    I'm sure I'm doing something wrong, but I've only been able to open a report using the rassdk protocol from the server where my java code is running.    This is fine, but I was hoping for efficiency sake that I could have reports reside on the RAS server itself.
    My ras server definitely has a Crystal report called EBTest.rpt in the c:\temp directory.  I run this code...
    ReportClientDocument rcd = new ReportClientDocument();
    rcd.setReportAppServer(ReportConstants.RAS_HOST);
    rcd.open("c:\\temp\\EBTest.rpt", OpenReportOptions._openAsReadOnly);
    rcd.close();
    According to the JavaDoc, this should work, but I get this error ...
    Caused by: com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Access denied. Please check directory setting for files you can access.---- Error code:-2147467259 Error code name:failed
         at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.s.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.if(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.if(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(Unknown Source)
    Am I missing something trivial?  
    Thanks,
    Eric

    Now that I've got it working, I expected that the RAS-local approach would be much faster than the RAS-remote, but I didn't find that to be the case in a quick test that I did.  Is this what you'd expect?  Or is there a different part of the ReportClientDocument interaction that would be more efficient. 
    From what I've seen, the ReportClientDocument construct and open() are one of the expensive aspects of the report rendering.
    Enclosed are the results from a test I did:
    --PERF--20 iteration test for 'Test local report initialization'
    --PERF--WARMED UP in 3359 ms
    --PERF--,Iterations          ,Total Time (mS)     ,Avg(ms)/Iteration   ,Transactions/sec   
    --PERF--,20                  ,35515               ,1775.75             ,0.5631423          
    --PERF--20 iteration test for 'Test remote report initialization'
    --PERF--WARMED UP in 1828 ms
    --PERF--,Iterations          ,Total Time (mS)     ,Avg(ms)/Iteration   ,Transactions/sec   
    --PERF--,20                  ,37109               ,1855.45             ,0.5389528          
    And here's the bulk of the code that generated those results...
    int numIterations = 20;
    PerformanceUtils.runPerformanceTest("Test local report initialization", numIterations, new Command(){
         public void execute() {
              try{
                   ReportClientDocument rcd = new ReportClientDocument();
                   rcd.setReportAppServer(ReportConstants.RAS_HOST);
                   rcd.open("D:\\Program Files\\Business Objects\\BusinessObjects Enterprise 12.0\\Samples\\EN\\Reports\\triCalendarPeriod___-___Find___-___Months.rpt", OpenReportOptions._openAsReadOnly);
                   rcd.close();
              }catch(Exception e){
                   throw new RuntimeException(e);
    PerformanceUtils.runPerformanceTest("Test remote report initialization", numIterations, new Command(){
         public void execute() {
              try{
                   ReportClientDocument rcd = new ReportClientDocument();
                   rcd.setReportAppServer(ReportConstants.RAS_HOST);
                   rcd.open("rassdk://./test/data/crystal/triCalendarPeriod___-___Find___-___Months.rpt", OpenReportOptions._openAsReadOnly);
                   rcd.close();
              }catch(Exception e){
                   throw new RuntimeException(e);

  • Connection reset when obtaining Realms from LDAP provider

    Properties props = new Properties();
    props.put( "provider", JAZNProvider.Type.LDAP);
    props.put( "location", "ldap://<myoidurl>:389");
    props.put( "ldap.user", "cn=orcladmin");
    props.put( "ldap.password", "!<mypwd>");
    JAZNConfig cfg = new JAZNConfig(props);
    JAZNProvider prov = cfg.getJAZNProvider();
    Set realms = prov.getRealmManager().getRealms(); <---- causes following error
    Exception in thread "main" oracle.security.jazn.JAZNNamingException: The system is unable to communicate with the directory or naming service.
         at oracle.security.jazn.spi.ldap.LDAPContext.getSSLDirContext(LDAPContext.java:622)
         at oracle.security.jazn.spi.ldap.LDAPContext.getDirContext(LDAPContext.java:487)
         at oracle.security.jazn.spi.ldap.LDAPContext.getDefaultDirContext(LDAPContext.java:246)
         at oracle.security.jazn.spi.ldap.LDAPContext.getOrclRootCtxDN(LDAPContext.java:187)
         at oracle.security.jazn.spi.ldap.LDAPContext.getSiteJAZNCtxDN(LDAPContext.java:222)
         at oracle.security.jazn.spi.ldap.LDAPRealmManager.searchRealms(LDAPRealmManager.java:1087)
         at oracle.security.jazn.spi.ldap.LDAPRealmManager.getRealms(LDAPRealmManager.java:200)
         at client.JaznTest.<init>(JaznTest.java:41)
         at client.JaznTest.main(JaznTest.java:54)
    Caused by: javax.naming.CommunicationException: oidtest.ncdenr.org:389 [Root exception is java.net.SocketException: Connection reset]
         at com.sun.jndi.ldap.Connection.<init>(Connection.java:194)
         at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:118)
         at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1578)
         at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2596)
         at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:283)
         at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
         at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
         at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
         at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:134)
         at oracle.security.jazn.spi.ldap.LDAPContext.getSSLDirContext(LDAPContext.java:613)
         ... 8 more
    Caused by: java.net.SocketException: Connection reset
         at java.net.SocketInputStream.read(SocketInputStream.java:168)
         at com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:284)
         at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:319)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:720)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1025)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1038)
         at oracle.security.jazn.spi.ldap.JAZNSSLSocketFactoryImpl.init(JAZNSSLSocketFactoryImpl.java:228)
         at oracle.security.jazn.spi.ldap.JAZNSSLSocketFactoryImpl.createSocket(JAZNSSLSocketFactoryImpl.java:170)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.jndi.ldap.Connection.createSocket(Connection.java:311)
         at com.sun.jndi.ldap.Connection.<init>(Connection.java:181)
         ... 21 more

    The reset seems to happen after 5 minutes. Is there any network device in between 153.88.247.15 and the DPS? It could also be a idle timeout on the box or app on 153.88.247.15

  • Error when generating the report in Production Server

    Hi,
    I have created one infoset query in Development server of my client. It is working fine there. I had transported the request containg this query to Production server. But whenever I am trying to generate report using this query in Production server it is giving an error message
    "Error when generating the report".
    I am not getting what 's problem.
    Samriddhi

    Samriddhi,
    Genarally its not suggested to transport Queries. Should be able to create Queries directly Production. There might be diferences between your Development and Production versions.
    Thanks.

  • Error: java.lang.OutOfMemoryError when uploading CSV files to web server

    Hi experts,
    I have made a JSP page from which clients load csv files to web server. I am using Tomca 4.1 as my web server and JDK 1.3.1_09.
    The system works fine when uploadiing small csv files, but it crashes when uploading large CSV files.
    It gives me the following error:
    java.lang.OutOfMemoryError
         <<no stack trace available>>
    This is the code that I used to load files....
    <%
    String saveFile = "";
    String contentType = request.getContentType();
    if ((contentType != null) && (contentType.indexOf("multipart/form-data") >= 0))
         DataInputStream in = new DataInputStream(request.getInputStream());
         int formDataLength = request.getContentLength();
         byte dataBytes[] = new byte[formDataLength];
         int byteRead = 0;
         int totalBytesRead = 0;
         while (totalBytesRead < formDataLength)
              byteRead = in.read(dataBytes, totalBytesRead, formDataLength);
              totalBytesRead += byteRead;
         String file = new String(dataBytes);
         saveFile = file.substring(file.indexOf("filename=\"") + 10);
         saveFile = saveFile.substring(0, saveFile.indexOf("\n"));
         saveFile = saveFile.substring(saveFile.lastIndexOf("\\") + 1,saveFile.indexOf("\""));
         int lastIndex = contentType.lastIndexOf("=");
         String boundary = contentType.substring(lastIndex + 1,contentType.length());
         int pos;
         pos = file.indexOf("filename=\"");
         pos = file.indexOf("\n", pos) + 1;
         pos = file.indexOf("\n", pos) + 1;
         pos = file.indexOf("\n", pos) + 1;
         int boundaryLocation = file.indexOf(boundary, pos) - 4;
         int startPos = ((file.substring(0, pos)).getBytes()).length;
         int endPos = ((file.substring(0, boundaryLocation)).getBytes()).length;
         String folder = "f:/Program Files/Apache Group/Tomcat 4.1/webapps/broadcast/file/";
         //String folder = "10.28.12.58/bulksms/";
         FileOutputStream fileOut = new FileOutputStream(folder + saveFile);
         //out.print("Saved here: " + saveFile);
         //fileOut.write(dataBytes);
         fileOut.write(dataBytes, startPos, (endPos - startPos));
         fileOut.flush();
         fileOut.close();
         out.println("File loaded successfully");
    //f:/Program Files/Apache Group/Tomcat 4.1/webapps/sms/file/
    %>
    Please can anyone help me solve this problem for me...
    Thanx...
    Deepak

    I know it may be hard to throw away all this code, but consider using the jakarta fileupload component.
    I think it would simplify your code down to
    // Create a factory for disk-based file items
    FileItemFactory factory = new DiskFileItemFactory();
    // Create a new file upload handler
    ServletFileUpload upload = new ServletFileUpload(factory);
    // Parse the request
    List /* FileItem */ items = upload.parseRequest(request);
    // Process the uploaded items
    Iterator iter = items.iterator();
    while (iter.hasNext()) {
        FileItem item = (FileItem) iter.next();
        if (item.isFormField()) {
            processFormField(item);
        } else {
            // item is a file.  write it
            File saveFolder = application.getRealPath("/file");          
            File uploadedFile = new File(saveFolder, item.getName());
            item.write(uploadedFile);
    }Most of this code was hijacked from http://jakarta.apache.org/commons/fileupload/using.html
    Check it out. It will solve your memory problem by writing the file to disk temporarily if necessary.
    Cheers,
    evnafets

  • Error when scheduling WEBI report to FTP server

    Hi
    We are getting error "destination directory error. CrystalEnterprise.Ftp: 550 Requested action not taken" while scheduling WEBI report to FTP server.
    Any help would be appreciated
    Regards,
    Anisa

    Hi All,
    I want a run my report once by scheduling, so i provide a time interval for scheduling a report
    start date/ time : 11:38:AM 10/30/2011
    end date/time : 11:43:AM 10/30/2011
    after completion of end time....report is failed and fetching an error
    Error : Object could not be scheduled within the specified time Interval
    Any solution for resolving this error

  • Hide the database connection window when load a report in a viewer control

    When I load a report in viewer and the datasource is empty always appears a window for connect to database. How I can hide ALWAYS that window. Is possible? I did see some ways for do it, at before versions of CR, but seems don´t works in last version of Crystal Reports for .NET.
    Anyway, is possible show a default text in viewer for information to user than don´t exists data?
    Many thanks for the help, and excuse me my poor english.

    The structure of XML is that: http://slexy.org/view/s20h0LVX1b
    The XSD showed is used for the design of report.
    In the empty datas the prompt dialog appears. The XML is different depend of context from application.
    When I have the XML then load it in a DataSet object, and call the SetDataSource method from ReportDocument. In that moment ReportDocument don´t have any information over his state? Exists some way for know if will need extra information from user through the prompt dialog? In that case I could load another report with "NO DATA" text, but I don´t have info.
    For example, is possible override the behavior from Crystal report viewer for show a different window? I did see events but nobody works for me.
    Many thanks for the help and excuse me for my poor english.

  • Error when upload Crystal report files to CMC

    hi All,
    i having an error when trying to upload a Crystal report files to CMC, the msg appears below :
    Unable to find servers in CMS obt-sg-a1mgr.obtechglobal.com:6400 and cluster @obt-sg-a1mgr:6400 with kind fileserver and service FileStoreV2. All such servers could be down or disabled by the administrator. (FWM 01014)
    any help would be appreciated, thanks.
    Regards
    Hariyono

    Hi
    can you please go to the CMC under Servers and check the status of your file repository servers? Are they enabled and in status running ?
    Regards,
    Stratos

  • Custom code in SSRS gives error when uploaded to report in CRM online

    Hi All;
    Below is my custom code 
    Function SumLookup(ByVal items As Object()) As Decimal
    If items Is Nothing Then
    Return Nothing
    End If
    Dim suma As Decimal = New Decimal()
    Dim ct as Integer = New Integer()
    suma = 0
    ct = 0
    For Each item As Object In items
    suma += Convert.ToDecimal(item)
    ct += 1
    Next
    If (ct = 0) Then return 0 else return suma
    End Function
    and this code is used in 
    =Code.SumLookup(LookupSet(Fields!new_mainprogrammeid.Value & "," &
    Fields!new_subprogrammeid.Value & "," &
    Fields!new_outputs.Value & "," &
    Fields!new_claimmonthid.Value,
    Fields!new_mainprogrammeid.Value & "," &
    Fields!new_subprogrammeid.Value & "," &
    Fields!new_outputs.Value & "," &
    Fields!new_claimmonthid.Value,
    Fields!new_fte.Value, "JobOutcome"))
    when this code is uploaded in CRM online report it gives an error 
    below is the error from the log file 
    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: An error occurred while trying to add the report to Microsoft Dynamics CRM. Try adding the report again. If this problem persists, contact your system administrator.Detail:
    <OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
    <ErrorCode>-2147188072</ErrorCode>
    <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
    <Message>An error occurred while trying to add the report to Microsoft Dynamics CRM. Try adding the report again. If this problem persists, contact your system administrator.</Message>
    <Timestamp>2014-10-07T14:21:25.5823821Z</Timestamp>
    <InnerFault i:nil="true" />
    <TraceText i:nil="true" />
    </OrganizationServiceFault>
    but when i remove the custom code and upload the lookup as below i dont get any error
    =(LookupSet(Fields!new_mainprogrammeid.Value & "," &
    Fields!new_subprogrammeid.Value & "," &
    Fields!new_outputs.Value & "," &
    Fields!new_claimmonthid.Value,
    Fields!new_mainprogrammeid.Value & "," &
    Fields!new_subprogrammeid.Value & "," &
    Fields!new_outputs.Value & "," &
    Fields!new_claimmonthid.Value,
    Fields!new_fte.Value, "JobOutcome"))
    I need to calculate the sum of fte hence needed the custom code
    Any help on this much appreciated
    Thanks
    Pradnya07

    Hi Simran08,
    According to your description, you fail to add your report to CRM due to the custom code. Right?
    In this scenario, based on my knowledge, I find two issues in your custom code.
    You pass the array Items as argument to the function. This array is from the LookupSet() function. However, it returns an concatenated string with commas. When you convert it into decimal, it will throw error.
    In your For Each loop part, we should follow the format below:
    For Each element In group
    [statements]
    [Exit For]
    [statements]
    Next [element]
    It seems you miss Item after Next.
    If you still have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • "Connection reset" when trying to access Apple Discussion Forums

    I am unable to log onto the discussion forums from my iBook since changing my ISP to a satellite Broadband service (Bordernet) in Australia. When I attempt to do so I get a message in my browser "The Connection was reset while page was loading."
    I can access the site without problems from a PC on the same LAN without any difficulties - hence my ability to post this message.
    Have also had some intermittent diffiulty in sending emails with (small) attachments (250-400k).
    The ISP help desk suggested I reset the timeout in the Outlook Email program on the Windows machine to maximum. Did that, no change with the iBook.
    Doesn't seem to be a issue of the Apple.com servers being overloaded, as I can fail to manage a log on with the iBook and easily do so with the Windows machine within seconds of switching machines.
    I've also checked that passwords and logon name are the same on both machines.
    Have tried connecting the satellite modem directly to the iBook as well as through the router (a D-Link 704-P) and the speeds are consistent -- so close to the same that they virtually identical.
    Don't have any firewalls set on the iBook or through the router software, only on the Windows machine, and it is the one that works!
    Have set up the proxies and port settings suggested by the ISP (10.16.143.73:9877) which result in a general speed increase earlier on, but did not solve this problem.
    The people at the ISP haven't come up with an answer yet.
    Is there a way to set the timeout on an ibook? (Altough I suspect that this is a red herring as I'm not so sure that settings in an email program will effect other internet settings as well...
    Could there be other settings on the iBook that may be slowing things up enough to make this happen?
    Any ideas?
    IBook 900 mHz   Mac OS X (10.4.5)   640 MB RAM, 80 GB Removable Fireware Drive
    IBook 900 mHz   Mac OS X (10.4.5)   640 MB RAM, 80 GB Removable Fireware Drive

    I'm going to assume you meant... "NsurlerrorDomain: -1005".
    Is it a Linksys Modem?
    By the way... NSURLErrorNetworkConnectionLost
    Returned when a client or server connection is severed in the middle of an in-progress load.
    Available in Mac OS X v10.3 and later.
    Sooo, while it may be something as weird as Satellite alignment/interference, I've read that trashing the whole Users/nnn/Preferences Folder fixid it, but maybe installing Applejack...
    http://applejack.sourceforge.net/
    Once installed, reboot, hold down the CMD+s keys, when the prompt shows, type in "applejack auto", (without the quotes), and let it run all 5 things in the series... thinking maybe a .cache is being held over from your previous setup!?
    Anyway, once you really need Applejack, you can't install it or download it! :_)
    Waiting to see if we get anywhere with this tact.
    Oh yeah, that plist will be regenerated on a restart.

Maybe you are looking for