SipCilentConnection port in Request-URI

Hi All,
I want to register my J2ME based VoIP application (its using JSR180) to an IMS network.
P-CSCF for my IMS core network is listening on port 4060.
I am using GoSIP sample application (this is bundled with Java Wireless Toolkit). Some code snippet of my register method goes like this :
   *String proxyAddress = "pcscs.mydomain.com";*
   *String domainRealm = "mydomain.com";*
   *String myName = "shiv";*
   *String myIP = "172.21.60.100"*
                        *scc = (SipClientConnection)Connector.open("sip:" + proxyAddress + ":4060"); *// MARK 1**
                        *//scc = (SipClientConnection)Connector.open("sip:" + proxyAddress); *// MARK 2**
                        *scc.setListener(listener);*
                        *scc.initRequest("REGISTER", scn);*
   *//scc.setRequestURI("sip:"+domainRealm); *//MARK 3**
                        *String myContact = "<sip:" + myName + "@" + scn.getLocalAddress() + ":" + scn.getLocalPort() + ">";*
                        *String srvAddr =  "\"" + myDisplayName + "\"" + "<sip:" + myName + "@" + domainRealm + ":" + scn.getLocalPort()">";*
                        *scc.setHeader("Route", "<sip:pcscs.mydomain.com:4060>");*
   *scc.setHeader("Contact",myContact)*
                        *scc.setHeader("To", srvAddr);*
                        *scc.setHeader("From", srvAddr);*
                        *scc.setHeader("Content-Length", "0");*
                        *scc.setHeader("Max-Forwards", "20");*
                        *scc.send();*
P-CSCF is listening at port 4060 and when I use MARK 1 and comment MARK 2 and MARK 3 , following REGISTER request is generated and send to PCSCF at port 4060->
REGISTER sip:mydomain.com:4060 SIP/2.0
Call-ID: [email protected]
CSeq: 1 REGISTER
Via: SIP/2.0/UDP 172.21.60.100:9000;branch=z9hG4bKcd031d97c9093e29b6101d97c2cb344c
Route: <sip:pcscf.mydomain.com:4060>
Contact: <sip:[email protected]:9000>
To: "Shiv" <sip:[email protected]:9000>
From: "Shiv" <sip:[email protected]:9000>;tag=2059532475
Max-Forwards: 20
Content-Length: 0
but I want following REGISTER Message to be sent to PCSCF at port 4060 (without port 4060 in Request-URI) ->
REGISTER sip:mydomain.com SIP/2.0
Call-ID: [email protected]
CSeq: 1 REGISTER
Via: SIP/2.0/UDP 172.21.60.100:9000;branch=z9hG4bKcd031d97c9093e29b6101d97c2cb344c
Route: <sip:pcscf.mydomain.com:4060>
Contact: <sip:[email protected]:9000>
To: "Shiv" <sip:[email protected]:9000>
From: "Shiv" <sip:[email protected]:9000>;tag=2059532475
Max-Forwards: 20
Content-Length: 0
If I try to comment MARK 1 and uncomment MARK 2, then it send the above message to default port ie 5060 but I want to send the above message to port 4060 without port 4060 in Request-URI.
Any help is highly appreciated. Please let me know if you do not understand the problem.
Regards,
Shiv

After reading through this, I think this might be by design. The request is associated with DIP rather than VIP since it is
just been forwarded from the Load balancer. 
However, this would still mean that I need to keep 443 unused for my service to function normally. My service redirect users to live login page and it has to provide the VIP domainname port as redirect url in order to get the request. 
During local debugging, requests to url:port provided in Request.Url doesn't work. Overall this azure local debugging setup still is a mess. 
Let me know if there is any other workaround/fix. 

