Reading from a server

I'm supposed to read the following C struct from a server
struct query_type{
int flag;
int query_a;
int query_b;
char next pass[30];
typedef struct query_type t_query;
I tried
Socket s = new Socket( serverName, serverPort );
DataInputStream dis = new DataInputStream( s.getInputStream() );
String message = dis.readUTF(); //wait for server to send
s.close() // close the socket
as the basic idea for my first connection but i didn't receive anything i think.
what i want to do is try and receive the whole transmission and then separate it.
here's the class i've created to match the struct:
public class queryType
protected int flag;
protected int query_a, query_b;
protected String nextPass;
public queryType()
flag = 0;
query_a = 0;
query_b = 0;
public int getFlag()
return flag;
public int getQueryA()
return query_a;
public int getQueryB()
return query_b;
public String getNextPass()
return nextPass;
someone said i should use a byte array, but i'm not exactly sure what he meant.
I think that i know how many bytes C uses to store int values and char values, but i'm not sure how this would help me.
Really I need help figuring out what reader to use so that i can manipulate the data received.
any ideas???

you may try reading this way... That was probably what they meant when talking about byte array...
Socket sock = new Socket(ip_addr, port);
BufferedInputStream in = new BufferedInputStream(sock.getInputStream());
bbufin = new byte[BUF_LEN];
int err = 0;
err = in.read(bbufin, 0, BUF_LEN);

Similar Messages

  • Reading from application server

