Permission (?) issue when run a Exchange Cmdlet

Hello,
MailboxDatabaseCopyStatus from the PowerShell (powershell.exe) with the added PSSnapin "Microsoft.Exchange.Management.PowerShell.E2010.
Unfortunately, I always receive the following error message:
Get-MailboxDatabaseCopyStatus : A server-side administrative operation has failed. Operation failed with message: Error
 0x5 (Access is denied) from cli_GetCopyStatusEx2
At \\agr8\D\mk_exchange_inprogress.ps1:138 char:51
+     ForEach ($Status in Get-MailboxDatabaseCopyStatus <<<<  -Identity $DataBase.Name) {
    + CategoryInfo          : ReadError: (:) [Get-MailboxDatabaseCopyStatus], TaskOperationFailedException
    + FullyQualifiedErrorId : 6B5FB038,Microsoft.Exchange.Management.SystemConfigurationTasks.GetMailboxDatabaseCopySt
   atus
When running the script from the Exchange Management Shell, no Errors occur.
Does anyone know the reason and the solution?
Regards Alex

Hi,
Did you want to connect the remote Shell to Exchange server? If so, I recommend you follow the commands below and then run the Get-MailboxDatabaseCopyStatus command again to check the result.
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri
http://<FQDN of Exchange 2010 server>/PowerShell/ -Authentication Kerberos -Credential $UserCredential
Import-PSSession $Session
For more details about this, please refer to this article.
Connect Remote Exchange Management Shell to an Exchange Server
http://technet.microsoft.com/en-us/library/dd297932(v=exchg.141).aspx
Best regards,
Belinda
Belinda Ma
TechNet Community Support

Similar Messages

  • Issue when running acutal Off-cycle payroll in India!

    Dear experts!
    I have an urgent issue when running ACTUAL off-cycle payroll in India as below: "Payroll already performed once in future".
    In testing mode, everything is fine. I have tried to check payroll result in pc_payresult and pu01, and Infotype 3. All of them show the last payroll in 31.07.2011. But now I run off-cycle payroll on 20.08.2011, this error is displayed. So I cannot run actual payroll for them.
    Please help me! I am really appreciated.
    Regards!
    Woody.

    Hello
    Normally this error message reflects an inconsistency in the payroll
    directory cluster, that you can view via RPUDIR00. What you can do to
    restore the consistency is to run the report RPUDIR00 for this pernr
    with the following parameters on the selection screen:
    Payroll for country                           
    Personnel number             
    Compare directory            
    Payroll results structure   
    detailed log                
    Save new directory             X          <  this will write the new directory.  If you want to test first, do not select this parameter.
    Afterwards it should be possible to run payroll for this employee.
    Thanks and Kind Regards
    Ramana

  • Issue when Run Report with  Hier selection   in the Portal

    Hi  Portal  BI Experts,
    we are finding a strange issue  when Running the Report.
    the following  Variables are in the  Report  Selection screen :
    Company code [optiona]
    Prod.Variance Type [ mandatory]
    Hierarchy Node Variable [optional]
    TheQuery  which I am Running  thro Bex Analyzer  with  the Hier  selection as below , is working  fine. But
    When I  run   thro portal with Hier selection value   with    00/50/G310/702258(0CUST_SALES
    It automatically  display as +00/50/G310/702258(0CUST_SALES    with + symbol. and  thro the error:
    Input "\+00/50/G310/702258(0CUST_SALES);\+00/51/G410/703096(0CUST_SALES)" for Ship-To Party (Sales has invalid format
    If I remove the plus symbol  report runnig fine.
    Your  immediate help highly appreciated.
    Thanks
    Hema
    Edited by: hemav on Mar 21, 2011 2:29 PM

    Hi Jaya,
    This is the Error message  I am facing when I Execute ithe query  report n the Web[Portal]
    Input "\+00/50/G310/702258(0CUST_SALES);\+00/51/G410/703096(0CUST_SALES)" for Ship-To Party (Sales has invalid format
    ie. In the variable screen the selected hier value  automaticvally display with plus symbol
    Actual   Hier  value :   00/50/G310/702258(0CUST_SALES)
    Once close the Hier  selection list window , the Hier value  turned to  +00/50/G310/702258(0CUST_SALES)
    If I give ok with this Plus symbol  it throwing the above error.  By  removing the Plus symbol manually  it is working fine.
    I unable locate the  settings.
    that too when I run the same report  in Bex Analyzer  woking fine , no issues in the Hier  value.
    Thanks ,
    Hema

  • Performance Issues when running 1.5.0_9 with servers

    Hi. We have an application in Java. We run it using 1.5.0_9 on Win2003 and have no problems when running it on single Intel CPU PCs and Servers. However, whenever we are finding that some higher spec servers are running the application significantly slower... around 30%. It seems that it's either a problem with the Enterprise version of Win2k3 or perhaps with AMD Opteron CPUs.
    Does anyone know of any known issues with Win2k3 Enterprise or AMD Opteron CPUs or simply any dual CPU technology?
    Thanks
    Edited by: gingerdazza on Jul 2, 2008 1:21 AM

    I'm able to recreate the problem where a section of a screen goes black using with the following config.
    JDK 1.7.0_06
    2 graphics cards
    3 monitors
    Create a New JavaFX Application Project (Hello World) in NetBeans 7.2. Once executed position the window so it spans two monitors, ensure the monitors are on seperate graphics cards and then hover the mouse of the Hello World button and one half of the window goes black. Positioning the window so it doesn't span a monitor draws the window correctly.
    Has anyone experienced this issue?
    Thanks.

  • Permission denied when running runInstaller

    I'm getting 'permission denied' message when running
    runInstaller. I'm running the program directly from the CD. I'm
    logged-in as oracle with 'dba' group. I've checked the
    permissions on jre and it is fine. I can run jre on the
    command-line without any problem. I also tried running the
    runIns.sh and the same message is returned.
    What could be the other reasons why I am getting this message?
    null

    I don't know if it has anyhting to do with it but I had a similar
    problem. The difference was that I was part of the root group
    not dba as you state. The documentation suggests using a group
    called oinstall. Give it a try ... you never know how the
    packages within the installtion might have been built.
    kiwi (guest) wrote:
    : I'm getting 'permission denied' message when running
    : runInstaller. I'm running the program directly from the CD.
    I'm
    : logged-in as oracle with 'dba' group. I've checked the
    : permissions on jre and it is fine. I can run jre on the
    : command-line without any problem. I also tried running the
    : runIns.sh and the same message is returned.
    : What could be the other reasons why I am getting this message?
    null

  • Strange issue when running sql with false condition

    Hi,
    I'm running this query from the application:
    select 22
    from DUAL
    where ( to_number(0) <> 0 ) and exists (
    select 'X'
    from TABULA.macdent$FNCITEMS
    where ( macdent$FNCITEMS.QIV = to_number(0) ) );
    And it takes a long time because it is checking the second condition.
    Even though the first one is False.
    When running it through sqlplus it takes nothing. and of course no rows returns.
    The 0 in to_number is a bind variable
    it looks like this:
    select :intvar
    from DUAL
    where ( to_number(:QIV$) <> 0 ) and exists ( select 'X'
    from TABULA.macdent$FNCITEMS
    where ( macdent$FNCITEMS.QIV = to_number(:QIV$) ) )
    1 - filter predicate: ( IS NOT NULL AND 0<>TO_NUMBER(TO_CHAR(:QIV$)))
    But in sqlplus the filter predicates is different.
    1 - filter(NULL IS NOT NULL AND EXISTS (SELECT 0 FROM "TABULA"."MACDENT$FNCITEMS" "MACDENT$FNCITEMS" WHERE
    SQL> select 22
    from DUAL
    where ( to_number(0) <> 0 ) and exists (
    select 'X'
    from TABULA.macdent$FNCITEMS
    where ( macdent$FNCITEMS.QIV = to_number(0) ) );
    2 3 4 5 6
    no rows selected
    Elapsed: 00:00:00.00
    Execution Plan
    Plan hash value: 883410849
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)|
    Time | TQ |IN-OUT| PQ Distrib |
    | 0 | SELECT STATEMENT | | 1 | | 0 (0)| | | | |
    |* 1 | FILTER | | | | | | | | |
    | 2 | FAST DUAL | | 1 | | 2 (0)|00:00:01 | | | |
    | 3 | PX COORDINATOR | | | | | | | | |
    | 4 | PX SEND QC (RANDOM)| :TQ10000 | 63M| 782M| 2 (0)|00:00:01 | Q1,00 | P->S | QC (RAND) |
    | 5 | PX BLOCK ITERATOR | | 63M| 782M| 2 (0)|00:00:01 | Q1,00 | PCWC | |
    |* 6 | TABLE ACCESS FULL| MACDENT$FNCITEMS | 63M| 782M| 2 (0)|00:00:01 | Q1,00 | PCWP | |
    Predicate Information (identified by operation id):
    1 - filter(NULL IS NOT NULL AND EXISTS (SELECT 0 FROM "TABULA"."MACDENT$FNCITEMS" "MACDENT$FNCITEMS" WHERE
    "MACDENT$FNCITEMS"."QIV"=0))
    6 - filter("MACDENT$FNCITEMS"."QIV"=0)
    ANY SUGGESTIONS?
    Thanks,

    912294 wrote:
    Hi,
    I'm running this query from the application:
    select 22
    from DUAL
    where ( to_number(0) <> 0 ) and exists (
    select 'X'
    from TABULA.macdent$FNCITEMS
    where ( macdent$FNCITEMS.QIV = to_number(0) ) );
    Why are you using "to_number(0)"? the zero is already seen by oracle as a number.
    The to_number function expects to get a character string as the argument: to_number('0')
    See the difference?
    As you currently have it coded, you are forcing oracle to do an implicit conversion of the number zero to the character string '0' in order to pass it to to_number to convert it back to the number zero.
    And what is the point of "where to_number(0) <> 0"
    When would that EVER be true?
    And it takes a long time because it is checking the second condition.
    Even though the first one is False.
    When running it through sqlplus it takes nothing. and of course no rows returns.
    The 0 in to_number is a bind variable
    it looks like this:
    select :intvar
    from DUAL
    where ( to_number(:QIV$) <> 0 ) and exists ( select 'X'
    from TABULA.macdent$FNCITEMS
    where ( macdent$FNCITEMS.QIV = to_number(:QIV$) ) )
    So the query you showed at the top is not the query we are really dealing with. What is the data type of QIV$? At least now we know that comparison to zero is not a fixed value.
    1 - filter predicate: ( IS NOT NULL AND 0<>TO_NUMBER(TO_CHAR(:QIV$)))
    This suggests QIV$ is already a number, else why would you pass it to to_char? And as I said above, if it is already a number, why pass it to to_number? Here you appear to be explicitly doing what I described oracle as implicitly doing in your first query above.
    But in sqlplus the filter predicates is different.
    1 - filter(NULL IS NOT NULL AND EXISTS (SELECT 0 FROM "TABULA"."MACDENT$FNCITEMS" "MACDENT$FNCITEMS" WHERE
    SQL> select 22
    from DUAL
    where ( to_number(0) <> 0 ) and exists (
    select 'X'
    from TABULA.macdent$FNCITEMS
    where ( macdent$FNCITEMS.QIV = to_number(0) ) );
    2 3 4 5 6
    no rows selected
    Elapsed: 00:00:00.00
    Execution Plan
    Plan hash value: 883410849
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)|
    Time | TQ |IN-OUT| PQ Distrib |
    | 0 | SELECT STATEMENT | | 1 | | 0 (0)| | | | |
    |* 1 | FILTER | | | | | | | | |
    | 2 | FAST DUAL | | 1 | | 2 (0)|00:00:01 | | | |
    | 3 | PX COORDINATOR | | | | | | | | |
    | 4 | PX SEND QC (RANDOM)| :TQ10000 | 63M| 782M| 2 (0)|00:00:01 | Q1,00 | P->S | QC (RAND) |
    | 5 | PX BLOCK ITERATOR | | 63M| 782M| 2 (0)|00:00:01 | Q1,00 | PCWC | |
    |* 6 | TABLE ACCESS FULL| MACDENT$FNCITEMS | 63M| 782M| 2 (0)|00:00:01 | Q1,00 | PCWP | |
    Predicate Information (identified by operation id):
    1 - filter(NULL IS NOT NULL AND EXISTS (SELECT 0 FROM "TABULA"."MACDENT$FNCITEMS" "MACDENT$FNCITEMS" WHERE
    "MACDENT$FNCITEMS"."QIV"=0))
    6 - filter("MACDENT$FNCITEMS"."QIV"=0)
    ANY SUGGESTIONS?
    Thanks,

  • RemoteFX issue when running Multipoint Server 2012 Premium as VM on Hyper-V

    I have a server setup running Hyper-V 2012.  I made a Multipoint 2012 Premium VM and added RemoteFX.  After installing I went to Device Manager on the VM and noticed that the display adapter was showing as Microsoft Basic Display Adapter and
    there was an unknown device which I assume is the RemoteFX 3D adapter.  I updated the integration services and ran Windows Updates, but still cannot get RemoteFX to show up properly in the VM.
    Does Windows Multipoint Server 2012 not support RemoteFX when running as a VM?  I can't really run this on bare metal since I am looking at supporting more than 20 stations and therefore would need to run multiple instances virtualized on
    the same server running Hyper-V. 

    The server I have setup for this test is a Dell R720 and the video card is an AMD FirePro S7000. I am using the latest stable AMD FirePro driver (ver. 13.352.1006.1001).
    I also went ahead and setup a Dell OptiPlex 7010 with an AMD Radeon 5450 (which is DirectX11).  I setup Server 2012 Hyper-V and again with Server 2012 R2 Hyper-V.  Both times I was unable to add the RemoteFX 3D adapter.  I am beginning to
    think that it is not possible. 
    Are you running Multipoint 2012 server virtualized on top of Hyper-V with RemoteFX enabled in the virtualized server (and showing so in Device Manager)?

  • Permission issues when trying to run any adobe app, tech support guy quit after trying to fix it for 2 hours

    I don't know what to do. Any of my adobe apps give the same error:
    Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item.
    The aforementioned tech support person was a test account he made, and spent a long time doing stuff with all the permissions for the adobe files. Eventually he got it so illustrator at least would launch, then immediately crash. He just quit without a work not too long after that.
    I'm running windows 7, 64bit. On my own personal computer. Please help
    note: I was also having issues with creative cloud, which managed to get fixed

    Caps folder contains database file like Cache.db , Media,db , pdb.db which holds the information regarding Apps installation on system and other essential data, in some cases if the files are corrupted , it is essential to remove Caps folder .
    Once you delete Caps folder , CC app will list Apps with Install button as it does not have information regarding installation of CC apps as the Media.db file will be deleted along with it.
    In this case , it is better that you uninstall the Apps which is not listed as Up to Date ,and being listed with Install button even though it is already installed.

  • SSIS package issues when running as a regular user

    Hello
    I have one package which is getting data from MSSQL server and putting it to the excel (2007 format).
    When started as an administrator from Visual studio, IS, command line or SQL Agent job it works just fine.
    But when using regular user (SSIS proxy in SQL Agent job) it does not return any errors, but result Excel file is just empty. It puts only firs row with headers into it.
    Only difference I've found when executing as admin and regular user is a warning in package execution detailed log:
    OnWarning,SERVERNAME,USERNAME,PACKAGE_NAME,{GUID},{GUID},2014.03.21 15:23:22,2014.03.21 15:23:22,-2147183868,0x,Warning: Could not open global shared memory to communicate with performance DLL; data flow performance counters are not available.  To resolve,
    run this package as an administrator, or on the system's console.
    If I add user to local administrators group it runs just fine.
    Trying to search the web I've found that most causes of thet could be UAC enabled on the server. But it is not enabled.
    SQLserver - Microsoft SQL Server 2012 - 11.0.2383.0 (X64)
    Windows Server 2008 R2
    Thanks in advance,
    Olegas

    It could be also an issue with the access to the %temp% directory.
    But I suggest again, you do not rely on turning the logging on that is built into DTEXEC, you need to provide this package right now with thorough logging to find the root cause of the issue. E.g. no access to a shared drive may an issue, too.
    Arthur My Blog

  • File permission issue when indexing from JSP

    HI
    I have a class that I intend to use both in batch file and in JSP that will build a search index (Lucene) somwhere in the file system outside the web root. The class works great when called from the batch script but when I try to use it in the JSP page i get this error:
    [#|2004-04-23T09:56:41.155-0400|INFO|sun-appserver-pe8.0|javax.enterprise.system.stream.out|_ThreadID=13;|
    caught a class java.security.AccessControlException
    with message: access denied (java.io.FilePermission C:\AMIR\nemours_internet\common\search_index\html\segments delete)|#]
    Can someone tell me if this is a setting in PE8 server or do I have to do something within my class code?
    Thanks
    Following is my class (BuildPageIndex.java) and the snippet of the JSP file where I call it...
    <<<< package and imports ommited >>>>
    public class BuildPageIndex {
         private StringBuffer sbOut;
         public BuildPageIndex(){
         public BuildPageIndex(String pathToCMTXML){
         CMTController.loadCMTXML(pathToCMTXML);     
         public void buildIndex(){
              try {
              sbOut = new StringBuffer();
         // get all the page objects from the database
         ArrayList pageList = CMTPersister.getInstance().getAllPages();
         if (pageList.size() == 0)
              sbOut.append("<Lucene> No HTML pages in the database...Exiting...\n");
              return;     
         // obtain index location from XML config file
         HashMap searchMap = CMTController.getInstance().getSearchConfig();
         String strIndexLoc = (String)searchMap.get("LOCATION");
         sbOut.append("\n\n\n");
         // if backup management fails abort index creation
         if (!(manageBackup(strIndexLoc)))
                        return;
         // create index and start timing
         sbOut.append("<Lucene> Creating index for HTML pages in: "+ strIndexLoc + "\n");
         Date start = new Date();
         IndexWriter ixdBuilder = new IndexWriter(strIndexLoc, new StandardAnalyzer(), true);
         //for all pages ...
         for (int i=0;i<pageList.size();i++)
                        //get a page
                        Page thisPage = (Page)pageList.get(i);
                        // create lucene document from a page
                        sbOut.append("<Lucene> Page [" + thisPage.getURL().trim() +"] added \n");
                        Document pg_doc = PageDocument.Document(thisPage);
                        // add page document to the index...
                        ixdBuilder.addDocument(pg_doc);     
         // optimize and close index
                   ixdBuilder.optimize();
                   ixdBuilder.close();
         // calculate the time it took to build index
         Date end = new Date();
         long msecs = end.getTime() - start.getTime();
         sbOut.append("<Lucene> HTML Index created in: " + msecs + " milliseconds ("+ (float)msecs/1000.00 + " seconds) on "+pageList.size()+" pages\n\n");
         } catch (Exception e) {
                   System.out.println(" caught a " + e.getClass() + "\n with message: " + e.getMessage());
         public String getOutput(){
              return this.sbOut.toString();
         private boolean manageBackup(String loc){
    boolean retVal = true;
              //rename the location to _BACKUP so we have it
    File currIdx = new File(loc);
    File backIdx = new File(loc+"_BACKUP");
    if (currIdx.exists()){
         sbOut.append("<Lucene> Index directory allready exists!\n<Lucene> Backing it up to ["+backIdx.getPath()+"]...\n");
         if (backIdx.exists()){
              sbOut.append("<Lucene> Backup directory also exists! Will delete it first...\n");
              if (!(Utils.deleteDirRecursive(backIdx))){
                   sbOut.append("<Lucene> Failed deleting backup directory! Aborting...\n");
                   retVal = false;
         if (!(currIdx.renameTo(backIdx)))
              sbOut.append("<Lucene> Problem backing up existing index! Aborting...\n");
              retVal = false;
    return retVal;
         * Class has a main so it can be run from the batch file
         * or a command line
         * @param args
         public static void main(String[] args) {
              if (args.length == 0) {
                   System.err.println("Usage: BuildPageIndex <path_to_cmt.xml_file>");
                   System.exit(0);
              BuildPageIndex bpi = new BuildPageIndex(args[0]);
              bpi.buildIndex();
              System.out.println(bpi.getOutput());
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    JSP snippet
    +++++++++++++++++++++++++++++++++++++++++++++
    <%
         BuildPageIndex bpi = new BuildPageIndex();
         bpi.buildIndex();
         String results = bpi.getOutput();
    %>
         <%=results%>

    Hi Zambak,
    It looks like you might need to give your JSP permission to delete the file that it is complaining about. One way to do this would be to add a FilePermission to the server's security policy file (located at <PE install dir>/domains/domain1/config/server.policy. Adding the following would grant file delete permissions to all files for all codebases...
    grant{
    permission java.io.FilePermission "<<ALL FILES>>", "delete";
    After modifying the policy file, you will need to restart the domain by executing the following...
    <PE install dir>/bin/asadmin stop-domain
    <PE install dir>/bin/asadmin start-domain
    It is also possible to further restrict permissions to certain codebases or further open the set of file permissions (adding write, read, delete for example). For more information on how to do this, please refer to the J2SE security documentation loacted at http://java.sun.com/j2se/1.4.2/docs/guide/security/permissions.html .

  • Strange audio issue when running render queue via script.

    The issue I'm having with AE is odd, and I'm hoping someone may be able to shed light on the matter.  I have a very simple composition that, when I render out using the GUI, everything works as expected.  The video renders fine, the audio renders fine, etc.  However, when I invoke a script that runs the .aep file, sets the render queue for the composition in question, and then renders it, only the video comes through, but no audio.  There is nothing in my script prior to the setting up of the render queue that alters any audio layers (i.e. no code shutting off audio, etc.)  Has anybody ever encountered this?  The audio file is a .wav in 44.1KHz, 16bit, stereo, and will try other formats to see if the problem might with the file itself?  Although, I don't see how that would be the case if it is rendering just fine via the GUI.
    Any help you can offer for troubleshooting would be great!  Thanks for your help and time!

    Thanks for your suggestion.  It wasn't the output module.  I created a custom template for it and ensured the audio was checked.  It was an odd fix.  I deleted the audio layer, then dragged it back to the timline.  Then, it worked.  Cost me like two hours of work for that, and I should have checked it earlier.  But I still don't know why the original wasn't working.

  • CR 2008 - Chart legend label issues when run on CR Server 2008

    Hello all,
    I have built a report in CR 2008 SP4. When I run the report locally everything is okay. In this report I have a chart which performs a count on {Command.Incident_ID}. The label for this count comes out as "Count of Incident_ID" in the legend. I then right click on this legend entry, edit the axis label and change it to something more appropriate.
    When I upload this report to CR Server 2008 v0 or CR Server 2008 V1 SP3 the report does not function properly. The chart label gets produced as Count of Command.Incident_ID instead of the label I specified. I believe this is due to the CRS attaching the Command. header to the Incident_ID. It no longer matches up with what I specified during design.
    Now I've gone back to older reports that I built and I can see that I did not have this issue before. I've recently upgraded to CR SP4 and Windows 7. I really feel like this is probably some option/setting on my designer side that I need to mirror on the server, however I have been unable to locate any information. Any help you can provide would be greatly appreciated!
    Thank you!

    After some testing the issue seems to be related to having SP4 installed.
    When I reverted back to SP0, or SP3 it worked fine, but under SP4 it seems to drop the table reference and thus not use the correct alias for the legend names.

  • Security.policy issue when running javarmi server.

    hi guys,
    i am trying to run a sample javarmi applications.
    the code as follows:
    file name : myRMIInterface.java
    //package my_rmi_classes;
    public interface myRMIInterface extends java.rmi.Remote {
    public java.util.Date getDate() throws java.rmi.RemoteException;
    //implementation program
    // package my_rmi_classes;
    import java.rmi.*;
    import java.rmi.server.UnicastRemoteObject;
    public class myRMIImpl extends UnicastRemoteObject implements myRMIInterface
    public myRMIImpl(String name) throws RemoteException
         super();
         try
              Naming.rebind(name,this);
         catch(Exception e)
              System.out.println("Exception occured:"+e);
    public java.util.Date getDate()
         return new java.util.Date();
    application : myRMIServer.java
    //package my_rmi_classes;
    import java.rmi.*;
    import java.rmi.server.UnicastRemoteObject;
    public class myRMIServer {
    * @param args the command line arguments
    public static void main(String[] argv)
    // TODO code application logic here
    System.setSecurityManager(new RMISecurityManager());
    try
         myRMIImpl implementation = new myRMIImpl("myRMIimplInstance");
    catch(Exception e)
         System.out.println("satish exception occured :" +e);
    steps which i follow to run this applicatons:
    step 1: complie all the applications.
    step 2: create myRMIImpl_Stub.class file by running RMIC
    step 3: start rmiregistry
    step 4: i download a policy file from sun website and i place that file in my source code folder.
    i use 3 types of policy files which are as follows,,,
    type 1:
    grant{
    permission java.net.SocketPermission "localhost:1099", "connect, resolve";
    permission java.net.SocketPermission "localhost:1024-", "connect, resolve";
    permission java.net.SocketPermission "localhost:1024-", "accept, resolve";
    type 2:
    grant codeBase "C:/week_project/rmi server files/" {
    permission java.security.AllPermission;
    note: all my java files(source code) files are in the folder (rmi server files). i copy all policy files in the same folder.
    type 3:
    grant {
         // Allow everything for now
         permission java.security.AllPermission;
    step 5:
    a:) C:\week_project\rmi server files\java -Djava.security.policy=(policy name).policy myRMIServer
    b:) C:\week_project\rmi server files\java -Djava.security.policy=C:\........\(policy name).policy myRMIServer
    when i work with type-1 policy file i got error message as follows
    ERROR:
    Exception occured:java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
    type -2 policy file
    ERROR
    java.security.policy: error adding Entry:
    java.net.MalformedURLException.AccessControlException : access denied(java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
    type-3 policy file
    ERROR
    exception occured; java.rmi.connectexception : connection refused to host :127.0.0.1; nested exception is :
    java.net.connectexception : connection refused : connect
    i am trying to solve this from last week but i can't
    so, please help me
    with regards
    satish

    what ever it is
    hi guys,
    i am trying to run a sample javarmi applications.
    the code as follows:
    file name : myRMIInterface.java
    //package my_rmi_classes;
    public interface myRMIInterface extends java.rmi.Remote {
    public java.util.Date getDate() throws java.rmi.RemoteException;
    }//implementation program
    // package my_rmi_classes;
    import java.rmi.*;
    import java.rmi.server.UnicastRemoteObject;
    public class myRMIImpl extends UnicastRemoteObject implements myRMIInterface
    public myRMIImpl(String name) throws RemoteException
    super();
    try
    Naming.rebind(name,this);
    catch(Exception e)
    System.out.println("Exception occured:"+e);
    public java.util.Date getDate()
    return new java.util.Date();
    }application : myRMIServer.java
    //package my_rmi_classes;
    import java.rmi.*;
    import java.rmi.server.UnicastRemoteObject;
    public class myRMIServer {
    * @param args the command line arguments
    public static void main(String[] argv)
    // TODO code application logic here
    System.setSecurityManager(new RMISecurityManager());
    try
    myRMIImpl implementation = new myRMIImpl("myRMIimplInstance");
    catch(Exception e)
    System.out.println("satish exception occured :" +e);
    }steps which i follow to run this applicatons:
    step 1: complie all the applications.
    step 2: create myRMIImpl_Stub.class file by running RMIC
    step 3: start rmiregistry
    step 4: i download a policy file from sun website and i place that file in my source code folder.
    i use 3 types of policy files which are as follows,,,
    type 1:
    grant{
    permission java.net.SocketPermission "localhost:1099", "connect, resolve";
    permission java.net.SocketPermission "localhost:1024-", "connect, resolve";
    permission java.net.SocketPermission "localhost:1024-", "accept, resolve";
    type 2:
    grant codeBase "C:/week_project/rmi server files/" {
    permission java.security.AllPermission;
    note: all my java files(source code) files are in the folder (rmi server files). i copy all policy files in the same folder.
    type 3:
    grant {
    // Allow everything for now
    permission java.security.AllPermission;
    step 5:
    a:) C:\week_project\rmi server files\java -Djava.security.policy=(policy name).policy myRMIServer
    b:) C:\week_project\rmi server files\java -Djava.security.policy=C:\........\(policy name).policy myRMIServer
    when i work with type-1 policy file i got error message as follows
    ERROR:
    Exception occured:java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
    type -2 policy file
    ERROR
    java.security.policy: error adding Entry:
    java.net.MalformedURLException.AccessControlException : access denied(java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
    type-3 policy file
    ERROR
    exception occured; java.rmi.connectexception : connection refused to host :127.0.0.1; nested exception is :
    java.net.connectexception : connection refused : connect
    i am trying to solve this from last week but i can't
    so, please help me
    with regards
    satish

  • Issues when running multiple apps on same JRE?

    I've created an application that launches other Java applications, all running on the same JRE. I've noticed that this results in significant memory savings (60% or more). Performance doesn't seem to be measurably affected, but I've never run more than 4 applications at the same time on the same JRE.
    Does anyone know of any performance issues in situations like this? JRE limitations? Any information would be appreciated.

    "It's just not obvious from the 1.3 API docs that the classLoader is what's responsible for associating a set of classes with a set of threads."
    No, that's not what I was implying. The default classloader caches the definition of previously loaded classes (ie, bytecode, static variables). By default, there is no way to unload a class. Static variables will also retain their values -- which could confuse an application that is run multiple times.
    This is the suggested implementation defined in the JVM spec:
    http://java.sun.com/docs/books/vmspec/html/ConstantPool.doc.html
    Basically, if a class has already been loaded, it returns it. You can write your own custom classload to prevent this (as the link you found suggests) or use multiple classloaders.
    Imagine what happens when you write an application and then recompile a class WHILE running your application. Will the next instance of that class be updated? The answer depends on whether your classloader will reload the class from disk, or use a cached instance in memory (as the default one does).

  • Application Server issues when running in EC2

    I have deployed a war file to the app server on an Ubuntu machine running in Amazon's EC2. The application starts up, server logs are redirected to a custom log file, and everything seems to run fine. However, shortly after starting up an exception shows up in the log file that appears to be significant, and logging dies even though the site continues to run. The exception in the log file is below. I have other Ubuntu systems on which this does not happen. Any thoughts on what the problem might be?
    Dec 20, 2007 6:15:35 PM com.sun.org.apache.commons.modeler.Registry registerComponent
    SEVERE: Null component com.sun.appserv:type=JspMonitor,name=jsp,WebModule=//server/__wstx-services,J2EEApplication=null,J2EEServer=server
    Dec 20, 2007 6:15:35 PM com.sun.org.apache.commons.modeler.Registry registerComponent
    SEVERE: Null component com.sun.appserv:type=JspMonitor,name=jsp,WebModule=//server/__JWSappclients,J2EEApplication=__JWSappclients,J2EEServer=server
    Dec 20, 2007 6:15:35 PM com.sun.enterprise.web.VirtualServer startChildren
    SEVERE: WEB0207: Error starting web context StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[__wstx-services] on virtual server server
    java.lang.NullPointerException
    at com.sun.enterprise.web.WebModuleListener.getJasperLogLevel(WebModuleListener.java:440)
    at com.sun.enterprise.web.WebModuleListener.configureJspParameters(WebModuleListener.java:413)
    at com.sun.enterprise.web.WebModuleListener.lifecycleEvent(WebModuleListener.java:170)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:143)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:5086)
    at com.sun.enterprise.web.WebModule.start(WebModule.java:327)
    at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
    at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:296)
    at com.sun.appserv.management.util.misc.RunnableBase._submit(RunnableBase.java:168)
    at com.sun.appserv.management.util.misc.RunnableBase.submit(RunnableBase.java:184)
    at com.sun.enterprise.web.VirtualServer.startChildren(VirtualServer.java:1672)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1231)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:955)
    at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
    at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:296)
    at com.sun.appserv.management.util.misc.RunnableBase._submit(RunnableBase.java:168)
    at com.sun.appserv.management.util.misc.RunnableBase.submit(RunnableBase.java:184)
    at com.sun.enterprise.web.EmbeddedWebContainer$WebEngine.startChildren(EmbeddedWebContainer.java:453)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1231)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:533)
    at org.apache.catalina.startup.Embedded.start(Embedded.java:936)
    at com.sun.enterprise.web.WebContainer.start(WebContainer.java:873)
    at com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:790)
    at com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContainerLifecycle.java:84)
    at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:442)
    at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:120)
    at com.sun.enterprise.server.PEMain.run(PEMain.java:411)
    at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
    Dec 20, 2007 6:15:35 PM com.sun.enterprise.web.VirtualServer startChildren
    SEVERE: WEB0207: Error starting web context StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[__JWSappclients] on virtual server server
    java.lang.NullPointerException
    at com.sun.enterprise.web.WebModuleListener.getJasperLogLevel(WebModuleListener.java:440)
    at com.sun.enterprise.web.WebModuleListener.configureJspParameters(WebModuleListener.java:413)
    at com.sun.enterprise.web.WebModuleListener.lifecycleEvent(WebModuleListener.java:170)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:143)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:5086)
    at com.sun.enterprise.web.WebModule.start(WebModule.java:327)
    at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
    at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:296)
    at com.sun.appserv.management.util.misc.RunnableBase._submit(RunnableBase.java:168)
    at com.sun.appserv.management.util.misc.RunnableBase.submit(RunnableBase.java:184)
    at com.sun.enterprise.web.VirtualServer.startChildren(VirtualServer.java:1672)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1231)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:955)
    at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
    at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:296)
    at com.sun.appserv.management.util.misc.RunnableBase._submit(RunnableBase.java:168)
    at com.sun.appserv.management.util.misc.RunnableBase.submit(RunnableBase.java:184)
    at com.sun.enterprise.web.EmbeddedWebContainer$WebEngine.startChildren(EmbeddedWebContainer.java:453)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1231)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:533)
    at org.apache.catalina.startup.Embedded.start(Embedded.java:936)
    at com.sun.enterprise.web.WebContainer.start(WebContainer.java:873)
    at com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:790)
    at com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContainerLifecycle.java:84)
    at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:442)
    at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:120)
    at com.sun.enterprise.server.PEMain.run(PEMain.java:411)
    at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
    Dec 20, 2007 6:15:35 PM com.sun.enterprise.management.selfmanagement.SelfManagementService onReady
    INFO: SMGT0007: Self Management Rules service is enabled
    Dec 20, 2007 6:15:35 PM com.sun.enterprise.server.PEMain main
    INFO: Application server startup complete.

    Hi Ilya,
    You know that this forum is to discuss the VS Debugger tool, not the real development forum, so to really repro this issue and make sure that whether it is the VS issue or the project issue or others. Could you share us a simple sample with One drive? I
    will debug it with the same Environment as yours.
    If you have other VS machine, please also debug it again. But if it still has this issue, I doubt that it would be related the specific project.
    >>Now, the weird thing is when I run the same Windows Forms app directly from the build folder without Visual Studio or in Visual Studio without Debugger (Ctrl+F5), it works fine!
    Please clean and rebuild your project, and then re-click the .exe in build output folder, does it still work normally?
    If you add breakpoints in your code, and then debug it, after the breakpoint is hit, you could use the option "Step Into(F11)" to debug the code one step by one step, maybe it is related to the specific line code. 
    If you get any information, please feel free to let me know.
    If still no help, please also attach your Visual Studio project, you can upload it to the one drive, and then share the download link in your post. Please also attach a screenshot image in your post.
    If there's any concern, please feel free to let me know.
    Sincerely,
    Jack
    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.

Maybe you are looking for