Getting exception when trying to send data to a server

Hi all,
I am working on to connect to a remote machine sendng data to remote machine and testing whether data is reaching to machine or not..but when i do it i get the following exception
java.io.EOFException
at java.io.DataInputStream.readUnsignedShort(Unknown Source)
at java.io.DataInputStream.readUTF(Unknown Source)
at java.io.DataInputStream.readUTF(Unknown Source)
at Client.main(Client.java:37)
and this is my code
import java.net.*;
import java.io.*;
public class Client {
public static void main(String[] args) {
int serverPort = 8080; // make sure you give the port number on which the server is listening. 
String address = "remotehost"; // this is the IP address of the server  computer.
  try { 
Socket socket = new Socket(address, serverPort); // create a socket with the server's IP address and server's port. 
System.out.println("Yes! I just got hold of the program.");
// Get the input and output streams of the socket, so that you can receive and send data to the client. 
InputStream sin = socket.getInputStream(); 
OutputStream sout = socket.getOutputStream();
// Just converting them to different streams, so that string handling becomes easier.
DataInputStream in = new DataInputStream(sin);
DataOutputStream out = new DataOutputStream(sout);
// Create a stream to read from the keyboard. 
BufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in));
String line = null; 
System.out.println("Type in something and press enter. Will send it to the server and tell ya what it thinks."); 
System.out.println();
while(true) {
line = keyboard.readLine(); // wait for the user to type in something and press enter.
System.out.println("Sending this line to the server...");
out.writeUTF(line); // send the above line to the server.
out.flush(); // flush the stream to ensure that the data reaches the other end. 
line = in.readUTF(); // wait for the server to send a line of text.
System.out.println(" : " + line);
System.out.println(); 
  } catch(IOException e) if any knows what's the problem please help me..
Thanks

We'll need a little more info. If you're doing anything like the following then there's a problem:
File f = new File("demo.txt");
The problem is that the demo.txt file is not in the current directory - it's in the rmi\compute directory.
This should work but it's not recommended:
File f = new File("c:\\rmi\\compute\\demo.txt");
You should substitue File.separator for the "\\" chars.

Similar Messages

  • Getting exception when trying to get taskdetails url using BPM worklist api