    Hi All,
    I have a requirement wherein I need to uplaod an excel sheet which contains Material number, Plant and PO text. And accordingly update the material and plant with the given PO text. Now, if i have mat1, Plant1 and PO text given for this combination in the excl as below:
    "This is the new PO Text
    Please Update it"
    If the above is the PO text (with a line's gap between 2 statements), the requirement is to upload this text into application server. Then in the update program, i need to read this text for the corresponding material and plant.
    The uploading is happening correctly into the app server:
    Mat1     Plant1     This is the new PO Text 
                               Please Update it
    But while reading from the application server in the update program, the first read dataset statement reads only Mat1     Plant1     This is the new PO Text. This record is filled in the internal table meant for update. The structure of the internal table is Material, Plant, PO text.
    Now the control goes to the next read dataset statement and reads text "Please Update it". This text is filled in the material column of the internal table and hence gives an error at the time of update.
    The syntax used to upload into app server is :
    OPEN DATASET p_path FOR OUTPUT IN TEXT MODE ENCODING DEFAULT
    Transfer each record
    The syntax used to read from app server is :
      OPEN DATASET p_path FOR OUTPUT IN TEXT MODE ENCODING DEFAULTIf sy-subrc = 0.
    Do.
    Read dataset p_path into v_appltxt (where v_appltxt is of type string)
    if sy-subrc = 0.
         fill the internal table for update.
    Else.
    exit.
    Endif.
    Enddo.
    Please help me rectify the issue at the time of reading from the app server so that the PO text(no matter how is in entered in the excel sheet) is read against the correspoding material and plant combination.
    Thanks

    Hi Jean,
         READ DATASET statement will always read one line of input file at a time. Since the PO text is not continuous, Its gettng read into material number in the next fetch.
         As a solution, try to keep the PO text entirely while uploading data to application server. You may have to put in logic to remove extra lines after the data is retrieved from the excel sheet to the internal table.
    Hope this helps.
    ~Athreya

  • Unreliable reading from AFP server (NAS)

    Following on from some earlier problems, I've started encountering a new, and much worse, problem. After I successfully connect to the AFP share, I can look at the contents of various remote folders in Finder. But, some of the folders are just showing as empty, even though I know they aren't. I tried waiting several minutes, nothing showing up (and there doesn't seem to be any way to tell if Finder is waiting for a response or not - with other folders you may get the same result, but the files usually show up after a few seconds).
    There doesn't seem to be any particular pattern to it. Certain folders show all their contents, others just appear to be empty. Also, if I try to list the contents of these folders from the command line (ls -la /Volumes/Share/Folder) then once again it works for the same ones that work in Finder, but it otherwise it just hangs. I am getting similar problems sometimes trying to unmount certain shares from the command line with diskutil: again, it just hangs.
    This wasn't happening when I tried it recently (as suggested in the thread referenced at the top of this post) and the only thing to have changed about my system since then is this update:
    http://support.apple.com/kb/HT6207
    I'm not sure if that's likely to have anything to do with it, or if it's just because I've not been using the NAS from the Mac so much lately (mostly been working on Windows stuff the last couple of weeks). Maybe it's just coincidence that this is the first time I've noticed it.
    I've tried restarting the Mac and the NAS and the same thing is happening even from that completely clean state (so no chance anything has gone into sleep mode or similar). I can access the same folders with no problems from a Windows PC over SMB. For some reason when I try to connect to the SMB share from Mavericks it completely fails to read the contents of any shared volume, so I have to use AFP (or possibly figure out what's wrong with SMB, but that could be a much harder problem to solve).
    I couldn't find much about this issue by googling, although I did find a recommendation to clear the Finder cache. However, on my system, ~/Library/Caches/com.apple.finder doesn't exist. Has this been removed from Mavericks?
    There's always a chance this could be a problem with the AFP implementation on the NAS, whch is an Asustor AS-202T, running the latest software (ADM 2.1.1.R3B2). Is anyone else on here using an Asustor NAS?

    hi,
    any luck resolving this?
    I am investigating the slow large directory reading problem between macbook OS X Mavericks 10.9.5 and NAS Asustor 202TE ADM 2.2.1.R863
    Basically, reading a large directory (c. 2,000 files) is very slow.
    Then, deleting a file is fast the first time, then any subsequent delete, in same session, seems to cause a file list refresh, and slow again.
    This is very painful to review sets of files created daily from my garden cam, where most need to be deleted.
    I really don't want to boot up a windows machine for this task.
    Potential solutions / areas to investigate:
    1. mac tcp parameters: delayed_ack, packet size, frames etc
         found a good resource here for this, but I haven't found any combination that makes a difference for me
    2. turning off icon previews etc
         done this, no change
    3. directory list cache: client side vs server side
         cannot find any info relating to the Asustor or mac implementation
    4. finder replacement
         not sure this has any benefit
    5. smb vs afp
         I haven't noticed any performance difference, so doubt this is significant
    Any help would be appreciated.

  • XML file not properly read from Appc Server. Partial records filled into IT

    Hi,
    I am reading an XML file from the application Server. only 2 records are comming to the Internal table. Other records are not coming to the Internal Table. It's giving Sy-Subrc 4 after 2 iterations. Below is my code. Kindly suggest.
    open dataset p_unix in text mode message msg.
        if sy-subrc <> 0.
          message i001(38) with 'Error on Open of File: ' msg.
        else.
          while sy-subrc = 0.
            read dataset p_unix into infile.
            check sy-subrc = 0.
            append infile.
          endwhile.
          close dataset p_unix.
    Thanks,
    Debi.

    Hi,
    this is probably because there's only one "end of line" character (probably after <?xml ... ?>). This is normal, but you must store the second line in a string data object, which will then receive the whole XML stream (except the xml header as it is stored in the first line). And that's done.
    BR
    Sandra

  • Reading from http server

    Hi guys and girls,
    I've got a simple problem: i'm busy programming a browser (for now it's a simple text based browser) and everything works fine, the connection works and it gets all http headers and the html file. But once and a while my program doesn't terminate properly and i think it's got something to do with the following loop:
    /* Read the first line returned by the server */
    String fromServer = input.readLine();
    while (fromServer != null){
    System.out.print(fromServer+"\r\n");
    /* Read the next line untill that line is blank*/
    fromServer = input.readLine();
    Sometimes this works, sometimes it doesnt (mind you: the http headers are received before this loop, so that's not the problem). This loop should get the html file at the specified url: at some locations it just keeps running and it doesn't exit, so this loop isn't exited because right after it i close my connections and perform a System.exit().
    Does anyone have any idea what my problem is? The loop should stop when the server doesn't send anymore lines from the html file: it shows the html closing tag everytime so that is the last line from the html file, yet it fails to exit the loop. The weird thing is: sometimes it works properly, sometimes it doesn't., and when it doesn't it doesn't show input anymore so all html text is sent by the server.
    Are there other ways to make the program exit the loop when all the lines from the html file are sent?
    The input stream i use is a buffered inputstream reader:
    input = new BufferedReader(new InputStreamReader(c.getInputStream()));
    Hope you understand the problem :)

    1. You didn't show what kind of connection u get. For example HttpConnection may be looped due
    to response redirection.
    2. I think the best practice for the case is to read bytes from the stream but not lines, for instance:
    int c = 0;
    while( (c=in.read())>=0 ){
    .... do something
    }

  • Read from datasocket server

    The question is simple. Is there any way to know the variables and values that have been written to the datasocket server without creating a VI that reads values?
    Thanks for your help

    I'm afraid that it is not possible. You must read the items from the DataSocket Server to know the item values that are been publishing
    crisR

  • HTML Body is lost from when it is read from Exchange Server 2007 to siebel 7.7.2.12

    Hi
    An HTML Email body sent through any email client. If the body type is HTML, when it comes through POP3 Exchange server 2007 and Siebel driver reads the mail it looses the Body formatting. I have already tried with the following options
    1) Adminstration Communication -> Communication Drivers and Profiles -> Internet SMTP/POP3 Server -> Driver Parameters -> Create Plain Text From HTML to True - This did not help
    2) Adminstration Communication -> Communication Drivers and Profiles -> Internet SMTP/POP3 Server -> Driver Parameters -> Convert Incoming To Plain Text to True - This did not help
    Both the combination did not help
    We also tried changing the POP3 properties at Exchange server level, where any email that is coming will always gets changed to plain text or HTML even that did not help.
    Any suggestions or recommendations are highly appreciated.
    Thanks
    Bhanu

    Hi,
    I also think it's caused due to the software confliction, to verify this, please perform a clean boot:
    Log on to the computer by using an account that has administrator rights.
    Click Start, type msconfig.exe in the Start Search box, and then press Enter to start the System Configuration utility.
    Note If you are prompted for an administrator password or for confirmation, you should type the password or provide confirmation.
    Collapse this imageExpand this image
    On the General tab, click the Selective startup
    option, and then click to clear the Load startup items check box.  (The
    Use Original Boot.ini check box is unavailable.)
    Collapse this imageExpand this image
    On the Services tab, click to select the Hide all Microsoft services check box, and then click
    Disable all.
    Collapse this imageExpand this image
    Note This step lets Microsoft services continue to run. These services include Networking, Plug and Play, Event Logging, Error Reporting, and other services. If you disable these services, you may permanently delete all restore points. Do not
    do this if you want to use the System Restore utility together with existing restore points.
    Click OK, and then click Restart.
    If there's no issue in clean boot, I suggest you double check the settings or the better way to contact the developer of the softwares to do further research on this issue.
    Thanks,
    Melon Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Changed setting to no proxy but not solved problem Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /iam/services/setContext. Reason: Error reading from remote server

    This problem only happens with one website when I try to follow hyperlinks to other pages. They have directed me to Firefox troubleshooting section. I have followed the advice there but it has not solved my problem.

    I haven't been able to go on line since 7.01 and up. I have to use ieexplorer. are you idiots or what. I can't even contact you because i have to be in your latest version but i can't get the internet with the latest version. good bye for good

  • How to get text file from app server and process it.

    Hello experts,
    I created a test data based form my recording. Now, I do not know where can I find it.
    Also, I want to create a program that lets users input the file name in the input parameter
    (selection screen) and it would automatically process/split that file. Again, thank you guys
    and take care!

    hi viray,
    im sorry i thought it was reading from presentation server....:-)
    >>I want to create a program that lets users input the file name in the input parameter
    (selection screen)
    at selection-screen on value-request for p_file.
    perform file_help using p_file.
    form file_help  using  p_p_file.
    call function 'RZL_READ_DIR_LOCAL'
    exporting
    name = p_dir
    tables
    file_tbl = t_filetab
    EXCEPTIONS
    ARGUMENT_ERROR = 1
    NOT_FOUND = 2
    OTHERS = 3
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    endform.                    " file_help
    Splitting File and path.
    use the FM <b>SO_SPLIT_FILE_AND_PATH</b>
    hope this helps,
    do reward if it helps,
    priya.
    Message was edited by: Priya

