Java clients and IUserPrincipal class not working for authentication

I'm developing a Java client which talks to EJBs on the iAS server via
iiop.
I've already developed EJBs, and they work fine. I'm trying to do user
authentication per the examples in the Rich Client section.
Here are the steps I've taken:
1. I've created a class (achp.security.AchpPrincipal) which implements
com.netscape.ejb.client.IUserPrincipal.
2. I've added the class to the initial context via the following line:
env.put("com.netscape.ejb.client.PrincipalClass",
"achp.security.AchpPrincipal");
3. I do a home lookup with the above initial context when the
application starts, create a bean, and then invoke a method on the bean.
When I do the home lookup, according to the manual, my AchpPrincipal
class should be instantiated (which brings up a login window which then
records username and password for future use).
This never happens. The AchpPrincipal class is never instantiated,
although the home lookup occurs successfully and the bean method call is
also performed successfully.
I'm running server on my Win2K desktop, with SP3. And, of course, I've
properly installed the CXS server (as indicated by the fact that I can
communicate with the EJBs at all though the Java client).
Any help would be appreciated.
Thanks,
Douglas Bullard
Multnomah County ISD

I'm developing a Java client which talks to EJBs on the iAS server via
iiop.
I've already developed EJBs, and they work fine. I'm trying to do user
authentication per the examples in the Rich Client section.
Here are the steps I've taken:
1. I've created a class (achp.security.AchpPrincipal) which implements
com.netscape.ejb.client.IUserPrincipal.
2. I've added the class to the initial context via the following line:
env.put("com.netscape.ejb.client.PrincipalClass",
"achp.security.AchpPrincipal");
3. I do a home lookup with the above initial context when the
application starts, create a bean, and then invoke a method on the bean.
When I do the home lookup, according to the manual, my AchpPrincipal
class should be instantiated (which brings up a login window which then
records username and password for future use).
This never happens. The AchpPrincipal class is never instantiated,
although the home lookup occurs successfully and the bean method call is
also performed successfully.
I'm running server on my Win2K desktop, with SP3. And, of course, I've
properly installed the CXS server (as indicated by the fact that I can
communicate with the EJBs at all though the Java client).
Any help would be appreciated.
Thanks,
Douglas Bullard
Multnomah County ISD

