Remote Server Context
Hi. How i can get the context of remote server in "custom sensor action"?
Emerald wrote:
Just wondering.. If I have a local SunMC server and a remote SunMC server which is referenced to the local one, is it possible to acknowledge alarms without logging into the remote server console?As far as I know you can't ack it from the remote-server-context-Console unless you start playing it fast and loose with the security settings (as you've already noticed).
Are you trying to do this so you can "stack" SunMC Servers (i.e. have one Server that can see all the Agents in other Servers) or are you just trying to ack from another tool that isn't SunMC? If you're just looking for a way to ack from outside, EventAction can be configured to receive SNMP traps to ack alarms:
http://www.halcyoninc.com/products/EventAction/help/HALEventAction-remote-acknowledging-h.html
Regards,
[email protected]
http://www.HalcyonInc.com
New !! : http://forums.HalcyonInc.com !!
Similar Messages
-
Acknowledging alarms in remote server context
Hi there,
Just wondering.. If I have a local SunMC server and a remote SunMC server which is referenced to the local one, is it possible to acknowledge alarms without logging into the remote server console?
The error I'm getting is: "Exception occured while acknowledging alarms. The node is not in the current server context. No allowed action -- acknowledging alarm"
I know this is the default security policy, but is there any way to open this so I can just acknowledge alarms?
Communication between server contexts is done with the user "espublic", I tried adding this user, giving it access to SunMC and adding espublic to the group "esops" but that gives users access to almost everything on the remote server, even if they have read-only rights on the local server, .....not really an option ;-)
Edited by: Emerald on Sep 13, 2007 1:00 AMEmerald wrote:
Just wondering.. If I have a local SunMC server and a remote SunMC server which is referenced to the local one, is it possible to acknowledge alarms without logging into the remote server console?As far as I know you can't ack it from the remote-server-context-Console unless you start playing it fast and loose with the security settings (as you've already noticed).
Are you trying to do this so you can "stack" SunMC Servers (i.e. have one Server that can see all the Agents in other Servers) or are you just trying to ack from another tool that isn't SunMC? If you're just looking for a way to ack from outside, EventAction can be configured to receive SNMP traps to ack alarms:
http://www.halcyoninc.com/products/EventAction/help/HALEventAction-remote-acknowledging-h.html
Regards,
[email protected]
http://www.HalcyonInc.com
New !! : http://forums.HalcyonInc.com !! -
Hi,
I have started using the client object model so that i do not have to go to sharepoint admins to perform some basic operations on remote server. While assigning list item level permission i am getting following error, could you please help. thanks.
The remote server returned an error: (401) Unauthorized.
at
System.Net.HttpWebRequest.GetResponse()
at
Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute()
at
Microsoft.SharePoint.Client.ClientContext.EnsureFormDigest()
at
Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()
at
SetDowntimeItemPermission.SetPermission.Main(String[] args) init seems your request was unauthenticated i'm not sure are you using a web application with FBA or desktop application my suggestion would be try to impersonate your request by passing network credentials (COM works on network credentials )
NetworkCredential credentials = new NetworkCredential("username", "pwd", "domain");
ClientContext context = new ClientContext("http://site-url");
context.Credentials = credentials;
Best Regards, Ashutosh | SharePoint World -
I have deployed a report on the server (e.g. remoteserver\reports) from my local machine. I opened the report in browser in my local machine and created a new subscription with windows file share delivery option.
But its giving an error "Failure writing file \\localserver\subscriptions\Report1.xls : An impersonation error occurred using the security context of the current user." Here "subscriptions"
is the folder which I have created in my local machine.
I followed the instructions found in the link "http://msdn.microsoft.com/en-us/library/ms157386.aspx"
Please help to solve this issue.Hi,
Thank you for your reply.
I have followed the same process. The credentials which I have given are same as my PC. But I am getting the same error. Can you please clarify the statement "Service
account that is using for file share subscription should have write access to shared folder."
given in the above link?
I am the one who created the folder and subscribing the report, so probably I have the full write permissions to the shared folder. What is the service account in this context?
I think the problem is, I am deploying the report on the server and creating the shared folder in the local machine. I tried giving shared folder permissions to the user on the server. But my local machine is in local domain and I cant access the users on
the remote server. Do I need to create a shared folder on the server? I am new to SSRS. Please help me.
PS: I have assigned with all roles viz. Browser, Content Manager, Publisher, Report Builder etc. and My Role name (WEBSERVER\User)
is different from my local user name (domain\username) in domain. -
The Remote server returned an error (404) not found in SharePoint Client Context code
Hi All,
I am getting an error with below line.
"The Remote server returned an error (404) not found"
It occurs when I am trying to fetch some data from SharePoint 2010 List.
For eg. I have a webpart in which i am showing some content on page load and that content is coming from a List.
But I am getting error.
Screen shot for your reference.Here is my code:
ClientContext context1 = new ClientContext("site url");
context1.AuthenticationMode = ClientAuthenticationMode.Anonymous;
List list1 = context1.Web.Lists.GetByTitle("List1");
CamlQuery query1 = new CamlQuery();
query1.ViewXml = @"<Query><Query><OrderBy><FieldRef Name='Title' Ascending='True' /></OrderBy>
</Query></Query>";
Microsoft.SharePoint.Client.ListItemCollection listCollection1 = list1.GetItems(query1);
context1.Load(listCollection1);
context1.ExecuteQuery();
Even i removed the line no. 2 from above code and placed below but still same issue.
context1.Credentials = new NetworkCredential("user", "password", "domain");
Hope someone will solve my issue here. -
Log on to remote server and start database -error while installing CI in HA
Hello All,
We are installing ECC 6.0 with High Availability using HP-UX. We have completed installation in ASCS and Database Instance. Now when were trying to install in Central Instance, we encountered an error at Start Instance which informed us to Log on to remote server and start database. However the database is already running in DB node. Please find the log below.
TRACE 2011-06-10 16:31:45.825 [syuxctask.cpp:1382]
CSyTaskImpl::start(bool)
A child process has been started. Pid = 25742
INFO 2011-06-10 16:31:45.835
CJSlibModule::writeInfo_impl()
Output of /usr/sap/PE2/SYS/exe/run/startsap all DVEBMGS01 DBMCI001 is written to the logfile start_PE2_DVEBMGS01.log.
WARNING 2011-06-10 16:31:46.345
CJSlibModule::writeWarning_impl()
Execution of the command "/usr/sap/PE2/SYS/exe/run/startsap all DVEBMGS01 DBMCI001" finished with return code 6. Output:
Database PE2 must be started on remote server
Log on to remote server and start database
WARNING[E] 2011-06-10 16:31:46.355
CJSlibModule::writeError_impl()
CJS-20022 Could not start instance 'DVEBMGS01' of SAP system PE2.
TRACE 2011-06-10 16:31:46.355 [iaxxejsbas.hpp:408]
handleException<ESAPinstJSError>()
Converting exception into JS Exception EJSException.
TRACE 2011-06-10 16:31:46.355
Function setMessageIdOfExceptionMessage: ind-rel.ind-os.ind-db.webas.startInstanceFailed
WARNING[E] 2011-06-10 16:31:46.355
CJSlibModule::writeError_impl()
CJS-20022 Could not start instance 'DVEBMGS01' of SAP system PE2.
TRACE 2011-06-10 16:31:46.355 [iaxxejsbas.hpp:483]
EJS_Base::dispatchFunctionCall()
JS Callback has thrown unknown exception. Rethrowing.
TRACE 2011-06-10 16:31:46.405 [syuxctask.cpp:1382]
CSyTaskImpl::start(bool)
A child process has been started. Pid = 25793
ERROR 2011-06-10 16:31:46.525 [sixxcstepexecute.cpp:950]
FCO-00011 The step start with step key |NW_ABAP_CI|ind|ind|ind|ind|0|0|NW_CI_Instance|ind|ind|ind|ind|10|0|NW_CI_Instance_Start|ind|ind|ind|ind|2|0|start was executed with status ERROR .
TRACE 2011-06-10 16:31:46.555 [iaxxgenimp.cpp:752]
CGuiEngineImp::showMessageBox
<html> <head> </head> <body> <p> An error occurred while processing option SAP ERP 6.0 EHP4 Ready - Support Release 1 > SAP Application Server ABAP > Oracle > High-Availability System > Central Instance . You can now: </p> <ul> <li> Choose <i>Retry</i> to repeat the current step. </li> <li> Choose <i>View Log</i> to get more information about the error. </li> <li> Stop the option and continue with it later. </li> </ul> <p> Log files are written to /tmp/sapinst_instdir/ERPEhP4/AS-ABAP/ORA/HA/CI. </p> </body></html>
TRACE 2011-06-10 16:31:46.555 [iaxxgenimp.cpp:1255]
CGuiEngineImp::acceptAnswerForBlockingRequest
Waiting for an answer from GUI
Kindly let us know how to rectify the error and prroceed further with the instalaltion.
Thanks
RishiDear Guys,
we didnt change the date and time but i m very sure it is same trans.log file.
for your kind information please note SID and Nodes details
Sid (PE2)
DB Node : DBMDB001
CI Node : DBMCI001
also i am attaching starting part of the file.
4 ETW000 R3trans version 6.14 (release 701 - 26.01.09 - 12:46:00).
4 ETW000 unicode enabled version
4 ETW000 ===============================================
4 ETW000
4 ETW000 date&time : 07.11.2010 - 03:44:06
4 ETW000 control file: <no ctrlfile>
4 ETW000 R3trans was called as follows: R3trans -d
4 ETW000 trace at level 2 opened for a given file pointer
4 ETW000 [dev trc ,00000] Sun Nov 7 03:44:06 2010 295 0.000295
4 ETW000 [dev trc ,00000] db_con_init called 22 0.000317
4 ETW000 [dev trc ,00000] create_con (con_name=R/3) 116 0.000433
4 ETW000 [dev trc ,00000] Loading DB library '/usr/sap/PC1/SYS/exe/run/dboraslib.so' ...
4 ETW000 64 0.000497
4 ETW000 [dev trc ,00000] load shared library (/usr/sap/PC1/SYS/exe/run/dboraslib.so), hdl 0
4 ETW000 32161 0.032658
4 ETW000 [dev trc ,00000] Library '/usr/sap/PC1/SYS/exe/run/dboraslib.so' loaded
4 ETW000 39 0.032697
4 ETW000 [dev trc ,00000] function DbSlExpFuns loaded from library
/usr/sap/PC1/SYS/exe/run/dboraslib.so
4 ETW000 111 0.032808
4 ETW000 [dev trc ,00000] Version of '/usr/sap/PC1/SYS/exe/run/dboraslib.so' is "700.08",
patchlevel (0.25)
4 ETW000 265 0.033073
4 ETW000 [dev trc ,00000] function dsql_db_init loaded from library
/usr/sap/PC1/SYS/exe/run/dboraslib.so
4 ETW000 41 0.033114
4 ETW000 [dev trc ,00000] function dbdd_exp_funs loaded from library
/usr/sap/PC1/SYS/exe/run/dboraslib.so
4 ETW000 82 0.033196
4 ETW000 [dev trc ,00000] New connection 0 created 52 0.033248
4 ETW000 [dev trc ,00000] 0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm = YES,
reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
4 ETW000 41 0.033289
4 ETW000 [dev trc ,00000] db_con_connect (con_name=R/3) 84 0.033373
4 ETW000 [dev trc ,00000] find_con_by_name found the following connection for reuse:
4 ETW000 31 0.033404
4 ETW000 [dev trc ,00000] 0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm = YES,
reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
4 ETW000 37 0.033441
4 ETW000 [dev trc ,00000] Oracle Client Version: '10.2.0.4.0' 601 0.034042
4 ETW000 [dev trc ,00000] -->oci_initialize (con_hdl=0) 25 0.034067
4 ETW000 [dev trc ,00000] Client character set UTF16 -> UTF8 35674 0.069741
4 ETW000 [dev trc ,00000] Client NLS setting (OCINlsGetInfo): 'AMERICAN_AMERICA.UTF8'
4 ETW000 57 0.069798
4 ETW000 [dev trc ,00000] Logon as OPS$-user to get SAPSR3's password 55 0.069853
4 ETW000 [dev trc ,00000] Connecting as /@PC1 on connection 0 (nls_hdl 0) ... (dbsl 700
151208)
4 ETW000 34 0.069887
4 ETW000 [dev trc ,00000] Nls CharacterSet NationalCharSet C
EnvHp ErrHp ErrHpBatch
4 ETW000 52 0.069939
4 ETW000 [dev trc ,00000] 0 UTF8 0
0x6000000001052910 0x600000000105a3c0 0x600000000106ab38
4 ETW000 58 0.069997
4 ETW000 [dev trc ,00000] Allocating service context handle for con_hdl=0 40 0.070037
4 ETW000 [dev trc ,00000] Allocating server context handle 27 0.070064
4 ETW000 [dev trc ,00000] Attaching to DB Server PC1
(con_hdl=0,svchp=0x600000000106aa68,srvhp=0x600000000106de78)
4 ETW000 63 0.070127
4 ETW000 [dev trc ,00000] Assigning server context 0x600000000106de78 to service context
0x600000000106aa68
4 ETW000 60612 0.130739
4 ETW000 [dev trc ,00000] Allocating user session handle 97 0.130836
4 ETW000 [dev trc ,00000] Starting user session: OCISessionBegin(con_hdl=0,
usr='/',svchp=0x600000000106aa68, srvhp=0x600000000106de78, usrhp=0x60000000010fc940)
4 ETW000 64 0.130900
4 ETW000 [dev trc ,00000] Assigning user session 0x60000000010fc940 to service context
0x600000000106aa68
4 ETW000 9302 0.140202
4 ETW000 [dev trc ,00000] -->oci_prepare_stmt(con_hdl=0, len=53, stmth_p=0x6000000001077608)
4 ETW000 198 0.140400
4 ETW000 [dev trc ,00000] BEGIN DBMS_APPLICATION_INFO.SET_MODULE(:A0,:A1); END;
4 ETW000 38 0.140438
4 ETW000 [dev trc ,00000] CbApplInfoGet() failed! Ignore, but uninstall callback to avoid more
erroneous calls
4 ETW000 291 0.140729
4 ETW000 [dev trc ,00000] -->oci_prepare_stmt(con_hdl=0, len=54, stmth_p=0x6000000001078660)
4 ETW000 33 0.140762
4 ETW000 [dev trc ,00000] BEGIN DBMS_APPLICATION_INFO.SET_CLIENT_INFO(:A0); END;
4 ETW000 35 0.140797
4 ETW000 [dev trc ,00000] -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001078660)
4 ETW000 937 0.141734
4 ETW000 [dev trc ,00000] SELECT SID FROM V$MYSTAT WHERE ROWNUM<2
4 ETW000 36 0.141770
4 ETW000 [dev trc ,00000] Connected to session 297. 639 0.142409
4 ETW000 [dev trc ,00000] Now '/@PC1' is connected: con_hdl=0, nls_hdl=0, session_id=297.
4 ETW000 38 0.142447
4 ETW000 [dev trc ,00000] -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001078660)
4 ETW000 37 0.142484
4 ETW000 [dev trc ,00000] ALTER SESSION SET NLS_SORT = BINARY
4 ETW000 36 0.142520
4 ETW000 [dev trc ,00000] -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001078660)
4 ETW000 327 0.142847
4 ETW000 [dev trc ,00000] SELECT USERID, PASSWD FROM SAPUSER WHERE USERID IN (:A0, :A1)
4 ETW000 36 0.142883
4 ETW000 [dev trc ,00000] Got SAPSR3's password from OPS$-user 728 0.143611
4 ETW000 [dev trc ,00000] Disconnecting from connection 0 ... 38 0.143649
4 ETW000 [dev trc ,00000] Rolling back transaction ... 31 0.143680
4 ETW000 [dev trc ,00000] Closing user session
(con_hdl=0,svchp=0x600000000106aa68,usrhp=0x60000000010fc940)
4 ETW000 210 0.143890
4 ETW000 [dev trc ,00000] Now I'm disconnected from ORACLE 721 0.144611
4 ETW000 [dev trc ,00000] Connecting as SAPSR3/<pwd>@PC1 on connection 0 (nls_hdl 0) ... (dbsl
700 151208)
4 ETW000 40 0.144651
4 ETW000 [dev trc ,00000] Nls CharacterSet NationalCharSet C
EnvHp ErrHp ErrHpBatch
4 ETW000 37 0.144688
4 ETW000 [dev trc ,00000] 0 UTF8 0
0x6000000001052910 0x600000000105a3c0 0x600000000106ab38
4 ETW000 37 0.144725
4 ETW000 [dev trc ,00000] Assigning username to user session: con_hdl=0,
usrhp=0x60000000010fc940
4 ETW000 35 0.144760
4 ETW000 [dev trc ,00000] Assigning password to user session: con_hdl=0,
usrhp=0x60000000010fc940
4 ETW000 40 0.144800
4 ETW000 [dev trc ,00000] Starting user session: OCISessionBegin(con_hdl=0, usr=SAPSR3/<pwd>,
svchp=0x600000000106aa68, srvhp=0x600000000106de78, usrhp=0x60000000010fc940)
4 ETW000 337 0.145137
4 ETW000 [dev trc ,00000] Assigning user session 0x60000000010fc940 to service context
0x600000000106aa68
4 ETW000 4085 0.149222
4 ETW000 [dev trc ,00000] -->oci_prepare_stmt(con_hdl=0, len=54, stmth_p=0x6000000001077608)
4 ETW000 63 0.149285
4 ETW000 [dev trc ,00000] BEGIN DBMS_APPLICATION_INFO.SET_CLIENT_INFO(:A0); END;
4 ETW000 37 0.149322
4 ETW000 [dev trc ,00000] -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001077608)
4 ETW000 585 0.149907
4 ETW000 [dev trc ,00000] SELECT SID FROM V$MYSTAT WHERE ROWNUM<2
4 ETW000 36 0.149943
4 ETW000 [dev trc ,00000] Connected to session 297. 350 0.150293
4 ETW000 [dev trc ,00000] Now 'SAPSR3/<pwd>@PC1' is connected: con_hdl=0, nls_hdl=0,
session_id=297.
4 ETW000 38 0.150331
4 ETW000 [dev trc ,00000] -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001077608)
4 ETW000 38 0.150369
4 ETW000 [dev trc ,00000] ALTER SESSION SET NLS_SORT = BINARY
4 ETW000 34 0.150403
4 ETW000 [dev trc ,00000] -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001077608)
4 ETW000 294 0.150697
4 ETW000 [dev trc ,00000] SELECT VALUE FROM V$NLS_PARAMETERS WHERE PARAMETER IN
('NLS_LANGUAGE', 'NLS_TERRITORY', 'NLS_CHARACTERSET') ORDER BY PARAM
4 ETW000 66 0.150763
4 ETW000 [dev trc ,00000] ETER
4 ETW000 34 0.150797
4 ETW000 [dev trc ,00000] Database NLS settings: AMERICAN_AMERICA.UTF8 329 0.151126
4 ETW000 [dev trc ,00000] -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001077608)
4 ETW000 856 0.151982
4 ETW000 [dev trc ,00000] SELECT UPPER(INSTANCE_NAME),HOST_NAME,VERSION,TO_CHAR
(STARTUP_TIME,'MON DD, YYYY, HH24:MI:SS') FROM V$INSTANCE
4 ETW000 36 0.152018
4 ETW000 [dev trc ,00000] DB instance PC1 is running on scmdb001 with ORACLE version
10.2.0.4.0 since NOV 07, 2010, 03:23:10
4 ETW000 349 0.152367
4 ETW000 [dev trc ,00000] -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001077608)
4 ETW000 38 0.152405
4 ETW000 [dev trc ,00000] SELECT SUBSTR(NAME,1,3), TO_CHAR(CREATED,'YYYYMMDDHHMMSS')
FROM V$DATABASE -
Hi,
Any help appreciated!!
I'm getting this error: "The remote server returned an error: (401) unauthorised when I debug a provider-hosted app. I get the error on this line:
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
See code below
I created a high trust development environment following the instructions provided here:
http://msdn.microsoft.com/en-us/library/office/fp179901(v=office.15).aspx and
http://msdn.microsoft.com/library/office/fp179923
I created a provider-hosted app with the intent to:
create a SharePoint list in the appweb
Use self-signed certificate, tokenhepler.cs and sharepointcontext.cs to retrieve current user context and access on SharePoint. (No changes were made to tokenhelper.cs and sharepointcontext.cs)
retrieve list items from the SharePoint list in a button click event handler on a default.aspx of the remote web
What happens:
The app is deployed successfully to the Dev site
The SharePoint feature is deployed and activated
The default.aspx page of the remote web loads
The error (see image) is returned on clicking of the button
My environment is an on-premise SharePoint 2013 with AD and my dev box is standalone windows 8.1 running Visual Studio Professional 2013 Update 3.
The code block below is a copy of the default.aspx code-behind
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.SharePoint.Client;
using Microsoft.IdentityModel.S2S.Tokens;
using System.Net;
using System.IO;
using System.Xml;
using System.Data;
using System.Xml.Linq;
using System.Xml.XPath;
namespace Idea.GeneratorWeb
public partial class Default : System.Web.UI.Page
SharePointContextToken contextToken;
string accessToken;
Uri sharepointUrl;
protected void Page_PreInit(object sender, EventArgs e)
Uri redirectUrl;
switch (SharePointContextProvider.CheckRedirectionStatus(Context, out redirectUrl))
case RedirectionStatus.Ok:
return;
case RedirectionStatus.ShouldRedirect:
Response.Redirect(redirectUrl.AbsoluteUri, endResponse: true);
break;
case RedirectionStatus.CanNotRedirect:
Response.Write("An error occurred while processing your request.");
Response.End();
break;
protected void Page_Load(object sender, EventArgs e)
//// The following code gets the client context and Title property by using TokenHelper.
//// To access other properties, the app may need to request permissions on the host web.
var spContext = SharePointContextProvider.Current.GetSharePointContext(Context);
//var spContext = new ClientContext("MySPDevInstance");
//spContext.Credentials = new NetworkCredential("username", "password");
//using (var clientContext = spContext.CreateUserClientContextForSPHost())
// clientContext.Load(clientContext.Web, web => web.Title);
// clientContext.ExecuteQuery();
// Response.Write(clientContext.Web.Title);
string contextTokenString = TokenHelper.GetContextTokenFromRequest(Request);
if (contextTokenString != null)
// Get context token
contextToken = TokenHelper.ReadAndValidateContextToken(contextTokenString, Request.Url.Authority);
// Get access token
sharepointUrl = new Uri(Request.QueryString["SPAppWebUrl"]);
accessToken = TokenHelper.GetAccessToken(contextToken, sharepointUrl.Authority).AccessToken;
// Pass the access token to the button event handler.
Button1.CommandArgument = accessToken;
protected void Button1_Click(object sender, EventArgs e)
// Retrieve the access token that the Page_Load method stored
// in the button's command argument.
string accessToken = ((Button)sender).CommandArgument;
if (IsPostBack)
sharepointUrl = new Uri(Request.QueryString["SPAppWebUrl"]);
// REST/OData URL section
string oDataUrl = "/_api/Web/lists/getbytitle('Diagrams In Idea Generator')/items?$select=Title,Diagram,SharingStatus";
// HTTP Request and Response construction section
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(sharepointUrl.ToString() + oDataUrl);
request.Method = "GET";
request.Accept = "application/atom+xml";
request.ContentType = "application/atom+xml;type=entry";
request.Headers.Add("Authorization", "Bearer " + accessToken);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
// Response markup parsing section
XDocument oDataXML = XDocument.Load(response.GetResponseStream(), LoadOptions.None);
XNamespace atom = "http://www.w3.org/2005/Atom";
XNamespace d = "http://schemas.microsoft.com/ado/2007/08/dataservices";
XNamespace m = "http://schemas.microsoft.com/ado/2007/08/dataservices/metadata";
List<XElement> entries = oDataXML.Descendants(atom + "entry")
.Elements(atom + "content")
.Elements(m + "properties")
.ToList();
var entryFieldValues = from entry in entries
select new
Character = entry.Element(d + "Title").Value,
Actor = entry.Element(d + "Diagram").Value,
CastingStatus = entry.Element(d + "SharingStatus").Value
GridView1.DataSource = entryFieldValues;
GridView1.DataBind();
Any ideas what I might be doing wrongHi ,
Use the below code
Public string GetAccessToken(){
string sharePointSiteUrlHost = Page.Request["SPHostUrl"].Tostring();
string AccessToken = tokenHelper.GetS2SAccessTokenWithWindowsIdentity(sharePointSiteUrlHost, Request.LogonUserIdentity);
return accessToken;
Than initialize the ClientCOntext with the below Method
private static ClientContext GetClientContextWithAccessTokenString(string targetUrl, object accessToken)
ClientContext clientContext = new ClientContext(targetUrl);
clientContext.AuthenticationMode = ClientAuthenticationMode.Anonymous;
clientContext.FormDigestHandlingEnabled = false;
clientContext.ExecutingWebRequest +=
delegate(object oSender, WebRequestEventArgs webRequestEventArgs)
webRequestEventArgs.WebRequestExecutor.WebRequest.UserAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)";
webRequestEventArgs.WebRequestExecutor.RequestHeaders["Authorization"] =
"Bearer " + accessToken;
return clientContext;
use this clientCOntext and it will work.
Do not use
SharePointContextProvider
Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer -
The remote server returned an error: (401) Unauthorized
We are attempting to upload a file to SharePoint on Office 365 and get the following error:
The remote server returned an error: (401) Unauthorized.
We also tried using NetworkCredentials and that got the following error: The remote server returned an error: (404) Not Found.
The code is shown below.
Any idea on to fix this error?
public
void uploadDocument(string
siteurl, string username,
SecureString securepassword,
string domain,
string filestreamPath =
"NewDocument.docx",
string serverRelativeUrl =
"/Shared Documents/NewDocument.docx")
ClientContext context =
new
ClientContext(siteurl);
//context.Credentials = new NetworkCredential(username, securepassword, domain);
context.Credentials = new
SharePointOnlineCredentials(username, securepassword);
using (FileStream
fileStream =
new
FileStream(filestreamPath,
FileMode.Open))
ClientOM.File.SaveBinaryDirect(context,
serverRelativeUrl, fileStream, true);Yes, it has access. In fact, it has no problem getting the site properties using the code below. It is just when I am uploading a file that the error occurs.
public Web getProperties(string
siteurl, string username,
SecureString securepassword)
Web web = null;
// Starting with ClientContext, the constructor requires a URL to the
// server running SharePoint.
ClientContext context = new ClientContext(siteurl);
// The SharePoint web at the URL.
web = context.Web;
// We want to retrieve the web's properties.
context.Load(web);
// Execute the query to the server.
context.Credentials = new SharePointOnlineCredentials(username, securepassword);
context.ExecuteQuery();
return web; -
I created a web app with claims based authentication ,
basiclly i follwe this blog
http://donalconlon.wordpress.com/2010/02/23/configuring-forms-base-authentication-for-sharepoint-2010-using-iis7/
but when i login it throws 503 error
Server Error in '/' Application.
The remote server returned an error: (503) Server Unavailable.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.WebException: The remote server returned an error: (503) Server Unavailable.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[WebException: The remote server returned an error: (503) Server Unavailable.]
System.Net.HttpWebRequest.GetResponse() +1126
System.ServiceModel.Channels.HttpChannelRequest.WaitForReply(TimeSpan timeout) +81
[ServerTooBusyException: The HTTP service located at http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc is too busy. ]
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +10258154
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +539
Microsoft.IdentityModel.Protocols.WSTrust.IWSTrustContract.Issue(Message message) +0
Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken rst, RequestSecurityTokenResponse& rstr) +61
Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken rst) +36
Microsoft.SharePoint.SPSecurityContext.SecurityTokenForContext(Uri context, Boolean bearerToken, SecurityToken onBehalfOf, SecurityToken actAs, SecurityToken delegateTo) +26062081
Microsoft.SharePoint.SPSecurityContext.SecurityTokenForLegacyLogin() +270
Microsoft.SharePoint.IdentityModel.SPWindowsClaimsAuthenticationHttpModule.GetSecurityTokenFromWindowsIdentity(WindowsIdentity windowsIdentity, HttpContext httpContext) +21
Microsoft.SharePoint.IdentityModel.SPWindowsClaimsAuthenticationHttpModule.AuthenticateRequest(Object sender, EventArgs e) +1176
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171
any thoughts?
thanks in advance!
Share Knowledge and Spread Love!Hi ,
I was also facing the same issue on changing my credentials. This effects the ServiceTokenApplicationPool and other pools related to the Web applications
To resolve this follow these :
1. Open IIS Manager , under Connection section you can see the Name of your site collection(as
siteCollectionName(Username))
2. Open SiteCollection , select Application Pools. A new window with your Web application pool names would open.
3. Right click on web app, select Advance Setting... , under Process Model select Identity
4. check for Custom account , click set and enter your Credentials and click
OK
Atlast Refresh the IIS manager.
Thank you.
Under application pools Do select the ServiceTokenApplicationPool also and follow steps 3 and 4 -
I have access to sharepoint site and I have tested this by manually creating the lists and announcements in the sharepoint site.
now the same thing when I try to do it through the c#.net code it always gives me the following :
"An unhandled exception of type 'System.Net.WebException' occurred in
Microsoft.SharePoint.Client.dll Additional information: The remote server returned an error:
(401) Unauthorized."
My code looks like below:
string userName = "[email protected]";
SecureString password = new SecureString();
foreach (char c in "abc123".ToCharArray()) password.AppendChar(c);
using (var context = new ClientContext("https://sharepoint.partners.extranet.adlabs.com/sites/UniTest"))
context.Credentials = new SharePointOnlineCredentials(userName, password);
context.Load(context.Web, w => w.Title);
context.ExecuteQuery();
KrrishnaHi Krrishna,
You code is used to access SharePoint Online, if you are use SharePoint 2007, we can use SharePoint web service or custom web service to achieve your requirement.
Lists Web Service
http://msdn.microsoft.com/en-us/library/lists(v=office.12).aspx
Creating a Custom Web Service
http://msdn.microsoft.com/en-us/library/ms464040(v=office.12).aspx
About SharePoint 2007(MOSS 2007), you can also post it to the forum below, you will get more help and confirmed answers there.
https://social.technet.microsoft.com/Forums/en-US/home?forum=sharepointdevelopmentlegacy
Thanks,
Dennis Guo
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Dennis Guo
TechNet Community Support -
Access to local DataSource tries to connect to remote server after ejb call to remote server
I've run into a problem with code that worked fine under WebLogic 6.1 SP4, but I'm having difficulty migrating it to WebLogic 8.1 SP2.
I have two weblogic instances running in separate domains (InstanceA and InstanceB). The two domains have the same crentential configured to setup the trust relationship.
InstanceA runs on my local machine. It contains Stateless Session Beans StatelessSessionBeanA1, StatelessSessionBeanA2, and DataSourceA1
InstanceB runs on a different machine. It contains StatelessSessionBeanB1.
A function A1Func1 in StatelessSessionBeanA1
1) creates an initial context to connect to InstanceB
2) calls a method B1Func1 on StatelessSessionBeanB1
3) closes that context to InstanceB
4) Calls a method A2Func1 on StatelessSessionBeanA2
5) manipulates several entity beans
6) returns
A1Func1, A2Func1, B1Func1 have the "Required" transaction attribute set.
Steps 1,2,3 work fine, but on step 4, when A2Func1 attempts to get a Connection from the DataSourceA1, it gets an exception:
java.sql.SQLException: Could not get remote server connection url = t3://(IP/port of InstanceB)
at weblogic.jdbc.jts.Driver.createRemoteConnection(Driver.java:305)
at weblogic.jdbc.jts.Driver.connect(Driver.java:157)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:305)
... enters my application code
A2Func1 works fine elsewhere, so on a hunch, I tried making A2Func1 have the "RequiresNew" transaction attribute. This causes steps 1,2,3,4 to work, but in step 5, when the entity beans attempt to get a connection from DataSourceA1, it runs into the same exception
java.sql.SQLException: Could not get remote server connection url = t3://(IP/port of InstanceB)
at weblogic.jdbc.jts.Driver.createRemoteConnection(Driver.java:305)
at weblogic.jdbc.jts.Driver.connect(Driver.java:157)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:305)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.getConnection(RDBMSPersistenceManager.java:2247)
Any ideas why calling out to StatelessSessionBeanB1 would cause things inside the same transaction to try to get their datasource from InstanceB? Again, this code worked fine under WebLogic 6.1
And ideas would be appreciated.
Thanks,
--Andy
As a follow up, no solution, but a workaround - we changed the transaction setting
on B1Func1 (which was a read type method) on InstanceB's StatelessSessionBeanB1
to NotSupported, and everything started working again.
--Andy
Andrew Delpha <[email protected]> wrote:
>I've run into a problem with code that worked fine under WebLogic 6.1
>SP4, but I'm having difficulty migrating it to WebLogic 8.1 SP2.
>
>I have two weblogic instances running in separate domains (InstanceA
>and InstanceB). The two domains have the same crentential configured
>to setup the trust relationship.
>
>InstanceA runs on my local machine. It contains Stateless Session Beans
>StatelessSessionBeanA1, StatelessSessionBeanA2, and DataSourceA1
>
>InstanceB runs on a different machine. It contains StatelessSessionBeanB1.
>
>
>A function A1Func1 in StatelessSessionBeanA1
>1) creates an initial context to connect to InstanceB
>2) calls a method B1Func1 on StatelessSessionBeanB1
>3) closes that context to InstanceB
>4) Calls a method A2Func1 on StatelessSessionBeanA2
>5) manipulates several entity beans
>6) returns
>
>A1Func1, A2Func1, B1Func1 have the "Required" transaction attribute set.
>
>
>Steps 1,2,3 work fine, but on step 4, when A2Func1 attempts to get a
>Connection from the DataSourceA1, it gets an exception:
>java.sql.SQLException: Could not get remote server connection url = t3://(IP/port
>of InstanceB)
> at weblogic.jdbc.jts.Driver.createRemoteConnection(Driver.java:305)
> at weblogic.jdbc.jts.Driver.connect(Driver.java:157)
> at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:305)
> ... enters my application code
>
>A2Func1 works fine elsewhere, so on a hunch, I tried making A2Func1 have
>the "RequiresNew" transaction attribute. This causes steps 1,2,3,4
>to work, but in step 5, when the entity beans attempt to get a connection
>from DataSourceA1, it runs into the same exception
>java.sql.SQLException: Could not get remote server connection url = t3://(IP/port
>of InstanceB)
> at weblogic.jdbc.jts.Driver.createRemoteConnection(Driver.java:305)
> at weblogic.jdbc.jts.Driver.connect(Driver.java:157)
> at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:305)
> at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.getConnection(RDBMSPersistenceManager.java:2247)
>
>Any ideas why calling out to StatelessSessionBeanB1 would cause things
>inside the same transaction to try to get their datasource from InstanceB?
> Again, this code worked fine under WebLogic 6.1
>
>And ideas would be appreciated.
>Thanks,
>--Andy
-
I am *almost* all the way through provisioning my on premise SP 2013 farm for SharePoint 2013 Workflows. Workflow manager is installed alongside Service Bus. Workflow Manager client is installed on the SP servers. I built a new simple list-based
workflow in SP Designer 2013, saved it, and published it without any errors. However, when I go back to the list in my portal and try to run the workflow, I get the "Sorry, something went wrong" page, and the logs say this:
05/15/2013 12:41:05.07 w3wp.exe (0x071C) 0x085C SharePoint Foundation
Runtime tkau Unexpected System.Net.WebException: The remote server returned an error: (500) Internal Server
Error. at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(IAsyncResult result) at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest
request, T content) 27be1b9c-f990-f096-34a8-7ac8816bc7a5
05/15/2013 12:41:05.08 w3wp.exe (0x071C) 0x085C SharePoint Foundation
General ajlz0 High Getting Error Message for Exception System.Web.HttpUnhandledException
(0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Workflow.Client.InternalServerException: Exception thrown from the data layer. For more details, please see the server logs. HTTP headers received from the server
- ActivityId: 0c03f692-8153-43a7-bed5-096214b06168. NodeId: VM22. Scope: /SharePoint/default/d386fdc7-ea7b-4d46-9a39-5c114096eef8/f203a564-e83a-47a3-b11b-e432ac1e6dab. Client ActivityId : 27be1b9c-f990-f096-34a8-7ac8816bc7a5. ---> System.Net.WebException:
The remote server returned an error: (500) Internal Server Error. at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(... 27be1b9c-f990-f096-34a8-7ac8816bc7a5
05/15/2013 12:41:05.08* w3wp.exe (0x071C) 0x085C SharePoint Foundation
General ajlz0 High ...IAsyncResult result) at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest
request, T content) --- End of inner exception stack trace --- at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content) at Microsoft.Workflow.Client.InstanceManager.GetInternal(Int32
skip, Int32 count, String workflowName, WorkflowInstanceStatus workflowStatus, IDictionary`2 activationMetadataFilter) at Microsoft.SharePoint.WorkflowServices.FabricWorkflowInstanceProvider.EnumerateByMonitoringParameter(Guid monitoringParameter,
Int32 offset, Int32 count, Boolean checkPermissions) at Microsoft.SharePoint.WorkflowServices.FabricWorkflowInstanceProvider.EnumerateInstancesForListItem(Guid listId, Int32 itemId, Int32 offset) at Microsoft.Sh... 27be1b9c-f990-f096-34a8-7ac8816bc7a5
05/15/2013 12:41:05.08* w3wp.exe (0x071C) 0x085C SharePoint Foundation
General ajlz0 High ...arePoint.WorkflowServices.FabricWorkflowInstanceProvider.EnumerateInstancesForListItem(Guid
listId, Int32 itemId) at Microsoft.SharePoint.WorkflowServices.ApplicationPages.WorkflowPageBase.ConstructStatusArraysWF4(ArrayList running, ArrayList completed, Boolean onlyMyWorkflows) at Microsoft.SharePoint.WorkflowServices.ApplicationPages.WorkflowPage.ConstructStatusArrays()
at Microsoft.SharePoint.WorkflowServices.ApplicationPages.WorkflowPage.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStages... 27be1b9c-f990-f096-34a8-7ac8816bc7a5
05/15/2013 12:41:05.08* w3wp.exe (0x071C) 0x085C SharePoint Foundation
General ajlz0 High ...AfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 27be1b9c-f990-f096-34a8-7ac8816bc7a5
05/15/2013 12:41:05.08 w3wp.exe (0x071C) 0x085C SharePoint Foundation
General aat87 Monitorable 27be1b9c-f990-f096-34a8-7ac8816bc7a5
Some sort of "general server error" returns a 500 code, but I can't tell from this what the problem(s) might be. Has anyone seen this before?
Thanks.Go to the server running Workflow Manager and open the Event Viewer; Applications and Services Logs; Microsoft-Workflow; Operational; and look for the underlying error. In our case, the CU for Workflow Manager did something to the SQL permissions and
we ended up using the workaraound described here:
http://social.msdn.microsoft.com/Forums/windowsazure/en-US/054d2a58-8847-4a6a-b1ab-05a79f49fe65/workflow-manager-cumulative-update-february-error?forum=wflmgr
Joe -
i have developed a very small web service and which is hosted along with our web site. our webservice url is
http://www.bba-reman.com/Search/SearchDataIndex.asmx
web service code
namespace WebSearchIndex
#region SearchDataIndex
/// <summary>
/// SearchDataIndex is web service which will call function exist in another library for part data indexing
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
// [System.Web.Script.Services.ScriptService]
public class SearchDataIndex : System.Web.Services.WebService
//public AuthHeader ServiceAuth=null;
public class AuthHeader : SoapHeader
public string Username;
public string Password;
#region StartIndex
/// <summary>
/// this function will invoke CreateIndex function of SiteSearch module to reindex the data
/// </summary>
[WebMethod]
public string StartIndex(AuthHeader auth)
string strRetVal = "";
if (auth.Username == "Admin" && auth.Password == "Admin")
strRetVal = SiteSearch.CreateIndex(false);
else
SoapException se = new SoapException("Failed : Invalid credentials",
SoapException.ClientFaultCode,Context.Request.Url.AbsoluteUri,new Exception("Invalid credentials"));
throw se;
return strRetVal;
#endregion
#endregion
when i was calling that web service from my win apps using
HttpWebRequest
class then getting error The remote server returned an error: (500) Internal Server Error
here is code of my win apps from where i am calling web service
string strXml = "";
strXml = "<s:Envelope xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'><s:Body><StartIndex xmlns='http://tempuri.org/' xmlns:i='http://www.w3.org/2001/XMLSchema-instance'><auth><Username>joy</Username><Password>joy</Password></auth></StartIndex></s:Body></s:Envelope>";
string url = "http://www.bba-reman.com/Search/SearchDataIndex.asmx";
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
req.Method = "POST";
req.ContentType = "text/xml";
req.KeepAlive = false;
req.ContentLength = strXml.Length;
StreamWriter streamOut = new StreamWriter(req.GetRequestStream(), System.Text.Encoding.ASCII);
streamOut.Write(strXml);
streamOut.Close();
StreamReader streamIn = new StreamReader(req.GetResponse().GetResponseStream());
string strResponse = streamIn.ReadToEnd();
streamIn.Close();
i am just not being able to understand when this line execute
StreamReader streamIn = new StreamReader(req.GetResponse().GetResponseStream());
then getting the error The remote server returned an error: (500) Internal Server Error
not being able to understand where i made the mistake. mistake is in the code of web service end or in calling code?
help me to fix this issue. thanksHi Mou,
I just tried your win app code about calling web service, but failed. I got the 500 error after I called your service:
The error message I quoted from Fiddler:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>System.Web.Services.Protocols.SoapException: Failed : Invalid credentials ---> System.Exception: Invalid credentials
--- End of inner exception stack trace ---
at BBAReman.WebSearchIndex.SearchDataIndex.StartIndex(AuthHeader auth)</faultstring><faultactor>http://www.bba-reman.com/Search/SearchDataIndex.asmx</faultactor><detail /></soap:Fault></soap:Body></soap:Envelope>
I am not totally sure that error occurred by the authentication. But I suggest you can try to add this service into your project using this method below:
1.right click the Reference and select Add Service Reference
2.input your service link and click "Go"
And you can use this service as the following:
private async void callService()
ServiceReference1.SearchDataIndexSoapClient client =new ServiceReference1.SearchDataIndexSoapClient();
var Str= await client.StartIndexAsync(new ServiceReference1.AuthHeader { Username = "Admin", Password = "Admin" });
Please try it.
Regards,
Will
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Start Oracle Internet Directory failing... server context is null
I'm trying to install Oracle Internet Directory on a RHEL5 64 bit for the first time.
The database (11.2.0.3), Weblogic (10.3.6), and OID (11.1.1.6) have all installed okay, and I'm running the config.sh script.
I specify 'Creating the schema' and enter in the SYS credentials. The installation goes fine but fails to "Start Oracle Internet Directory" at the configure component stage.
I can see in the oraInventory/log/install-xxxxx.log
[2013-01-04T14:15:54.362+13:00] [as] [WARNING] [] [oracle.as.config] [tid: 12] [ecid: 0000Jk314pw3n3kxOw7ECd1GtYLj000003,0] Failed to start component oid1[[
oracle.as.config.ProvisionException: HTTP status code = 400 : The request parameters did not match any components
at oracle.as.config.impl.OracleASComponentBaseImpl.manageProcess(OracleASComponentBaseImpl.java:943)
at oracle.as.config.impl.OracleASComponentBaseImpl.start(OracleASComponentBaseImpl.java:1062)
at oracle.as.provisioning.fmwadmin.ASComponentProv.createComponent(ASComponentProv.java:153)
at oracle.as.provisioning.fmwadmin.ASComponentProv.createComponent(ASComponentProv.java:73)
at oracle.as.provisioning.fmwadmin.ASInstanceProv._createComponent(ASInstanceProv.java:401)
at oracle.as.provisioning.fmwadmin.ASInstanceProv.createComponent(ASInstanceProv.java:364)
at oracle.as.provisioning.fmwadmin.ASInstanceProv.createInstanceAndComponents(ASInstanceProv.java:136)
at oracle.as.provisioning.engine.WorkFlowExecutor._createASInstancesAndComponents(WorkFlowExecutor.java:523)
at oracle.as.provisioning.engine.WorkFlowExecutor.executeWLSWorkFlow(WorkFlowExecutor.java:439)
at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:866)
at oracle.as.idm.install.config.IdMDirectoryServicesManager.doExecute(IdMDirectoryServicesManager.java:951)
at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:371)
at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:88)
at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:105)
at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:64)
at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:160)
at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:86)
at java.lang.Thread.run(Thread.java:662)and in the oraInventory/log/install-xxxxx..out file,...
Repository Creation Utility - Creating Tablespaces
Validating and Creating Tablespaces
Repository Creation Utility - Create
Repository Create in progress.
Percent Complete: 0
Percent Complete: 35
Percent Complete: 29
Percent Complete: 91
Repository Creation Utility: Create - Completion Summary
Database details:
Host Name : localhost
Port : 1521
Service Name : OID.CTRU.AUCKLAND.AC.NZ
Connected As : sys
Prefix for (non-prefixable) Schema Owners : DEFAULT_PREFIX
RCU Logfile : /u04/app/oracle/Middleware/Oracle_IDM1/rcu/log/rcu.log
Component schemas created:
Component Status Logfile
Oracle Internet Directory Success /u04/app/oracle/Middleware/Oracle_IDM1/rcu/log/oid.log
Repository Creation Utility - Create : Operation Completed
------------------------------------------------- RCUUtil createOIDRepository status = 0------------------------------------------------- progress in calculate progress25
AdminServer port is 7001
trying to connect to oracleidir.ctru.auckland.ac.nz 7001
Successful
getDomainRuntimeMBeanServerConnection ...
Connecting to Domain runtime ...
trying to connect to oracleidir.ctru.auckland.ac.nz 7001
Successfully connected to the Domain Runtime ...
trying to connect to oracleidir.ctru.auckland.ac.nz 7001
Successful
MBean Server Connection is :javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection@1dd9505
oracleidir.ctru.auckland.ac.nz 7001
Instance asinst_1 already exists, continuing with component creation
/u04/app/oracle/Middleware/Oracle_IDM1 /u04/app/oracle/Middleware/asinst_1 asinst_1
oracle.as.config.ProvisionException: Error Starting OID
at oracle.iam.management.oid.install.wls.OIDComponentHelper.temp_startOID(OIDComponentHelper.java:1980)
at oracle.iam.management.oid.install.wls.OIDComponent.postCreateConfig(OIDComponent.java:325)
at oracle.as.provisioning.fmwadmin.ASComponentProv.createComponent(ASComponentProv.java:145)
at oracle.as.provisioning.fmwadmin.ASComponentProv.createComponent(ASComponentProv.java:73)
at oracle.as.provisioning.fmwadmin.ASInstanceProv._createComponent(ASInstanceProv.java:401)
at oracle.as.provisioning.fmwadmin.ASInstanceProv.createComponent(ASInstanceProv.java:358)
at oracle.as.provisioning.fmwadmin.ASInstanceProv.createInstanceAndComponents(ASInstanceProv.java:136)
at oracle.as.provisioning.engine.WorkFlowExecutor._createASInstancesAndComponents(WorkFlowExecutor.java:523)
at oracle.as.provisioning.engine.WorkFlowExecutor.executeWLSWorkFlow(WorkFlowExecutor.java:439)
at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:866)
at oracle.as.idm.install.config.IdMDirectoryServicesManager.doExecute(IdMDirectoryServicesManager.java:874)
at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:371)
at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:88)
at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:105)
at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:64)
at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:160)
at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:86)
at java.lang.Thread.run(Thread.java:662)
Caused by: oracle.as.config.ProvisionException: OID server context is null
at oracle.iam.management.oid.install.wls.OIDComponentHelper._isOIDSrvUp(OIDComponentHelper.java:2050)
at oracle.iam.management.oid.install.wls.OIDComponentHelper.temp_startOID(OIDComponentHelper.java:1970)
... 19 moreIs anyone able to point me in the right direction as to the cause of this?
I notice that Metalink ID: " FMW 11g Oracle Internet Directory Configuration Process Fail: Error Creating Ascomponent Oid1 [ID 1289015.1]" refers to IPV6. I only have IPV4 enabled. Is IPV6 a mandatory requirement for OID?
Thanks in advance.I downloaded the RCU 11.1.1.6 patch (13517109) and it ran fine this way (after a drop/create on the OID schemas).
Obviously running the {Middleware_Home}/Oracle_IDM1/bin/rcu file isn't the way to do it. I'll pay closer attention next time....
Thanks for your help. -
Can't Preview iView on remote server
I had my iView working properly, however when I made a little change and deployed a par file I couldn't preview it anymore. I changed everything back, but it didn't help. Everything is working correctly on my local portal, but not on remote one. Please help!
Here is a log:
Exception ID:08:51_11/01/05_0009
com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Resource
Component : pcd:portal_content/com.ags.Content_AGS/com.AGS.iViews_AGS/com.AGS.TEST/sys_dat_nav
Component class : Smp2_JSP
at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:853)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:390)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:463)
at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:88)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:234)
at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)
at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:109)
at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:135)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:301)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:191)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:217)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:580)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:301)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:191)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:670)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:229)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:532)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:149)
at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:832)
at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:666)
at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:313)
at com.inqmy.services.httpserver.server.Response.handle(Response.java:173)
at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1288)
at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
at com.inqmy.core.cluster.impl5.ParserRunner.run(ParserRunner.java:55)
at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
at java.security.AccessController.doPrivileged(Native Method)
at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:148)
Caused by: com.sapportals.portal.prt.component.PortalComponentException: PortalComponentException
at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:125)
at com.sapportals.portal.prt.core.broker.JSPComponentItem.compileJSP(JSPComponentItem.java:263)
at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:122)
at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:338)
at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:817)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:386)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:463)
at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:88)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:234)
at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)
at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:109)
at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:135)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:301)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:191)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:217)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:580)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:301)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:191)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:670)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:229)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:532)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:149)
at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:832)
at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:666)
at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:313)
at com.inqmy.services.httpserver.server.Response.handle(Response.java:173)
at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1288)
at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
at com.inqmy.core.cluster.impl5.ParserRunner.run(ParserRunner.java:55)
at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
at java.security.AccessController.doPrivileged(Native Method)
at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:148)
Caused by: com.sapportals.portal.prt.servlets_jsp.server.jsp.ParseException: I/O file error (sun.io.MalformedInputException)..
at com.sapportals.portal.prt.servlets_jsp.server.jsp.syntax.ParserImpl.(ParserImpl.java:125)
at com.sapportals.portal.prt.servlets_jsp.server.jsp.syntax.ParserImpl.(ParserImpl.java:187)
at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:2121)
at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.compile(JSPCompiler.java:76)
at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:120)
at com.sapportals.portal.prt.core.broker.JSPComponentItem.compileJSP(JSPComponentItem.java:263)
at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:122)
at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:338)
at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:817)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:386)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:463)
at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:88)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:234)
at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)
at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:109)
at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:135)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:301)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:191)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:217)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:580)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:301)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:191)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:670)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:229)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:532)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:149)
at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:832)
at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:666)
at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:313)
at com.inqmy.services.httpserver.server.Response.handle(Response.java:173)
at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1288)
at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
at com.inqmy.core.cluster.impl5.ParserRunner.run(ParserRunner.java:55)
at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
at java.security.AccessController.doPrivileged(Native Method)
at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:148)
[email protected]ec #No... I am looking at the correct folders, etc. The host is a
commercial host for Fortune 500's, I fairly confident in their
abilities. They think it might have something to do with long file
names. There is one clue, in that at one time I could view the
files and folders. Since that time it is possible I added a page
with a file name that is too long and is causing the issue. I will
probbaly need to temporarily delete these long file name pages to
see if it's the issue or not. I just thought someone here may have
experienced this. Not being able to view files and folders (even
though you can connect and transfer okay) is a pretty common
troubleshooting topic at the FTP software companies.
quote:
Originally posted by:
Newsgroup User
It's time to change hosts, if they can't figure this one out.
You must be
looking at the wrong folder with DW/Ipswitch....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"DJ Website Designer" <[email protected]>
wrote in message
news:floqjp$rl2$[email protected]..
>
Wondering if anyone has a fix for not seeing files
on remote
> server... It's even got my host stumped. I have a fairly
large static site
> which I CAN SEE files via my host's "File Manager" 90
Folders 3090 Files
> 52,336.74KB
>
> But I cannot see files and folders when connected FTP
via IPSwitch or
> Dreamweaver 8.
>
> I have followed IPSwitch's troubleshooting steps for
this issue, with no
> resolve. Emailed them a week ago, still no reply.
>
> I have other sites at the same host (sub-domains of the
site I cannot
> see),
> and thoise subdomain sites files and folders show up
fine. With the
> primary
> site, even though I cannot "see" the files and folders,
I can still ftp to
> and
> from the server (get & put) from DW or IPSwitch...
>
Maybe you are looking for
-
Apple BT keyboard doesn't work after OS update
When I booted up a day after installing the latest Maverick update, my Apple BT keyboard no longer pairs with my iMac. It paired with a laptop at the Apple store, and the BT mouse still works. A clean reinstall of the OS hasn't helped.
-
My Iphone 5 is not showing in Itune 11.0.4.4 but it show in windows when I connect it to charge
-
Firefox settings in custom not disabling explorer
I've noticed a screen display change regarding a lighter text that is appears on every website page and application such as MS Word. So I downloaded the new Firefox update 3.10 and ever since then the default settings have changed on my computer and
-
Capturing the User Id from the Password change screen after Login
Hi, I need to capture the User Id from the Password Change screen and Pass it to the Custom Portal application that is triggered on the change password screen.That User Id will be passed on to the Portal application to retrieve the details of the Us
-
Is white light on after RSD?
I just started to experience some weird problems with my MB ( week 31). I would shut down the MB at night, close the lid and recharge during the night. At the morning, the white light is on (like it is asleep not shutdown) and I have a terrible time