    Getting exception when trying to get taskdetails url using BPM worklist api method :
    String url = WorklistUtil.getTaskDisplayURL(
    wfSvcClient,
    ctx,
    task,
    null,
    "worklist",
    parameters);
    Jul 21, 2011 11:24:40 AM oracle.bpel.services.common.ServicesLogger __log
    WARNING: <oracle.bpel.services.workflow.client.worklist.util.TaskFlowPropsUtil.getServerPropertiesFromMbean()> Exception while loading install config file in standalone Error : javax.management.InstanceNotFoundException: com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean: com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean
    oracle.fabric.common.FabricException: javax.management.InstanceNotFoundException: com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean: com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean
    at oracle.soa.common.util.PlatformUtils.getServerInfo(PlatformUtils.java:184)
    at oracle.bpel.services.workflow.client.worklist.util.TaskFlowPropsUtil.getServerPropertiesFromMbean(TaskFlowPropsUtil.java:319)
    at oracle.bpel.services.workflow.client.worklist.util.TaskFlowPropsUtil.getServerInfoForWeblogicServer(TaskFlowPropsUtil.java:491)
    at oracle.bpel.services.workflow.client.worklist.util.TaskFlowPropsUtil.getServerInfo(TaskFlowPropsUtil.java:363)
    at oracle.bpel.services.workflow.worklist.api.util.WorklistUtil.getDefaultURLPrefix(WorklistUtil.java:264)
    at oracle.bpel.services.workflow.worklist.api.util.WorklistUtil.getTaskDisplayURL(WorklistUtil.java:353)
    at oracle.bpel.services.workflow.worklist.api.util.WorklistUtil.getTaskDisplayURL(WorklistUtil.java:293)
    at com.test.WorflowServiceClient.main(WorflowServiceClient.java:198)
    Caused by: javax.management.InstanceNotFoundException: com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1094)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:662)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:638)
    at oracle.as.jmx.framework.config.session.ConfigurationMBeanServerImpl.getAttribute(ConfigurationMBeanServerImpl.java:210)
    at oracle.soa.common.util.PlatformUtils.getServerInfo(PlatformUtils.java:78)
    ... 7 more
    Caught workflow exception: null
    Process exited with exit code 0.
    Can anyone please help me

    Actually i'm using Jdeveloper 11.1.1.4 and our requirement is to show list of BPM worklist tasks for the logged in user on the first page and onclick of each task task details page should be opened. I can use Webcenter PS3 worklist taskflow. But i'm not able to customize that taskflow. So, i'm going for Worklist client api.
    I'm able to retrive the taskId,task title and few other details like task payload. But i don't know why the below method is giving exception.
    String url =
    WorklistUtil.getTaskDisplayURL(wfSvcClient,
    ctx, task, null,
    "worklist", parameters);
    And i observed that you have also used the same code for getting Taskdetails url. And one more thing is i'm trying to access BPM worklist which is installed on remote machine.
    Can you tell me what could be the reason for the exception?

  • Why do I get the message  "cannot get mail" when trying to connect to microsoft exchange server.

    Why do I get the message "cannot get mail" when trying to connect to ms exchange server?

    Hard to say. Has it ever worked? Maybe your account has mobile e-mail disabled. Maybe ActiveSync isn't set up properly on the server. maybe the correct ports are not open on the corporate firewall.
    You will have to talk to your IT department.

  • Getting exception when trying to open Alert Configuration in RW

    Hello friends,
    I am getting the following exception when i am trying to open the Alert Configuration/Alert Inbox in RWB.
    Exception:
    com.sap.aii.rwb.exceptions.BuildLandscapeException: No central monitoring server in exchange profile
            at com.sap.aii.rwb.core.MonitoringServer.(MonitoringServer.java:77)
            at com.sap.aii.rwb.agent.server.SLDAgentBean.buildMonitoringServer(SLDAgentBean.java:799)
            at com.sap.aii.rwb.agent.server.SLDAgentBean.getMonitoringServer(SLDAgentBean.java:1462)
            at com.sap.aii.rwb.agent.api.SLDAgentObjectImpl0.getMonitoringServer(SLDAgentObjectImpl0.java:999)
            at com.sap.aii.rwb.agent.api.SLDAgent_Stub.getMonitoringServer(SLDAgent_Stub.java:1931)
            at com.sap.aii.rwb.agent.client.EJBAgent.getMonitoringServer(EJBAgent.java:493)
            at jsp_alert_inbox1204719699497._jspService(jsp_alert_inbox1204719699497.java:28)
            at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
            at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
            at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:321)
            at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:377)
            at jsp_FC_Secure1204104271605._jspService(jsp_FC_Secure1204104271605.java:24)
            at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
            at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
            at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
            at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
            at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
            at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
            at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Could you please help me out in solving this problem?
    Thanks & Regards,
    Senthil

    From your error, maybe your profile parameter for alert message server is not properly configured:
    I just came cross a post elaborating alerting configuration from Aashish Sinha, hope it helps,
    Liang
    =====Post from Aashish Sinha=======
    Prerequisites
    The following prerequisites have to be met in order to use the Alert Management (ALM):
    · For using the Alert Inbox (BSP based display program of ALM), the corresponding service has to be activated in the service maintenance transaction SICF. Choose Default_host ? sap ? bc ? bsp ? sap ? alert inbox, and Activate in the context menu.
    · For customizing or administration of the Alert Management the corresponding authorization role has to be assigned. The end users do not need any additional authorization.
    · The central alert server must be maintained as an RFC destination in transaction SM59 in the local system. If there is no suitable user, you have to create a user for the RFC connection in the central alert system in transaction SU01. To make this RFC destination known as the RFC destination of the Alert Management System in the local system, the central alert server must also be selected as the RFC destination in transaction SALRT1 of the local system or in Settings ? RFC-Destination of Alert Server.
    If the central alert server is running on the local system in the same client, you do not have to maintain an RFC destination. In this case, you can simply enter NONE in transaction SALRT1.
    · If external communication types, such as e-mail, SMS, and fax are used, these communication types must be correctly configured in SAPconnect, because the alerts are then sent from the central alert system via SAPconnect.
    Process Flow
    The following describes the process flow from alert configuration (transaction ALRTCATDEF) to alert display and confirmation (for example in the alert inbox transaction ALRTINBOX):
    1. Optional: You can define alert classifications. These are useful to group alert categories. For example, you can create an alert classification CRM that contains alert categories referring to CRM. Alert classifications can now have subclassifications. This enables you to build up your own classification hierarchy. Especially, if you use the Alert Mangement (ALM) extensively, classification and subclassification help you to organize your ALM alert landscape and to have a clear overview.
    2. For different types of alerts you have to define different categories. The category contains various properties and other specifications that define the alerts within that category, for example expiry date, or the escalation recipient. You can define an alert category to suit your business requirements and assign the category to the corresponding classification. For example, for the alert classification CRM you can create the alert categories Contract Cancelled and Decrease in Sales. When the critical situation defined in the alert category arises, the system recognizes this and sends an alert instance of this category to the recipients determined. The alerts can always be found in the display programs configured for the recipient (UWL, application-specific program, or alert inbox). Additionally, the alerts are sent via eventual external communication channels, such as e-mail, sms, or fax.
    3. You have to determine recipients so that the Alert Management knows who the recipients of alerts of a particular category are and that the correct parties are informed.
    4. You can configure the way how alerts are processed. For the general use of the Alert Management you do not have to change the default settings. However, if for example you want to send alerts to third-party systems, or to be able to confirm alerts by SMS/Internet mail, or to have logs written, then you have to configure alert processing.
    5. There is a number of Alert Management administration reports that you must schedule according to your requirements. For example, report RSALERTPROC must be executed in order to enable escalation.
    6. Alerts of a particular category must be triggered by an application at runtime. Triggering alerts can be done in various ways. You can call a function module directly or use middleware components that trigger alerts, such as the Business Object Repository (BOR), Post Processing Framework (PPF), SAP Workflow, or CCMS.
    7. Recipients can view the alerts assigned to them in the UWL of Enteprise Portal, in application-specific display programs, or in the alert inbox. In addition, alerts can be received as e-mail, SMS, or fax, if these external communication channels are configured in SAPconnect.
    8. If the problem causing the alert is solved by a recipient, the recipient can confirm the alert, this means its status is changed and it will not be delivered, escalated, or displayed anymore. Alerts are generally confirmed by the recipient in the display program, such as the UWL or Alert Inbox. However, if an alert is sent by Internet mail or SMS message, it is also possible to confirm it by sending an Internet mail or SMS message back to the SAP system. Alert Management uses inbound processing for this.
    Hope this will help you.
    Regards
    Aashish Sinha
    ============End of the Post=======================

  • Getting error when trying to end date the element links

    When i am trying to end date the element link and i am getting a error message as ORA-01403: no data found if i click on the details button the following message is displayed:
    ORA-01403: no data found
    FRM-40735: ON-DELETE trigger raised unhandled exception ORA-01403.
    If i click on Ok button it bringgs another popup message that reads as follows:
    An Unexpected Error- 1403 has occured.An alert has been sent to the system administrator.
    ORA-01403: no data found
    I am really not getting why my link is not end dating.
    Could anyone advice me on how i can end date my element links.
    NB:the date track i am using is 01-DEC-2009 and no prayroll or quick pay has been processed as of this date

    Pl see if enabling an Forms Runtime Diagnostics (FRD) trace can help identify the cause
    MOS Doc 373548.1 - How To Collect And Use Forms Trace (FRD) in Oracle Applications Release 12
    MOS Doc 167635.1 - How To Perform Forms Runtime Diagnostics (FRD) Tracing in Applications 11i
    HTH
    Srini

  • Script output getting suppressed when trying to send email

    Hi,
    I am having an existing report,part of code is given below.
    *data processing.....
          itcpo-tdcovtitle =  z_text.             
          itcpo-tdgetotf   = 'X'.                 
          call function 'OPEN_FORM'               
             exporting                            
                  device             = 'PRINTER'  
                form               = 'LAYOUTSET'
             importing                             
                  result             = x_itcpp_sulph
             exceptions                            
                  canceled           = 1           
                  device             = 2           
                  form               = 3           
                  options            = 4           
                  unclosed           = 5           
                  others             = 6.          
    Data processing ....and writing to script output
      perform entry(zvadin11) using returncode xscreen if found.
         call function 'CLOSE_FORM'         
              importing                     
                    result   = x_itcpp_sulph
              tables                        
                    otfdata  = otf1         
              exceptions                    
                    unopened = 1            
                    others   = 2.    
    So the control will switch from existing report to another program namely zvadin11 and gives script output.
    Now,in my current program i am trying to send script output through Email,for which i am converting script output to OTF data.Then sending the data through mail,using function modules 'SX_OBJECT_CONVERT_OTF_PDF' and 'SO_NEW_DOCUMENT_ATT_SEND_API1'.
    I am able to send the data through PDF attachment as required.But i am unable to see Script output.If i comment the OTF related code from open_form and close_form,i am able to see the script output,but i am not getting data into OTF internal table.
    Can i get both the functionalities of seing the script output and also get OTF data for Email.
    Can any one help me?
    Thanks & Regards,
    Seshagiri.M.
    Intelligroup.

    Hi Seshagiri,
    Is yur code that sneds email before 'CLOSE_FORM'?
    Regards,
    Suresh Datti

  • Exception when trying to manipulate Data in an ADAM server

    Hi all,
    I'm having problems with trying to manipulate data in the ADAM instance on my machine. Currently I can bind to the ADAM instance (took me a while to figure out that ADAM isn't like other normal LDAP servers... you need to bind as a user which is a member of the Administrators group. So currently my url is ldap://localhost:389/O=Microsoft,C=US, user is cn=Mary,cn=Roles,o=Microsoft,c=US for example), but using java code all I can do is search for data and retrieve the results. However when it comes to modifying, adding and the like I keep getting a NameNotFoundException:
    org.springframework.ldap.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-031001D2, problem 2001 (NO_OBJECT), data 0, best match of:
         'O=Microsoft,C=US'
    What is wrong? Why can I do searches but not anything else? Since this looks like a permissions issue with ADAM I haven't included any of my source code. Also this org.springframework.ldapNameNotFoundException is the same as JNDI NameNotFoundException, so even if you don't know anything about spring framework this isn't a cause for concern.
    Thanks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I am having problem retrieving the users from the AD, can anyone help me with this with an example plz!

  • Keep on getting exception when trying to start ManagedServer wit h NodeManager in wls 7.0

    hi all,
    i am trying to start a managed server using nodeManager, but i keep on getting
    following exception:
    weblogic.nodemanager.NodeManagerException: [Could not execute command start for
    server managedServer via the Node Manager - reason: [CommandInvoker: Failed to
    send command: 'online to server 'managedServer' to NodeManager at host: 'localhost:5555'
    with exception FATAL Alert:HANDSHAKE_FAILURE - The handshake handler was unable
    to negotiate an acceptable set of security parameters.. Please ensure that the
    NodeManager is active on the target machine].]
         at weblogic.nodemanager.NodeManagerRuntime.executeCommand(NodeManagerRuntime.java:472)
         at weblogic.nodemanager.NodeManagerRuntime.start(NodeManagerRuntime.java:76)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:732)
         at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:714)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
         at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:952)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:470)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:198)
         at $Proxy86.start(Unknown Source)
         at weblogic.server.ServerLifeCycleRuntime.startServer(ServerLifeCycleRuntime.java:502)
         at weblogic.server.ServerLifeCycleRuntime.access$0(ServerLifeCycleRuntime.java:471)
         at weblogic.server.ServerLifeCycleRuntime$1.execute(ServerLifeCycleRuntime.java:423)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
    here is my script for starting nodemanager
    set JAVA_HOME=c:\bea\jdk131
    set WL_HOME=c:\bea\weblogic700
    set PATH=%WL_HOME%\server\bin;%JAVA_HOME%\bin;%PATH%
    set CLASSPATH=.;%WL_HOME%\server\lib\weblogic_sp.jar;%WL_HOME%\server\lib\weblogic.jar
    java -Djava.security.policy=C:\bea\weblogic700\server\lib\weblogic.policy weblogic.nodemanager.NodeManager
    can anyone point me to the right direction for solving this problem?
    in the adminserver console i have defined a machine for teh managedserver, and
    nodemanager is supposed to run at localhost:5555 (and indeed it does, because
    ihave started it successfully).
    thanx in advance and regards
    marco

    Hi
    add this params to the nodemanager start script
    -Dweblogic.nodemanager.KeyFile=${NODEMGR_HOME}/config/
    demokey.pem
    -Dweblogic.nodemanager.certificateFile=${NODEMGR_HOME}/config/democert.pem
    -Dweblogic.security.SSL.ignoreHostname.Verification=true
    you need to specify certs for nodemanager
    make sure servers use the same certs..
    Best regards
    "Marco" <[email protected]> wrote:
    >
    hi all,
    i am trying to start a managed server using nodeManager, but i keep
    on getting
    following exception:
    weblogic.nodemanager.NodeManagerException: [Could not execute command
    start for
    server managedServer via the Node Manager - reason: [CommandInvoker:
    Failed to
    send command: 'online to server 'managedServer' to NodeManager at host:
    'localhost:5555'
    with exception FATAL Alert:HANDSHAKE_FAILURE - The handshake handler
    was unable
    to negotiate an acceptable set of security parameters.. Please ensure
    that the
    NodeManager is active on the target machine].]
         at weblogic.nodemanager.NodeManagerRuntime.executeCommand(NodeManagerRuntime.java:472)
         at weblogic.nodemanager.NodeManagerRuntime.start(NodeManagerRuntime.java:76)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:732)
         at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:714)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
         at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:952)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:470)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:198)
         at $Proxy86.start(Unknown Source)
         at weblogic.server.ServerLifeCycleRuntime.startServer(ServerLifeCycleRuntime.java:502)
         at weblogic.server.ServerLifeCycleRuntime.access$0(ServerLifeCycleRuntime.java:471)
         at weblogic.server.ServerLifeCycleRuntime$1.execute(ServerLifeCycleRuntime.java:423)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
    here is my script for starting nodemanager
    set JAVA_HOME=c:\bea\jdk131
    set WL_HOME=c:\bea\weblogic700
    set PATH=%WL_HOME%\server\bin;%JAVA_HOME%\bin;%PATH%
    set CLASSPATH=.;%WL_HOME%\server\lib\weblogic_sp.jar;%WL_HOME%\server\lib\weblogic.jar
    java -Djava.security.policy=C:\bea\weblogic700\server\lib\weblogic.policy
    weblogic.nodemanager.NodeManager
    can anyone point me to the right direction for solving this problem?
    in the adminserver console i have defined a machine for teh managedserver,
    and
    nodemanager is supposed to run at localhost:5555 (and indeed it does,
    because
    ihave started it successfully).
    thanx in advance and regards
    marco

  • "Getting exception when trying to run a JDBC code"

    Hi,
    I am getting this exception when I try to run the Jdbc code. Can some one sort out what is the problem.
    Exception in thread "main" java.lang.UnsupportedClassVersionError: TestJdbcGrip
    (Unsupported major.minor version 49.0)Regards

    The JDBC jarfile you have is either too new, or too old (less liekely) for you current Java version. Download a newer Java version and try that. If it doesn't work, then download the newer version of the JDBC driver and try it with both of the Java versions (both because if it works with both, then you can continue using whichever one you like).

  • Exception when trying to set data in a rfc model

    Hi everybody,
    I found a very good posting from Bertram Ganz, explaining how to fill "data structure parameter" in a rfc model: initializing AbstractList Model in Custom Controller
    But although I directly follow the instructions given in this posting, I still get an ArrayIndexOutOfBoundsException (java.lang.ArrayIndexOutOfBoundsException: -1) when I try to add the "data structure parameter" to the model.
    Here is an extract from my code:
    Z_Wddemo_Mm_Lieferpl_Et_Change_Input input = new Z_Wddemo_Mm_Lieferpl_Et_Change_Input();
    Zwddemo_Eket_S tabline = new Zwddemo_Eket_S();
    tabline.setEindt(new Date(2007, 9, 27));
    tabline.setEtenr("001");
    tabline.setLmeng(new BigDecimal("1"));
    tabline.setMenge(new BigDecimal("2"));
    tabline.setWmeng(new BigDecimal("3"));
    input.addIt_Eket(tabline);
    wdContext.nodeProcessChangesModelValues().bind(input);
    <i>nodeProcessChangesModelValues()</i> is the root node of the model. The exception occurs in line <i>input.addIt_Eket(tabline);</i>.
    Any ideas what goes wrong here?
    Thanks in advance for all answers!
    Regards,
    Torben

    I am having problem retrieving the users from the AD, can anyone help me with this with an example plz!

  • Getting exception when trying to debug TimerJob

    After attaching TimerJob with OWSTIMER.exe to debug when I clicked Run Now for my timerjob from job defination page then below exception occured -
    System.ServiceModel.EndpointNotFoundException was unhandled
      Message=Could not connect to http://localhost:5725/ResourceManagementService/MEX. TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:5725. 
      Source=mscorlib
      StackTrace:
        Server stack trace: 
           at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStream()
           at System.ServiceModel.Channels.HttpOutput.Send(TimeSpan timeout)
           at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.SendRequest(Message message, TimeSpan timeout)
           at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
           at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
           at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
           at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
           at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
        Exception rethrown at [0]: 
           at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
           at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
           at System.ServiceModel.Description.IMetadataExchange.Get(Message request)
           at Microsoft.ResourceManagement.WebServices.MetadataClient.Get(Message request)
           at Microsoft.ResourceManagement.WebServices.MetadataClient.Get(String dialect, String identifier)
           at Microsoft.ResourceManagement.WebServices.Client.ResourceManagementClient.GetSchema()
           at Microsoft.ResourceManagement.WebServices.Client.ResourceManagementClient.SchemaManagerImplementation.RefreshSchema()
           at Microsoft.ResourceManagement.WebServices.Client.ResourceManagementClient.SchemaManagerImplementation.get_Instance()
           at Microsoft.ResourceManagement.WebServices.Client.ResourceManagementClient.SchemaManagerImplementation.Initialize(Object state)
           at System.Threading.ExecutionContext.runTryCode(Object userData)
           at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
           at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
           at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
      InnerException: System.Net.WebException
           Message=Unable to connect to the remote server
           Source=System
           StackTrace:
                at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
                at System.Net.HttpWebRequest.GetRequestStream()
                at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStream()
           InnerException: System.Net.Sockets.SocketException
                Message=No connection could be made because the target machine actively refused it 127.0.0.1:5725
                Source=System
                ErrorCode=10061
                NativeErrorCode=10061
                StackTrace:
                     at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
                     at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32
    timeout, Exception& exception)
                InnerException: 
    How to avoid this and what is going wrong.. Please help..
    Rushikesh_Khadtare

    Hi,
    Please try to preserve the appropriate UPS databases, tear down the UPS service application instance for SP1 application, and then rebuild the UPS service application afterwards.
    Here is a blog with the detailed troubleshooting steps for your reference:
    http://sharepointinterface.com/2011/07/05/crashing-owstimer-exe-after-sharepoint-2010-sp1-installation/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • #008 Error: Cleared history, cache & cookies, then restarted Firefox, but still get error when trying to send an e-mail.

    Using current version of Firefox.
    The problem seems to be confined to the e-mail I was trying to reply to. Sent a test msg. to another Gmail address & it didn't have a problem.

    By the way, the fact that the error does not occur in Safe Mode is interesting, as in normal mode Firefox may be checking the registry key related to Firefox extensions at startup. And that key would be a logical target for deletion of any references to malware. However, I've never seen a specific list of registry read/writes for Firefox startup, so that's just a guess.

  • Getting Exception when trying to connect to IMAP store. Please Help

    DEBUG: not loading system providers in <java.home>/lib
    DEBUG: successfully loaded optional custom providers from URL: jar:file:/C:/James/javamail-1.3.3_01/lib/imap.jar!/META-INF/javamail.providers
    DEBUG: successfully loaded optional custom providers from URL: jar:file:/C:/James/javamail-1.3.3_01/lib/pop3.jar!/META-INF/javamail.providers
    DEBUG: successfully loaded optional custom providers from URL: jar:file:/C:/James/javamail-1.3.3_01/lib/smtp.jar!/META-INF/javamail.providers
    DEBUG: successfully loaded default providers
    DEBUG: Tables of loaded providers
    DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}
    DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsy stems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc]}
    DEBUG: successfully loaded optional address map from URL: jar:file:/C:/James/javamail-1.3.3_01/lib/smtp.jar!/META-INF/javamail.address.map
    {mail.imap.port=143, mail.imap.user=*************, mail.debug=true, mail.imap.host=*************, mail.imap.class=com.sun.mail.imap.IMAPStore}
    C:\_home\programs\wsad51\eclipse\jre
    got connection to the imap server
    DEBUG: mail.imap.class property exists and points to com.sun.mail.imap.IMAPStore
    java.lang.reflect.InvocationTargetException: java.lang.NoSuchMethodError: javax.mail.Session: method getDebugOut()Ljava/io/PrintStream; not found
         at com.sun.mail.imap.IMAPStore.<init>(IMAPStore.java:170)
         at java.lang.reflect.Constructor.newInstance(Native Method)
         at javax.mail.Session.getService(Session.java:566)
         at javax.mail.Session.getStore(Session.java:362)
         at javax.mail.Session.getStore(Session.java:324)
         at javax.mail.Session.getStore(Session.java:303)
         at com.equifax.equicom.batch.email.parse.TestIMAP.main(TestIMAP.java:66)
    javax.mail.NoSuchProviderException: imap
         at javax.mail.Session.getService(Session.java:570)
         at javax.mail.Session.getStore(Session.java:362)
         at javax.mail.Session.getStore(Session.java:324)
         at javax.mail.Session.getStore(Session.java:303)
         at com.equifax.equicom.batch.email.parse.TestIMAP.main(TestIMAP.java:66)

    The googleapi.jar contains copies of some javamail classes. Here a few I found in my output:
    javax.mail.event.MessageCountListener from googleapi.jar
    javax.mail.Session from googleapi.jar
    javax.mail.MessagingException from googleapi.jar
    javax.mail.NoSuchProviderException from googleapi.jar
    This particular google api is the old SOAP google service that is no longer allowing new registrations, but still has support for existing API key holders, like me :-). Thought this might be a common jar in most libraries, so worth mentioning.
    Don't forget, you can debug your loaded classes with java -verbose MyApp to find those rogue libraries.

  • Getting error when trying to login to CR XI server on suse linux server

    http://www.experts-exchange.com/Database/Reporting_/Crystal_Reports/Q_21747694.html
    Hello,
    I'm getting the above error when I try to login as administrator (blank password).
    This did work until I rebooted the linux server.
    I checked there are no port conflicts (nothing is using port 6400).
    I restarted the services manually, I even rebooted server and then restarted ccm services manually but no luck. I did find this is a known problem with linux crystal reports server but nothing stated about how to resolve it.
    Finding solutions in the SAP portal is difficult! This is about as user friendly as the Cisco support website. Cisco portal is AWEFUL.
    I'm in process of getting a support contract from SAP but it's taking a long time.
    I have to state the support from SAP is a big step DOWN from the business objects support. We were able to call and speak to engineers in a few minutes.
    With SAP support I was able to talk to some foreigner (asian or indian) to tell me that there is no phone support with SAP. This after being redirected at least 4 times between departments.
    Wow! So what do the other business objects customers have to say about the SAP support?
    I can't help but wonder about moving on to another solution for publishing reports.
    A vendor who actually gives a damn about the customers.
    Oskar

    this worked until I rebooted the server.
    I'm getting error showing it's trying to connect to a mysql database 'BOE115'.
    This server does have a mysql db running on it, but that db has no instance of BOE115.
    It also shows it's trying to connect as a user that isn't on the database.
    Where can I see the script with user/password that is trying to run and connect to the mysql db?
    Also, why didn't the install create the instance and user?
    Why did this work until I rebooted?
    There is no firewall on this server, that has been disabled.
    Thank you,
    Oskar

  • Underflow Exception when trying to bind small double to BINARY_DOUBLE

    I get exception when trying to insert small double value (1.0E-131) into BINARY_DOUBLE column via jdbc.
    The exception I get:
    Exception in thread "main" java.sql.SQLException: Underflow Exception trying to bind 1.0000000000000001E-131
    at oracle.jdbc.driver.DoubleBinder.bind(OraclePreparedStatement.java:13856)
    at oracle.jdbc.driver.OraclePreparedStatement.setupBindBuffers(OraclePreparedStatement.java:2866)
    at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:2151)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3280)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3390)
    at dbAccess.main(dbAccess.java:18)
    According to oracle documentation the smallest positive number the BINARY_DOUBLE column can store is 2.22507485850720E-308.
    I'm using oracle 10g r2 and thin jdbc driver.
    Any ideas?

    That is expected since a double is converted to a Oracle NUMBER before passing it to the database and Oracle NUMBER does not support 1.0e-131, the range is 1E-130 .. 10E125.
    Look at the SQL output below,
    SQL> select to_char(to_number(1.0e-131)) from dual;
    T
    0
    SQL> select to_char(to_number(1.0e-130)) from dual;
    TO_CHAR(TO_NUMBER(1.0E-130))
    1.000000000000000000000000000000000E-130
    ==
    Use oracle.sql.BINARY_DOUBLE for numbers like this.
    eg:
    preparedStatement.setBINARY_DOUBLE(1, new oracle.sql.BINARY_DOUBLE(1.0e-131));
    ==
    hope this helps.
    Ashok

