Management API - Create VM - InvalidXmlRequest - The request body XML was invalid or not correctly specified
Hi,
I am getting error while creating virtual machine from Azure REST management API. Could someone please point me what wrong I am POSTing in below XML
ERROR ---
<Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Code>InvalidXmlRequest</Code><Message>The request body's XML was invalid or not correctly specified.</Message></Error>
" <Deployment xmlns=\"http://schemas.microsoft.com/windowsazure\" xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\">" +
" <Name>SomeName</Name>" +
" <DeploymentSlot>Production</DeploymentSlot>" +
" <Label>SomeLabel</Label>" +
" <RoleList>" +
" <Role>" +
" <RoleName>SomeRoleName</RoleName>" +
" <RoleType>PersistentVMRole</RoleType>" +
" <ConfigurationSets>" +
" <ConfigurationSet i:type=\"WindowsProvisioningConfigurationSet\">" +
" <ConfigurationSetType>WindowsProvisioningConfiguration</ConfigurationSetType>" +
" <ComputerName>SomeCompName</ComputerName>" +
" <AdminPassword>Admin098</AdminPassword>" +
" <EnableAutomaticUpdates>true</EnableAutomaticUpdates>" +
" <ResetPasswordOnFirstLogon>false</ResetPasswordOnFirstLogon>" +
" </ConfigurationSet>" +
" <ConfigurationSet i:type=\"NetworkConfigurationSet\">" +
" <ConfigurationSetType>NetworkConfiguration</ConfigurationSetType>" +
" <InputEndpoints>" +
" <InputEndpoint>" +
" <LocalPort>3389</LocalPort>" +
" <Name>RemoteDesktop</Name>" +
" <Protocol>tcp</Protocol>" +
" </InputEndpoint>" +
" </InputEndpoints>" +
" </ConfigurationSet>" +
" </ConfigurationSets>" +
" <OSVirtualHardDisk>" +
" <DiskName>SomeDiskName-0-20121007173943</DiskName>" +
" <MediaLink>http://portalvhdsrx7q659n2n5j2.blob.core.windows.net/public/myvhd0008980.vhd</MediaLink>" +
" <SourceImageName>MSFT__Win2K8R2SP1-Datacenter-201208.01-en.us-30GB.vhd</SourceImageName>" +
" </OSVirtualHardDisk>" +
" <RoleSize>Small</RoleSize>" +
" </Role>" +
" </RoleList>" +
" </Deployment>"I have tried adding admin user name as well to the xml but still get same error.Please suggest
the format of the request body is:
<Deployment xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Name>name-of-deployment</Name>
<DeploymentSlot>deployment-environment</DeploymentSlot>
<Label>identifier-of-deployment</Label>
<RoleList>
<Role>
<RoleName>name-of-the-virtual-machine</RoleName>
<RoleType>PersistentVMRole</RoleType>
<VMImageName>name-of-vm-image</VMImageName>
<ConfigurationSets>
<ConfigurationSet i:type="WindowsProvisioningConfigurationSet">
<ConfigurationSetType>WindowsProvisioningConfiguration</ConfigurationSetType>
<ComputerName>name-of-computer</ComputerName>
<AdminPassword>administrator-password</AdminPassword>
<EnableAutomaticUpdates>enable-updates</EnableAutomaticUpdates>
<TimeZone>time-zone</TimeZone>
<DomainJoin>
<Credentials>
<Domain>domain-to-join</Domain>
<Username>user-name-in-the-domain</Username>
<Password>password-for-the-user-name</Password>
</Credentials>
<JoinDomain>domain-to-join</JoinDomain>
<MachineObjectOU>distinguished-name-of-the-ou</MachineObjectOU>
</DomainJoin>
<StoredCertificateSettings>
<CertificateSetting>
<StoreLocation>LocalMachine</StoreLocation>
<StoreName>name-of-store-on-the-machine</StoreName>
<Thumbprint>certificate-thumbprint</Thumbprint>
</CertificateSetting>
</StoredCertificateSettings>
<WinRM>
<Listeners>
<Listener>
<Protocol>listener-protocol</Protocol>
</Listener>
<Listener>
<CertificateThumbprint>certificate-thumbprint</CertificateThumbprint>
<Protocol>listener-protocol</Protocol>
</Listener>
</Listeners>
</WinRM>
<AdminUsername>name-of-administrator-account</AdminUsername>
<CustomData>base-64-encoded-data</CustomData>
</ConfigurationSet>
<ConfigurationSet i:type="LinuxProvisioningConfigurationSet">
<ConfigurationSetType>LinuxProvisioningConfiguration</ConfigurationSetType>
<HostName>host-name-for-the-virtual-machine</HostName>
<UserName>new-user-name</UserName>
<UserPassword>password-for-the-new-user</UserPassword>
<DisableSshPasswordAuthentication>password-authentication</DisableSshPasswordAuthentication>
<SSH>
<PublicKeys>
<PublicKey>
<FingerPrint>certificate-fingerprint</FingerPrint>
<Path>SSH-public-key-storage-location</Path>
</PublicKey>
</PublicKeys>
<KeyPairs>
<KeyPair>
<FingerPrint>certificate-fingerprint</FinguerPrint>
<Path>SSH-public-key-storage-location</Path>
</KeyPair>
</KeyPairs>
</SSH>
<CustomData>base-64-encoded-data</CustomData>
</ConfigurationSet>
<ConfigurationSet>
<ConfigurationSetType>NetworkConfiguration</ConfigurationSetType>
<InputEndpoints>
<InputEndpoint>
<LoadBalancedEndpointSetName>name-of-load-balanced-set</LoadBalancedEndpointSetName>
<LocalPort>local-port-number</LocalPort>
<Name>name-of-endpoint</Name>
<Port>external-port-number</Port>
<LoadBalancerProbe>
<Path>path-of-probe</Path>
<Port>port-assigned-to-probe</Port>
<Protocol>probe-protocol</Protocol>
<IntervalInSeconds>interval-of-probe</IntervalInSeconds>
<TimeoutInSeconds>timeout-for-probe</TimeoutInSeconds>
</LoadBalancerProbe>
<Protocol>endpoint-protocol</Protocol>
<EnableDirectServerReturn>enable-direct-server-return</EnableDirectServerReturn>
<EndpointACL>
<Rules>
<Rule>
<Order>priority-of-the-rule</Order>
<Action>permit-rule</Action>
<RemoteSubnet>subnet-of-the-rule</RemoteSubnet>
<Description>description-of-the-rule</Description>
</Rule>
</Rules>
</EndpointACL>
</InputEndpoint>
</InputEndpoints>
<SubnetNames>
<SubnetName>name-of-subnet</SubnetName>
</SubnetNames>
<StaticVirtualNetworkIPAddress>ip-address</StaticVirtualNetworkIPAddress>
</ConfigurationSet>
</ConfigurationSets>
<ResourceExtensionReferences>
<ResourceExtensionReference>
<ReferenceName>name-of-reference</ReferenceName>
<Publisher>name-of-publisher</Publisher>
<Name>name-of-extension</Name>
<Version>version-of-extension</Version>
<ResourceExtensionParameterValues>
<ResourceExtensionParameterValue>
<Key>name-of-parameter-key</Key>
<Value>parameter-value</Value>
<Type>type-of-parameter</Type>
</ResourceExtensionParameterValue>
</ResourceExtensionParameterValues>
<State>state-of-resource</State>
</ResourceExtensionReference>
</ResourceExtensionReferences>
<AvailabilitySetName>name-of-availability-set</AvailabilitySetName>
<DataVirtualHardDisks>
<DataVirtualHardDisk>
<HostCaching>caching-mode</HostCaching>
<DiskLabel>label-of-data-disk</DiskLabel>
<DiskName>name-of-disk</DiskName>
<Lun>logical-unit-number</Lun>
<LogicalDiskSizeInGB>size-in-gb-of-data-disk</LogicalDiskSizeInGB>
<MediaLink>path-to-vhd</MediaLink>
</DataVirtualHardDisk>
</DataVirtualHardDisks>
<OSVirtualHardDisk>
<HostCaching>caching-mode</HostCaching>
<DiskLabel>label-of-operating-system-disk</DiskLabel>
<DiskName>name-of-disk</DiskName>
<MediaLink>path-to-vhd</MediaLink>
<SourceImageName>name-of-source-image</SourceImageName>
</OSVirtualHardDisk>
<RoleSize>size-of-virtual-machine</RoleSize>
<ProvisionGuestAgent>install-an-agent</ProvisionGuestAgent>
</Role>
</RoleList>
<VirtualNetworkName>name-of-virtual-network</VirtualNetworkName>
<Dns>
<DnsServers>
<DnsServer>
<Name>dns-name</Name>
<Address>dns-ip-address</Address>
</DnsServer>
</DnsServers>
</Dns>
</Deployment>
for more details please see
this link.
hope this helps!
Similar Messages
-
The requested instance is either invalid or not running
I try to set up a datasource to SQL server 2008 Express.
And I get always that message :
The requested instance is either invalid or not running.
I spent a full day looking at all forums threads, I have learn a lot,
Looking through all Google return on that subject, but it still not working.
I ask for help to solve this situation.
Here is my situation :
- Windows server 2008 R2 - CF9.0 - SQL server Express 2008
- Working through TSE (terminal server)
- on SQL server , I can acces the management studio, connect, create DB, anything
- I can Stop/Restart the SQL server service throuh the SQLconfig manager
- I have enable TCP/IP in SQLserver for 2 IPs : 127.0.0.1 and the server externel IP on which I connect through TSE, both on port 1433
- SQL server Express 2008 is installed on Hard Disk D: (not on C:) (C is small for diskspace)
- The SQL server Instance showed in SQL management Studio is : LARDE\SQLEXPRESS
- Authentification in SQL server : SQL server and Windows
- the CF datasource is declared as follow :
Driver : Microsoft SQL server
datasource name : any
database : the accesible SQL database name where i created a new table
server : LARDE\SQLEXPRESS port : 1433
no login
And I get this error in CF admin datasource : The requested instance is either invalid or not running
- I tried also with a new connection on SQLserver (username/password),
add it in the datasource declaration (user login)
same error.
It seems to me that it is a question of Coldfusion access to that instance of SQLserver
I have the same config at home on local, all is working fine. (difference is TSE)
Thanks for any idea, help.Ok, I understand well and I agree to help all.
But the terminology of this forum is not strict ?
i do not see any button like " this question as answered"
I see "correct" may be it is ?
But this is not the same meaning.
Answered = the solution has been given
Correct = that answer is true (may not solve the question ?)
This is my understanding.
Thanks for strictness.
Pierre. -
ERROR : Cannot read the request body while creating new calendar event api.
Hi,
I was trying to create and update the calendar event using [POST] https://outlook.office365.com/api/v1.0/me/events and [PATCH] https://outlook.office365.com/api/v1.0/me/events/<eventId> respectively.
When i try with poster or postman, I get this error
{error: {code: "ErrorInvalidRequest" message: "Cannot read the request body."} }
its not working . Any help will be appreciated.
Note: GET events and DELETE Events are working. I think the API with payload is not working.
Test Data :
URL: https://outlook.office365.com/api/v1.0/me/events/
Method: POST
JSON Data(Payload):
"Subject": "Discuss the Calendar REST API",
"Body": {
"ContentType": "HTML",
"Content": "I think it will meet our requirements!"
"Start": "2015-01-06T07:03:07.481Z",
"End": "2015-01-05T07:03:07.481Z",
"Attendees": [
"EmailAddress": {
"Address": "[email protected]",
"Name": "Konveen"
"Type": "Required"
Error:
"error": {
"code": "ErrorInvalidRequest",
"message": "Cannot read the request body."Hi Sahil,
I was able to make your request work fine against my Office 365 mailbox with 2 changes.
1. Can you please make sure you are adding header "Content-Type: Application/Json"?
2. Can you please make sure your end time is AFTER start time? Looks like there is a typo with your current request as the start time is on 2015-01-06 and end time is on 2015-01-05.
Hope that helps ...
Thanks,
Venkat -
How can I insert data in the request body of a proxyService ?
I have the following xq query, I have defined a variable called context and assign the value of the xquery bellow.
<ns:Kontekst xmlns:ns20="http://skat.dk/etil/2011/02/11/">
<TransaktionsID>{fn-bea: uuid()}</TransaktionsID>
<TransaktionsTid>{fn:current-dateTime()}</TransaktionsTid>
</ns:Kontekst>
Question. is it possible to include this as part of the request body ?You can do this using the "Insert" action of OSB.Try and let us know.
http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/tutorial/tutTransform.html#wp1068641 -
Hi,
I have installed ESB Management Portal successfully after following all the steps. everything is working fine except when I click the Registry menu in the portal. I get an unhandled exception. The event viewer shows the below error "The request failed
with HTTP status 404: Not Found."
================================================
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 1/27/2015 5:56:10 PM
Event time (UTC): 1/27/2015 5:56:10 PM
Event ID: f7aedd39118845b79c17d3442a0d15a7
Event sequence: 54
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/ROOT/ESB.Portal-1-130668549484455107
Trust level: Full
Application Virtual Path: /ESB.Portal
Application Path: C:\Projects\Microsoft.Practices.ESB\Source\Samples\Management Portal\ESB.Portal\
Machine name: <Machine Name>
Process information:
Process ID: 4712
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: TargetInvocationException
Exception message: Exception has been thrown by the target of an invocation.
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance)
at System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments)
at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()
at System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
The request failed with HTTP status 404: Not Found.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at Microsoft.Practices.ESB.Portal.UDDIService.UDDIService.GetCategoryByName(String UDDIServerUrl, String tModelName) in c:\Projects\Microsoft.Practices.ESB\Source\Samples\Management Portal\ESB.Portal\Web References\UDDIService\Reference.cs:line
575
at Microsoft.Practices.ESB.Portal.Uddi.ServiceProxy.getBTEndpoints(String applicationName, Boolean getSendPorts, Boolean getRcvLocations) in c:\Projects\Microsoft.Practices.ESB\Source\Samples\Management Portal\ESB.Portal\Uddi\ServiceProxy.cs:line
553
at Microsoft.Practices.ESB.Portal.Uddi.ServiceProxy.GetEndpointsByApplication(String applicationName, Boolean getSendPorts, Boolean getRcvLocations) in c:\Projects\Microsoft.Practices.ESB\Source\Samples\Management Portal\ESB.Portal\Uddi\ServiceProxy.cs:line
46
Request information:
Request URL: http://localhost/ESB.Portal/uddi/uddi.aspx
Request path: /ESB.Portal/uddi/uddi.aspx
User host address: ::1
User: <domain>\<user>
Is authenticated: True
Authentication Type: Negotiate
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 19
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance)
at System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments)
at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()
at System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Custom event details:
=================================
Any idea why this is happening and what needs to be done ?
PLEASE HELP
Thanks & Regards
VikramSnippet from the link below:
If you get a “404: Not Found” error, it ‘s because by default there is no script map for .svc file with default IIS 7.0 installation, so you need to register .svc extension in IIS:
You need to update IIS script maps to register .svc extension In a command prompt (ran as administrator), execute the following command:
“%windir%\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe” -r -y"
Refer:
https://dgoins.wordpress.com/2010/05/01/esb-toolkit-management-portal-installation-notes-from-the-field-2/
Sarvanan's blog around this with detailed explanation:
Configuring Exception Management Portal
As mentioned above also
Check Portal Configuration Settings
Rachit
Please mark as answer or vote as helpful if my reply does -
Profile Manager - Not Found The requested URL /wiki was not found on this server.
I have installed Lion Server with Web and Profile Manager services. When I log into the profile manager web page I receive the message "Not Found The requested URL /wiki was not found on this server." I followed the guide here for install http://krypted.com/iphone/setting-up-profile-manager-in-lion-server/.
This was the fixed I found
Fixing profile manager has been solved by someone else:
1. Turn off all services under Server app.
2. Under Hardware, settings, change SSL certificate to "none"
3. Under Hardware, network, reset host name again.
4. Under Hardware, settings, change SSL certificate back to correct one
5. Turn Web service ON.
It may still say /var/empty.
6. Turn Wiki service ON
7. Recheck Web service. It should be changed to /Library/Server/Web/Data/Sites/Default. -
UI error "The requested lookup key was not found in any active" workaround
Hi All.
Some of you might have this problem when making a UI-Connection "The requested lookup key was not found in any active activation context"
Talking to SAP Support and Gianluigi Bagnoli about the problem here is a sum of the problem and the workaround to prevent it (at least untill SAP development fix the problem)
Some facts:
- The error is present in SBO2005A SP01 and SBO2005B SP00, SBO2007A should not be affected
- The error occur because the SAP client fail to provide the correct/entire connection-string
- The problem is actually an underlying problem from Microsoft (try searching google with the error message)
- Normally after the error occur, you can go to Administration > Add-ons and start the add-on manually without problems
Some additional observations
- The error mostly happen just after startup of a windows machine
- We have had a couple of customers that have had the problem, then upgraded the SAP client to a new patchlevel and got rid of the problem (but we have also had customers where this did not help)
- Seem to be happening more often of slower machines
Workaround
Knowing that this problem is tied to and incorrect connection string is also the "workaround"... What you could do is to create exception handling around the UI connection, and if it fails connection using the development connection string (like you do during development) The connection string is: 0030002C0030002C00530041005000420044005F00440061007400650076002C0050004
Using this method, you will be able to establish a connection even if the client is unable to provide you a correct connectionstring, but the draw-back of this workaround is that the add-on will be indicated as failed in the Add-on Manager and the user is not able to stop the add-on in any way other than disconnection from the company.Hi,
I am looking for a solution to the error "The requested lookup key was not found in any active activation context" too.
In our add-on we do two SboGuiApi.Connect(sConnectionString), one from MyAddon.exe and the other one from MyAddon.dll. The .exe catches messages and .dll interacts with UI to paint forms etc. It is since the .exe and .dll are not in the same thread. The first connection works fine in the .exe, then that connection string is passed to the dll and the error is raised. The rare thing is why it works fine from the development enviroment, but doesn't work when SAP is starting the Addon?
Is it possible connect twice?
Can we connect in the .exe using the connection string received from SAP and in the .dll using the development connection string?
It is over
Windows XP 2002 SP2
SBO2007A patchlevel 15
VS 2005 C#
SQL Server 2005
Thank you -
I have a web page that contains a ReportViewer control. I am trying to display a report, which is an .rdl file located on the SSRS server, in this ReportViewer control. I have set the ReportPath and ReportServerUrl correctly. I am
getting an error message.
Am I suppose to use an .rdlc file rather than a .rdl file? Does the web server configuration need to use a certain account?
I am getting the following error message:
The attempt to connect to the report server failed. Check your connection information and that the report server is a compatible version.
The request failed with HTTP status 404: Not Found.Hi bucaroov,
The error "The request failed with HTTP status 404: Not Found." means the ReportServerURL configured in the ReportViewer control is invalid.
Please follow these steps to solve the issue:
Logon the Report Server machine.
Open the Reporting Services Configuration Manager.
Copy the Report Server URL from 'Web Services URL'.
Logon the application server(in this case, it is the server that host the web page), check if we can use the URL we got from step 3 to access the Report Server. If so, please replace the ReportServerURL in the ReportViewer control with this URL. If it is
not available, could you please post the error message.
Additionaly, we don't need to provide the extension for a server report. The ReportPath should be like: /<reports folder>/<report name>
For more information, please see:
Walkthrough: Using the ReportViewer Control in Remote Mode:
http://msdn.microsoft.com/en-us/library/ms251669(VS.80).aspx
If you have any more questions, please feel free to ask.
Thanks,
Jin Chen
Jin Chen - MSFT -
Hi,
I have a search screen (jsp page) which has four fields to base the search on. Once the "Search" button is clicked, i am going to a servlet which does a select based on the search criteria, and stores the result in a ResultSet object. I then use the setAttribute method to store the result set in a bean. Here is the code for what i've just described:
rs=stmt.executeQuery(QueryStr); //get result set
HttpSession session=req.getSession(true);//create session var
session.setAttribute("s_resbean",rs);//set bean attribute
After this is set, i want to forward/redirect (whatever works...nothin does right now...the reason for this post.) back to the search screen(jsp page), and display the query ResultSet in the bottom half of the screen. I use the following code to do this:
String url="/DBTest/SearchInventory.jsp";
RequestDispatcher dispatcher=getServletContext().getRequestDispatcher(url);
dispatcher.forward(req,res);
Unfortunately, this gives me the following error:
The requested resource (/DBTest/SearchInventory.jsp) is not available.
Why would this be happening?? Is there another way of doing this? I'm just trying to follow the example in chp.15 of the free coreservlets pdf...
Thanks in advance,
Aditya.
P.S. Here is the code for my bean...don't know if it's needed...
public class SearchBean extends HttpServlet{
private int searchFlag=0;
private ResultSet searchRS;
public SearchBean(){
public int getSearchFlag(){
return searchFlag;
public ResultSet getSearchRS(){
return searchRS;
public void setSearchRS(ResultSet rs){
this.searchRS=rs;
public void setSearchFlag(){
this.searchFlag=1;
}I assume DBTest is the context root for your webapp.
ServletRequest.getRequestDispatcher(String url) is looking for a url relative to the context root. Therefore if my assumption is correct you want to use the url /SearchInventory.jsp, removing the DBTest.
HTH. -
The request failed with HTTP status 404: Not Found
Hi
BPC version we are using is : 5.0.502
When we Publish all reports using the steps below:
a. Log into BPC Web
b. Click on Available Interfaces> Select BPC for Administration
c. Under Web Admin Task Click Publish Reports
d. Select all of the reports and click the green check mark to publish the
reports.
I am getting following message 'System.Exception: The request failed with HTTP Status 404: Not Found. Event log relation to this error is given below.
Event Type: Error
Event Source: OutlookSoft log
Event Category: None
Event ID: 0
Date: 12/8/2008
Time: 11:26:42 AM
User: N/A
Computer: BPCAPP
Description:
==============[System Error Tracing]==============
[System Name] : OSoftCPM
[Message Type] : ErrorMessage
[Job Name] : AuditMgrService/SetAuditReportFiles
[DateTime] : 12/8/2008 11:26:42 AM
[UserId] : MMPlanning
[Exception]
DetailMsg : {The request failed with HTTP status 404: Not Found.}
==============[System Error Tracing End ]==============
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.
We tried ' Publish all reports' as the resolution of error 'object variable or with block variable not set' on modifying an application as per sap note Note 1131320
If anyone knows the resolution for the above issue, please help me.
Thanks in advance
Sajeev AbrahamHi
Thanks for the response.
Below are the full contents of the error message pop-up.
( System.Expection: the reguest failed with HTTP status 404:Not found at
Microsoft.Visualbasic.CompierServices.lateBinding.LateGet(Object o, Type,String name, Object
[]args,sTRING[]paramnames, Boolen[]CopyBack)
at OSoft.Services.WebServices.ReportmanageProxy.ReportManageProxy.SetPubishReport(String strAppSet,string
strApp,string strFiter)
url is given below
http://<HostName>/osoft/Admin/WebAdminMain.aspx
BPC Deployment is Multiple server ( Two servers) Database and Application deployed seperately.
Sql Reporting server is working.. I could connect using sql management studio.
Thanks -
The bottom rubber case of my macbook 13" late 2009 has expanded and has detached from the main body..As i'm not presently under warranty i wanted to know will the repair be free of charge for me. I had once got it replaced for free but in warranty. As i read some where in the support that apple had agreed with the defect and had decided to replace the bottom covers without any charge. And even if i'm charged for it what will be the amount will hav to pay for it..
ThankxHi,
Here's the Bottom Case Replacement Link
http://www.apple.com/support/macbook-bottomcase/
It doesn't answer your specific questions about cost... but it does advise to contact an Apple Store or an AASP...
Anyway have a look at it... if you haven't already..
Cheers and Good Luck... -
Been watching Netflix on my Verizon HP Notebook, it's less than 3mo old. runs windows xp...pretty standard stuff. Anyway tried to login to netflix and Firefox gave this error message--Invalid URL
The requested URL "/home", is invalid. Reference #9.9d0bc841.1320231048.92bcc44 -- I called Netflix & there system running perfectly. My pc running perfectly as well. Logged into netflix using IE--worked just fine. So by process of elimination, it's Firefox's Problem! I have NO CLUE about it, never seen it before on ANY browser. Tried opening & closing FFx, restarting puter, etc...Don't know what else to tell you except Firefox works on every other website now EXCEPT NETFLIX, it's the darnedest (I know that's not a word LOL) I've seen--it happened 10/2/11 @ about 3am!As I understand:
The procedure works.
The link 'appears' to work. (ie you saw the procedure run a 2nd at the database level)
But it doesn't actually work (because you get a 404)
I think I ran into an issue, on a completely different page type, that produced an 'error 404'. (I can't seem to reproduce it, though)
The only way I discovered what was really going on was with an HTTP sniffer. (eg HTTPFox for FireFox)
Through that, I noticed that the browser was (for some reason) calling a completely non-sensible APEX page. (hence the PAGE NOT FOUND error)
My solution was to add a "submit to self" branch point.
If that doesn't work, I'm at a loss.
MK -
The requested resource (/mytest/test.jsp) is not available.
JSP and Java are NEW for me.
I have prepared Linux server with Tomcat and Apache servers, connect it to using mod_jk.
Apache and Tomcat are work fine following LINK.
http://localhost/examples/jsp/
But , when I access JSP from my folder which I made it same folder "examples" is not working.
http://localhost/mytest/test.jsp (This is my folder which i want to call all my JSP file.)
It display following error message:
Apache Tomcat/4.0.4 - HTTP Status 404 - /mytest/test.jsp
type Status report
message /mytest/test.jsp
description The requested resource (/mytest/test.jsp) is not available.
What can i do, HELP ME.I STILL have some problem with JSP.
I have prepared Linux server with Tomcat and Apache servers, connect it to using mod_jk.
Apache and Tomcat are work fine following LINK.
http://localhost/examples/jsp/
But , when I access JSP from my folder which I made it same folder "examples" is not working.
http://localhost/mytest/test.jsp
(This is my folder which i want to call all my JSP file.)
It display following error message:
Apache Tomcat/4.0.4 - HTTP Status 404 - /mytest/test.jsp
type Status report
message /mytest/test.jsp
description The requested resource (/mytest/test.jsp) is not available.
What can i do, HELP ME ??? -
The requested URL /mahjongtrails/ was not found on this server.
Not Found
The requested URL /mahjongtrails/ was not found on this server.
Apache/2.2.9 (Debian) mod_jk/1.2.26 PHP/5.2.6-1+lenny4 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_ruby/1.2.6 Ruby/1.8.7(2008-08-11) mod_ssl/2.2.9 OpenSSL/0.9.8g Server at megazebra-facebook-trails.mega-zebra.com Port 80Adding to it,
First thing need to modify the server.xml and default-web-site.xml file as mentioned . Even after it doesn't work check for the security settings in the browser.
For IE, Goto Tools-> Internet Options -> Security tab -> Custom level.
Try enabling the security settings. -
I have downloaded a series of prison break but 3 episodes are saying "you do not have permission to access the requested resource" and "this episode can not be downloaded at this time" any idea how to fix this please??
I got this error with my iPad 3, my wife's iPhone 4, but not with my iPhone 4s.
Maybe you are looking for
-
Error while running / creating webcenter portal app
Hi, I had a fresh installation of Oracle JDeveloper Studio Edition Version 11.1.1.6.0. I installed the oracle.webcenter.customization_bundle and oracle.webcenter.framework_bundle as well. Now whenever I want to create a new Webcentre Portal App it's
-
Looking for help updating my macbook...
-
Locating Adobe PDF resource files-steps.
Unable to find "Adobe PDF" resource file, please help.
-
How to get text of itab header and structure field name dynamically?
HI. I'm just trying display itab to web. of cause I can use <htmlb:tableView> but I need display by loop itable for my special reason. the table is dynamic structure that means header line should be changes depends on structure description. '<htmlb:
-
How to display gragp in Viewer
Hi, I am using Discoverer 9.0.2.54.08. And I create a graph using Plus and save it. But the Viewer won't display the graph, although in the Presentation Options, the show Chart is selected. Can somebody help me? Thank you very much.