  • How to send msgs to tuxedo and read from tuxedousing jca adapter at jboss6

    Hi i had only Tuxedo ip and port number.i have to send messsages to tuxedo server and read from tuxedo server i did below changes at ra.xml and dmconfig.xml
    what are the services i have to use plz give me reply .Thanks in advance.
    my ra.xml is
    <?xml version="1.0" encoding="UTF-8"?>
    <connector xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"
    version="1.5">
    <display-name>Tuxedo JCA Adapter</display-name>
    <vendor-name>Oracle</vendor-name>
    <eis-type>Tuxedo</eis-type>
    <resourceadapter-version>11gR1(11.1.1.2.1)</resourceadapter-version>
    <license>
    <description>Tuxedo SALT license</description>
    <license-required>false</license-required>
    </license>
    <resourceadapter>
    <resourceadapter-class>com.oracle.tuxedo.adapter.TuxedoResourceAdapter</resourceadapter-class>
    <config-property>
    <config-property-name>traceLevel</config-property-name>
    <config-property-type>java.lang.String</config-property-type>
    <config-property-value>80000</config-property-value>
    </config-property>
    <config-property>
    <config-property-name>xaAffinity</config-property-name>
    <config-property-type>java.lang.String</config-property-type>
    <config-property-value>true</config-property-value>
    </config-property>
    <config-property>
    <config-property-name>keyFileName</config-property-name>
    <config-property-type>java.lang.String</config-property-type>
    <config-property-value></config-property-value>
    </config-property>
    <config-property>
    <config-property-name>dmconfig</config-property-name>
    <config-property-type>java.lang.String</config-property-type>
    <config-property-value>D:\jboss-6.1.0.Final\server\mpayv4_dev\deploy\dmconfig.xml</config-property-value>
    </config-property>
    <outbound-resourceadapter>
    <connection-definition>
    <managedconnectionfactory-class>com.oracle.tuxedo.adapter.spi.TuxedoManagedConnectionFactory</managedconnectionfactory-class>
    <connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>
    <connectionfactory-impl-class>com.oracle.tuxedo.adapter.cci.TuxedoConnectionFactory</connectionfactory-impl-class>
    <connection-interface>javax.resource.cci.Connection</connection-interface>
    <connection-impl-class>com.oracle.tuxedo.adapter.cci.TuxedoJCAConnection</connection-impl-class>
    </connection-definition>
    <transaction-support>NoTransaction</transaction-support>
    <authentication-mechanism>
    <authentication-mechanism-type>BasicPassword</authentication-mechanism-type>
    <credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>
    </authentication-mechanism>
    <reauthentication-support>false</reauthentication-support>
    </outbound-resourceadapter>
    </resourceadapter>
    </connector>
    ==========================
    and dmconfig.xml is
    <?xml version="1.0" encoding="UTF-8"?>
    <TuxedoConnector>
    <LocalAccessPoint name="local_1">
    <AccessPointId>dev_scurtis</AccessPointId>
    <NetworkAddress>//ip:port</NetworkAddress>
    </LocalAccessPoint>
    <RemoteAccessPoint name="e1tst_tdtux01">
    <AccessPointId>e1tst_tdtux01</AccessPointId>
    <NetworkAddress>//ip:port</NetworkAddress>
    </RemoteAccessPoint>
    <Import name="TOUPPER">
    <RemoteName>TOUPPER</RemoteName>
    <SessionName>session_1</SessionName>
    <LoadBalancing>RoundRobin</LoadBalancing>
    </Import>
    <Import name="ECHO">
    <RemoteName>ECHO</RemoteName>
    <SessionName>session_1</SessionName>
    <LoadBalancing>RoundRobin</LoadBalancing>
    </Import>
    </TuxedoConnector>

