Retrieving client IP on server
I'm migrating my application from RMI to RMI-IIOP. In fact, I'm modifying my classes to inherit from PortableRemoteObject rather than UnicastRemoteObject. Is there anything similiar to UnicastRemoteObject.getClientHost() when using PortableRemoteObject? How can I identify the client host without a need to pass the IP address to every Remote method?
Please advice. Thanks in advance.
Retrieving client IP on server
Similar Messages
-
ORA-03113 while connect from 8i client to 7 Server
Hi,
I have a Oracle 7.3.3 Server running on a SCO OpenSever 5.0.5 and a Oracle 8i Client 8.1.6.0.0 on a RedHat Linux 6.2.
When I try to connect from the client to the server by issue command "sqlplus user@test", it responses me "Error while trying to retrieve text for error ORA-03113". But when I run "netasst" to test the connection, it says the connection was sucessful.
Can anyone help? Here are my configuration files:
Listener.ora on Server side:
LISTENER=
(ADDRESS LIST=
(ADDRESS =
(COMMUNITY=TCP.world)
(PROTOCOL=TCP)
(Host=10.128.64.52)
(Port=1526)
STARTUP_WAIT_TIME_LISTENER = 0
CONNECT_TIMEOUT_LISTENER = 10
TRACE_LEVEL_LISTENER = OFF
SID_LIST_LISTENER =
(SID_LIST=
(SID_DESC =
(SID_NAME = test)
(ORACLE_HOME = /usr/app/oracle/product/7.3.3
(PRESPAWN_MAX=10)
tnsnames.ora on client side:
TEST.888.COM
(DESCRIPTION =
(ADDRESS_LISTS =
(ADDRESS =
(PROTOCOL = TCP)
(HOST = 10.128.64.52)
(PORT = 1526)
(CONNECT_DATA =
(SID = test)
)Hi,
I don't have a 64 bit instance, but maybe another test will be usefull, try to get a connection with sqlplus on the server but via sqlnet like "user/passwd@tnsentry" I think if that also is not possible it is not the 64 bit issue but more that the listener itself coundn't etsablish a db connection, be aware tnsping is only testing if the listener is running and do not check if the listener is able to connect to the db.
Hope this helps a little to find your real proble ;-), Olaf -
I getting this annoying error "Unable to retrieve clouds on VMM server. Please make sure the server name is correct and try connecting again." I've followed the recommended documentation for setting up SPF and Azure using the following:
http://www.hyper-v.nu/archives/mvaneijk/2013/01/installing-and-configuring-system-center-service-provider-foundation/
I've gone thru the troubleshoot steps from the following:
http://blogs.technet.com/b/scvmm/archive/2014/03/04/kb-the-windows-azure-pack-service-management-portal-does-not-retrieve-cloud-settings.aspx
http://social.technet.microsoft.com/forums/windowsazure/en-US/363e7dae-7370-4605-bc8d-b98fa6dc9d8e/unable-to-register-vmm-server
So you don't need to send me those links.
I found a few others which pointed me to the event logs WindowsAzurePack\MGmtSVC-AdminAPi and AdminSite. In these event logs, I see a lot of event ID 12 and 1046. The contents of event id 12 is the following:
Log Name: Microsoft-WindowsAzurePack-MgmtSvc-AdminSite/Operational
Source: Microsoft-WindowsAzurePack-MgmtSvc-AdminSite
Date: 6/19/2014 3:27:55 PM
Event ID: 12
Task Category: (65522)
Level: Error
Keywords: None
User: IIS APPPOOL\MgmtSvc-AdminSite
Computer: usw-azure-01.uswired.com
Description:
Error:ManagementClientException: Resource not found.
<Exception>
<Type>ManagementClientException</Type>
<Message>Resource not found.</Message>
<StackTrace><![CDATA[
at Microsoft.WindowsAzure.Server.Management.ManagementClientBase.<ThrowIfResponseNotSuccessful>d__2b.MoveNext()
at Microsoft.WindowsAzure.Management.TaskSequencer.<>c__DisplayClass1e`1.<RunSequenceAsync>b__1d(Task previousTask)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.WindowsAzure.Server.SystemCenter.AdminExtension.Controllers.SystemCenterAdminController.<GetResourceProviderAsync>d__2e7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.WindowsAzure.Server.SystemCenter.AdminExtension.Controllers.SystemCenterAdminController.<GetAutomationResourceProvider>d__2b6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at lambda_method(Closure , Task )
at System.Web.Mvc.Async.TaskAsyncActionDescriptor.EndExecute(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass3f.<BeginInvokeAsynchronousActionMethod>b__3e(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<BeginInvokeActionMethodWithFilters>b__36(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<>c__DisplayClass2a.<BeginInvokeAction>b__20()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult)]]></StackTrace>
<HttpContext>
<User IsAuthenticated="true" Name="USWIRED\Administrator" />
<Request>
<RawUrl>/SystemCenterAdmin/GetAutomationResourceProvider</RawUrl>
<UserHostAddress>fe80::c179:19c8:c5f2:7309%12</UserHostAddress>
<Headers>
<Header Key="Cache-Control" Value="no-cache" />
<Header Key="Connection" Value="Keep-Alive" />
<Header Key="Content-Length" Value="2" />
<Header Key="Content-Type" Value="application/json" />
<Header Key="Accept" Value="application/json, text/javascript, */*; q=0.01" />
<Header Key="Accept-Encoding" Value="gzip, deflate" />
<Header Key="Accept-Language" Value="en-US" />
<Header Key="Host" Value="usw-azure-01.uswired.com:30091" />
<Header Key="Referer" Value="https://usw-azure-01.uswired.com:30091/" />
<Header Key="User-Agent" Value="Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko" />
<Header Key="x-ms-client-session-id" Value="c343c29d-20b1-412b-be94-879409205700" />
<Header Key="x-ms-client-antiforgery-id" Value="0crwi2qNk20bMr6C04/vKd4L28WG1nd8JKBdOlCCp+xlph40YeL2oTdmeiTkPmE272S2dqmGQMNo+FElKkG2MdR0Xhq41RU/t8PrFjcG0Vgx4a8dgZLbfKVURo9n84F1XWtJOkTTUK/OeNVWBrK1+w=="
/>
<Header Key="x-ms-client-request-id" Value="dcc427c7-40fc-4fdd-9a70-7622969ff40d-2014-06-19 22:27:55Z" />
<Header Key="X-Requested-With" Value="XMLHttpRequest" />
<Header Key="DNT" Value="1" />
<Cookies>
<Cookie Name="AdminSiteFedAuth" Secure="false" Expires="0001-01-01T00:00:00Z" Domain="" Path="/" Value="Redacted (2000 characters)" />
<Cookie Name="AdminSiteFedAuth1" Secure="false" Expires="0001-01-01T00:00:00Z" Domain="" Path="/" Value="Redacted (424 characters)" />
<Cookie Name="__RequestVerificationToken_Admin" Secure="false" Expires="0001-01-01T00:00:00Z" Domain="" Path="/" Value="Redacted (128 characters)" />
</Cookies>
</Headers>
</Request>
</HttpContext>
</Exception>, operationName:SystemCenterAdmin.GetAutomationResourceProvider, version:, accept language:en-US, subscription Id:, client request Id:dcc427c7-40fc-4fdd-9a70-7622969ff40d-2014-06-19 22:27:55Z, principal Id:USWIRED\Administrator, page request
Id:c343c29d-20b1-412b-be94-879409205700, server request id:
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-WindowsAzurePack-MgmtSvc-AdminSite" Guid="{5E78D550-1384-5A96-C12A-CB6DA7BC6365}" />
<EventID>12</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>65522</Task>
<Opcode>0</Opcode>
<Keywords>0x0</Keywords>
<TimeCreated SystemTime="2014-06-19T22:27:55.971935000Z" />
<EventRecordID>399</EventRecordID>
<Correlation ActivityID="{FAA512AF-E0A9-4F2A-80EF-09F72D2F7918}" />
<Execution ProcessID="3424" ThreadID="2308" />
<Channel>Microsoft-WindowsAzurePack-MgmtSvc-AdminSite/Operational</Channel>
<Computer>usw-azure-01.uswired.com</Computer>
<Security UserID="S-1-5-82-4118156790-2181488624-806685255-2797011695-3958995103" />
</System>
<EventData>
<Data Name="message">ManagementClientException: Resource not found.
<Exception>
<Type>ManagementClientException</Type>
<Message>Resource not found.</Message>
<StackTrace><![CDATA[
at Microsoft.WindowsAzure.Server.Management.ManagementClientBase.<ThrowIfResponseNotSuccessful>d__2b.MoveNext()
at Microsoft.WindowsAzure.Management.TaskSequencer.<>c__DisplayClass1e`1.<RunSequenceAsync>b__1d(Task previousTask)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.WindowsAzure.Server.SystemCenter.AdminExtension.Controllers.SystemCenterAdminController.<GetResourceProviderAsync>d__2e7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.WindowsAzure.Server.SystemCenter.AdminExtension.Controllers.SystemCenterAdminController.<GetAutomationResourceProvider>d__2b6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at lambda_method(Closure , Task )
at System.Web.Mvc.Async.TaskAsyncActionDescriptor.EndExecute(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass3f.<BeginInvokeAsynchronousActionMethod>b__3e(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<BeginInvokeActionMethodWithFilters>b__36(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<>c__DisplayClass2a.<BeginInvokeAction>b__20()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult)]]></StackTrace>
<HttpContext>
<User IsAuthenticated="true" Name="USWIRED\Administrator" />
<Request>
<RawUrl>/SystemCenterAdmin/GetAutomationResourceProvider</RawUrl>
<UserHostAddress>fe80::c179:19c8:c5f2:7309%12</UserHostAddress>
<Headers>
<Header Key="Cache-Control" Value="no-cache" />
<Header Key="Connection" Value="Keep-Alive" />
<Header Key="Content-Length" Value="2" />
<Header Key="Content-Type" Value="application/json" />
<Header Key="Accept" Value="application/json, text/javascript, */*; q=0.01" />
<Header Key="Accept-Encoding" Value="gzip, deflate" />
<Header Key="Accept-Language" Value="en-US" />
<Header Key="Host" Value="usw-azure-01.uswired.com:30091" />
<Header Key="Referer" Value="https://usw-azure-01.uswired.com:30091/" />
<Header Key="User-Agent" Value="Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko" />
<Header Key="x-ms-client-session-id" Value="c343c29d-20b1-412b-be94-879409205700" />
<Header Key="x-ms-client-antiforgery-id" Value="0crwi2qNk20bMr6C04/vKd4L28WG1nd8JKBdOlCCp+xlph40YeL2oTdmeiTkPmE272S2dqmGQMNo+FElKkG2MdR0Xhq41RU/t8PrFjcG0Vgx4a8dgZLbfKVURo9n84F1XWtJOkTTUK/OeNVWBrK1+w=="
/>
<Header Key="x-ms-client-request-id" Value="dcc427c7-40fc-4fdd-9a70-7622969ff40d-2014-06-19 22:27:55Z" />
<Header Key="X-Requested-With" Value="XMLHttpRequest" />
<Header Key="DNT" Value="1" />
<Cookies>
<Cookie Name="AdminSiteFedAuth" Secure="false" Expires="0001-01-01T00:00:00Z" Domain="" Path="/" Value="Redacted (2000 characters)" />
<Cookie Name="AdminSiteFedAuth1" Secure="false" Expires="0001-01-01T00:00:00Z" Domain="" Path="/" Value="Redacted (424 characters)" />
<Cookie Name="__RequestVerificationToken_Admin" Secure="false" Expires="0001-01-01T00:00:00Z" Domain="" Path="/" Value="Redacted (128 characters)" />
</Cookies>
</Headers>
</Request>
</HttpContext>
</Exception></Data>
<Data Name="requestId">
</Data>
<Data Name="subscriptionId">
</Data>
<Data Name="clientRequestId">dcc427c7-40fc-4fdd-9a70-7622969ff40d-2014-06-19 22:27:55Z</Data>
<Data Name="principalId">USWIRED\Administrator</Data>
<Data Name="version">
</Data>
<Data Name="pageRequestId">c343c29d-20b1-412b-be94-879409205700</Data>
<Data Name="acceptLanguage">en-US</Data>
<Data Name="operationName">SystemCenterAdmin.GetAutomationResourceProvider</Data>
</EventData>
</Event>
Event ID 1046 is
Log Name: Microsoft-WindowsAzurePack-MgmtSvc-AdminSite/Operational
Source: Microsoft-WindowsAzurePack-MgmtSvc-AdminSite
Date: 6/19/2014 3:32:56 PM
Event ID: 1046
Task Category: (116)
Level: Error
Keywords: None
User: IIS APPPOOL\MgmtSvc-AdminSite
Computer: usw-azure-01.uswired.com
Description:
Could not connect to Resource Provider. Error: Resource not found.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-WindowsAzurePack-MgmtSvc-AdminSite" Guid="{5E78D550-1384-5A96-C12A-CB6DA7BC6365}" />
<EventID>1046</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>116</Task>
<Opcode>0</Opcode>
<Keywords>0x0</Keywords>
<TimeCreated SystemTime="2014-06-19T22:32:56.854137500Z" />
<EventRecordID>413</EventRecordID>
<Correlation ActivityID="{C20DBEAD-388F-4CF4-80FD-21C6419CC2F1}" />
<Execution ProcessID="3424" ThreadID="2768" />
<Channel>Microsoft-WindowsAzurePack-MgmtSvc-AdminSite/Operational</Channel>
<Computer>usw-azure-01.uswired.com</Computer>
<Security UserID="S-1-5-82-4118156790-2181488624-806685255-2797011695-3958995103" />
</System>
<EventData>
<Data Name="errorMessage">Resource not found.</Data>
</EventData>
</Event>
The other thing I notice is that when trying to connect to the VMM. It's trying to use domain\username, yet when I try logging in with domain\username via the SCVMM Console. I get the You cannot access VMM management server (Error ID: 1604).
I'm not sure if this is why I can not add the VMM to WAP. Any help would be appreciated. Thanks
NickHello,
I am not sure about the answer but I guess these steps will solve your problem:
1) Log in to the SPF server by using an account that is a member of the SPF_Admin local group.
2) Open an elevated Windows PowerShell window.
3) Type the following commands, and press Enter after you type each command:
Import-module spfadmin
New-SCSPFTenant -Name Administrator -SubscriptionId 00000000-0000-0000-0000-000000000000
4) Close the WAP Server Management Portal, and then reconnect to it to update all items. -
Timeout when retrieving document from Content Server
Dear experts,
after the migration of an R/3 Enterprise system with a file-based Content Server (CS without database) we experience significant delays when a document shall be retrieved from the Content Server and displayed.
The repository, from which documents are retrieved, has the following properties:
Document Area = ArchiveLink
Storage Type = HTTP content server
Obviously the delay is caused by time-outs when R/3 tries to access the content sever.
The RFC trace recorded during the document retrieval contains the following entries:
Trace file opened at 20100825 104048 CEST SAP-REL 640,0,304 RFC-VER 3
Trace file opened at 20100825 104115 CEST SAP-REL 640,0,304 RFC-VER 3
End of trace *****
======> CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=456
Timeout beim Verbindungsaufbau (Partner vorhanden ?)
ABAP Programm: SAPLSCMS_CLTFC (Transaction: )
Called function module: RFC_PING
User: TSI0403 (Client: 007)
Destination: SAPCMS (handle: 4, , {4C74C1A6-BD3B-3B59-E100-00001A5F0A18})
SERVER> RFC Server Session (handle: 1, 41571399, {4C74D031-BD2C-3B58-E100-00001A5F0A18})
SERVER> Caller host: cimpd38_MPD_38
SERVER> Caller transaction code: MIR4 (Caller Program: CL_GOS_TOOLBOX_VIEW===========CP)
SERVER> Called function module: GOS_EXECUTE_SERVICE
Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 3268
CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=456
Timeout beim Verbindungsaufbau (Partner vorhanden ?)
Error RFCIO_ERROR_MESSAGE in abrfcio.c : 1660
======> CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=456
Timeout beim Verbindungsaufbau (Partner vorhanden ?)
ABAP Programm: SAPLSCMS_FE_RFC (Transaction: )
Called function module: RFC_PING
User: TSI0403 (Client: 007)
Destination: SAPHTTP (handle: 6, , {4C74C1B4-BD3B-3B59-E100-00001A5F0A18})
SERVER> RFC Server Session (handle: 1, 41571399, {4C74D031-BD2C-3B58-E100-00001A5F0A18})
SERVER> Caller host: cimpd38_MPD_38
SERVER> Caller transaction code: MIR4 (Caller Program: CL_GOS_TOOLBOX_VIEW===========CP)
SERVER> Called function module: GOS_EXECUTE_SERVICE
Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 3268
CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=456
Timeout beim Verbindungsaufbau (Partner vorhanden ?)
Error RFCIO_ERROR_MESSAGE in abrfcio.c : 1660
I wonder why R/3 first attempts to contact the Content Server via the SAPCMS RFC destination rather than using HTTP (SAPHTTP)? - The connection tests for both RFC connections are successful.
Is there a way to instruct R/3 to go via the SAPHTTP RFC destination as the first choice and NOT via SAPCMS when documents shall be retrieved and displayed?
Thank you,
Rainer Walter
Edited by: Rainer Walter on Sep 3, 2010 3:07 PMHi Ravindra,
thank you for looking into this problem. The Content Server is not based on SAP DB/MaxDB. The repositories are represented as plain directory structures in a file system.
My issue is that R/3 is not using the SAPHTTP RFC connection as first choice although the repository is flagged as "HTTP Content Server" but uses another RFC destination instead. When this attempt is timed out, R/3 eventually picks the appropriate RFC destination. So it takes a considerable amount of time until a requested document is finally retrieved from the repository in the Content Server.
I am confused because the system where I experience this behaviour has been built from a system copy of a production system, and the Content Server for this new system has been built from scratch. In the original production system, no timeout is found when users are retrieving documents, and obviously the original R/3 system is using SAPHTTP right away. The original production system and the new system built from a system copy are accessing different Content Servers.
I am looking for a way to instruct the new R/3 system to immediately use the SAPHTTP connection when talking to the Content Server, and I would be grateful for a hint where I can configure this to get rid of these timeouts.
Best regards,
Rainer -
Retrieve email copies from server
I use Outlook Express as email client on my PC. An operating system error has just led to all my emails being wiped from the Inbox. Although I can read emails on the website, I should like to retrieve copies from the server to my client, but don't seem able to do this. Would greatly appreciate any help!
fourwheelzone wrote:
I use Outlook Express as email client on my PC. An operating system error has just led to all my emails being wiped from the Inbox. Although I can read emails on the website, I should like to retrieve copies from the server to my client, but don't seem able to do this. Would greatly appreciate any help!
1. The easiest way to get all your emails downloaded again is to set up an account in OE called say "version2" with the same settings as your original account making sure that the "Leave copies on the server is set".
You may like to untick in the properties for the original account the "include this account when downloading mail and synchronising " Box.
2. If you have recently been asked to compact your your email folders to save space by OE then you may be lucky and find a backup copy of your Inbox in your recycle bin.
3. Are you sure that your emails have gone from your machine and not that they are still there but OE is not picking them up ? -
RE: Compiling Clients on HP Server
Hello,
You have to verify, if you drag display projet in a server partition.
You can have this problem whith suppliers projects.
When a project A who is a supplier for a project B (A -> B), is in your
partition server, you retrieve A and B in your partition. And also, all
the supplier of B ... perhaps some display projects ...
Example :
A -> B (B Display)
A -> C (C in server Partition)
D -> B
in partition where you put C, you Have A, C and B, D
You can see the contain of your server partition whith the ShowApp
command.
De : Frank Lam[SMTP:[email protected]]
Date : jeudi 2 octobre 1997 14:25
A : [email protected]
Objet : Compiling Clients on HP Server
I am trying to compile a GUI-less application on the server and have
received the following error many times.
cpp: "ds.h", line 11: error 4036: Can't open include file 'Xm/Xm.h'.
I did a find on unix and came back with nothing, which explain the error.
From what I can tell Xm.h is a Motif header file, which leads me to ask the
next two question...
1. Since my application has no window classes (btw: client and service
partition are all on the server),
why does would Forte need to access Motify?
2. Is Xm.h a file that comes with Forte, part of the X/Motif package,
Freeware/Shareware, or HP?
We are running Forte 3.0.E.0 on a HP K420 (9000/800) on HPUX B.10.20
Thanks in advance.
Frank LamJust an FYI for everyone.
Thanks Brad.
Frank
---------------------- Forwarded by on 10/03/97 08:53 AM
[email protected] on 10/02/97 02:21:21 PM
To: [email protected]
cc: (bcc: Frank Lam/Consultant/NAC)
Subject: Re: Compiling Clients on HP Server (2)
Frank,
Alas, even if not a single line of code touches the display project,
you
must compile and link with the X Windows header files and libs on a UNIX
machine, because the ErrMgr wants a console window to log errors to.
At 10:27 AM 10/2/97 -0400, you wrote:
>
>
>
>
>
I do not have DisplayProject in my supplier's plans.
Previous Message:--------------------------------------------
I am trying to compile a GUI-less application on the server and have
received the following error many times.
cpp: "ds.h", line 11: error 4036: Can't open include file 'Xm/Xm.h'.
I did a find on unix and came back with nothing, which explain the error.
From what I can tell Xm.h is a Motif header file, which leads me to ask
the
next two question...
1. Since my application has no window classes (btw: client and service
partition are all on the server),
why does would Forte need to access Motify?
2. Is Xm.h a file that comes with Forte, part of the X/Motif package,
Freeware/Shareware, or HP?
We are running Forte 3.0.E.0 on a HP K420 (9000/800) on HPUX B.10.20
Thanks in advance.
Frank Lam
Fax Cover Page:
Brad Mayer
Customer Service and Support
Forte Software
[email protected]
Direct: (510) 869-3466
Fax: (510) 869-2010
Fax Cover Page: -
Hello. I would like to write async tcp client and server. I wrote this code but a have a problem, when I call the disconnect method on client or stop method on server. I can't identify that the client or the server is no longer connected.
I thought I will get an exception if the client or the server is not available but this is not happening.
private async void Process()
try
while (true)
var data = await this.Receive();
this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
catch (Exception exception)
How can I determine that the client or the server is no longer available?
Server
public class Server
private readonly Dictionary<IPEndPoint, TcpClient> clients = new Dictionary<IPEndPoint, TcpClient>();
private readonly List<CancellationTokenSource> cancellationTokens = new List<CancellationTokenSource>();
private TcpListener tcpListener;
private bool isStarted;
public event Action<string> NewMessage;
public async Task Start(int port)
this.tcpListener = TcpListener.Create(port);
this.tcpListener.Start();
this.isStarted = true;
while (this.isStarted)
var tcpClient = await this.tcpListener.AcceptTcpClientAsync();
var cts = new CancellationTokenSource();
this.cancellationTokens.Add(cts);
await Task.Factory.StartNew(() => this.Process(cts.Token, tcpClient), cts.Token, TaskCreationOptions.LongRunning, TaskScheduler.Default);
public void Stop()
this.isStarted = false;
foreach (var cancellationTokenSource in this.cancellationTokens)
cancellationTokenSource.Cancel();
foreach (var tcpClient in this.clients.Values)
tcpClient.GetStream().Close();
tcpClient.Close();
this.clients.Clear();
public async Task SendMessage(string message, IPEndPoint endPoint)
try
var tcpClient = this.clients[endPoint];
await this.Send(tcpClient.GetStream(), Encoding.ASCII.GetBytes(message));
catch (Exception exception)
private async Task Process(CancellationToken cancellationToken, TcpClient tcpClient)
try
var stream = tcpClient.GetStream();
this.clients.Add((IPEndPoint)tcpClient.Client.RemoteEndPoint, tcpClient);
while (!cancellationToken.IsCancellationRequested)
var data = await this.Receive(stream);
this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
catch (Exception exception)
private async Task Send(NetworkStream stream, byte[] buf)
await stream.WriteAsync(BitConverter.GetBytes(buf.Length), 0, 4);
await stream.WriteAsync(buf, 0, buf.Length);
private async Task<byte[]> Receive(NetworkStream stream)
var lengthBytes = new byte[4];
await stream.ReadAsync(lengthBytes, 0, 4);
var length = BitConverter.ToInt32(lengthBytes, 0);
var buf = new byte[length];
await stream.ReadAsync(buf, 0, buf.Length);
return buf;
Client
public class Client
private TcpClient tcpClient;
private NetworkStream stream;
public event Action<string> NewMessage;
public async void Connect(string host, int port)
try
this.tcpClient = new TcpClient();
await this.tcpClient.ConnectAsync(host, port);
this.stream = this.tcpClient.GetStream();
this.Process();
catch (Exception exception)
public void Disconnect()
try
this.stream.Close();
this.tcpClient.Close();
catch (Exception exception)
public async void SendMessage(string message)
try
await this.Send(Encoding.ASCII.GetBytes(message));
catch (Exception exception)
private async void Process()
try
while (true)
var data = await this.Receive();
this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
catch (Exception exception)
private async Task Send(byte[] buf)
await this.stream.WriteAsync(BitConverter.GetBytes(buf.Length), 0, 4);
await this.stream.WriteAsync(buf, 0, buf.Length);
private async Task<byte[]> Receive()
var lengthBytes = new byte[4];
await this.stream.ReadAsync(lengthBytes, 0, 4);
var length = BitConverter.ToInt32(lengthBytes, 0);
var buf = new byte[length];
await this.stream.ReadAsync(buf, 0, buf.Length);
return buf;Hi,
Have you debug these two applications? Does it go into the catch exception block when you close the client or the server?
According to my test, it will throw an exception when the client or the server is closed, just log the exception message in the catch block and then you'll get it:
private async void Process()
try
while (true)
var data = await this.Receive();
this.NewMessage.Invoke(Encoding.ASCII.GetString(data));
catch (Exception exception)
Console.WriteLine(exception.Message);
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
By the way, I don't know what the SafeInvoke method is, it may be an extension method, right? I used Invoke instead to test it.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Copy file from client PC to server in a web deployed application
I have developed one application using Oracle forms 6i, which is deployed on the web server.
I run this application from a client PC in Internet Explorer using internet.
I want to copy one file from the client PC to the web server.
I have done following things
- Created a shared folder on the server and given full rights to every one on this folder
- I use 'net use' command in my program to connect to this shared folder
- I use copy command to copy file from local client pc to server. This copy command I am executing using host command of my programming (PL/SQL: eg. host('copy abc.txt \\server\share\') )
But this does not work.
When I do the same thing in command window, it works.
(ie. Start-Run cmd to open command window and then type the above copy command)
Can you please tell me, how to copy a file from client PC to the sever in Web deployed application?
ThanksI downloaded D2KWUtil from the link suggested by you. It has very nice example demo form. But the documentation provided says following
Using D2KWUTIL in Web Deployed Applications
The use of this library is not supported with Web deployed applications.
In a web deployment scenario not all functions within D2KWUTIL will work. Any function that interacts with the User Interface (such as those in the WIN_API_DIALOG package) will fail.
Any interaction with the O/S by other functions will all be executed on the NT server and will act within, or return information pertinant to, the environment on that machine. For instance GET_COMPUTER_NAME will return the Server’s name, not the name of the computer that the Client browser is running on. Likewise COPY_FILE will copy files in the Forms Server not on the Client.
Functions such as those in WIN_API_BITOP will continue to work without change.
so this will not work in web deployed application.
Any other suggestion?
Thanks -
How can i load file into database from client-side to server-side
i want to upload file from client-side to server-side, i use the following code to load blob into database.
if the file is in the server-side, it can work, but if it in the client-side, it said that the system cannot find the file. i think it only will search the file is in the server-side or not, it will not search the client-side.
how can i solve it without upload the file to the server first, then load it into database??
try
ResultSet rset = null;
PreparedStatement pstmt =
conn.prepareStatement ("insert into docs values (? , EMPTY_BLOB())");
pstmt.setInt (1, docId);
pstmt.execute ();
// Open the destination blob:
pstmt.setInt (1, docId);
rset = pstmt.executeQuery (
"SELECT content FROM docs WHERE id = ? FOR UPDATE");
BLOB dest_lob = null;
if (rset.next()) {
dest_lob = ((OracleResultSet)rset).getBLOB (1);
// Declare a file handler for the input file
File binaryFile = new File (fileName);
FileInputStream istream = new FileInputStream (binaryFile);
// Create an OutputStram object to write the BLOB as a stream
OutputStream ostream = dest_lob.getBinaryOutputStream();
// Create a tempory buffer
byte[] buffer = new byte[1024];
int length = 0;
// Use the read() method to read the file to the byte
// array buffer, then use the write() method to write it to
// the BLOB.
while ((length = istream.read(buffer)) != -1)
ostream.write(buffer, 0, length);
pstmt.close();
// Close all streams and file handles:
istream.close();
ostream.flush();
ostream.close();
//dest_lob.close();
// Commit the transaction:
conn.commit();
conn.close();
} catch (SQLException e) {Hi,
Without some more details of the configuration, its difficult to know
what's happening here. For example, what do you mean by client side
and server side, and where are you running the upload Java application?
If you always run the application on the database server system, but can't
open the file on a different machine, then it sounds like a file protection
problem that isn't really connected with the database at all. That is to
say, if the new FileInputStream (binaryFile) statement fails, then its not
really a database problem, but a file protection issue. On the other hand,
I can't explain what's happening if you run the program on the same machine
as the document file (client machine), but you can't write the data to the
server, assuming the JDBC connection string is set correctly to connect to
the appropriate database server.
If you can provide some more information, we'll try to help.
Simon
null -
Is it possible to lock the keyboard of a client from a server using java
please explain wheterit is possible to lock the keyboard of a client from a server using java
You want to process code on one machine, and thereby lock the keyboard on another machine? No, that's not possible. It is extremely far from possible.
Of course, if the client is running software with security holes in it you might hack into it and crash the thing. This will lock up the keyboard pretty good. I hope that's not what you want ...
Or are you talking about a setup where you already have code running on the client, and some sort of communication between client and server? In that case what you need to know is whether it is possible to lock the keyboard at all. Once you have figured that out, it is trivial to add the communication code to have the server software tell the client software to lock the keyboard.
So what do you mean with "lock the keyboard"? It's pretty easy to remove/disable all keyboard related listeners in your own application. It's a lot harder (and AFAIK impossible with pure java) to disable alt-tabbing out of the application. And impossible, except from exploiting security holes, to lock the ctrl-alt-delete-combination on windows machine. -
Problem with program hanging randomly on certain commands from win 7 pro client to SB Server
Having a problem with program hanging randomly on certain commands from Win-7 Pro Client to SB Server Both 64-Bit
Five other slower XP-Pro 32 Bit systems though they are older and slower systems do not seem to hang as readily if at all.
It has been very frustrating as the Client-System, SB-Server and Program should work w/o any hitches, but this seems to work fine @ times and then hang randomly.
Would appreciate any and all suggestions in assisting.... JimBAgde-MSSYou can try this, as I have had similar problems with another MS Access .MDB file and slow access before. This fixed my problem for me. On the slow computer, make sure the program is set to see the .mdb file via UNC path, not a mapped drive letter. ex.
USE: \\yourserver\shared\dental\file.mdb
DO NOT: S:\\shared\dental\file.mdb
hope this helps -
what's the difference between client combo and server combo? Also, what would happen if I install both?
One is for the base version of the Mac OS, the other is for the Server version. You can only install the one that matches your system.
-
What is the recommended number of clients per Mac server? Also what are some recommended specs when purchasing an Apple machine that will have Mac OS X server installed? We have around 300 clients that need to be enroled on the Mac server. I want to know what is the recommended amount of clients a Mac server should contain. Also what are some recommended specs to make sure the server will flawlessly?
Hello cpreasbeck,
Thank you for contacting Apple Support Communities.
I was able to find the following transition guide for Xserve that provides some workload guidance to determine performance when planning a server deployment.
Transition Guide Xserve
http://images.apple.com/xserve/pdf/L422277A_Xserve_Guide.pdf
On page 9, Performance there is a chart that provides maximum numbers of connected users for various activities such as file sharing, mail, web, calendar, directory services and Time Machine and the CPU used as a server (Xserve, Mac Pro, Mac Mini). This information is a bit dated as the referenced software is Snow Leopard Server (OS X 10.6), and the hardware is older also, but it should give you a general idea of what you might need to look for.
Regards,
Jeff D. -
How to know oracle client or oracle server installed in m/c ?
Hi all,
Could any one tell me how to know whether oracle 10.1 s/w installed in my machine is client version or server . Is there any easy method..??
Thanks in advance.Hi,
Check the database / dbs folder exist in the $ORACLE_HOME if yes then SERVER else CLIENT.
PS: Above is not a standard method, i am telling based on DIRECTORY.
Regards,
Taj -
Can i run UDP client and UDP server socket program in the same pc ?
hi all.
when i execute my UDP client socket program and UDP server socket program in the same pc ,
It's will shown the error msg :
"Address already in use: Cannot bind"
but if i run UDP client socket program in the remote pc and UDP server socket program run in local pc , it's will success.
anybody know what's going on ?
any help will be appreciated !bobby92 wrote:
i have use a specified port for UDP server side , and for client define the server port "DatagramSocket clientSocket= new DatagramSocket(Server_PORT);"Why? The port you provide here is not the target port. It's the local port you listen on. That's only necessary when you want other hosts to connect to you (i.e. when you're acting as a server).
The server should be using that constructor, the client should not be specifying a port.
so when i start the udp server code to listen in local pc , then when i start UDP client code in local pc ,i will get the error "Address already in use: Cannot bind"Because your client tries to bind to the same port that the server already bound to.
Maybe you are looking for
-
Function-based index with OR in the wher-clause
We have some problems with functin-based indexes and the or-condition in a where-clause. --We use Oracle 8i (8.1.7) create table TPERSON(ID number(10),NAME varchar2(20),...); create index I_NORMAL_TPERSON_NAME on TPERSON(NAME); create index I_FUNCTIO
-
How to disable some of the automatic function from my bluetooth (jabra) while iphone does not have the capacity to set up the bluetooth property like BB?
-
Properties of an answer field allowing form users to create a table
When using Acrobat XI, is it possible to set the properties of the answer field to allow users to put in a table as an answer?
-
im trying to excport a video i made and i want it to be in windows media,, and everytime i do it , it only exports like half the video .. wierd,, anyone help ?
-
AC3 ENCODING - LFE CROSSOVER QUESTION
I am having issues with the ac3 encoder adding signal to my LFE channel and normalizing it at least 5 or 6 db hotter. I am getting my center dialogue on the LFE. Has anyone encountered this? I am wondering if there is a way I could just encode the ch