Similar Messages

  • Java Applets and multiple classes not working.

    I have tested my JApplet class alone to view its layout and to make sure it actually works. But once I add in my other classes, compile, jar, and test I get the error:
    java.lang.NoClassDefFoundError: AlakApp (wrong name: alak/codeFiles/AlakApp)
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
    4)
            at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
            at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
            at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:155)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:127)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
            at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:618)
            at sun.applet.AppletPanel.createApplet(AppletPanel.java:779)
            at sun.applet.AppletPanel.runLoader(AppletPanel.java:708)
            at sun.applet.AppletPanel.run(AppletPanel.java:362)
            at java.lang.Thread.run(Thread.java:619)My Directory contains these and only these:
    F:\alak\codeFiles:
      AlakApp.java
      Game.java
      Board.java
      Space.java
      index.html
      AlakGame.jarAll my classes are in the package alak.codeFiles.
    My .html file contains this:
    <HTML>
    <HEAD>
      <TITLE>ALAK</TITLE>
    </HEAD>
    <BODY>
      <applet code="AlakApp.class" archive="AlakGame.jar" width=400 height=200>
      Please use a Java compatible browser to see this.
      </applet>
      <br>
    </BODY>
    </HTML>These are they commands I am issuing:
    F:\alak\codeFiles>javac *.java
    F:\alak\codeFiles>jar -cvf AlakGame.jar *.class
    F:\alak\codeFiles>appletviewer index.htmlI've been trying many different things to narrow down what is going on. If you need to see my code let me know, but I've tested everything with a text-based user interface and they work.
    So does anyone know the cause of this error?

    Ok i rared the test and uploaded to rapidshare.. here is the link:
    http://rapidshare.com/files/76860865/test.rar.html
    But here is the code. They are in the directory /test/files/
    ADigit.java
    package test.files;
    public class ADigit
      private int value;
      public ADigit( int val )
       this.value = val;
      public String toString()
       return "" + this.value;
    }ADigitApp.java
    package test.files;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class ADigitApp extends JApplet implements ActionListener
      private ADigit numeroUno;
      private int currentNum;
      private Container container;
      private javax.swing.JLabel jLabel;
      private javax.swing.JTextArea jTextArea;
      private javax.swing.JButton jButton;
      public void init()
        currentNum = 1;
        numeroUno = new ADigit( currentNum );
         container = getContentPane();
        container.setLayout( new BorderLayout() );
         jLabel = new javax.swing.JLabel();
         jTextArea = new javax.swing.JTextArea();
         jLabel.setText( "The Number is: " );
         jTextArea.setText( numeroUno.toString() );
         jButton = new javax.swing.JButton();
         jButton.setText( "New Number" );
        jButton.addActionListener( this );
         container.add( jLabel, BorderLayout.WEST );
         container.add( jTextArea, BorderLayout.CENTER );
         container.add( jButton, BorderLayout.EAST );
        setSize( 200, 200 );
      public void actionPerformed( ActionEvent e )
        this.currentNum++;
         numeroUno = new ADigit( this.currentNum );
         jTextArea.setText( numeroUno.toString() );
    }index.html
    <HTML>
    <HEAD>
      <TITLE>NUMBERSSSS</TITLE>
    </HEAD>
    <BODY>
      <applet code="ADigitApp.class" archive="NumberFun.jar" width=200 height=200>
      Please use a Java compatible browser to see this.
      </applet>
      <br>
    </BODY>
    </HTML>Commands:
    /test/files>javac *.java
    /test/files>jar -cvf NumberFun.jar *.class
    /test/files>appletviewer index.htmlThis example produces the same style of error.

  • Apple Mail Search and Spotlight do not work for locating email messages after upgrading to Lion 10.8.3.

    Apple Mail Search and Spotlight do not work for locating email messages after upgrading to Lion 10.8.3 on my 27" iMac.
    When searching in Apple Mail, sometimes a get a few results (with many missing), and sometimes no results at all.
    I had absolutely no problems before with Snow Loepard.
    I have reindexed mail and my startup drive. I have followed discussions regarding this matter and tried everything - a waste of time.
    This is VERY serious for me - I have many thousands of messages that I archive and need to reference for work and clients, and now I cannot find them.

    I found out that I needed a $100 mini displayport to dual-link dvi adapter to make my $30" cinema display work with my macbook pro
    http://store.apple.com/us/product/MB571Z/A/mini-displayport-to-dual-link-dvi-ada pter?fnode=51
    When I found out that solved the problem, I took it back because that was too expensive for a stupid adapter, and it still didn't work perfectly.

  • TS1814 I have windows vista and this did not work for my ipod it still will not update PLEASE HELP!

    I have windows vista and this did not work for my ipod it still will not update PLEASE HELP!
    iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server

    Try this:
    Close your iTunes,
    Go to command Prompt -
    (Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
    (Win XP SP2 n above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
    In the "Command Prompt" screen, type in
    netsh winsock reset
    Hit "ENTER" key
    Restart your computer.
    If you do get a prompt after restart windows to remap LSP, just click NO.
    Now launch your iTunes and see if it is working now.
    If you are still having these type of problems after trying the winsock reset, refer to this article to identify which software in your system is inserting LSP:
    iTunes 10.5 for Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/TS4123?viewlocale=en_US

  • Timing of text box will not appear.  My text boxes stop working on slide 5 and they will not work for the remainder of the slide show.

    Timing of text box not working.  I get the first few slides to work and then on slide 5 my text boxes will not appear.  And they do not appear for the rest of the slide show.   Help anyone.

    Text caption is timed to appear at 2 seconds, but you have a click box at 0sec. Its duration is very short, which means that I cannot see if there is a pause. I suspect this click box is pausing at the end of its timeline, which is at 0.3secs and the Text caption at 2 seconds will not appear before the user has clicked on that click box. The timeline is the core of Captivate, learn at least how to read it.
    Tiny Timeline Tidbits - Captivate blog
    If you want the green text caption 'Click on...' to appear right at the beginning of the slide, you have to check its Timing accordion: set it to start at 0 secs instead of 2 secs and extend its duration to the 'rest of the slide'.
    I don't know what is in the Group. That group and the HIghlight box will disappear at 3 seconds. Or maybe the action that is triggered by the Clickbox is different from 'Continue'?
    Lilybiri

  • Red record button and play arrow not working for videos. Any way to make work again?

    Red record button and play arrow quit working. Any way to fix?

    Try this and see if it works for you. Close the Camera App in the recents tray and reboot the iPad.
    Tap the home button once, then double tap the home button and the recents tray will appear with all of your recent apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the camera app.  Tap the home button again.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Why does clicking the reload icon and F5 key not work for certain pages. Thanks in advance. Any help is appreciated. :)

    Cliffs:
    -Open new tabs from original page.
    -Clicking reload icon or hitting F5 will not work on new tabs, but works on original page.
    -Can "right click" reload tab or all tabs, but reload icon and F5 won't work.
    -Been using FF3.6 for months, never a problem. Just started happening 2 days ago. Updated to FF4, but problem still remains.

    bump.

  • Quicktime Player fast-forward and reverse buttons not working for audio

    I have Quicktime Player 7.7.3 for Windows and the fast forward/reverse buttons will not work while playing audio files. I've tried it with mp3 and m4a, neither will work.
    The go to end/go to begining buttons are working fine.
    The ff/reverse button don't work very well for video files, they only will move a few frames at a time, but they will not work at all on strictly audio files.
    I've looked at the preferences, and the software is up to date.
    the only way to ff/reverse is to go to Window > Show A/V Controls and use the Jog Shuttle, but that is a clumsy workaround. I'd rather have the playback buttons work properly in the first place.
    Is there something else I should be doing (aside from purchasing QT Pro, that is)?

    ...stupid decision to replace the iTunes feedback...
    Not replaced, just moved. Now grouped with all other Mac OS X feedback:
    http://www.apple.com/macosx/feedback/
    It's not a bug. If it was we would all have this problem. My Macs don't.
    Shut iTunes down.
    Go to ~/your user name/Library/Preferences and place the file "com.apple.iTunes.plist" in the trash.
    Try iTunes again. If your problem is solved, empty the trash.

  • Java NetBeans and Firefox will not work together

    I'm just beginnig to learn Java an have installed jdk 1.6.0 and NetBeans IDE 5.5.
    In NetBeans I have the possibility to chose Firefox as a tool to read docs (over the internet).
    But when I try to set it up with the following parameters:
    /usr/bin/mozilla-firefox -remote "openURL({URL})"I get the following error:
    Cannot execute /usr/bin/mozilla-firefox.
    Check that valid external browser property is set.
    From Tools menu choose Options.
    Click Advance Options button, expand External Tool and Settings node,
    then expand Web Browsers and choose valid browser.The only thing I can imagine is there will be something wrong with the command but I can't figure out whats wrong.
    The Firefox shell-script is located an named as above (/usr/bin/mozilla-firefox)
    and when I click at it in konqueror i start nicely.
    So ...??

    Hello everyone... unfortunately i have a similar issue. I have a fresh load of openSuSE 10.2 on a Dell Laptop. It is (intended to be) my main Java/AJAX development box, and I cannot get NetBeans to launch Firefox. A detailed account of my symptoms is below:
    OS Config:
    openSuSE 10.2
    Firefox 2.0 (openSuSE pre-packaged version)
    IDE Config:
    configuration:
    A) Browser set to Firefox (/usr/bin/firefox), arguments: -remote "openURL({URL})"
    B) No browser windows open
    1. Try to launch project (or click on a link in the Welcome page to go to NetBeans.org) and nothing happens. Status bar says "Running command /usr/bin/firefox" but nothing happens.
    2. Run command /usr/bin/firefox -remote "openURL(http://www.google.com)" from a terminal get message "no running window found"
    configuration:
    A) Browser set to Firefox (/usr/bin/firefox), arguments: -remote "openURL({URL})"
    B) At least 1 browser window open
    1. Try to launch project (or click on a link in the Welcome page to go to NetBeans.org) and nothing happens. Status bar says "Running command /usr/bin/firefox" but nothing happens.
    2. Run command /usr/bin/firefox -remote "openURL(http://www.google.com)" from a terminal and new browser opens with google.com
    configuration
    A) Browser set to Firefox (usr/lib/firefox), arguments: URLB) No browser window open.
    1. Launch project or click on link on welcome screen and Firefox launches with correct URL. However, upon closing firefox, I get the error from Netbeans stating that it could not run command /usr/bin/firefox (although everything ran fine)
    2. run command /usr/bin/firefox http://www.google.com from the terminal and it launches firefox to google, but blocks (keeps focus away from the terminal window) until you close firefox and you are given back control of the terminal.
    configuration
    A) Browser set to Konqueror, arguments : {URL}
    B) No browser window open
    1. Launch a project or click on any of the links, and everything runs like a champ, no fuss from NetBeans.
    This didn't happen on my SuSE Linux Enterprise Desktop 10.0 install a few weeks back. That, however, came with Firefox 1.5.x and I dont recall if I updated it to 2.0. At any rate, it seems to be something with the way the -remote command is executed. Does anyone have any more ideas? I want to use this machine for my Java/AJAX and really don't want to have to default to Konqueror.
    Thanks in advance!
    ~v
    Message was edited by:
    vyrt1go

  • Currency format and Right Align not working for messagetext in HGrid

    Hi
    We are dynamically enabling MessageTextinput inside HGrid region, it is Number type and when we set readonly to True it become left align, and currency format also not working, I tried the below various options but nothing is working.
    Option : 1
    OAMessageTextInputBean attribute = (OAMessageTextInputBean)webBean.findChildRecursive("Attribute"+i);
    attribute.setCurrencyCode("USD");
    Option :2
    OAWebBean amountDueBean2 = webBean.findChildRecursive("Attribute"+i);
    oracle.cabo.ui.validate.Formatter formatter2 = new OADecimalValidater("#,##0.00;(#,##0.00)","#,##0.00;(#,##0.00)");
    amountDueBean2.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, formatter2);
    etc options we tried
    amountDueBean2.setAttributeValue(CURRENCY_CODE,formatter2);
    amountDueBean2.setAttributeValue(OAWebBeanConstants.CURRENCY_CODE,"USD" );
    Please help on this issue.
    We are using Jdeveloper 10.1.3.3.0.3
    TiA
    Babu

    Anatoli,
    Hello!
    I don't know if my situation is the same as yours, but after a lot of head-scratching, forum searching and template rebuilding, I finally figured out my problem.
    I had one column that no matter what I did kept appearing in Excel as text. I'd format it to Number in Excel and nothing. When trying to sum the column, Excel would not recognize any of the values as numbers. I even did the reformatting on the XML Word template to number, and the currency format that Adam mentions. Still no go. The $ and ',' appeared, but column still formatted as string.
    I just finally noticed Adam's mention of the 2 extra spaces at the end of the numbers and sure enough mine was doing the same thing. Take out the 2 spaces and voila! Number!
    Every time I redid my template in Word (07 and 03), I used the wizard. (Add-ins>Insert>Table>Wizard) walked through the steps, not really changing anything. Then I would preview and the spaces would be there. The column that I was having problems with was the last column of the table, which would get the text 'end G_ASSIGNED_CC' inserted in after the field name - separated by 2 spaces. Once I took out these two spaces, so the column now shows 'COSTend G_ASSIGNED_CC', it worked fine in Excel - all numbers.
    Hope that helps someone out there as I was having a heck of a time finding anything (solutions anyway) on this.
    Thanks,
    Janel

  • Credit check and Credit hold not working for 2 specific clients

    Hello dear Oracle Support,
    I would like to ask for your help in the following subject:
    The Credit deppartment assign a Credit Hold and a Credit Check for 2 specific customers, but for some reason, these check boxes are not getting respected by the system, since the sales department are not getting any message or warning when creating an order. I tryed to look at these 2 check boxes at a table but I am affraid that I cant find the field, I am using the RA_CUSTOMERS table, but perhaps it is not the correct one, so I was wondering if you could give me any advice.
    Thanks

    Hi
    1. IMG -- SD -- Basic funtions -- credit management/risk mgmt -- credit mgmt -- Define credit groups.
    Here confirm that you have
    01 - credit group sales order
    02 - credit group delivery
    03 - credit group for GI
    2.  IMG -- SD -- Basic funtions -- credit management/risk mgmt -- credit mgmt -- Assign sales document type and delivery document type
    Here you have to assign
    01 - to the sales order(Ex OR) types
    02 - to delivery document type (Ex LF) <b>Dlv credit group</b>
    03 - to delivery document type (Ex LF) <b>GI credit group</b>
    <u><b>For delivery document type we have to assign to credit group one for Delivry another for PGI</b></u>
    3. IMG -- SD -- Basic funtions -- credit management/risk mgmt -- credit mgmt -- Define automatic credit control (OVA8)
    Maintain new combination for Your credit control area/risk categry of the customer/03 (GI credt group)
    Example : 1000/001/03
    maintain static/Dynamic credit check for this combination.
    Note : give warning at order level (credit grp 01) and delivery level (credit grp 02)... and give error at PGI level (credit grp 03).....
    So that you can see difference easyly
    4. FD32 - Maintain credit limit and Risk category(001) for your customer
    5. order - delivery - PGI
    Try this
    Hope your problem will be solved
    Let me know if you have any problem
    Reward points if helpfull
    Muthupandiyan

  • Monthly and Yearly backups not working for Protection Group?

    Hi
    We have a Protection Group with 160 members currently attached to it. The group has the following customized Recovery Points:-
    - 1 recovery point every 1 day for the last 2 weeks, 1 recovery point every 1 month for the last 60 months and 1 recovery point every year for the last 5 years.
    The schedule is as follows:-
    - Every Day at 01:00, Every Month on First Day at 01:00 and Every 12 Months on 01 January at 01:00.
    The daily tape backups are working fine without issue but neither the Monthly or Yearly backups are being attempted. We have checked the monthly backups for this issue for the last few months and are unable to see any evidence of the Monthly schedule even
    running? This means that we are having to manually label the Daily tapes once a month as Monthly tapes but they will then stay on the Reports for the next 5 years as DPM will constantly request these tapes back.
    Are you able to help with this matter?
    Not that we really want to do this but if we removed the group completely and re-create it would this cause problems with our restore points?

    Hi,
    This is a known issue that can occur in all current versions of
    DPM including DPM 2012, to correct the condition, you simply need to perform this step. Any time before the next scheduled (monthly or longer) backup, manually update
    the long term backup schedule by hitting the MODIFY button.  The code that runs when modifying the backup schedule redoes the bacup schedules and it fixes the scheduling issue. 
    Below is a DPM Power-shell script that will show you the scheduled backups for all recovery goals for all protection groups.  You can see the last time each recovery goal ran, and the NEXT run time, so you can monitor
    the goals and re-fix them if necessary.
    NOTE: It takes about 20-30 minutes before the fixed next run time schedule will be populated after modify the protection group and updating the schedule.
    # This script will list all currently scheduled backup to tape jobs #
    # It will list scheduled, last run and next run dates #
    # Note: The script takes in consideration that the DPM Database was installed locally on its #
    # Default instance. If SQL is installed on a different location/instance, edit the line #
    # that starts with $instance = '.\msdpm2010 #
    # Author : Wilson Souza #
    # Date Created : 1/13/2012 #
    # Last modified : 1/17/2012 #
    # Version : 1.0 #
    # This version of the script was only tested on DPM 2010 #
    param([string] $verbose)
    add-pssnapin sqlservercmdletsnapin100
    Add-PSSnapin -Name Microsoft.DataProtectionManager.PowerShell
    $ConfirmPreference = 'None'
    cls
    $instance = '.\msdpm2010' # <---- If DPM Database is on a different location, edit this line accordinly
    $query = "use DPMDB
    go
    CREATE FUNCTION label (@GUID varchar(36), @kindred varchar(4), @vault varchar(8))
    returns varchar (1024)
    as
    Begin
    declare @result varchar (1024)
    select @result = vaUltlabel from tbl_mm_vaultlabel where mediapoolid = @GUID and generation =
    case @kindred
    when 'Fath' Then '2'
    when 'Gran' then '1'
    when 'grea' Then '0'
    end and
    vault =
    case @vault
    when 'Offsite1' then '3'
    when 'Offsite2' then '4'
    when 'Offsite3' then '5'
    when 'Offsite4' then '6'
    when 'Offsite5' then '7'
    when 'Offsite6' then '8'
    when 'Offsite7' then '9'
    else
    '1'
    end
    RETURN @result
    END
    go
    use DPMDB
    select ScheduleId as name
    ,def.JobDefinitionId as JD
    ,FriendlyName as PG
    ,SUBSTRING (CONVERT(VARCHAR(10),active_start_date),5,2) + '-' + SUBSTRING (CONVERT(VARCHAR(10),active_start_date),7,2) + '-' + SUBSTRING (CONVERT(VARCHAR(10),active_start_date),1,4) as SD
    ,jobs.date_created as SCD
    ,SUBSTRING (CONVERT(VARCHAR(10),last_run_date),5,2) + '-' + SUBSTRING (CONVERT(VARCHAR(10),last_run_date),7,2) + '-' + SUBSTRING (CONVERT(VARCHAR(10),last_run_date),1,4) + ' ' +
    SUBSTRING (CONVERT(VARCHAR(6),last_run_time),1,2) + ':' + SUBSTRING (CONVERT(VARCHAR(6),last_run_time),3,2) + ':' + SUBSTRING (CONVERT(VARCHAR(6),last_run_time),5,2) as LRD
    ,SUBSTRING (CONVERT(VARCHAR(10),next_run_date),5,2) + '-' + SUBSTRING (CONVERT(VARCHAR(10),next_run_date),7,2) + '-' + SUBSTRING (CONVERT(VARCHAR(10),next_run_date),1,4) + ' ' +
    SUBSTRING (CONVERT(VARCHAR(6),next_run_time),1,2) + ':' + SUBSTRING (CONVERT(VARCHAR(6),next_run_time),3,2) + ':' + SUBSTRING (CONVERT(VARCHAR(6),next_run_time),5,2) as NRD
    ,dbo.label ((substring(xml,(patindex('%MediaPoolId%',Xml))+13,36)), (substring(xml,(patindex('%generation%',Xml))+12,4)), (substring(xml,(patindex('%vault%',Xml))+7,8))) as TL
    ,case
    when substring(xml,(patindex('%vault%',Xml))+7,3) = 'off' then 'Long-Term'
    else 'Short-term'
    end as STLT
    ,case
    when substring(xml,(patindex('%generation%',Xml))+12,4) = 'Fath' then 'Recovery Goal 1'
    when substring(xml,(patindex('%generation%',Xml))+12,4) = 'Gran' then 'Recovery Goal 2'
    when substring(xml,(patindex('%generation%',Xml))+12,4) = 'Grea' then 'Recovery Goal 3'
    end as RG
    from tbl_SCH_ScheduleDefinition sch
    ,msdb.dbo.sysjobs jobs
    ,tbl_JM_JobDefinition def
    ,DPMDB.dbo.tbl_IM_ProtectedGroup prot
    ,msdb.dbo.sysjobschedules jobsch
    ,msdb.dbo.sysjobsteps jobsteps
    ,msdb.dbo.sysschedules syssch
    where CAST(sch.ScheduleId as NCHAR (128)) = jobs.name
    and def.JobDefinitionId = sch.JobDefinitionId
    and def.ProtectedGroupId = prot.ProtectedGroupId
    and jobs.job_id = jobsch.job_id
    and jobs.job_id = jobsteps.job_id
    and jobsch.schedule_id = syssch.schedule_id
    and (def.Type = '913afd2d-ed74-47bd-b7ea-d42055e5c2f1' or def.Type = 'B5A3D25C-8EB2-4032-9428-C852DA5CE2C5')
    and sch.IsDeleted = '0' and def.ProtectedGroupId is not null
    order by FriendlyName, next_run_date, next_run_time
    go
    drop function label
    go"
    $result = Invoke-Sqlcmd -ServerInstance $instance -Query $query
    $count = 1
    write-host " The list below shows all scheduled backup to tape jobs (short term and long term)" -f green
    write-host
    if ($verbose.ToLower() -eq '')
    write-host " For optimun output, set PoweShell Width for screen buffer size to at least 200" -f yellow; write-host
    write-host
    write-host " Protection Group name Creation Date [Schedule Creation Date] [Last Run Date / time] [Next Sched Run Date/time] Goal type Recovery Goal # Custom Tape Label"
    write-host " ------------------------------ ------------- ------------------------ ---------------------- -------------------------- ---------- --------------- -----------------"
    foreach ($result1 in $result)
    if ($color -eq 'white') {$color = 'cyan'} else {$color = 'white'}
    write-host ("{0,2}"-f $count) -foreground green -nonewline
    write-host ( " - {0,-30} {1,-13} {2,-24} {3,-24} {4,-27} {5,-10} {6,15} " -f $result1.PG, $result1.SD, $result1.SCD, $result1.LRD, $result1.NRD, $result1.STLT, $result1.RG) -nonewline -f $color
    write-host $result1.TL -f yellow
    $count++
    else
    write-host " For optimun output, set PoweShell Width for screen buffer size to at least 110" -f yellow; write-host
    write-host " Protection Group Term Goal Tape Label"
    write-host " ------------------------------ ---------- --------------- --------------"
    foreach ($result1 in $result)
    if ($color -eq 'white') {$color = 'cyan'} else {$color = 'white'}
    write-host ("{0,2}"-f $count) -foreground green -nonewline
    write-host ( " - {0,-30} {1,-10} {2,15} " -f $result1.PG, $result1.STLT, $result1.RG) -nonewline -f $color
    write-host $result1.TL -f yellow
    $count++
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT] This
    posting is provided "AS IS" with no warranties, and confers no rights.
    I cant seem to get this script to run.. can someone point out what might be missing..
    I've tried creating a shortcut like the following as well:
    Target: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -File "C:\Program Files\Microsoft
    DPM\DPM\bin\dpmcliinitscript.ps1" "C:\Data\scripts\scheduledjobs.ps1"
    Start in: "C:\Program Files\Microsoft DPM\DPM\bin\"
    If i run as admin in just takes you to a command line prompt in PS..
    Any thoughts on what is missing here.. i've modified the ps1 to reflect 2012 in my case.. 2012 R2
    DPM
    Tech, the Universe, Everything: http://tech-stew.com
    Ok, the 1.6 script works.. but only if i run it from the ps1 script file.. by right clicking it and doing the Run with Powershell option (non admin).. my shortcut doesnt work.. same issue.. it just goes to a power shell prompt.  The right click and
    run is non admin mode as well.
    When I run it with the right click it shows no jobs scheduled.. If i look in dpm 2012 r2 i see a yearly tape backup scheduled for today.. the script doesnt show me a way to also get the monthly to appear (i've set the monthly for a day later but it doesnt
    appear in the scheduled tasks for next 7 days).. i was under the impression this script would help force the monthly to appear/run.. but even the yearly that does show in DPM scheduled tasks isnt showing up with the script (maybe admin issue?)
    Tech, the Universe, Everything: http://tech-stew.com

  • Copy and paste feature not working for copying pictures

    when copying a picture, you are not giving any paste feature

    greyed out I would expect... it sounds like copy is not happening. does the Ctrl + C work Or Ctrl X
    And for the next obvious but more painful check. Windows safe mode with networking. instruction for [http://windows.microsoft.com/en-us/windows/start-computer-safe-mode#start-computer-safe-mode=windows-7 Windows 7].

  • Edit and Continue does not work for VB Linked Files

    Hi all,It is not possible to modify source code in the files linked to a VB.NET project when the program is running (debug mode), even though Edit and Continue is enabled, along with full debug info and no optimizations is enabled. Files that are physically present in the project's hierarchy are editable without ptoblems.hierarchy example:FolderRoot\FolderRoot\Folder1: Linked Module1FolderRoot\FolderProject : Internal Forms and Modules(The Linked Module1 is external to main project but added as link at project)I found no solution for this problem.Anyone help me, please
    RegardsFilSky

    The main reason for using a linked file is for sharing. With that said your best option is to create a class project and place that file into the class project and reference this class project in any project that requires the code. One caveat, if the shared
    file is a code module add Public in front of Module, otherwise it will not be visible outside of the class project.
    So for a code module we start with
    Module Module1
    ' Your code is here
    End Module
    Add Public
    Public Module Module1
    ' Your code is here
    End Module
    Nothing needs to be done for classes.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • Adjusting date and time does not work for pictures from one camera.

    I have a set of pictures taken with a Casio EX-Z20 camera in my Aperture 2 library. Because the clock of this camera was off by a few hours I changed them all at once with the option "Adjust date and time...". This worked well and when I sorted the images from different cameras by date in Aperture they were in the order.
    When exporting all the images as JPEG the images in the set from this camera was reset to it's original.
    That was very strange, I decided to try and change the date of these images in the master files as well by checking the checkbox "Also change master files".
    When I change the date from 15-10-2008 18:34:44 to 16-10-2008 10:34:44 (+16 hours) the date of the image changes to 16-10-08 01:36:43 GMT+02.00 (+9 hours, 1 minute, 59 seconds).
    When I change the date from 16-10-08 01:36:43 to 16-10-2008 19:36:43 (+18 hours) it ends up as being 16-10-08 10:38:42 (+9 hours, 1 minute, 59 seconds)
    When I change the date from 16-10-08 10:38:42 to 16-10-08 10:48:42 (+10 minutes) it ends up as 16-10-08 01:50:49 GMT+02:00 (-8 hours, 47 minutes, 7 seconds)
    I have worked around this problem by adding some hours to the desired time and eventually got it about right, but this is still a very annoying problem. Has anyone else encountered it or know of a way to avoid it?

    {quote:title=JohniBook wrote:}
    Has anyone else encountered it or know of a way to avoid it?
    {quote}
    I certainly have had issues regarding wrong dates, time stamping and DNG's in Aperture. There have been posts here from others as well with the same kind of date problems.
    I have reported the bug to Apple and hope for a solution to the issue in a near future.
    Regards
    Paul K

Maybe you are looking for

  • How to set pages in a PDF the same magnificaiton

    I have a PDF that is set to 100% for Magnification. It open in 100% but when I click around the PDF, the magification changes to 182%. Where is the setting that I can set no matter where I click in the PDF, the magification is ALWAYS 100%? Thanks in

  • Black default ipod touch wallpapers?

    When I went to change the background of my ipod and decided to use one of the default wallpapers, they were all plain black, even when I selected them. This ipod has also been restored very recently, so I cant honestly understand why this has occured

  • L8: Backup hang half way during backup process

    Dear all, We tried to backup 180GB of data to a Sun L8 tape drive via StorEdge Backup 7.1 software. Half way during the backup process, the backup hanged and i saw the following error message: [ID 107833 kern.warning] WARNING: /pci@8,600000/pci@1/scs

  • Binding between SP2013 & Office WebApps 2013 failing

    Hi everyone, I'm having a bit of an issue that I'm hoping someone can help me with. I am currently running a SharePoint 2013 Server farm on Server 2012. I'm trying to get my office web apps server up and running and bind it to my SharePoint server. T

  • How do I get the screen to refresh when drawing a line larger than the art board

    How do I get the screen to refresh properly when drawing a line larger than the art board when the screen scrolls? Everything turns white in CS6, CS5 and CS4.