Similar Messages

  • Restlet Error "The server has not found anything matching the request URI"

    I want to serve some static html pages along with my restlet services from the same app ( running in Tomcat )
    Here is my web.xml
    <?xml version="1.0" encoding="UTF-8"?> 
    <web-app id="WebApp_ID" version="2.4" 
                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/web-app_2_4.xsd"> 
       <display-name>first steps servlet</display-name> 
       <!-- Application class name --> 
       <context-param> 
          <param-name>org.restlet.application</param-name> 
          <param-value> 
             firstSteps.FirstStepsApplication 
          </param-value> 
       </context-param> 
       <!-- Restlet adapter --> 
       <servlet> 
          <servlet-name>RestletServlet</servlet-name> 
          <servlet-class> 
             org.restlet.ext.servlet.ServerServlet 
          </servlet-class> 
       </servlet> 
       <!-- Catch all requests --> 
       <servlet-mapping> 
          <servlet-name>RestletServlet</servlet-name> 
          <url-pattern>/*</url-pattern> 
       </servlet-mapping> 
    </web-app>
    Here is my Application router class
    public class FirstStepsApplication extends Application
         @Override
         public synchronized Restlet createInboundRoot()
              Router router = new Router(getContext());
              // Defines only one route
              router.attach("/hello", HelloWorldResource.class);
              router.attach("/login", LoginResource.class);
              router.attach("/", BasicResource.class);
              return router;
    }I've gone back to the basic first steps example.
    It works fine if the url pattern is <url-pattern>/*</url-pattern>
    localhost/rest/login returns a string from my LoginResource, same too for /hello
    However a static html page I have /Mypage.html does not get returned when I enter the URL /MyPage.html
    However, if I then modify the url pattern to be
    <url-pattern>/login</url-pattern>
    and then enter the url /MyPage.html I will get the html page.
    But ...... I get the error "The server has not found anything matching the request URI" when I enter the url /login which worked ok the first case.
    What must I do in order for both Restlet & Static HTML resources to work together?
    Thanks ... J

    yes, basicResource is my own class. It's a catch all for restlet requests that don't match any of the other ones. It just returns String = "My catch all resource"
    Because you highlighted it I decided to try and remove it from my Restlet Router. Presto, it now works, the login & hello requests are serviced by my Restlet resources and the MyPage.html requests are served the mypage.html file. This now brings another question. If from my servlet mapping in web.xml all urls are to be handled by restlet "/*", how then does a mypage.html request not get serviced by my restlet? Seems to be just passed through the restlet framework when there is no router to match it? what do you think?

  • SSRS Sharepoint Integrated Mode logs - Cannot find site lookup info for request Uri AND [Forced due to logging gap]

    Hi,
    Our reports run very slow in SharePoint Integrated mode. I look at the logs and I see that for one report request there are bunch of "Forced due to logging gap" rows. Is it some kind of a configuration issue or is it working as it should. Below
    is the full log for one report request. I have no admin experience at all and I am confused what each one in the logs mean. I have made some of them in bold font as I suspect it is some kind of configuration issue there. Could you please help understanding
    those logs?
    Line 25: 07/29/2014 09:17:34.54 
    w3wp.exe (0x0A6C)                       
    0x070C
    SharePoint Foundation         
    Topology                      
    e5mb
    Medium  
    WcfReceiveRequest: LocalAddress:   'http://xxxxx.com:32843/6ce1fa50211546eeabe466d78f0d32a6/ReportStreaming.svc'   Channel: 'System.ServiceModel.Channels.ServiceChannel' Action:   'http://schemas.microsoft.com/sqlserver/reporting/2011/06/01/ReportServer/Streaming/ProcessStreamRequest'
      MessageId: 'urn:uuid:10b1c246-8c70-400b-9b62-fe0d87a2ae8c'
    894aa99c-9fb3-c007-caf4-32ba68af9901
    Line 28: 07/29/2014 09:17:34.54 
    w3wp.exe (0x0A6C)                       
    0x070C
    SQL Server Reporting Services 
    Report Server WCF Runtime     
    0
    Medium  
    Entering ExeuteCommand - Command = Render
    894aa99c-9fb3-c007-caf4-32ba68af9901
    Line 29: 07/29/2014 09:17:34.54 
    w3wp.exe (0x0A6C)                       
    0x070C
    SharePoint Foundation         
    Authentication Authorization  
    agb9s
    Medium  
    Non-OAuth request. IsAuthenticated=False, UserIdentityName=,   ClaimsCount=0
    894aa99c-9fb3-c007-caf4-32ba68af9901
    Line 30: 07/29/2014 09:17:34.54 
    w3wp.exe (0x0A6C)                       
    0x070C
    SharePoint Foundation         
    General                       
    adyrv
    High    
    Cannot find site lookup info for request Uri   http://xxx:32843/6ce1fa50211546eeabe466d78f0d32a6/ReportStreaming.svc.
    894aa99c-9fb3-c007-caf4-32ba68af9901
    Line 31: 07/29/2014 09:17:34.59 
    w3wp.exe (0x0A6C)                       
    0x070C
    SQL Server Reporting Services 
    Report Server Catalog         
    0
    Medium  
    RenderForNewSession('https://xxx.com/xxx.rdl')
    894aa99c-9fb3-c007-caf4-32ba68af9901
    Line 32: 07/29/2014 09:17:34.60 
    w3wp.exe (0x0A6C)                       
    0x070C
    SharePoint Foundation         
    Authentication Authorization  
    ajmmt
    High    
    [Forced due to logging gap, cached @ 07/29/2014 09:17:34.59,   Original Level: VerboseEx] SPRequestParameters: AppPrincipal={0},   UserName={1}, UserKye={2}, RoleCount={3}, Roles={4}
    894aa99c-9fb3-c007-caf4-32ba68af9901
    Line 33: 07/29/2014 09:17:34.60 
    w3wp.exe (0x0A6C)                       
    0x070C
    SharePoint Foundation         
    Database                      
    8acb
    High    
    [Forced due to logging gap, Original   Level: VerboseEx] Reverting to process identity
    894aa99c-9fb3-c007-caf4-32ba68af9901
    Line 34: 07/29/2014 09:17:34.62 
    w3wp.exe (0x0A6C)                       
    0x070C
    SharePoint Foundation         
    General                       
    adyrv
    High    
    Cannot find site lookup info for   request Uri   http://xxx:32843/6ce1fa50211546eeabe466d78f0d32a6/ReportStreaming.svc.
    894aa99c-9fb3-c007-caf4-32ba68af9901
    Line 35: 07/29/2014 09:17:34.74 
    w3wp.exe (0x0A6C)                       
    0x070C
    SharePoint Foundation         
    Database                      
    7t61
    High    
    [Forced due to logging gap, cached @   07/29/2014 09:17:34.63, Original Level: Verbose] {0}
    894aa99c-9fb3-c007-caf4-32ba68af9901
    Line 36: 07/29/2014 09:17:34.74 
    w3wp.exe (0x0A6C)                       
    0x070C
    SharePoint Foundation         
    General                       
    6t8b
    High    
    [Forced due to logging gap, Original   Level: Verbose] Looking up {0} site {1} in the farm {2}
    894aa99c-9fb3-c007-caf4-32ba68af9901
    Line 37: 07/29/2014 09:17:34.85 
    w3wp.exe (0x0A6C)                       
    0x070C
    SharePoint Foundation         
    Runtime                       
    afu6a
    High    
    [Forced due to logging gap, cached @   07/29/2014 09:17:34.77, Original Level: VerboseEx] No   SPAggregateResourceTally associated with thread.
    894aa99c-9fb3-c007-caf4-32ba68af9901
    Line 38: 07/29/2014 09:17:34.85 
    w3wp.exe (0x0A6C)                       
    0x070C
    SharePoint Foundation         
    Runtime                       
    afu6b
    High    
    [Forced due to logging gap, Original   Level: VerboseEx] No SPAggregateResourceTally associated with thread.
    894aa99c-9fb3-c007-caf4-32ba68af9901
    Line 39: 07/29/2014 09:17:34.94 
    w3wp.exe (0x0A6C)                       
    0x070C
    SharePoint Foundation         
    Database                      
    7t61
    High    
    [Forced due to logging gap, cached @   07/29/2014 09:17:34.88, Original Level: Verbose] {0}
    894aa99c-9fb3-c007-caf4-32ba68af9901
    Line 40: 07/29/2014 09:17:34.94 
    w3wp.exe (0x0A6C)                       
    0x070C
    SharePoint Foundation         
    Database                      
    7t61
    High    
    [Forced due to logging gap, Original   Level: Verbose] {0}
    894aa99c-9fb3-c007-caf4-32ba68af9901
    Line 103: 07/29/2014 09:18:05.55 
    w3wp.exe (0x0A6C)                       
    0x070C
    SharePoint Foundation         
    Database                      
    7t61
    High    
    [Forced due to logging gap, cached @   07/29/2014 09:17:34.96, Original Level: Verbose] {0}
    894aa99c-9fb3-c007-caf4-32ba68af9901
    Line 104: 07/29/2014 09:18:05.55 
    w3wp.exe (0x0A6C)                       
    0x070C
    SharePoint Foundation         
    General                       
    6t8b
    High    
    [Forced due to logging gap, Original   Level: Verbose] Looking up {0} site {1} in the farm {2}
    894aa99c-9fb3-c007-caf4-32ba68af9901
    Line 105: 07/29/2014 09:18:05.62 
    w3wp.exe (0x0A6C)                       
    0x070C
    SharePoint Foundation         
    General                       
    6t8h
    High    
    [Forced due to logging gap, cached @   07/29/2014 09:18:05.55, Original Level: Verbose] {0}
    894aa99c-9fb3-c007-caf4-32ba68af9901
    Line 106: 07/29/2014 09:18:05.62 
    w3wp.exe (0x0A6C)                       
    0x070C
    SharePoint Foundation         
    Database                      
    7t61
    High    
    [Forced due to logging gap, Original   Level: Verbose] {0}
    894aa99c-9fb3-c007-caf4-32ba68af9901
    Line 107: 07/29/2014 09:18:05.62 
    w3wp.exe (0x0A6C)                       
    0x070C
    SQL Server Reporting Services 
    Report Server WCF Runtime     
    0
    Medium  
    Processed report. Report='https://xxx.com/xxx.rdl', Stream=''
    894aa99c-9fb3-c007-caf4-32ba68af9901
    Thank you.

    That is likely the case as native mode is quicker than SharePoint-integrated.
    A couple of things to check, and perhaps change if you can:
    1) Make sure the latest SSRS ReportViewer is deployed to the SharePoint WFEs. This does not have to match your SSRS deployment version. See http://msdn.microsoft.com/en-us/library/gg492257.aspx
    for the compatibility table.
    2) If possible, move SSRS to the same SharePoint servers that end users interact with (e.g. the "WFEs").
    3) Make sure the underlying server hosting SharePoint has C-States disabled (these are Intel C-States, e.g. C1, C2, C3... aka processor sleep states). If the server has any sort of power regulation, make sure it is at maximum performance (rather than some
    form of power saving).
    4) Make sure the underlying Windows OS has it's Power Management set to Maximum, rather than any sort of power savings.
    You can review the execution logs in the Reporting Services database. Take a look at the ExecutionLog3 view. Compare the TimeProcessing (time it takes to process the report) and TimeRendering (time it takes for the processed report to render to the end user).
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • JSP Error:   Request URI:/OA_HTML/OA.jsp after RUP 7

    Good day,
    After successfully applying   6241631 (RUP7)
    I am getting this error after supplying username and password to enter the EBS homepage.
    JSP Error:
    Request URI:/OA_HTML/OA.jsp
    Exception:
    java.lang.NoSuchMethodError: oracle.apps.fnd.framework.webui.OAWebBeanMetaData.getStyle(Loracle/apps/fnd/framework/webui/OAPageContext;)Ljava/lang/String;
    I don't see anything in my log files to further explain this error nor on the web.
    OS: ORHEL 4
    DB:10Gr2
    Regards,
    Shridath.

    Good day Hussein,
    I am on 11.5.10.2.
    Patch and pre-reqs were applied successfully to the best of my knowledge. (I am not not ruling out the possibility of missing a pre-req patch)
    No errors in the database log file.
    select count(*)
    from dba_objects
    where status='INVALID';
    *356
    The file header
    $Header OAWebBeanMetaData.java 115.10 2001/09/21 14:36:56 pkm ship   $
    I have also reviewed the bugs stated in the documents, but none speaks specifically to my error.
    I am currently reviewing the compilation errors of the in the adworker logs.
    Regards,
    Shridath.

  • Cannot find site lookup info for request Uri

    Hi Team,
    I am receiving the below error in the ULS log continously can someone help to resolve the issue.
    02/04/2015 18:40:43.11 w3wp.exe (0x4F18) 0x2D98 SharePoint Foundation General adyrv High Cannot find site lookup info for request Uri
    https://10.0.0.01/. a565e69c-8d86-50e0-05a3-a7ca753286a0
    02/04/2015 18:40:43.11 w3wp.exe (0x4F18) 0x2D98 SharePoint Foundation General adyrv High Cannot find site lookup info for request Uri
    https://10.0.0.01/. a565e69c-8d86-50e0-05a3-a7ca753286a0
    02/04/2015 18:40:43.11 w3wp.exe (0x4F18) 0x2D98 Web Content Management Publishing Cache aa6pl High PublishingHttpModule.PostAuthorizeRequestHandler(): Unexpected exception while analyzing URL: System.IO.FileNotFoundException:
    The Web application at https://10.0.0.01:443/ could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping
    to the intended application.     at Microsoft.SharePoint.SPSite.LookupSiteInfo(SPFarm farm, Boolean contextSite, Boolean swapSchemeForPathBasedSites, Uri& requestUri, Boolean& lookupRequiredContext, Guid& applicationId, Guid&
    contentDatabaseId, Guid& siteId, Guid& siteSubscriptionId, SPUrlZone& zone, String& serverRelativeUrl, Boolean& hostHeaderIsSiteName, Boolean& appWebRequest, String& appHostHeaderRedirectDomain, String& appSiteDomainPrefix,
    String& subscriptionName, String& appSiteDomainId, Uri& primaryUri)     at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, Boolean swapSchemeForPathBasedSites, SPUserToken userToken)    
    at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, SPUserToken userToken)     at Microsoft.SharePoint.SPSite..ctor(String requestUrl)     at Microsoft.SharePoint.Publishing.PublishingHttpModule.PostAuthorizeRequestHandler(Object
    sender, EventArgs e) a565e69c-8d86-50e0-05a3-a7ca753286a0
    02/04/2015 18:40:43.11 w3wp.exe (0x4F18) 0x1E54 SharePoint Foundation General af71 Medium HTTP Request method: GET a565e69c-8d86-50e0-05a3-a7ca753286a0
    02/04/2015 18:40:43.11 w3wp.exe (0x4F18) 0x1E54 SharePoint Foundation General af75 Medium Overridden HTTP request method: GET a565e69c-8d86-50e0-05a3-a7ca753286a0
    02/04/2015 18:40:43.11 w3wp.exe (0x4F18) 0x1E54 SharePoint Foundation General af74 Medium HTTP request URL: / a565e69c-8d86-50e0-05a3-a7ca753286a0
    02/04/2015 18:40:43.12 w3wp.exe (0x4F18) 0x1E54 SharePoint Foundation General adyrv High Cannot find site lookup info for request Uri
    https://10.0.0.01/. a565e69c-8d86-50e0-05a3-a7ca753286a0
    02/04/2015 18:40:43.12 w3wp.exe (0x4F18) 0x1E54 SharePoint Foundation Files aise3 Medium Failure when fetching document. 0x80070005 a565e69c-8d86-50e0-05a3-a7ca753286a0
    02/04/2015 18:40:43.12 w3wp.exe (0x4F18) 0x0180 SharePoint Foundation General adyrv High Cannot find site lookup info for request Uri
    https://10.0.0.01/. a565e69c-8d86-50e0-05a3-a7ca753286a0
    02/04/2015 18:40:43.12 w3wp.exe (0x4F18) 0x0180 SharePoint Foundation General adyrv High Cannot find site lookup info for request Uri
    https://10.0.0.01/. a565e69c-8d86-50e0-05a3-a7ca753286a0
    02/04/2015 18:40:43.12 w3wp.exe (0x4F18) 0x0180 SharePoint Foundation General adyrv High Cannot find site lookup info for request Uri
    https://10.0.0.01/. a565e69c-8d86-50e0-05a3-a7ca753286a0
    02/04/2015 18:40:43.12 w3wp.exe (0x4F18) 0x0180 SharePoint Foundation Runtime aep93 High Exception trying get context compatibility level: System.IO.FileNotFoundException: The Web application at
    https://10.0.0.01 could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.    
    at Microsoft.SharePoint.SPSite.LookupSiteInfo(SPFarm farm, Boolean contextSite, Boolean swapSchemeForPathBasedSites, Uri& requestUri, Boolean& lookupRequiredContext, Guid& applicationId, Guid& contentDatabaseId, Guid& siteId, Guid&
    siteSubscriptionId, SPUrlZone& zone, String& serverRelativeUrl, Boolean& hostHeaderIsSiteName, Boolean& appWebRequest, String& appHostHeaderRedirectDomain, String& appSiteDomainPrefix, String& subscriptionName, String& appSiteDomainId,
    Uri& primaryUri)     at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, Boolean swapSchemeForPathBasedSites, SPUserToken userToken)     at Microsoft.SharePoint.SPSite..ctor(SPFarm
    farm, Uri requestUri, Boolean contextSite)     at Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.GetContextCompatibilityLevel(Uri requestUri) a565e69c-8d86-50e0-05a3-a7ca753286a0
    02/04/2015 18:40:43.12 w3wp.exe (0x4F18) 0x0180 SharePoint Foundation General adyrv High Cannot find site lookup info for request Uri
    https://10.0.0.01/. a565e69c-8d86-50e0-05a3-a7ca753286a0
    02/04/2015 18:40:43.12 w3wp.exe (0x4F18) 0x0180 SharePoint Foundation General adyrv High Cannot find site lookup info for request Uri
    https://10.0.0.01/. a565e69c-8d86-50e0-05a3-a7ca753286a0
    02/04/2015 18:40:43.12 w3wp.exe (0x4F18) 0x0180 SharePoint Foundation Runtime aep93 High Exception trying get context compatibility level: System.IO.FileNotFoundException: The Web application at
    https://10.0.0.01 could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.    
    at Microsoft.SharePoint.SPSite.LookupSiteInfo(SPFarm farm, Boolean contextSite, Boolean swapSchemeForPathBasedSites, Uri& requestUri, Boolean& lookupRequiredContext, Guid& applicationId, Guid& contentDatabaseId, Guid& siteId, Guid&
    siteSubscriptionId, SPUrlZone& zone, String& serverRelativeUrl, Boolean& hostHeaderIsSiteName, Boolean& appWebRequest, String& appHostHeaderRedirectDomain, String& appSiteDomainPrefix, String& subscriptionName, String& appSiteDomainId,
    Uri& primaryUri)     at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, Boolean swapSchemeForPathBasedSites, SPUserToken userToken)     at Microsoft.SharePoint.SPSite..ctor(SPFarm
    farm, Uri requestUri, Boolean contextSite)     at Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.GetContextCompatibilityLevel(Uri requestUri) a565e69c-8d86-50e0-05a3-a7ca753286a0
    02/04/2015 18:40:43.12 w3wp.exe (0x4F18) 0x0180 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope (PreSendRequestHeaders). Execution Time=5.16643875129381 a565e69c-8d86-50e0-05a3-a7ca753286a0

    Hi Amol,
    check AAM, check host files and remove unneeded entries
    Kind Regards,
    John Naguib
    Technical Consultant/Architect
    MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
    Please remember to mark your question as answered if this solves your problem

  • Incorrect port in Request.URL

    I am using VS 2013. IIS 8.0 Express and Azure .NET SDK v2.2
    With a simple WebAPI template project I am able to repro this. When I locally debug the project in the azure compute emulator, it starts up the web page in https://127.0.0.1. However, in the request, the URI comes up with port 444.
    Is there any known fix / workaround for this bug?
    I could find similar issues for others at following pages but their workarounds don't work for me.  Nothing in Request object or Request.RequestContext.HttpContext.Request object has the right URL. For e.g. if I try to open https://127.0.0.1:444/,
    I get "page not found" error. 
    http://stackoverflow.com/questions/21062617/wrong-port-number-in-mvc-4-windows-azure-request-url
    http://stackoverflow.com/questions/15163670/request-url-has-wrong-port-information 
    Thanks!

    After reading through this, I think this might be by design. The request is associated with DIP rather than VIP since it is
    just been forwarded from the Load balancer. 
    However, this would still mean that I need to keep 443 unused for my service to function normally. My service redirect users to live login page and it has to provide the VIP domainname port as redirect url in order to get the request. 
    During local debugging, requests to url:port provided in Request.Url doesn't work. Overall this azure local debugging setup still is a mess. 
    Let me know if there is any other workaround/fix. 

  • Obtaining originally requested URI for 404 processing, Apache JBoss CF8

    Hey all.
    The issue I'm facing, in a (rather large) nutshell: when a user requests a directory which doesn't exist, Apache 2.2 forwards the request to JBoss 4.2.3.GA, which loads the 404 template that I've specified in the web.xml file. That happens to be our 404.cfm page which we run under CF8. That's all good. But, we lose all of the info regarding the original request. The script_name and path_translated vars both think that the request was to 404.cfm. Up until now, our application has sent requests for non-existent directories through IIS to JRun and CF, and the original request has been available to us. We've implemented shortcuts in our app which make use of this info, and it's critical that we have it when we rollout our new server. Help, please. :-)
    After much research, I've tried two things in Apache: the combo of ErrorDocument and mod_jk, and mod_rewrite.
    Below is a synopsis of each approach. If you have another solution, I'd love to hear it. :-)
    For the mod_jk approach,I'm doing a LoadModule for mod_jk, and I've added the following in the VirtualHost section of the httpd.conf file:
    ErrorDocument 404 /404.cfm
    JkMount /(applicationRoot)/* node1
    In the mod-jk.conf file, I'm creating environment vars which should get passed on to JBoss.
    JkEnvVar REDIRECT_URL undefined
    In my 404.cfm template, I'm calling a jsp page with the following code:
    <%
      if(request.getAttribute("REDIRECT_URL")!=null){
            out.println( request.getAttribute("REDIRECT_URL"));
    %>
    What I get in reponse after requesting a non-existent directory is...nothing. The variable doesn't seem to exist.
    This approach apparently works in Railo, where you can use getOriginalRequest() to get at the info you need.
    Anyway, going another route, if I instead use mod_rewrite within VirtualHosts and do something like this:
    RewriteRule ^(.+)$ /404.cfm?qs=%{REQUEST_URI}?%{QUERY_STRING} [L]
    I get sent to the 404, but the code is not proxied to JBoss and instead gets printed to the screen (yikes).
    If I do this:
    RewriteRule ^(.+)$ http://myserver.domain.com/404.cfm?qs=%{REQUEST_URI}?%{QUERY_STRING} [L]
    I get a redirect loop.
    If I do this:
    RewriteRule ^(.+)$ http://myserver.domain.com:8080/404.cfm?qs=%{REQUEST_URI}?%{QUERY_STRING} [L]
    I get sent to the 404 and voilà, I have the variables that I need, but I’m stuck in port 8080 where I don’t want to be.
    Finally, if I do this:
    RewriteRule /(\d+)\Z /404\.cfm\?qs=$1 [L]
    I get rerouted properly, but  I lose the original request.
    So, at the moment, I'm stuck. Have any of you run across a similar situation? Have a solution? Would love to hear it.
    Thanks for reading this far!
    Steve

    You are saying two servers with identicalconfigration files--JBoss, mod_jk, >Tomcat and
    Apache--produce different run-time results?
    What I said is that after reinstalling Apache,
    copying JBoss/Tomcat & mod_jk2
    [from the second instance which still works fine]
    and modifying it's config files (IPs, ports, paths,
    servernames...)
    I still can't make it to work.
    Also since it stopped working after power failure,
    can it be some corrupted
    file or something got screwed up in environment ?
    Could be. Though, unless a configuration file was corrupted during the failure (highly dubious), the problem might be hardware related.
    The comment you made about going to localhost andgetting a test page >seems to indicate to me that
    your Apache directory structure is not being >pointed
    to correctly.
    Do you mean incorrect is the path to JBoss/Apache?
    Or some servername/IP is incorrect ?
    Where/what for should I look ?
    I was only saying that if you are seeing the Apache test page when you go to that URL, then it should conceptually be possible to look for their default HTML index.html somewhere in your filesystem. Unless there is a caching issue (which a server restart could easily detect), then your configuration is pointing somewhere other than you expect (unless your expectation is to in fact see the default Apache HTTP server home page).
    Also, how do I check what is my current localhost
    (I have a few in etc/hosts) ?
    You can find the server name of your local instance via InetAddress.getLocalHost().getHostName().
    TIA,
    Oleg.- Saish

  • ASA5505 port 3306 request discarded

    ASA5505 port 3306
    I have been fighting for days to open the port 3306 on my appliance, I have read carefully all the forums and no success.
    I allways get the message :
    7
    Oct 21 2012
    17:29:32
    90.27.181.120
    54655
    212.147.49.18
    3306
    TCP request discarded from 90.27.181.120/54655 to outside:212.147.49.18/3306
    I have attached m y configuration
    thanks for any help

    Hello Jean,
    Just checked the config, the problem is that you did not follow the object service configuration I sent you.
    Mine:
    object service SQL
    service tcp source eq 3306
    Yours:
    object service SQL
    service tcp destination eq 3306
    Please change that and let me know,
    Remember to rate all of the helpful posts, that is as important as a thanks for the community ( if you need to know how to rate a post, just let me know, I will be more than glad to let you know )

  • How to trace IP address ports and request comming to network interfaces

    Hi all,
    I am using Solaris IP filter. I need to check the requests that is comming to a patiquler interfaces.
    Is there any possibilities to get the IP address: Port, weather the request is Deny from the server etc....
    Thanks.
    Viraj

    Lian,
    Did you find a solution?? If still looking, talk to Triometric, they can monitor and log this, a side effect of performance monitoring.
    Have fun

  • Parameters into request-uri using POST instead of GET.

    I wrote some servlets that send parameters each other.
    The request came from an HTML form, and I used JavaScript to submit it.
    Example:
    <script language="JavaScript">
    function doMyPost(idparam)
    document.myform.action=document.myform.action+"?id="+idparam;
    document.myform.submit();
    </script>
    <form name="myform" action="myservlet" method="post">
    ... <!-- NO INPUT ELEMENTS -->
    </form>
    In this case the servlet method "myservlet.doPost()" could not find "id" parameter.
    Writing:
    <form name="myform" action="myservlet" method="post">
    <input type="hidden" name="foo" value=""/>
    </form>
    Now the servlet method doPost() found "id".
    I know that a correct submit with "post" and with an input named "id" would not generate errors (my HTML is very unconventional...), but I wrote "myservlet" to accept only post request, and was easy to build a list of anchors (XSL) which call my script with different values of "id" ...
    Why this behaviour? (is due to servlet, or web server Websphere, or browser IE ?).
    I found nothing about this in the HTTP/1.1 specification, but I can't exclude some protocol intervention...
    Bye,
    Mauro

    As I recall, this is in the specification, but it's in the part describing the functionality of a form post.
    When the method is POST, the receiving page reads the information from the form-content only, which has been MIME-encoded and appended to the submission. Any parameters added to the URL do get passed along but they are ignored by the POST processing.
    You'd be better off adding a hidden field to your form:<script>
    function docPost(idparam){
       //document.myform.action=document.myform.action+"?id="+idparam;
       document.myform.id.value = idparam;
       document.myform.submit();
    </script>
    <input type="hidden" name="id" value="">

  • Request-URI Too Large

    Hi, I am working on a project that involves exporting excel spreadsheets to a JSP script for special charting and as a result the URLs can be very long like: http://preview.tinyurl.com/p9vykm (full URL shown in tinyurl preview). As a result of this, servers typically complain about the URL being too large to process even though browsers like Firefox will happily accept such long URLs. So obviously a alternative method of passing this data to my JSP script must be saught, and it must be a manageable method able to be performed with VBA which is unfortunately being used to interact between the excel spreadsheet and this script. My thought was base64 encrypting the parameters, passing that to the JSP script and then having the JSP script decrypt the encrypted parameters and process them. Is that possible and if so how? If not, how would you think it best to approach this issue? Thanks!

    Yes, it's true. Servers are allowed to put a limit on the length of a URL when it's used for a GET request. There's nothing you can do about that. However if you use a POST request, then the parameters are passed differently and they don't count as part of the length. I have no idea whether VBA can be made to use POST instead of GET.
    I don't see why Base64 encoding would help, since it's guaranteed to increase the size of the string by one third. You need something which reduces the size of the string.

  • Listen on one port, service request on multiple servers

    we are migrating off oc4j to Weblogic 10.3.
    One of the things that we really really liked about oc4j was the ability to distribute our applications across multiple JVMs, but refer to any of the apps with the same hostname and port; this meant that we could change the distribution of the applications over the JVMs and not touch the URLs used to access those applications. We would do this to isolate troublesome apps from other ones, and to keep JVM size reasonable.
    With WebLogic, our understanding is that only one managed server can be accessed on a given host/port, and a managed server is one JVM. Does this mean that we will need to either put all our apps into one JVM, or else change URLs as the we move apps from one managed server to another?
    Edited by: user8652010 on Feb 10, 2011 1:31 PM

    1 yes, the dhcp server who's scope is full will not do a dhcp
    'offer'
    2 dhcp that answers fastest with a 'offer' will win. A delay is configurable (but changes nothing
    about the root scenario were the fastest will win)
    Note that if the scopes overlap on the servers, they might not lease out all the addresses in the scope.
    I would enlarge the scope as you will want to fence against unavailability of one of the servers (or a network connection for that matter). you currently have more addresses leased out than any set of two of your servers can offer.
    MCP/MCSA/MCTS/MCITP

  • Request URI not encoded...

    I'm sorry for poor english...
    I'm devloping with applet...
    When I use non proxy in brower, I have no problem...
    But, When I use proxy, Jscript Error occured...
    So, I run Packet Capture with 'Wireshark'..
    ----applet is requesting to proxy server
    GET /cgi-bin/pac-server.pl?proxystr=PROXY krproxy.apac.nsroot.net:8080&directs=RegionalInternet HTTP/1.1\r\n
    User-Agent : Mozilla/4.0 (Windows XP 5.1) Java/1.6.0_07
    ---- web brower is requesting to proxy server
    GET /cgi-bin/pac-server.pl?proxystr=PROXY%20krproxy.apac.nsroot.net:8080&directs=RegionalInternet HTTP/1.1\r\n
    User-Agent : Mozilla/4.0 (compatible; MSIE 7.0; Win32)
    difference is '%20'...
    when using proxy, it seems that java is not encoding blank to '%20' by base64 encoding...
    Java version of My PC is '1.6.0_07'...
    why didn't encode blank to '%20'...?
    I have a problem of java plugin?
    Edited by: cycho95 on Jun 8, 2010 7:23 PM

    when using proxy, it seems that java is not encoding blank to '%20' by base64 encoding.You mean your Java code isn't doing that. It is up to you.

  • ATV1 stopped responding Port 3689 request

    My ATV1 no longer syncs with iTunes. I had it connected via Airport. I tried to connect it to my Time Capsule router but had the same problem, I now have it connected it directly to my iMac with ethernet. It appears on the device list in iTunes but returns an error message to the effect that it is no longer responding and to check that Firewall is set to allow communication on port 3689. I have checked the firewall and it is set to allow all iTunes communication. I have also checked Virus barrier (set to check my internet traffic) and it is set to allow all local network activity. I do not think this is a firewall issue. I see the apple TV in the iTunes prefs and it show as Syncing - which it is clearly is not. I have had this issue since upgrading to iTunes 10.

    Answered here.
    I just got a Time Capsule and changed my iMac's network connection from using AirPort to using Built-in Ethernet from the Time Capsule. Also I changed my Apple TV to use the 5GHz AirPort network. Then I started having this issue. Unfortunately, I made a couple of changes at once before retesting. One or both of these changes resolved the issue.
    1. Turned IPv6 On for Built-in Ethernet
    2. Turned Internet Sharing Off that was set to share AirPort with Built-in Ethernet.

  • The specified HTTP method is not allowed for the resource identified by the Data Service Request URI

    Hi Experts,
              I am getting following error in creating gateway service. 405 method not allowed.
                  I am trying to update a table using put method.
    Regards,
    Dinesh Jeyasurian

    Hi Dinesh,
    you are getting error because it is not the correct way to perform PUT operation.
    Please refer my blog Let’s code CRUDQ and Function Import operations in OData service! and see section Update operation.
    Regards,
    Chandra

Maybe you are looking for