Maybe you are looking for

  • AirPlay and Windows 8

    I have 3 Window PCs (all Windows 7) that are working great with 2 Apple TVs using Airplay.   I have a fourth PC (using Windows 8) which is not working with Airplay and the 2 Apple TVs. Does anyone have any suggestions as to why?

  • My startup disk keeps saying it is full but I have deleted as much as I can and emptied the trash......what do I do?

    My startup disk keeps saying it is full and has done for a few moths.  I have been through and deleted as much as I can, transferred movies to an external drive and emptied the trash, but it keeps coming up as full again after a while even though I h

  • Unlimited space in Header Text of Purchase Order

    Hi Our customer wants to have unlimited space in the Header Text of the Purchase Order. Standard SAP Purchase order header text allows 15000 lines to be entered (approx 150 pages). After which the text needs to be split and entered. The same was sugg

  • Spry tabs nested in accordion on IE.

    I am trying to put a tabbed panel in an accordion panel. In IE6 and I believe 7 as well, the tabs do not hide. Everything looks fine in FF and Safari. Any ideas on fixing this?

  • Holder name not comming in ORG model

    Hi Experts, When i am assigning Holder to a position ,in the basic data am not getting the name.Instead of the name of BP am getting some number which is not the BP ID too in the basic data tab. Please provide your ideas to overcome this issue. Thank