Error while trying to get an HTTP POST response
Hi everyone,
I'm coding a simple client to download some information from a local machine in my LAN.
I have to do this with an http post request.
When i try to parse the http response the program catch an exception, this one:
java.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(...)
the parameter is a JSON request, and of course the response is a JSON formatted.
i put the http request code:
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
public class HttpDownloaderThread extends Thread{
private String url;
private String param;
private HttpDownloadListener listener;
private HttpURLConnection connection=null;
private InputStream is;
private OutputStreamWriter wr;
public HttpDownloaderThread(String _url,String param, HttpDownloadListener _listener){
url = _url;
listener = _listener;
this.param=param;
public void run(){
try{
connection=(HttpURLConnection)new URL(url).openConnection();
connection.setRequestMethod("POST");
connection.setReadTimeout(5000);
connection.setRequestProperty("Content-Type", "application/jsonrequest");
connection.setDoOutput(true);
wr = new OutputStreamWriter(connection.getOutputStream());
wr.write(param, 0, param.length());
wr.flush();
int responseCode=0;
System.out.println();
try{
responseCode= connection.getResponseCode();
}catch(Exception e){
e.printStackTrace();
if (responseCode == HttpURLConnection.HTTP_OK){
is = connection.getInputStream();
BufferedReader rd = new BufferedReader(new InputStreamReader(is));
String line;
while ((line = rd.readLine()) != null) {
System.out.println(line);
closeHttpConnection();
listener.resourceDownloaded(url, null);
else{
closeHttpConnection();
listener.downloadFailed(url, new Exception("Http error: " + Integer.toString(responseCode)));
}catch(Exception e){
e.printStackTrace();
listener.downloadFailed(url, e);
}finally{
public void closeHttpConnection(){
if (is != null){
try{
is.close();
wr.close();
}catch (Exception e){
}finally{
is = null;
wr=null;
if (connection != null){
try{
connection.disconnect();
}catch (Exception e){
}finally{
connection = null;
}there's someone who know's why??
Thanks to everyone :)
Thomas.
Hi Vincent,
according to your script,it seems like you are trying to connect to Exchange Online?
If so these as to be installed on your computer:
http://go.microsoft.com/fwlink/?LinkId=286152
http://go.microsoft.com/fwlink/p/?linkid=236297
Reboot and run this command as one line:
Set-ExecutionPolicy RemoteSigned
$LiveCred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $LiveCred -Authentication Basic -AllowRedirection
$Import = Import-Pssession $Session -AllowClobber
Import-Module MSOnline -verbose
Connect-MSOLservice -Credential $LiveCred
Hope this helped
Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you. Thank you! Off2work
Similar Messages
-
Getting socket error while trying to get oracle connection using JDBC
hi,
I am getting following socket read error while trying to get database connection using JDBC. This happening with jdk1.5.0_12 version with Oracle 9i
following is the stacktrace...
Thread t@92: (state = IN_NATIVE)
- java.net.SocketInputStream.socketRead0(java.io.FileDescriptor, byte[], int, int, int) @bci=0 (Compiled frame; information may be imprecise)
- java.net.SocketInputStream.read(byte[], int, int) @bci=84, line=129 (Compiled frame)
- oracle.net.ns.Packet.receive() @bci=31 (Compiled frame)
- oracle.net.ns.DataPacket.receive() @bci=1 (Interpreted frame)
- oracle.net.ns.NetInputStream.getNextPacket() @bci=48 (Compiled frame)
- oracle.jdbc.driver.T4CMAREngine.unmarshalSB1() @bci=1, line=1070 (Compiled frame)
- oracle.jdbc.driver.T4CStatement.doOall8(boolean, boolean, boolean, boolean) @bci=617, line=207 (Compiled frame)
- oracle.jdbc.driver.T4CStatement.executeForDescribe() @bci=39, line=790 (Compiled frame)
- oracle.jdbc.driver.OracleStatement.executeMaybeDescribe() @bci=106, line=1039 (Interpreted frame)
- oracle.jdbc.driver.T4CStatement.executeMaybeDescribe() @bci=11, line=830 (Interpreted frame)
- oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout() @bci=128, line=1132 (Interpreted frame)
- oracle.jdbc.driver.OracleStatement.executeQuery(java.lang.String) @bci=76, line=1272 (Interpreted frame)
any help would appreciated. thanks in advanceI do not have exact exception message.
additionally, i have got following the tomcat log file:
INFO - Resource pool cleanup thread just woke up.
Nov 1, 2008 3:41:52 AM org.apache.tomcat.util.threads.ThreadPool logFull
SEVERE: All threads (100) are currently busy, waiting. Increase maxThreads (100) or check the servlet status
INFO - Resource pool cleanup thread just woke up.
thanks in advance -
Http 404 Error while trying to get the plug-in
Hi,
We have installed the Developer server 6i, and everything was working fine with jinitiator 1.1.7.30.
Recently we have installed Patchset 3A on the machine on which Developer Server was installed and downloaded jinitiator 1.1.8.3. When we try to run the test form from the client machines, we are prompted to get the plug-in 1.1.8.3, and when we click on the "Get the Plug-in", it gives us an HTTP Error 404: "404 Not Found. The Web server cannot find the file or script you asked for. Please check the URL to ensure that the path is correct.Please contact the server's administrator if this problem persists."
The URL is http://<server_name>:port/jinitiator/us/jinit_download.htm?application/x-jinit-applet;version=1.1.8.3
I've checked the virtual mapping of jinitiator, it points to <ORACLE_HOME>/jinit.
Is there anything else that we need to do to get the latest plug-in?
Thanks in advance
LVHi
I am also facing the same error while trying to bring REFOBJ (IBase) context node fields in Interaction Record.
Did you get a reply from SAP about this issue? If yes, can you please state the OSS # ?
Thanks in advance
Vishal -
Error while trying to get the IBase in Interaction Record
We are trying to bring the Ibase component in the Interaction Record and Activity, for that in UI configuration we have enabled the
Ibase and Component field. Once the enter the Ibase id and press enter we are getting the following Short dump.
"An error occured during event processing in view BTSHeader.htm1 of &2 &3"
An exception has occurred
CX_CRM_CIC_PARAMETER_ERROR- Entry parameter ES_KEY of method CL_CRM_GENIL_CONTAINER_OBJECT->GET_KEY contains value , which is not allowed
Method: CL_CRM_GENIL_CONT_SIMPLE_OBJ=>IF_GENIL_CONT_SIMPLE_OBJECT~GET_KEY
Source Text
Row:37Hi
I am also facing the same error while trying to bring REFOBJ (IBase) context node fields in Interaction Record.
Did you get a reply from SAP about this issue? If yes, can you please state the OSS # ?
Thanks in advance
Vishal -
Getting Bad request error while trying to get a specific document details from c#.
Hi,
While trying to retrieve a specific document details using RESTful WS API from C#, it is throwing "The remote server returned an error: (400) Bad Request" exception.
the request URL i am using for this is like; "http://<Server>:6405/biprws/raylight/v1/documents/1111"
But it is working fine, if i change my request URL to get the dataproviders of the same document like; "http://<Server>:6405/biprws/raylight/v1/documents/1111/dataproviders"
Please let me know if i am missing any thing in first case, getting the details of a specific document, while sending a request to RESTful SDK.
Thanks,
KalyanI think you are using “Content-Type” header or an “Accept” header.
You should be using “Accept: application/xml” for that request
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center
Canada
Follow us on Twitter -
Error while trying to get F4 help for a field mapped to an info object
Hi,
I am getting the following exception while trying to attach a search help to a drop down list box.The field belongs to a table on the BW server which has an explicit search help attached to it.I am getting the following exception:
An exception occurred. This exception is dealt with in more detail below
. The exception, which is assigned to the class 'CX_BSP_SERVICES_SHLP', was neither
caught nor passed along using a RAISING clause, in the procedure "_ONCREATE" "(METHOD)" . Since the caller of the procedure could not have expected this exception to occur, the running program was terminated. The reason for the exception is: The input help is not suitable.
As I am new to BW server I am unable to find the solution.Please help me out.
Regards
TejaswiniHi Craig,
I was actually not using the f4 help of the
IF_BSP_SERVICES class. Now I want to implement this as I have got many fields on my page. But I am getting the above mentioned error while doing this. The Code in OnInitialization() is:
data: dataref1 type ref to data.
data:wa_r8t_prog type ZR8T_S_API_PROG_H.
get reference of wa_r8t_prog-ZR8CPRGTY into dataref1.
try.
call method runtime->ddic_utils->get_simple_helpvalues
exporting
data_object_ref = dataref1
changing
helpvalue_tab = t_vallist.
catch cx_bsp_services.
endtry.
But I have a search help attached to 'ZR8T_S_API_PROG_H-ZR8CPRGTY' field
My 'ZR8T_S_API_PROG_H' structure definition is as follows:
.INCLUDE ZR8T_REBATE_PROG 0 0 Rebate Program
ZR8CPRGID /BIC/OIZR8CPRGID CHAR 32 0 Rebate Program ID
COMP_CODE /BI0/OICOMP_CODE CHAR 4 0 Company Code
ZR8CPRGTY /BIC/OIZR8CPRGTY CHAR 5 0 Program type
Can I get f4 help from search help exits or do I have to use only value tables?
Regards
Tejaswini
Message was edited by: Tejaswini Das -
Error While trying to Get XML element(tag) Values
We are trying to get XML element (TAG) value from the XML pay load.
Example.
Getting XML String from a web service and then converting into XML payload.
ora:parseEscapedXML(bpws:getVariableData('signOn_Out','signOnReturn'))
From this XML payload we are trying to get an element (Tag) value.
We are getting following error
Error in evaluate <from> expression at line "130". The result is empty for the XPath expression : "/client:TririgaProcessResponse/client:User/client:LastName".
oracle.xml.parser.v2.XMLElement@118dc2a
{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure" has been thrown.
- <selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
- <part name="summary">
<summary>
empty variable/expression result.
xpath variable/expression expression "/client:TririgaProcessResponse/client:User/client:LastName" is empty at line 130, when attempting reading/copying it.
Please make sure the variable/expression result "/client:TririgaProcessResponse/client:User/client:LastName" is not empty.
</summary>
</part>
</selectionFailure>
Here are signOnReturn and XML Payload XSD's
<schema attributeFormDefault="unqualified"
elementFormDefault="qualified"
targetNamespace="http://xmlns.oracle.com/Web1"
xmlns="http://www.w3.org/2001/XMLSchema">
<element name="Web1ProcessRequest">
<complexType>
<sequence>
<element name="userName" type="string"/>
<element name="password" type="string"/>
</sequence>
</complexType>
</element>
<element name="Web1ProcessResponse">
<complexType>
<sequence>
<element name="result" type="string"/>
</sequence>
</complexType>
</element>
</schema>
<?xml version="1.0" encoding="windows-1252" ?>
<schema attributeFormDefault="unqualified"
elementFormDefault="qualified"
targetNamespace="http://xmlns.oracle.com/Web"
xmlns="http://www.w3.org/2001/XMLSchema">
<element name="TProcessResponse">
<complexType>
<sequence>
<element name="result" type="string"/>
<element name="User">
<complexType>
<sequence>
<element name="Id" type="string"/>
<element name="CompanyId" type="string"/>
<element name="SecurityToken" type="string"/>
<element name="FirstName" type="string"/>
<element name="LastName" type="string"/>
</sequence>
</complexType>
</element>
</sequence>
</complexType>
</element>
</schema>I am sure and can see the data in audit trail.
[2006/12/12 09:17:36]
Updated variable "signOn_Output"
- <signOn_Output>
- <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload">
- <WebMethodsProcessResponse xmlns="http://xmlns.oracle.com/WebMethods">
<Result xmlns="">
Success
</Result>
- <User xmlns="">
<Id>
2694069
</Id>
<CompanyId>
208133
</CompanyId>
<SecurityToken>
1165936654605
</SecurityToken>
<FirstName>
Jagan
</FirstName>
<LastName>
Rao
</LastName>
</User>
</WebMethodsProcessResponse>
</part>
</signOn_Output>
Copy details to clipboard
[2006/12/12 09:17:36]
Updated variable "tririga"
- <tririga>
- <TririgaProcessResponse xmlns="http://xmlns.oracle.com/WebMethods">
<Result xmlns="">
Success
</Result>
- <User xmlns="">
<Id>
2694069
</Id>
<CompanyId>
208133
</CompanyId>
<SecurityToken>
1165936654605
</SecurityToken>
<FirstName>
Jagan
</FirstName>
<LastName>
Rao
</LastName>
</User>
</TririgaProcessResponse>
</tririga>
Copy details to clipboard
[2006/12/12 09:17:36]
Updated variable "Variable_2"
- <Variable_2>
- <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload">
- <TririgaProcessResponse xmlns="http://xmlns.oracle.com/WebMethods">
<Result xmlns="">
Success
</Result>
- <User xmlns="">
<Id>
2694069
</Id>
<CompanyId>
208133
</CompanyId>
<SecurityToken>
1165936654605
</SecurityToken>
<FirstName>
Jagan
</FirstName>
<LastName>
Rao
</LastName>
</User>
</TririgaProcessResponse>
</part>
</Variable_2>
Copy details to clipboard
[2006/12/12 09:17:36]
Error in evaluate <from> expression at line "130". The result is empty for the XPath expression : "/client:TririgaProcessResponse/client:User/client:LastName".
oracle.xml.parser.v2.XMLElement@1c8768e
Copy details to clipboard
[2006/12/12 09:17:36]
"{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure" has been thrown.
- <selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
- <part name="summary">
<summary>
empty variable/expression result.
xpath variable/expression expression "/client:TririgaProcessResponse/client:User/client:LastName" is empty at line 130, when attempting reading/copying it.
Please make sure the variable/expression result "/client:TririgaProcessResponse/client:User/client:LastName" is not empty.
</summary>
</part>
</selectionFailure>
Copy details to clipboard -
Error while trying to get Property Set Management in 3.2
Hi,
Using WLS 5.1 with sp6 and using WLCS 3.2. When I go into the
Administration Tools Home Page and click on the Property Set Management
I get the following errors. I just installed WLCS 3.2 and I'm trying
to run the Tour by "adding properties within a property set".
Wed Mar 14 09:35:26 MST 2001:<E> <WebAppServletContext-tools> Servlet
failed with Exception
weblogic.servlet.jsp.JspException: (line -1): Error in tag library at:
'wl': For tag 'repeat', cannot load extra info class
'weblogicx.jsp.tags.RepeatTagInfo'
at
weblogic.servlet.jsp.StandardTagLib.jspException(StandardTagLib.java:138)
at
weblogic.servlet.jsp.StandardTagLib.processTag(StandardTagLib.java:201)
at
weblogic.servlet.jsp.StandardTagLib.processTagElements(StandardTagLib.java:146)
at weblogic.servlet.jsp.StandardTagLib.<init>(StandardTagLib.java:125)
at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:87)
at
weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:3739)
at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:3495)
at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:3356)
at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:1694)
at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1535)
at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1425)
at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:825)
at weblogic.servlet.jsp.JspParser.doit(JspParser.java:69)
at weblogic.servlet.jsp.JspParser.parse(JspParser.java:116)
at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:97)
at
weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:242)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:265)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:180)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:181)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:118)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:154)
at
com.beasys.commerce.foundation.flow.ServletDestinationHandler.handleDestination(ServletDestinationHandler.java:51)
at
com.beasys.commerce.foundation.flow.FlowManager.service(FlowManager.java:448)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:123)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:761)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:708)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:252)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:346)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:246)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)Fixed the problem I didn't have the weblogic-tags-510.jar from WLS 5.1 service pack 6.
Letty Campbell wrote:
Hi,
Using WLS 5.1 with sp6 and using WLCS 3.2. When I go into the
Administration Tools Home Page and click on the Property Set Management
I get the following errors. I just installed WLCS 3.2 and I'm trying
to run the Tour by "adding properties within a property set".
Wed Mar 14 09:35:26 MST 2001:<E> <WebAppServletContext-tools> Servlet
failed with Exception
weblogic.servlet.jsp.JspException: (line -1): Error in tag library at:
'wl': For tag 'repeat', cannot load extra info class
'weblogicx.jsp.tags.RepeatTagInfo'
at
weblogic.servlet.jsp.StandardTagLib.jspException(StandardTagLib.java:138)
at
weblogic.servlet.jsp.StandardTagLib.processTag(StandardTagLib.java:201)
at
weblogic.servlet.jsp.StandardTagLib.processTagElements(StandardTagLib.java:146)
at weblogic.servlet.jsp.StandardTagLib.<init>(StandardTagLib.java:125)
at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:87)
at
weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:3739)
at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:3495)
at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:3356)
at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:1694)
at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1535)
at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1425)
at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:825)
at weblogic.servlet.jsp.JspParser.doit(JspParser.java:69)
at weblogic.servlet.jsp.JspParser.parse(JspParser.java:116)
at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:97)
at
weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:242)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:265)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:180)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:181)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:118)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:154)
at
com.beasys.commerce.foundation.flow.ServletDestinationHandler.handleDestination(ServletDestinationHandler.java:51)
at
com.beasys.commerce.foundation.flow.FlowManager.service(FlowManager.java:448)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:123)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:761)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:708)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:252)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:346)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:246)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135) -
Getting error while trying to get pending approval list from SOA server
Hi,
I have followed the steps mentioned in the following post to get the pending approval list from SOA server using java api's :
Using Java APIs for Oracle Human Workflows | Oracle Technologies Premier
But when I am running the java program I am getting the following error :
java.io.InvalidClassException: oracle.bpel.services.common.exception.ServicesException; local class incompatible: stream classdesc serialVersionUID = 1, local class serialVersionUID = -2263933888849127134
Please let me know how to solve this issue.
ThanksYou would need to spcify the JNDI path in a properties file or the like.
Suggestions here should help -
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial -
Error while trying to get sessionid from webbased webservice
Hi,
I am trying to invoke startSession method of a webbased webserivce and the SOA BPEL process fails with below error.
the input Msg has no variable to be passed, but if I call same method from SOAP UI it returns the session key for that, but same does not work with BPEL invoke operation?
Can anyone help on this issue?
exception on JaxRpc invoke: serialization error: java.lang.ClassCastException: oracle.xml.parser.v2.XMLElementHi,
I am trying to invoke startSession method of a webbased webserivce and the SOA BPEL process fails with below error.
the input Msg has no variable to be passed, but if I call same method from SOAP UI it returns the session key for that, but same does not work with BPEL invoke operation?
Can anyone help on this issue?
exception on JaxRpc invoke: serialization error: java.lang.ClassCastException: oracle.xml.parser.v2.XMLElement -
Problem while trying to get meta data from entity in CRM 2011 using java
Hi,
I have been trying to get the meta data from entity. Below is the code what i have tried.
EntityFilters entfilter = new EntityFilters();
EntityFilters_type0 eftypes [] = new EntityFilters_type0[]{EntityFilters_type0.Attributes};
entfilter.setEntityFilters_type0(eftypes);
EntityFiltersE entityFiltersE = new EntityFiltersE();
entityFiltersE.setEntityFilters(entfilter);
Boolean RAIP = new Boolean(true);
OrganizationServiceStub.ParameterCollection parameterCollection = new OrganizationServiceStub.ParameterCollection();
OrganizationServiceStub.KeyValuePairOfstringanyType entityFilters = new OrganizationServiceStub.KeyValuePairOfstringanyType();
entityFilters.setKey("EntityFilters");
entityFilters.setValue(entityFiltersE);
OrganizationServiceStub.KeyValuePairOfstringanyType retAsIfPublished = new OrganizationServiceStub.KeyValuePairOfstringanyType();
retAsIfPublished.setKey("RetrieveAsIfPublished");
retAsIfPublished.setValue(RAIP);
parameterCollection.addKeyValuePairOfstringanyType(entityFilters);
parameterCollection.addKeyValuePairOfstringanyType(retAsIfPublished);
OrganizationServiceStub.OrganizationRequest request=new OrganizationServiceStub.OrganizationRequest();
request.setRequestName("RetrieveAllEntities");
request.setParameters(parameterCollection);
OrganizationServiceStub.Execute org_execute = new OrganizationServiceStub.Execute();
org_execute.setRequest(request);
ExecuteResponse resp = serviceStub.execute(org_execute);
And getting the below error.
[ERROR] The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter
http://schemas.microsoft.com/xrm/2011/Contracts/Services:request. The InnerException
message was 'Element value from namespace http://schemas.datacontract.org/2004/07/System.Collections.Generic cannot have child contents to be deserialized as an object. Please use XmlNode[] to deserialize this pattern of XML.'. Please see
InnerException for more details.
Please help me if any one have an idea on this error.
Thanks in advance.Hi
Did you get this resolved ? -
Excel service and OWA - getting ERROR while trying to open/edit Excel documents
Hi All,
We have configured SharePoint 2013 with Excel Service and OWA (Office Web Apps).
After configuring, we are able to view/edit Word or PowerPoint documents from the browser (as OWA is configured). But we are getting errors while trying to open/edit Excel documents.
We are not able to view/edit the excel workbook from the browser (through OWA).
To open the excel in the browser, decision has to be taken at the farm level on what to be used – Excel Service or OWA Server? Is it possible to do setting at site collection level?
Error details are given below:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 3/25/2013 1:29:08 PM
Event time (UTC): 3/25/2013 7:59:08 AM
Event ID: fc2e0530f493493896e6c8b6297a0423
Event sequence: 10
Event occurrence: 3
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/2/ROOT/x-1-130086717598089315
Trust level: Full
Application Virtual Path: /x
Application Path: C:\Program Files\Microsoft Office Web Apps\ExcelServicesWfe\
Machine name: VHYDMANTHSTP-02
Process information:
Process ID: 1252
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: ArgumentException
Exception message: An entry with the same key already exists.
at System.Collections.Generic.TreeSet`1.AddIfNotPresent(T item)
at System.Collections.Generic.SortedDictionary`2..ctor(IDictionary`2 dictionary, IComparer`1 comparer)
at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.GetInstalledUICultures()
at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.IsUICultureSupported(String cultureTag, CultureInfo& cultureInfo)
at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICulture(String cultureTag, Boolean useOleo, Boolean allowCustomFallback)
at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICultureFromFrontEnd(String uiCultureTag, Boolean allowFallback)
at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentCulturesFromFrontEnd(String uiCultureTag, String dataCultureTag)
at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.SetCurrentCulturesFromContext(HttpContext context)
at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.PreProcessRequest(HttpContext context)
at Microsoft.Office.Excel.WebUI.XlPreview.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Request information:
Request URL:
http://mysrevr/x/_layouts/xlpreview.aspx?ui=en-US&rs=en-US&WOPISrc=http://myservernames1/_vti_bin/wopi.ashx/files/f36d669ceb814d67bdad0e1e1f98e466&wdSmallView=1
Request path: /x/_layouts/xlpreview.aspx
User host address: 10.81.138.92
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 13
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.Collections.Generic.TreeSet`1.AddIfNotPresent(T item)
at System.Collections.Generic.SortedDictionary`2..ctor(IDictionary`2 dictionary, IComparer`1 comparer)
at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.GetInstalledUICultures()
at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.IsUICultureSupported(String cultureTag, CultureInfo& cultureInfo)
at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICulture(String cultureTag, Boolean useOleo, Boolean allowCustomFallback)
at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICultureFromFrontEnd(String uiCultureTag, Boolean allowFallback)
at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentCulturesFromFrontEnd(String uiCultureTag, String dataCultureTag)
at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.SetCurrentCulturesFromContext(HttpContext context)
at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.PreProcessRequest(HttpContext context)
at Microsoft.Office.Excel.WebUI.XlPreview.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)I have the same issue while opening the file , i have checked every thing twice. but unable to fix this thing . can any one help.
One more thing which is i am wondering none of the MS representative replied on this post which is originally posted on March 27-2013.
is microsoft alive??
Imran Bashir Network Administrator MCP, JNCIA-EX,ER,JNIOUS +92-333-4330176 -
Error while trying to post inbound idoc of message type COND_A
Hi,
I am getting error while trying to post inbound idoc of message type COND_A.
If I left Usage & Condition field of segment E1KOMG then 'Table not available' idoc message is coming
and if providing value in above fields then dump is coming.
How to solve ?
Plz do reply
Thanks
MohitI do not see any reason why you would need to use COND_A04 if COND_A01 is working.
What if you could get COND_A04 to post and you would face the same result as in COND_A01?
If SAP does not check wrong values, then you have to do it yourself, or you report an incident at SAP (after you have searched for OSS notes that may have fixed this error already)
For example OSS Note 1169998 - IDoc: KONP-LIFNR values not checked
fixed a situation where the vendor number was not validated. -
Getting error while trying to refresh EUL using adrfseul.sh
I am getting the following error while trying to refresh EUL. I am using Discoverer
10.2.0.2 with Oracle Applications 11.5.10.2 and following note id 313418.1 of metalink.
You are running adrfseul, version 115.0
Start of adrfseul session
Date/time is Thu Feb 22 13:06:56 AST 2007
Log file is refresh_eul_us_vis.log
Command line arguments are
"connect=sysadmin/sysadmin@vis"
"resp=System Administrator"
"gwyuid=APPLSYSPUB/PUB"
"fndnam=APPS"
"secgroup=Standard"
"eulschema=EUL_US"
"eulpassword=EUL_US"
"twotask=VIS"
"iashome=/oracle/BIHome_2"
"logfile=refresh_eul_us_vis.log"
"exedir=/oracle/BIToolsHome_1/bin"
Testing connection to database using plus80 -s ...
plus80: adrfseul.sh 612: not found
Connection to database using plus80 -s is OK ...
Extracting eul folder information ...
plus80: adrfseul.sh 612: not found
Unable to obtain folder information.
The SQLPLUS session exited with status 127
adrfseul is exiting with status 1
End of adrfseul session
Date/time is Thu Feb 22 13:06:56 AST 2007
Anyone knows please help me to resolve this issue. Thanks in advance.
Regards
Muhammad AliEUL_US is an Apps mode EUL and SYSADMIN user is the owner of all EUL content in Oracle Applications environments. The unix/linux bi tools can upgrade the EUL via
$ORACLE_HOME/bin/eulapi -CONNECT eul_us/eul_us@vis -AUTO_UPGRADE
Use the Windows bi tools to update and refresh EUL content or look at the following note:
5712119 / 5258810 : Adrfseul.Sh Errors On New Installation Of Disco 10.1.2 & 11i
http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=404398.1 -
Getting error while trying to edit locally the document in KM of portal.
Hi all
we have configured file server in km portal as fsdb mode in portal (ep 7 sp 14). We were able to edit locally the documents . But all of a sudden from some of the PCs we are getting the following error while trying to edit the documents.
The download of the document failed .
Is there any PC specific configuration required? For the same user we are able to edit the documents from some PCs but from another it is not working.
Thannking you.
Rajendra.Hi,
You have to set your activex control properly. then only edit locally in KM will work.
Also check the below wiki
https://www.sdn.sap.com/irj/scn/wiki?path=/display/KMC/HowtotroubleshootproblemswithLocalEditing
Hope that helps
Raghu
Maybe you are looking for
-
How to access the texblocks in a listbox?
Hi All, I have a listbox which I can successfully update with the data but now I want to access two specific textblocks which I want to collapse and make the other visible. <ListBox Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3" HorizontalAlignmen
-
Hi all. Think my Iphone4 is done....
Thanks in advance for any ideas or things i may have missed. Here's my story, Verizon Iphone 4 dropped in the lake for 3 seconds, turned it off immediately and did the rice and setting in the sun thing for a couple days. Phone fired up perfectly and
-
What is the next step to IpodRip?
Hello, I've installed ipodrip and copied all the songs, i went to itunes and tried to import them but all the folders were empty. Did i do something wrong? Did i skip a step? Thanks.
-
Spry Navigation Submenu missing
I have a spry navigation menu on my site. In IE6 everything is fine. But when I go to IE7 when you hover over the button and the submenu appears only 1 and a half buttons show up, when there should be a vertical list of 6. I am using a horizontal nav
-
IPhone AT&T Data Leakage Problem
After 7 months of huge data bills AT&T finally admitted there was a problem with my iPhone 5. I had to drive to the Apple store where they replaced the phone and problem was solved! Apple told me not to restore my phone from iTunes because it maybe a