MSG_TEXT Exception returned by remote server: {0} /MSG_TEXT
Hi,
I am getting expcetion while restarting the service deployed as ear under user instance in oc4j application server 10.1.3. Deployment of EAR is succussfully completed.
It throws exception while restarting that service.
Logs after deployment(under j2ee/instance_name/logs):
<CORRELATION_DATA>
<EXEC_CONTEXT_ID><UNIQUE_ID><IP-ADDRESS of appserver>:22260:1292737388443:58</UNIQUE_ID><SEQ>0</SEQ></EXEC_CONTEXT_ID>
</CORRELATION_DATA>
<PAYLOAD>
<MSG_TEXT>Application Deployer for <EAR file name>COMPLETES. Operation time: 394 msecs</MSG_TEXT>
</PAYLOAD>
Logs after restart of serverice(under j2ee/instance_name/logs):
<CORRELATION_DATA>
<EXEC_CONTEXT_ID><UNIQUE_ID><IP ADDRESS OF APPSERVER>:22260:1292737432393:69</UNIQUE_ID><SEQ>0</SEQ></EXEC_CONTEXT_ID>
</CORRELATION_DATA>
<PAYLOAD>
<MSG_TEXT>Exception returned by remote server: {0}</MSG_TEXT>
<SUPPL_DETAIL><![CDATA[java.lang.IllegalStateException: ClassLoader "<EAR DEPLOYED NAME>.root:0.0.0" (from <application> in /oracle/apphome/j2ee/<instance_name>/applications/<EAR DEPLOYED NAME>/): This loader has been closed and should not be in use.
at oracle.classloader.util.ClassLoadAsserts.fail(ClassLoadAsserts.java:154)
at oracle.classloader.PolicyClassLoader.checkState(PolicyClassLoader.java:1994)
at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1659)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1635)
at java.lang.ClassLoader.loadClass(ClassLoader.java:587)
at java.lang.ClassLoader.loadClass(ClassLoader.java:561)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:164)
at com.evermind.io.ClassLoaderObjectInputStream.resolveClass(ClassLoaderObjectInputStream.java:33)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1553)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1475)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1708)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:354)
at com.evermind.server.rmi.RMIClientConnection.handleListContextResponse(RMIClientConnection.java:805)
at com.evermind.server.rmi.RMIClientConnection.handleOrmiCommandResponse(RMIClientConnection.java:279)
at com.evermind.server.rmi.RMIClientConnection.dispatchResponse(RMIClientConnection.java:242)
at com.evermind.server.rmi.RMIClientConnection.processReceivedCommand(RMIClientConnection.java:224)
at com.evermind.server.rmi.RMIConnection.handleCommand(RMIConnection.java:152)
at com.evermind.server.rmi.RMIConnection.listenForOrmiCommands(RMIConnection.java:127)
at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:107)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
at java.lang.Thread.run(Thread.java:797)
]]></SUPPL_DETAIL>
</PAYLOAD>
</MESSAGE>
<MESSAGE>
Logs from (j2ee/home/logs) after restart of service:
<CORRELATION_DATA>
<EXEC_CONTEXT_ID><UNIQUE_ID><IP-ADDRESS OF APPSERVER>:96566:1292737132784:12</UNIQUE_ID><SEQ>0</SEQ></EXEC_CONTEXT_ID>
</CORRELATION_DATA>
<PAYLOAD>
<MSG_TEXT>Exception returned by remote server: {0}</MSG_TEXT>
<SUPPL_DETAIL><![CDATA[javax.management.ReflectionException: The operation with name getMBeanInfo could not be found
at oracle.oc4j.admin.jmx.ejb.MBeanServerEjbBean.invoke(MBeanServerEjbBean.java:371)
at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxSupportsInterceptor.invoke(TxSupportsInterceptor.java:37)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.SecurityRoleInterceptor.invoke(SecurityRoleInterceptor.java:47)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatefulSessionEJBObject.OC4J_invokeMethod(StatefulSessionEJBObject.java:844)
at MBeanServerEjb_RemoteProxy_1me2j7.invoke(Unknown Source)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:797)
Caused by: java.lang.NoSuchMethodException: getMBeanInfo
at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:412)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:238)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:833)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802)
at oracle.oc4j.admin.jmx.server.state.ApplicationStateFilterMBeanServer.invoke(ApplicationStateFilterMBeanServer.java:572)
at oracle.oc4j.admin.jmx.ejb.MBeanServerEjbBean.invoke(MBeanServerEjbBean.java:365)
... 22 more
]]></SUPPL_DETAIL>
</PAYLOAD>
Kindly suggest solution for above.
Edited by: user10314932 on Dec 18, 2010 10:59 PM
thanks for the update. But why are you posting in the retail forum, is it for an Oracle Retail module or application?
Similar Messages
-
hi
am using below code to get the byte array
byte[] myDataBuffer = client.DownloadData((new Uri(sourceUrl)));
for source of type .txt/.jpg no problem with accessing.but the file type with .master/.wsp/.cs
it is returning "The remote server returned an error: (403) Forbidden error for some file types" Error.how can i get rid of this.please help me
Thanks in AdvanceHi,
It seems there is something wrong with your code, from your code the account and key are the same, because their appsetting name are the same.
string account = ConfigurationManager.AppSettings["StorageAccountName"];
//string account = CloudConfigurationManager.GetSetting("StorageAccountName");
//string key = CloudConfigurationManager.GetSetting("StorageAccountAccessKey");
string key = ConfigurationManager.AppSettings["StorageAccountName"];
string connectionString = String.Format("DefaultEndpointsProtocol=https;AccountName={0};AccountKey={1}", account, key);
return CloudStorageAccount.Parse(connectionString);
If you use CloudConfigurationManager.GetSetting, please consider set azure project as the startup project, if not, this value will be null, this resulted in solution being started as a web project that didn't run inside the Azure emulator. Since CloudConfigurationManager.GetSetting
tries to get setting by contacting Azure (or Azure emulator in this case), and it is not running, it returns null.
Best Regards,
Jambor
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. -
Hi,
I am unable to create a folder on FTP location via c# code.
I am getting the following error message:
The remote server returned an error: (530) Not logged in.
I have attached my code for your reference.
FtpWebRequest myFtpWebRequest = null;
myFtpWebRequest = (FtpWebRequest)FtpWebRequest.Create(new Uri(ftpfullpath + "/" + dirName));
myFtpWebRequest.Method = WebRequestMethods.Ftp.MakeDirectory;
myFtpWebRequest.UseBinary = true;
myFtpWebRequest.Credentials = new NetworkCredential(strUserNameFTP, strPasswordFTP);
FtpWebResponse response = (FtpWebResponse)myFtpWebRequest.GetResponse();
response.Close();
Note : value of ftpfullpath is "ftp://ftpxxxtest.com:21"Hi,
Still I am getting the error:
Exception 1 : The remote server returned an error: (502) Command not implemented
I am getting this error message when I tried to find Whether the folder exist on FTP location. I will attached the code for your review.
try
string ftpServerIP = "ftp://ftptestcon.sathiyajeba.com:21";
string strUserNameFTP = "dev_backup";
string strPasswordFTP = "india@2090";
string ftpfullpath = ftpServerIP ;
var request = (FtpWebRequest)WebRequest.Create(ftpfullpath + "/" + directory);
request.Credentials = new NetworkCredential(strUserNameFTP.Normalize(), strPasswordFTP.Normalize());
request.EnableSsl = true;
request.Method = WebRequestMethods.Ftp.GetDateTimestamp;
FtpWebResponse response = (FtpWebResponse)request.GetResponse();
return true;
catch (WebException ex)
WriteLog("Error on FtpDirectoryExists : " + ex.Message.ToString());
FtpWebResponse response = (FtpWebResponse)ex.Response;
if (response.StatusCode == FtpStatusCode.ActionNotTakenFileUnavailable)
WriteLog("Error on FtpDirectoryExists : Test-1");
return false;
else
WriteLog("Error on FtpDirectoryExists : Test-2");
return false;
Exception 2: The remote server returned an error: (530) Not logged in.
Getting this error message when I tried to create a folder on FTP location. Attached the source code for your review.
string ftpServerIP = "ftp://ftptestcon.sathiyajeba.com:21";
string strUserNameFTP = "dev_backup";
string strPasswordFTP = "india@2090";
string ftpfullpath = strServerFTP;
try
FtpWebRequest myFtpWebRequest = null;
myFtpWebRequest = (FtpWebRequest)FtpWebRequest.Create(new Uri(ftpfullpath + "/" + dirName));
myFtpWebRequest.Method = WebRequestMethods.Ftp.MakeDirectory;
myFtpWebRequest.UseBinary = true;
myFtpWebRequest.Credentials = new NetworkCredential(strUserNameFTP.Normalize(), strPasswordFTP.Normalize());
FtpWebResponse response = (FtpWebResponse)myFtpWebRequest.GetResponse();
response.Close();
return true;
catch (Exception ex)
WriteLog("Error on CreateDirectory : " + ex.Message.ToString());
return false;
Could you please any help me to resolve this exception?
Thanks,
Sathiya Jeba C -
ESB Portal : The remote server returned an error: (400) Bad Request
Hi,
I am getting the below error message while trying to access ESB Portal:
========================
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 12/18/2013 12:07:10 PM
Event time (UTC): 12/18/2013 12:07:10 PM
Event ID: 2a429911fb69455ab3b77348c8b259ce
Event sequence: 10
Event occurrence: 2
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/ROOT/ESB.Portal-1-130318418493427545
Trust level: Full
Application Virtual Path: /ESB.Portal
Application Path: C:\Projects\Microsoft.Practices.ESB\Source\Samples\Management Portal\ESB.Portal\
Machine name: WIN-HG1MJEC7KJS
Process information:
Process ID: 3220
Process name: w3wp.exe
Account name: NT AUTHORITY\SYSTEM
Exception information:
Exception type: WebException
Exception message: The remote server returned an error: (400) Bad Request.
Request information:
Request URL: http://localhost/esb.portal/default.aspx
Request path: /esb.portal/default.aspx
User host address: ::1
User: WIN-HG1MJEC7KJS\ESBUser
Is authenticated: True
Authentication Type: Negotiate
Thread account name: NT AUTHORITY\SYSTEM
Thread information:
Thread ID: 4
Thread account name: NT AUTHORITY\SYSTEM
Is impersonating: False
Stack trace: at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
Custom event details:
====================
I also looked at thread : http://social.msdn.microsoft.com/Forums/en-US/1fb510a8-9f4b-4e1e-9261-3273b037786c/esbportal-bad-request-400?forum=biztalkesb
However didn't able to find the workaround for the same.
Best Regards,
HarkiratHi,
On a local server you don't have to change the web.config if you use local Windows Groups. Check if the User is added to the "BizTalk Server Administrators" Group. Also check if the Group or the User has rights to access EsbExceptionDb & ESBAdmin
database. You also have to enable "Windows Authentication" in IIS for the ESB.Portal.
Local Machine settings:
ESB.Exceptions.Service\Web.config
<connectionStrings><add providerName="System.Data.SqlClient" connectionString="Integrated Security=SSPI;Data Source=.;Initial Catalog=EsbExceptionDb" name="EsbExceptionDbConnectionString"/></connectionStrings>
C:\Projects\Microsoft.Practices.ESB\Source\Samples\Management Portal\ESB.Portal\Web.config
<connectionStrings>
<add name="AdminDatabaseServer" providerName="System.Data.SqlClient" connectionString="Network Library=dbmssocn;Data Source=(local);Integrated Security=True;Initial Catalog=ESBAdmin;"/>
</connectionStrings>
<authentication mode="Windows"/>
<authorization><allow roles="BizTalk Application Users"/>
<allow roles="BizTalk Server Administrators"/>
<allow roles="Administrators"/>
<deny users="*"/>
</authorization>
Kind regards,
Tomasso Groenendijk
Blog
| Twitter
MCTS BizTalk Server 2006, 2010
If this answers your question please mark it accordingly -
Hi all,
having the following issue that started today,everything been working fine until now.
When Office 365 users send e-mail to some on premise users they get the following error in Return.
Remote
Server returned '550 5.1.1 RESOLVER.ADR.ExRecipNotFound; not found'
On premis users (Exchange 2013) can send to the same contact just fine.So for 365 users that failed we have tested the following:
Using OWA,says recepient cannot be found.
All 365 users fails to same recepients,for now a dosen People.
Address that fail,mailboxes are spread accross different databases.
Cannot see any error in event Viewer related to this.
Any tips?
thanks!
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! Off2workHi Ed,
thanks for reply and sorry for late reply,been alot to do lately With lots if migrations and errors.
YEs you are correct that the problem is caused by useraccount was in wrong OU and was not sync to the "Cloud".
Move users Object to correct OU and all was working fine.Strange this is that it have worked before,so does it mean that if user is not in the OU defined to synced,it will be removed from the cloud?
Br
Ill put it as resolved :)
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 -
I am trying to call sharepoint online from powershell. Below is the code. I get
Exception calling "ExecuteQuery" with "0" argument(s): "The remote server returned an error: (407) Proxy Authentication Required."
$loadInfo1 = [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Client")
$loadInfo2 = [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Client.Runtime")
$webUrl = "ZZZZ"
$username = "XXX"
$password = "YYYY"
$ctx = New-Object Microsoft.SharePoint.Client.ClientContext($webUrl)
$ctx.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($username, $password)
$web = $ctx.Web
$lists = $web.Lists
$ctx.Load($lists)
$ctx.ExecuteQuery()
$lists| select -Property Title
Raj-ShptHi,
About how to access SharePoint online site using PowerShell, the blog below would be helpful:
http://social.technet.microsoft.com/wiki/contents/articles/29518.csom-sharepoint-powershell-reference-and-example-codes.aspx
Another two demos for your reference:
http://www.hartsteve.com/2013/06/sharepoint-online-powershell/
http://www.sharepointnutsandbolts.com/2013/12/Using-CSOM-in-PowerShell-scripts-with-Office365.html
Thanks
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
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 -
Not able to start the remote server - class not found exception
All,
I am quite new to RMI programming, although i am an experienced java programmer. I am facing a problem in starting the remote server program which i wrote for RMI. I am getting class not found exception for "stub" class eventhough the class is in the classpath.
Following is the error console:
cmd> java -classpath "D:\Eclipse_WorkSpaces\WS2\RMITests\classes" MyServerImplementation
GetNames error: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: MyServerImplementation_Stub
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: MyServerImplementation_Stub
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Naming.java:160)
at MyServerImplementation.main(MyServerImplementation.java:21)
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: MyServerImplementation_Stub
at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: MyServerImplementation_Stub
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:434)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
... 12 morePLEASE ADVISE HOW TO RESOLVE THIS...
Following are my classes:
MyRemoteInterface.java
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface MyRemoteInterface extends Remote {
public String[] getNames() throws RemoteException;
public class MyServerImplementation extends UnicastRemoteObject implements
MyRemoteInterface {
public MyServerImplementation()throws RemoteException{
super();
public String[] getNames() throws RemoteException{
return new String[]{"Name1","Name2","Name3","Name4"};
public static void main(String args[]) {
try {
// Create an object of the HelloWorldServer class.
MyRemoteInterface obj = new MyServerImplementation();
// Bind this object instance to the name "HelloServer".
Naming.rebind("rmi://localhost:1985/GetNames", obj);
System.out.println("GetNames bound in registry");
catch (Exception e) {
System.out.println("GetNames error: " + e.getMessage());
e.printStackTrace();
public class MyRMIClient {
*@param args*
public static void main(String[] args) {
try {
MyRemoteInterface remObj = (MyRemoteInterface) Naming.lookup("rmi://localhost:1985/GetNames");
System.out.println("Names are "+remObj.getNames());
catch(Exception e) {
System.out.println("Problem encountered accessing remote object "+e);
}That's a remote exception coming from the registry. You need to learn to recognize remote exceptions and their source, it's a mjaor source of confusion in RMI.
In this case it's the registry that can't find the stub class.
The stub class needs to be in the CLASSPATH of (i) the Registry and (ii) the client as well. Ditto the remote interface; ditto any application classes it refers to, and so on until closure.
The easiest way to achieve (i) is to start it in the server's JVM, with LocateRegistry.createRegistry(). -
static class StorageUtils
public static CloudStorageAccount StorageAccount
get
string account = ConfigurationManager.AppSettings["StorageAccountName"];
//string account = CloudConfigurationManager.GetSetting("StorageAccountName");
//string key = CloudConfigurationManager.GetSetting("StorageAccountAccessKey");
string key = ConfigurationManager.AppSettings["StorageAccountName"];
string connectionString = String.Format("DefaultEndpointsProtocol=https;AccountName={0};AccountKey={1}", account, key);
return CloudStorageAccount.Parse(connectionString);
I have a web project and I converted it to "MS Azure Cloud Service Project"
I make the Azure project default and run CreateAndConfigureAsync() to create the container. It works fine and creates the images container in Azure storage.
Then I make my web project default and change CloudConfigurationManager.GetSetting to ConfigurationManager.AppSettings in StorageUtils class and run the web app project. Then I get "The remote server returned an error: (403) Forbidden" error whencontainer.CreateIfNotExistsAsync()
line get executed.
What is the reason for this?
async public void CreateAndConfigureAsync()
try
CloudStorageAccount storageAccount = StorageUtils.StorageAccount;
// Create a blob client and retrieve reference to images container
CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient();
CloudBlobContainer container = blobClient.GetContainerReference("images");
// Create the "images" container if it doesn't already exist.
if (await container.CreateIfNotExistsAsync())
// Enable public access on the newly created "images" container
await container.SetPermissionsAsync(
new BlobContainerPermissions
PublicAccess =
BlobContainerPublicAccessType.Blob
catch (Exception ex)
}Hi,
It seems there is something wrong with your code, from your code the account and key are the same, because their appsetting name are the same.
string account = ConfigurationManager.AppSettings["StorageAccountName"];
//string account = CloudConfigurationManager.GetSetting("StorageAccountName");
//string key = CloudConfigurationManager.GetSetting("StorageAccountAccessKey");
string key = ConfigurationManager.AppSettings["StorageAccountName"];
string connectionString = String.Format("DefaultEndpointsProtocol=https;AccountName={0};AccountKey={1}", account, key);
return CloudStorageAccount.Parse(connectionString);
If you use CloudConfigurationManager.GetSetting, please consider set azure project as the startup project, if not, this value will be null, this resulted in solution being started as a web project that didn't run inside the Azure emulator. Since CloudConfigurationManager.GetSetting
tries to get setting by contacting Azure (or Azure emulator in this case), and it is not running, it returns null.
Best Regards,
Jambor
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. -
The remote server returned an error: (500) Internal Server Error.
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: (500) Internal Server Error.
Source Error:
Line 63: }
Line 64: //Gets the response
Line 65: WebResponse response = req.GetResponse();
Line 66: //Writes the Response
Line 67: Stream responseStream = response.GetResponseStream();Looks like C# code and you've posted to the Visual Basic forum.
Anyway, an error 500 means that there is a problem accessing the resource in the web request. There could be many reasons for this so I would verify that the web request is correct first and if it continues to fail then the resource (web page?) needs to
be fixed before your code will function.
Visual C# forum
Paul ~~~~ Microsoft MVP (Visual Basic) -
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. -
Hi,
I have a customer running a provider hosted app and in Sharepoint 2013. Things have been working fine but recently they keep experiencing an issue where the all the app parts on the page show the following error message. Does anyone have an idea what
could be causing this problem and how I can fix it? The Sharepoint site and provider hosted app site are running on a Server 2008 R2 box with IIS 7.5.
Server Error in '/Test.Sharepoint.App' Application.
The remote server returned an error: (429) Too Many Requests.
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: (429) Too Many Requests.
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: (429) Too Many Requests.]
System.Net.HttpWebRequest.GetResponse() +8527180
Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute() +58
Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder sb) +975
Test.Sharepoint.AppWeb.Pages.LatestAnnouncement.GetLatestAnnouncement(Boolean showFullText) +610
Test.Sharepoint.AppWeb.Pages.LatestAnnouncement.Page_Load(Object sender, EventArgs e) +764
System.Web.UI.Control.LoadRecursive() +71
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18034
Impreza Software DevelopmentHi GuYumming,
I have checked the Sharepoint site using Fiddler and my X-SharePointHealthScore stays consistently on 1, I have even refreshed the site and had the "(429) Too Many Requests" error happen right in front of me whilst Fiddler is running and when I look at the
200 response for the Sharepoint site it is still showing "X-SharePointHealthScore: 1".
I assume because of this I do not need to make any of the changes suggested in your article above?
I have also been through the ULS logs and found the following 3 log entries that appear to relate to the issue but they do not really mean much to me so I am hoping that you can help:
Begin CSOM Request ManagedThreadId=59, NativeThreadId=12476
SPResourceTally(ClientServiceRequestDuration) value 1 + 150425 > 150000
ResourceBudgetExceeded, sending throttled status code. Exception=Microsoft.SharePoint.SPResourceBudgetExceededException: ResourceBudgetExceeded at Microsoft.SharePoint.SPResourceTally.Check(Int32 value)
at Microsoft.SharePoint.SPAggregateResourceTally.Check(SPResourceKind kind, Int32 value) at Microsoft.SharePoint.Client.SPClientServiceHost.OnBeginRequest()
Impreza Software Development -
Returning Rowset From Remote Server Error
I'm currently trying to pass a rowset back to my client application via RMI. I keep getting a "java.rmi.UnmarshalException: error unmarshalling return; nested exception is: java.io.EOFException" message. It works fine if I pass a String object. I can pass a rowset if I use localhost rather than my remote server. Any help would be greatly appreciated. Thank you.
I had this very same problem. The problem is that ResultSet (from java.sql.*) is not Serializable, and cannot be marshalled via RMI (i.e. sent back down the pipe). String, int and Boolean all work. RowSet is abstract and cannot be initialised. The best subclass of RowSet I've found is CachedRowSetImpl, which inherits all the standard RowSet attributes and methods.
You will need to download the JAR containing "com.sun.rowset" from here:
http://java.sun.com/developer/earlyAccess/jdbc/jdbc-rowset.html
... then take the "rowset.jar" file and place it somewhere your IDE can find it (I placed mine here: C:\Program Files\Java\jdk1.5.0_01\jre\lib\ext). Under NetBeans, you can enter the Platform Manager (Tools) and force NetBeans to see it. Then the command:
import com.sun.rowset.*;
...will allow you to create CachedRowSetImpl objects with the simple constructor:
CachedRowSetImpl myCRS = new CachedRowSetImpl( );
You can populate a CRS with the command:
myCRS.populate(existingResultSet);
Hope this was helpful.
JGI
Maybe you are looking for
-
My son's ipod is asking for the code to remove the parental restrictions, I am the parent and i don't remember putting in any restriction code. Any idea how to find out what it is?
-
J1id - Vendor excise details issue
Hi All, When I create record in J1ID, for vendor excise. the "change on" fields should be auto populate, but this is not happening. This field doesnu2019t change automatically. I have to do manually. How can i change this, I need when i change record
-
IChat-initiated Screen Sharing across Internet
For those of us supporting Aged Parental Units and their Macs, iChat Screensharing is the Killer App to end all killer apps. And when it doesn't work, it's really frustrating. One thing that makes iChat Screensharing preferable to Timbuktu or generic
-
Database Field for Picked Quantity in Delivery
Hi All, We want to know the Database Field for Picked quantity in a delivery. We checked the help for the field and it points to the LIPSD structure and the field PIKMG. However I could not find it in LIPS table or any other table. Could somebody ple
-
Sub-folder display order on a template
We use Portal Version: 9.0.2.3.0B I have a page based on a template. The template has a region that displays 'subfolders'. If i add a new subfolder under the page, it is not in alphabetical order and there is no way to change the order. Because the r