    Hi todd Thanks for your reply
    iam using below java code in jsp ,iam not getting the response plz suggest me any changes
    <%@ page import ="javax.naming.Context,
    javax.naming.InitialContext,
    javax.naming.NamingException,
    javax.ejb.CreateException,
    javax.resource.cci.ConnectionFactory,
    javax.resource.cci.Connection,
    javax.resource.cci.Interaction,
    javax.resource.cci.InteractionSpec,
    javax.resource.ResourceException,
    weblogic.wtc.jatmi.TPException,
    weblogic.wtc.jatmi.TPReplyException,
    com.oracle.tuxedo.adapter.TuxedoReplyException,
    com.oracle.tuxedo.adapter.cci.TuxedoStringRecord,
    com.oracle.tuxedo.adapter.cci.TuxedoInteractionSpec" %>
    <html>
    <head>
    </head>
    <body>
    <h1>Tuxedo Test</h1>
    <%
    System.out.println("Check Connection JNDI");
    String result="";
    result=Toupper("harikrishna");
    %>
    <%!
    public String Toupper(String string_to_convert) throws TPException, TuxedoReplyException
    Context ctx;
    ConnectionFactory cf;
    Connection c;
    Interaction ix;
    TuxedoStringRecord inRec;
    TuxedoStringRecord outRec;
    TuxedoInteractionSpec ixspec;
    try {
    ctx = new InitialContext();
    cf = (ConnectionFactory)ctx.lookup("java:jca/tuxedo");
    c = cf.getConnection();
    ix = c.createInteraction();
         ixspec = new TuxedoInteractionSpec();
         ixspec.setFunctionName("TOUPPER");
         ixspec.setInteractionVerb(InteractionSpec.SYNC_SEND_RECEIVE);
         inRec = new TuxedoStringRecord();
         outRec = new TuxedoStringRecord();
         inRec.setRecordName("MyInputData");
         outRec.setRecordName("MyOutputData");
         outRec.setString(string_to_convert);
         ix.execute(ixspec, inRec, outRec);
         ix.close();
         c.close();
         String returned_data = outRec.getString();
         return returned_data;
         catch (NamingException ne) {
         throw new TPException(TPException.TPESYSTEM,
         "Could not get TuxedoConnectionFactory"+ne);
         catch (ResourceException re) {
         throw new TPException(TPException.TPESYSTEM,
         "ResourceException occurred, reason: " + re);
    %>
    </body>
    </html>
    =======================================
    In tuxedo.lod at my jboo6/bin iam getting this informatin
    e property Security.
    4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSessionProfile]TJA_0188:INFO: Use ON_STARTUP to create default session profile property ConnectionPolicy.
    4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSessionProfile]TJA_0188:INFO: Use 60,000 to create default session profile property BlockTime.
    4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSessionProfile]TJA_0188:INFO: Use false to create default session profile property Interoperate.
    4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSessionProfile]TJA_0188:INFO: Use 60 to create default session profile property RetryInterval.
    4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSessionProfile]TJA_0188:INFO: Use 9,223,372,036,854,775,807 to create default session profile property MaxRetries.
    4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSessionProfile]TJA_0188:INFO: Use 2,147,483,647 to create default session profile property CompressionLimit.
    4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSessionProfile]TJA_0188:INFO: Use 0 to create default session profile property KeepAlive.
    4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSessionProfile]TJA_0188:INFO: Use 10,000 to create default session profile property KeepAliveWait.
    4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSessionProfile]TJA_0189:INFO: Default session profile created.
    4/30/12:2:59:09 AM:11:INFO[,]factory = null
    4/30/12:2:59:09 AM:11:INFO[,]name = TOUPPER
    4/30/12:2:59:09 AM:11:INFO[,]iname = TOUPPER
    4/30/12:2:59:09 AM:11:INFO[,]rsvc == null, create new ArrayList with key= TOUPPER
    4/30/12:2:59:09 AM:11:INFO[,]factory = null
    4/30/12:2:59:09 AM:11:INFO[,]name = ECHO
    4/30/12:2:59:09 AM:11:INFO[,]iname = ECHO
    4/30/12:2:59:09 AM:11:INFO[,]rsvc == null, create new ArrayList with key= ECHO
    4/30/12:2:59:09 AM:11:INFO[TuxedoAdapterSupervisor,createDefaultSession]TJA_0193:INFO: Default session created between LocalAccessPoint local_1 and RemoteAccessPoint e1tst_tdtux01.

  • Sockets: How do I know how much I can read from a socket?

    Hi everyone,
    I've opened a socket connection to a cisco router and want to read some of its databases. These are the main part of my code:
    Socket so = new Socket(routerIP, routerPort);
    BufferedReader br = new BufferedReader(
    new InputStreamReader(so.getInputStream()));
    BufferedWriter bw = new BufferedWriter(
    new OutputStreamWriter(so.getOutputStream()));
    // user/password entered.
    bw.write("show ip alias\r\n");
    bw.flush();
    while ((in = br.readLine()) != null) {
    System.out.println(in);
    so.close();
    The problem occurs in the "while" loop at the end of the code. The last line that the router is sending doesn't have a \r\n at the end and therefore my readLine command waits indefinitly.
    Well, I guess I can change that command with a simple read but still it won't be general. I'm looking for a command like "available" in socketImpl that tells me the number of bytes that I can read from the server beforehand.
    Any solutions?????????????
    Thanks,
    Ali.

    Ok, that much I know from the router. It supports
    telnet. So, basically if a telnet client can tell when
    it has read all the data coming from the router and
    when it has to wait for user to input the data, I have
    to be able to do so too.Hi, telnet does not know that it has read all the data coming from the router or from you; It waits for data from both sources (the router and you), and then retransmits that data to (you or the router respectively.)
    telnet must be sending and receiving data byte by byte
    cause what we type is displayed on the screen if the
    server echos the characters back to the client.
    Any suggestions, anyone knows of a simple telnet
    source?True. In particular, telnet does not care whether there is any carriage return or linefeed characters. It just retransmits whatever it gets from the source to the destination, except that it looks for particular escape sequences from the data source, such as the sequence for shutting out echo when you enter passwords.
    In your case, I am not sure what you want to achieve. I think you are trying to find the end-of-data but the end-of-data is not unambiguously terminated by an end-of-line. Maybe you need to find some other character or even strings for that purpose. You may even need to process the whole data received in order to determine the end of it.
    However, if you just want just that answer from the router and no more, you can send your logout after your query, so that after the router replies your queries, it also closes the connection and your BufferedReader.readLine() will return.

  • Proxy error - Invalid response from upstream server

    We are using Oracle Application Express Listener for requests between a Web browser and Oracle Application Express engine.
    Tomcat and Java version on the web server (Windows 2008):
    TomCat v 6.0
    Java version "1.6.0_25"
    Application Express version - 4.0.2.00.07
    Access to APEX site happens via Reverse Proxy.
    One of the reports is giving following error message from past few days and there are no log entries in Tomcat server.
    Proxy Error+
    The proxy server received an invalid response from an upstream server.
    The proxy server could not handle the request GET /appname/f.
    Reason: Error reading from remote server
    What could be possible reasons for this proxy error? Please help with the possible solutions to this problem.
    I have tried restarting Tomcat service, used different browsers, cleared browser cache but for no avail. Error is only on one particular report page.

    Hi,
    Have you tried to access the page directly via tomcat without the reverse proxy? This way you can determine if the problem arises at the reverse proxy or tomcat.
    You say it happens only on 1 specific report page, this makes me think there is something with that page and not with the reverse proxy or tomcat. Arises the error when you access the page directly or via a menu option? Maybe the menu link is not correct otherwise i suggest that you take a good look at that page.
    Kees Vlek.

  • Windows 7 x64 can't read/install any printer drivers from Windows Server 2003 x64 (AMD64 folder and HP Deskjet 855c)

    I read the thread Widows 7 printer
    HP deskjet 855c driver about possible installation of HP855c drivers onto Windows 7 x64 from "Windows Server 2003 x64" CD but I didn't have enough luck to succeed with doing it on my laptop. That thread appears to be dead now
    as it is marked "Answered", so I'm asking for help here. I have Toshiba Satellite P500 with Windows 7 Home Premium 64-bit (http://i55.tinypic.com/2zgth6v.jpg). 
    Let me tell you first that I don't have access to Windows Server 2003 x64 or XP Pro 64 CD's. However I did some research online, which eventually forced me to learn about the "file sharing". After extensive search I was able to get the copies
    of AMD64 folders from Windows Server 2003 R2 Standard x64 with SP2 and
    XP Pro 64. The reason that I went also after XP Pro was because I thought that the extra wording "R2 Standard x64 with SP2" in description of "Windows Server 2003" did not reflect the exact name provided by poster
    Alan. I couldn't find just "Windows Server 2003 x64" (does it matter?).
    Anyway, I followed first the drill with running "printui /s /t2" and disabling UAC, and then in both cases I was able to locate the
    NTPRINT.INF file (http://oi51.tinypic.com/9qwvt2.jpg - this image is from XP Pro AMD64 folder) but each time when I
    attempted to install the driver, I got the same message stating:
    "The folder you specified doesn't contain a compatible software drive for your device. If the folder contains the driver, make sure it's designed to work with Windows for x64-based systems." (http://oi53.tinypic.com/27yveiw.jpg)
    Why aren't there x64 drivers?
    During several installation attempts I had the printer connected to or disconnected from my laptop. It didn't make any difference. I must add that for this purpose I had to use different cable than the original one designated only for the
    Parallel port in my old desktop with Windows XP. My new laptop with Windows 7 x64 came only with 3 USB ports (plus 1 HDMI and 1 Serial). Because of that situation I bought in advance a new printer cable called “USB to 36-pin Parallel Port Adapter
    Cable” (http://www.amazon.com/gp/product/B003A8I75E). I'm not sure, if it will work until I can install the printer.
    Besides, nobody talked about this issue yet. I was also playing with the port choices in "Add printer" step; changing from default LPT1 to USB001 with the same negative results.
    I don't know what I'm doing wrong. I was very hopeful after reading positive "case closed" notes there.
    Can anyone help me here, maybe by making the necessary files available for download? I'm willing to pay for such assistance or make a donation, if necessary. Seriously. Judging by the large number of views of the original
    thread, one could assume that there is a potential demand for such service. It would be more human to pay few bucks for a few driver files than $900 for the whole Windows Server 2003 x64 CD, no? Can Microsoft accomodate me/us, please? :)
    Andrew*
    P.S. I was advised to come for help here from
    http://answers.microsoft.com/en-us/windows/forum/windows_7-hardware/windows-7-x64-cant-readinstall-any-printer-drivers/4e7d06e1-33a5-4597-be70-4fdc087a63a7?msgId=9a045994-0d31-4d40-b17d-dba372393ee4

    I have my HP 855c/driver working on Win 7 Ultimate x64. I used the 'printui /s' procedure and 4 files described above with some minor changes.
    I pulled WindowsServer2003.WindowsXP-KB914961-SP2-x64-ENU.exe down from the Microsoft website. Running the file causes the exe to unpack into a temp folder at the root drive. A 'Setup Error' message box is displayed once the file is run. I left this
    message box up until I copied ntprint.inf, ntprint.cat, and sp2.cab from the temp folder.
    I copied driver.cab from a Windows XP Pro disc. I also needed amd64\stdnames.gpd which was already in my Windows 7 c:\windows\system32\spool\drivers\x64\3 folder.  
    I created a folder with the 5 files (ntprint.inf, ntprint.cat, sp2.cab, driver.cab, and amd64\stdnames.gpd). This is my 'Have Disc' folder. 
    I followed the 'printui /s' instructions, first changing the permissions mentioned above and then installing the driver. Next I followed the instructions to add a printer from Control Panel 'Devices and Printers' - 'Add Printer', choosing to 'use an existing
    driver' when installing the HP 855c.
    I used a slightly different ntprint.inf, size 1570418. The readable contents of ntprint.inf is as follows. Notice the line 'CatalogFile=ntprint.cat' is not included. I tried using the 1570468 version of ntprint.inf; when I did I received an incompatibility
    message (probably the same one mentioned above).
    ; NTPRINT.INF (for Windows Server 2003 family)
    ; List of supported printers, manufacturers
    [Version]
    Signature="$Windows NT$"
    Provider=%MS%
    ; LayoutFile=layout.inf
    ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}
    Class=Printer
    DriverVer=10/01/2002,5.2.3790.4533
    [ClassInstall32.NT]
    AddReg=printer_class_addreg
    [printer_class_addreg]
    HKR,,,,%PrinterClassName%
    HKR,,Icon,,"-4"
    HKR,,Installer32,,"ntprint.dll,ClassInstall32"
    HKR,,NoDisplayClass,,1
    HKR,,EnumPropPages32,,"printui.dll,PrinterPropPageProvider"
     Good luck

  • [Error] Microsoft SQL Server 2008 Setup. Error reading from file msdbdata.mdf

    Hi all
    I'm trying to install SQL 2008 Express on my Computer: Hp compact DX7300 Slim tower.
    and get this error:
    TITLE: Microsoft SQL Server 2008 Setup
    The following error has occurred:Error reading from file d:\8268cd7b247d294de359c9\x86\setup\sql_engine_core_inst_msi\PFiles\SqlServr\MSSQL.X\MSSQL\Binn\Template\msdbdata.mdf.  Verify that the file exists and that you can access it.
    Click 'Retry' to retry the failed action, or click 'Cancel' to cancel this action and continue setup.
    For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.0.1823.0&EvtType=0xF45F6601%25401201%25401
    Log file
    Overall summary:
      Final result:                  SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then rerun SQL Server Setup.
      Exit code (Decimal):           -2068643839
      Exit facility code:            1203
      Exit error code:               1
      Exit message:                  SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then rerun SQL Server Setup.
      Start time:                    2014-12-09 23:22:03
      End time:                      2014-12-09 23:40:28
      Requested action:              Install
      Log with failure:              C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141209_232121\sql_engine_core_inst_Cpu32_1.log
      Exception help link:           http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.0.1823.0
    Machine Properties:
      Machine name:                  VISTA-PC
      Machine processor count:       2
      OS version:                    Windows Vista
      OS service pack:               Service Pack 1
      OS region:                     United States
      OS language:                   English (United States)
      OS architecture:               x86
      Process architecture:          32 Bit
      OS clustered:                  No
    Product features discovered:
      Product              Instance             Instance ID                    Feature                
                     Language             Edition              Version         Clustered 
    Package properties:
      Description:                   SQL Server Database Services 2008
      SQLProductFamilyCode:          {628F8F38-600E-493D-9946-F4178F20A8A9}
      ProductName:                   SQL2008
      Type:                          RTM
      Version:                       10
      SPLevel:                       0
      Installation location:         d:\8268cd7b247d294de359c9\x86\setup\
      Installation edition:          EXPRESS
    User Input Settings:
      ACTION:                        Install
      ADDCURRENTUSERASSQLADMIN:      False
      AGTSVCACCOUNT:                 NT AUTHORITY\NETWORK SERVICE
      AGTSVCPASSWORD:                *****
      AGTSVCSTARTUPTYPE:             Disabled
      ASBACKUPDIR:                   Backup
      ASCOLLATION:                   Latin1_General_CI_AS
      ASCONFIGDIR:                   Config
      ASDATADIR:                     Data
      ASDOMAINGROUP:                 <empty>
      ASLOGDIR:                      Log
      ASPROVIDERMSOLAP:              1
      ASSVCACCOUNT:                  <empty>
      ASSVCPASSWORD:                 *****
      ASSVCSTARTUPTYPE:              Automatic
      ASSYSADMINACCOUNTS:            <empty>
      ASTEMPDIR:                     Temp
      BROWSERSVCSTARTUPTYPE:         Disabled
      CONFIGURATIONFILE:             C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141209_232121\ConfigurationFile.ini
      ENABLERANU:                    True
      ERRORREPORTING:                False
      FEATURES:                      SQLENGINE,REPLICATION
      FILESTREAMLEVEL:               0
      FILESTREAMSHARENAME:           <empty>
      FTSVCACCOUNT:                  <empty>
      FTSVCPASSWORD:                 *****
      HELP:                          False
      INDICATEPROGRESS:              False
      INSTALLSHAREDDIR:              C:\Program Files\Microsoft SQL Server\
      INSTALLSHAREDWOWDIR:           C:\Program Files\Microsoft SQL Server\
      INSTALLSQLDATADIR:             <empty>
      INSTANCEDIR:                   C:\Program Files\Microsoft SQL Server\
      INSTANCEID:                    SQLExpress
      INSTANCENAME:                  SQLEXPRESS
      ISSVCACCOUNT:                  NT AUTHORITY\NetworkService
      ISSVCPASSWORD:                 *****
      ISSVCSTARTUPTYPE:              Automatic
      MEDIASOURCE:                   d:\8268cd7b247d294de359c9\
      NPENABLED:                     0
      PID:                           *****
      QUIET:                         False
      QUIETSIMPLE:                   False
      RSINSTALLMODE:                 FilesOnlyMode
      RSSVCACCOUNT:                  <empty>
      RSSVCPASSWORD:                 *****
      RSSVCSTARTUPTYPE:              Automatic
      SAPWD:                         *****
      SECURITYMODE:                  <empty>
      SQLBACKUPDIR:                  <empty>
      SQLCOLLATION:                  SQL_Latin1_General_CP1_CI_AS
      SQLSVCACCOUNT:                 NT AUTHORITY\NETWORK SERVICE
      SQLSVCPASSWORD:                *****
      SQLSVCSTARTUPTYPE:             Automatic
      SQLSYSADMINACCOUNTS:           VISTA-PC\VISTA
      SQLTEMPDBDIR:                  <empty>
      SQLTEMPDBLOGDIR:               <empty>
      SQLUSERDBDIR:                  <empty>
      SQLUSERDBLOGDIR:               <empty>
      SQMREPORTING:                  False
      TCPENABLED:                    0
      X86:                           False
      Configuration file:            C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141209_232121\ConfigurationFile.ini
    Detailed results:
      Feature:                       Database Engine Services
      Status:                        Failed: see logs for details
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       SQL Server Replication
      Status:                        Failed: see logs for details
      MSI status:                    Passed
      Configuration status:          Passed
    Rules with failures:
    Global rules:
    Scenario specific rules:
    Rules report file:               C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141209_232121\SystemConfigurationCheck_Report.htm
    I will very appriciate if someone can help me solve it. I was trying to set Full control for my account in Properties/Security of root folder and try again but error is still.
    Many thanks

    Hi Foreverduy,
    Before you run SQL Server 2008 express setup, make sure that you have installed Windows installer 4.5 and.NET Framework 3.5 SP1 manually. For more information about the process, please refer to the article:
    http://msdn.microsoft.com/en-us/library/ms143506(v=sql.100).aspx. Moreover, please turn off all the third-party softwares which could prohibit the installation process.
    According to your error message, the issue could be due to that your account has no rights to install SQL Server, or the corruption on the media.
    Firstly, please ensure that your account has admin rights. Also make sure that you right-click the setup.exe and choose “Run as administrator” to complete the installation.
    Secondly, please check if "msdbdata.mdf" file exists at d:\8268cd7b247d294de359c9\x86\setup\sql_engine_core_inst_msi\PFiles\SqlServr\MSSQL.X\MSSQL\Binn\Template. If it exists, please make sure that your account has read permission to the extracted
    folder.
    However, if the file doesn't exist in the extraction, the media could be corrupt. Please download the
    media
    again and check if the issue still occurs.
    Regards,
    Michelle Li

  • File from application server -Read and process and delete the file .

    Hi All,
             I writing a ZEE program which will read the file from application server(file will be in text delimat format) and moving the data to internal table and uploadind data base.The part which iam facing problem is -
    > I hve read the file from application server like below ,
    OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc NE 0.
    EXIT.
    ELSE.
      DO.
        CLEAR: wa_string, wa_uploadtxt.
        READ DATASET ld_file INTO wa_string.
        IF sy-subrc NE 0.
          EXIT.
        ELSE.
          SPLIT wa_string AT con_tab INTO wa_uploadtxt-name1
                                          wa_uploadtxt-name2
                                          wa_uploadtxt-age.
    Spliting part i having problem .i need to seperate each field which is seperate from tab delimite and pass it into respective fields of internal table .
    Second if another file come to the appicaltion server , wether my first file will be there ? or should i need to delete the first file after redaing how should i proceed further ?.
    Regards
    SRIRAM...
    THANKS In ADVANCE

    HI,
    1.
    OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc NE 0.
    EXIT.
    ELSE.
    DO.
    CLEAR: wa_string, wa_uploadtxt.
    READ DATASET ld_file INTO wa_string.
    IF sy-subrc NE 0.
    EXIT.
    ELSE.
    SPLIT wa_string AT cl_abap_char_utilities=>horizontal_tab INTO wa_uploadtxt-name1
    wa_uploadtxt-name2
    wa_uploadtxt-age.
    APPEND  wa_uploadtxt TO itab.
    ENDDO.
    CLOSE DATASET ld_file.
    ENDIF.
    2. If the another file get's generated in the application server with same file name then the data in old file get's over written with the new data. You are not required to delete the file.

Maybe you are looking for

  • Removing KM Scheduler

    Hi All, I created KM scheduler for my portal task(fetching the data from third party site and saving that in a file in KM). Initially it works fine but later I changed some code in the portal appliocation and again redeploy the application then it is

  • Process Chain step status

    Hello All, In one of our process chain , we have an AND step, where in its checks its 4 preeceding steps, its all 4 are green,the AND Step executes and it goes to the next step. Chain is running fine since many years. But yesterday , we faced the iss

  • Error in Publication-Unable to find the infostore service

    Hi, I am getting this error when Publication webi report? 2011-09-06 11:04:49,156 ERROR [PublishingService:HandlerPool-97] BusinessObjects_PublicationAdminErrorLog_Instance_40982 - [Publication ID # 40982] - Unable to find the infostore service. Is y

  • Trying to get BT line in my name, so I can get Sky...

    I will try and keep this short so everyone can understand! I moved into a new house on 4th May. On the 24th April, I ordered a sky package of tv, broadband and phone. Everything went thru ok, and I was told everything would be up and running within 4

  • MergeEntity not firing

    I have been experimenting with 11g ADF and Toplink and have created a simple page that displays the contents of a DB table in an af:table. Everything has been great up until today. I seem to have an issue with using mergeEntity. persistEntity works a