VendingMachine and ItemType

Hi folks! I am modelling a Vending machine. Could anyone please answer the comments inside my code.
Vending machine class uses ItemType class
import java.lang.*;
import java.util.*;
import type.lang.*;
public class ItemType
    public ItemType(String n, int p, int quantity)
       name = n;
       f = p;
       quantin = quantity;
    public void addItems(int m)
       quantin += m;
    public void getItem(int sell) 
       quantin -= sell;
    public String getName()
       String out = name;
       return out;
    public int getPrice()
       int price = f;
       return price;
    public int getQuantity()
         int quan = quantin;
         return quan;
    private String name;
    private int f;
    private int quantin;
    final static int MAX_QUANTITY = 15;
import java.lang.*;
import java.util.*;
import type.lang.*;
public class VendingMachine
    public void VendingMachine()
  // Adds items into VendingMachine collection
    public void addItemType(ItemType item)
    ItemType aitem = item;
    int i = 0;
    i++;
  /*How can I put the key and the object reference to "ItemType" in this bag?
    I can add and remove items from this bag, and the key should automatically arrange
    itself (i.e. if I remove item with key 3 then item with key 4 will become item with
    key 3
   Is it suitable to use TreeMap over here?
    bag.put(i, aitem);
    public int clearMoney()
   // counts the amount of coin deposited
    public void depositCoin(int cents)
    int acents = cents;
    inamount = amount + cents;
   //gets the amount of coins in BankAccount
    public int getBankAccount()
   //gets the total amount deposited and
   //throws exception if not sufficient payment is made
    public int getDepositAmount()
    return inamount;
    if (inamount < bag.get(i).getPrice)
    throw new InsufficientPaymentException("Not enough payment!");
   public void removeItemType(int which)
   bag.remove(which);
   public void reStock(int which, int qty);
   if (bag.containsKey(which))
   bag.get(which).addItems(qty);
   public int selectItem(int which)
   if (bag.containsKey(which) && bag.get(which).getQuantity > 0)
   bag.get(which).getQuantity() - 1; // dispenses the item!!
  } else throw new OutOfStockException("Out of Stock!");
  int in = which;
  return in;
  } //end of selectItem
   public string showItems()
  for (int i = 0; i < bag.size(); i++)
   String in = ""+i;
   String show = (String) bag.get(in)+ (String) (bag.get(in)).getName();
   // Here .getName() method of ItemType class is giving me "cannot resolve symbol"
   //why is it so?
   return show;
   public string toString()
   private ItemType in;
   public int inamount;
   public int selected;
   private TreeMap bag = new TreeMap();
Thanks a lot for any help!!! : )

/*How can I put the key and the object reference to
"ItemType" in this bag?
I can add and remove items from this bag, and the key
should automatically arrange
itself (i.e. if I remove item with key 3 then item
with key 4 will become item with
key 3
Is it suitable to use TreeMap over here?A Map is not appropriate for this. Look at Lists (stacks) instead. Now, a Map of Stacks isn't such a bad plan...
String show = (String) bag.get(in)+ (String) (bag.get(in)).getName();
// Here .getName() method of ItemType class is giving
me "cannot resolve symbol"
//why is it so?You're casting it as a String and wondering why you can't call getName() on it? I haven't looked at what you're actually storing (ItemType), but if it's anything but a String, you're going to have to change your cast. Also, you'll probably have to change it to ((ItemType) bag.get(in)).getName();Note the parentheses...

Similar Messages

  • Using itemtype img tag and meta tag with {tag_largeimage}

    Hi everyone
    Just getting into using Social Media meta Tags for my online store using bc
    Schema.org markup for Google+
    Twitter Card data
    Open Graph data
    and I used this site for reference Must-Have Social Meta Tags for Twitter, Google+, Facebook and More - Moz
    Ive added this to my large product page and now ive entered the world of Schema.org markup and itemtype and im having trouble with images.
    for my large product page ive turned the meta tags from this...
    <meta itemprop="image" content="http://www.example.com/image.jpg">
    <meta name="twitter:image" content="http://www.example.com/image.html">
    <meta property="og:image" content="http://example.com/image.jpg" />
    to this
    <meta itemprop="image" content="{tag_largeimage}">
    <meta name="twitter:image" content="{tag_largeimage}">
    <meta property="og:image" content="{tag_largeimage}" />
    but the page doesnt like it and the page reads with 3 /> /> /> at the top of my html page for anyone to see meaning that bc doesnt like the code.
    also doesnt like it when i use
    <img itemprop="image" {tag_largeimage}" />
    turns into this
    <img alt="" itemprop="image" />
    Image is the only one im having a problem with so far any ideas if I can do anything about it. I dont want to have to manually add a http to every product.
    thanks
    Dave

    the meta tags work now.
    the only one i still cant get to work is the
    <img itemprop="image" {tag_largeimage}" />
    when I change it to _path the html editor saves it as
    <img alt="" itemprop="image_path" />
    so will have to leave that for now put I can still use alot of the itemprop tags to promote the page better than before.
    thanks for the help

  • Using CREATE PROCESS and START PROCESS in a JSP

    Hi,
    I have built a simple JSP page. I want to call my workflow program from this page.
    How should I use the CREATE PROCESS() AND START PROCESS() inside the JSP page?
    Also I want to get the value entered in the text field (which will be a hidden field) to be passed to the ITEM_ATTRIBUTE, which I have defined in my program. How can this be achieved?
    Please give me the syntax for this.
    Please find below the JSP page
    =========================================================
    <%@page import= "java.util.Date" %>
    <script language="javascript" src="ibeCButton.js"> </script>
    <html>
    <head>
    <title>First Page</title>
    </head>
    <body>
    <H3>Today is:
    <%= new java.util.Date() %>
    <INPUT TYPE="text" NAME="CART_ID">
    <INPUT TYPE="submit" onclick = >
    </H3>
    </body>
    </html>
    ==========================================================
    To use LAUNCHPROCESS in JSP, the following is the syntax.
    public static boolean launchProcess
    (WFContext wCtx,
    String itemType,
    String itemKey,
    String process,
    String userKey,
    String owner)
    Should WFContext have the connection information of the DB.
    If I pass only the WFContext and itemType attributes are they enough? Please let me know.
    Thanks

    There are two options.
    1. Good one.
    Include wf*.jar files in your system CLASSPATH. Use oracle.apps.fnd.wf.engine.WFEngineAPI class to access engine APIs. You would need to pass WFContext for which you need WFDB.
    You basically created WFDB with username, password and connect string. Pass it to WFContext and use it for all Workflow Engine APIs.
    2. OK one.
    You can get JDBC connection using the default mechanism that your custom Java and JSP code could be using. Call the PLSQL procedures WF_ENGINE.CreateProcess and WF_ENGINE.LaunchProcess over JDBC.
    Anyways option 1 makes life easier.

  • Endpoint Protection on System Center 2012 Configuration Manager Unhandled exception occurred in your application after changing the excluded files and locations

    I added a number of folders and files in the excluded files and locations and after that I am unable to access the Antimalware Policies it gives the following error( I am new at sccm):
    Unhandled exception occurred in your application. If you click continue the application will ignore this error and attempt to continue. I you click quit the application will close immediately
    Object reference not set to an instance of an oblect
    With the following details:
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.
    ************** Exception Text **************
    System.NullReferenceException: Object reference not set to an instance of an object.
       at Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlQueryPropertySingleItem.get_BooleanValue()
       at Microsoft.ConfigurationManagement.AdminConsole.ClientAgentSettings.Utilities.CreateSCIResultObject(IResultObject antimalwareResultObject)
       at Microsoft.ConfigurationManagement.AdminConsole.ClientAgentSettings.Utilities.LoadDefaultSettingObjects(ConnectionManagerBase connectionManager, Dictionary`2& defaultSettingObjects, DialogType dialogType)
       at Microsoft.ConfigurationManagement.AdminConsole.ClientAgentSettings.HomePageControl.InitializePageControl()
       at Microsoft.ConfigurationManagement.AdminConsole.SccmPageControlDialog.OnLoad(EventArgs e)
       at System.Windows.Forms.Form.OnCreateControl()
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl()
       at System.Windows.Forms.Control.WmShowWindow(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.ContainerControl.WndProc(Message& m)
       at System.Windows.Forms.Form.WmShowWindow(Message& m)
       at System.Windows.Forms.Form.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.18051 built by: FX45RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    Microsoft.ConfigurationManagement
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/Microsoft.ConfigurationManagement.exe
    System.Drawing
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.18022 built by: FX45RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    System
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.18045 built by: FX45RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    System.Windows.Forms
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.18046 built by: FX45RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    Microsoft.EnterpriseManagement.UI.ConsoleFramework
        Assembly Version: 7.1.1000.0
        Win32 Version: 7.1.3825.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/Microsoft.EnterpriseManagement.UI.ConsoleFramework.DLL
    Microsoft.ConfigurationManagement.ManagementProvider
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/Microsoft.ConfigurationManagement.ManagementProvider.DLL
    System.Xml
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.18058 built by: FX45RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    Microsoft.EnterpriseManagement.UI.Foundation
        Assembly Version: 7.1.1000.0
        Win32 Version: 7.1.3825.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/Microsoft.EnterpriseManagement.UI.Foundation.DLL
    System.Core
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
    System.ServiceModel.Web
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.18045 built by: FX45RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel.Web/v4.0_4.0.0.0__31bf3856ad364e35/System.ServiceModel.Web.dll
    System.ServiceModel
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.18056 built by: FX45RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel/v4.0_4.0.0.0__b77a5c561934e089/System.ServiceModel.dll
    SMDiagnostics
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/SMDiagnostics/v4.0_4.0.0.0__b77a5c561934e089/SMDiagnostics.dll
    System.ServiceModel.Internals
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel.Internals/v4.0_4.0.0.0__31bf3856ad364e35/System.ServiceModel.Internals.dll
    PresentationFramework
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.18058
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll
    WindowsBase
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.18058 built by: FX45RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll
    PresentationCore
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.18058 built by: FX45RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll
    System.Xaml
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.18016 built by: FX45RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll
    System.Configuration
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.18058 built by: FX45RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    AdminUI.SmsTraceListener
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.SmsTraceListener.DLL
    Microsoft.GeneratedCode
        Assembly Version: 1.0.0.0
        Win32 Version: 4.0.30319.18058 built by: FX45RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    Microsoft.EnterpriseManagement.UI.ConsoleFramework.resources
        Assembly Version: 7.1.1000.0
        Win32 Version: 7.1.3825.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/en/Microsoft.EnterpriseManagement.UI.ConsoleFramework.resources.DLL
    Microsoft.EnterpriseManagement.UI.RibbonConsole
        Assembly Version: 1.0.523.0
        Win32 Version: 3.0.2085.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/Microsoft.EnterpriseManagement.UI.RibbonConsole.DLL
    RibbonControlsLibrary
        Assembly Version: 3.5.41019.1
        Win32 Version: 3.5.41019.1
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/RibbonControlsLibrary.DLL
    PresentationFramework.AeroLite
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.18046 built by: FX45RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.AeroLite/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.AeroLite.dll
    Microsoft.EnterpriseManagement.UI.RibbonLayout
        Assembly Version: 1.0.523.0
        Win32 Version: 3.0.2085.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/Microsoft.EnterpriseManagement.UI.RibbonLayout.DLL
    Microsoft.Windows.Shell
        Assembly Version: 3.5.41019.1
        Win32 Version: 3.5.41019.1
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/Microsoft.Windows.Shell.DLL
    Microsoft.VirtualManager.UI.ViewModel.Core
        Assembly Version: 1.0.523.0
        Win32 Version: 3.0.2085.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/Microsoft.VirtualManager.UI.ViewModel.Core.DLL
    Microsoft.EnterpriseManagement.UI.Controls
        Assembly Version: 7.1.1000.0
        Win32 Version: 7.1.3825.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/Microsoft.EnterpriseManagement.UI.Controls.DLL
    Microsoft.EnterpriseManagement.UI.RibbonData
        Assembly Version: 1.0.523.0
        Win32 Version: 3.0.2085.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/Microsoft.EnterpriseManagement.UI.RibbonData.DLL
    AdminUI.HelpSystem
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.HelpSystem.DLL
    AdminUI.UIResources
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.UIResources.DLL
    AdminUI.PersonalFolders
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.PersonalFolders.DLL
    AdminUI.ConsoleGlobalSearchView
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.ConsoleGlobalSearchView.DLL
    PresentationFramework.Classic
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Classic/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.Classic.dll
    Microsoft.EnterpriseManagement.UI.Controls.resources
        Assembly Version: 7.1.1000.0
        Win32 Version: 7.1.3825.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/en/Microsoft.EnterpriseManagement.UI.Controls.resources.DLL
    WindowsFormsIntegration
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.18058 built by: FX45RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsFormsIntegration/v4.0_4.0.0.0__31bf3856ad364e35/WindowsFormsIntegration.dll
    PresentationFramework-SystemXml
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.17929
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework-SystemXml/v4.0_4.0.0.0__b77a5c561934e089/PresentationFramework-SystemXml.dll
    PresentationFramework.Aero
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Aero/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.Aero.dll
    PresentationFramework-SystemCore
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.17929
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework-SystemCore/v4.0_4.0.0.0__b77a5c561934e089/PresentationFramework-SystemCore.dll
    UIAutomationProvider
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationProvider/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationProvider.dll
    UIAutomationTypes
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationTypes/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationTypes.dll
    AdminUI.Controls
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.Controls.DLL
    AdminUI.Common
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.Common.DLL
    Microsoft.EnterpriseManagement.UI.WpfViews
        Assembly Version: 7.1.1000.0
        Win32 Version: 7.1.3825.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/Microsoft.EnterpriseManagement.UI.WpfViews.DLL
    Microsoft.EnterpriseManagement.UI.ViewFramework
        Assembly Version: 7.1.1000.0
        Win32 Version: 7.1.3825.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/Microsoft.EnterpriseManagement.UI.ViewFramework.DLL
    Microsoft.GeneratedCode
        Assembly Version: 1.0.0.0
        Win32 Version: 4.0.30319.18058 built by: FX45RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    System.Management
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
    AdminUI.WqlQueryEngine
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.WqlQueryEngine.DLL
    AdminUI.WqlInitializer
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.WqlInitializer.DLL
    Microsoft.GeneratedCode
        Assembly Version: 1.0.0.0
        Win32 Version: 4.0.30319.18058 built by: FX45RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    Microsoft.GeneratedCode
        Assembly Version: 1.0.0.0
        Win32 Version: 4.0.30319.18058 built by: FX45RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    AdminUI.CollectionMenuActions
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.CollectionMenuActions.DLL
    Microsoft.GeneratedCode
        Assembly Version: 1.0.0.0
        Win32 Version: 4.0.30319.18058 built by: FX45RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    AdminUI.OSImage
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.OSImage.DLL
    AdminUI.AssetIntelligence
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.AssetIntelligence.DLL
    AdminUI.SoftwareMeteringRule
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.SoftwareMeteringRule.DLL
    AdminUI.DcmProperties
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.DcmProperties.DLL
    AdminUI.UsmPolicy
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.UsmPolicy.DLL
    AdminUI.ClientAgentSettings
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.ClientAgentSettings.DLL
    AdminUI.FirewallPolicy
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.FirewallPolicy.DLL
    AdminUI.LegacySWD
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.LegacySWD.DLL
    AdminUI.ConditionalDeliveryRule
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.ConditionalDeliveryRule.DLL
    AdminUI.VirtualEnvironment
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.VirtualEnvironment.DLL
    AdminUI.SideloadKeys
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.SideloadKeys.DLL
    AdminUI.SoftwareUpdateProperties
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.SoftwareUpdateProperties.DLL
    AdminUI.Driver
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.Driver.DLL
    AdminUI.DriverPackage
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.DriverPackage.DLL
    AdminUI.Subscriptions
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.Subscriptions.DLL
    AdminUI.Queries
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.Queries.DLL
    AdminUI.SrsReporting
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.SrsReporting.DLL
    AdminUI.SiteHierarchyVisualization
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.SiteHierarchyVisualization.DLL
    AdminUI.SystemStatus
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.SystemStatus.DLL
    AdminUI.ClientOperation
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.ClientOperation.DLL
    AdminUI.ClientHealth
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.ClientHealth.DLL
    AdminUI.ContentMonitoring
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.ContentMonitoring.DLL
    AdminUI.AntiMalware
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.AntiMalware.DLL
    AdminUI.CloudServiceRoles
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.CloudServiceRoles.DLL
    AdminUI.SiteHierarchy
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.SiteHierarchy.DLL
    AdminUI.SiteBoundaries
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.SiteBoundaries.DLL
    AdminUI.ExchangeConnector
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.ExchangeConnector.DLL
    AdminUI.Addresses
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.Addresses.DLL
    AdminUI.ActiveDirectory
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.ActiveDirectory.DLL
    AdminUI.AzureServices
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.AzureServices.DLL
    AdminUI.RbacUser
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.RbacUser.DLL
    AdminUI.RbacRole
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.RbacRole.DLL
    AdminUI.RbacCategory
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.RbacCategory.DLL
    AdminUI.Package
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.Package.DLL
    AdminUI.Certificate
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.Certificate.DLL
    AdminUI.SiteSystems
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.SiteSystems.DLL
    AdminUI.HomePageView
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.HomePageView.DLL
    Microsoft.EnterpriseManagement.UI.WpfViews.resources
        Assembly Version: 7.1.1000.0
        Win32 Version: 7.1.3825.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/en/Microsoft.EnterpriseManagement.UI.WpfViews.resources.DLL
    Microsoft.GeneratedCode
        Assembly Version: 1.0.0.0
        Win32 Version: 4.0.30319.18058 built by: FX45RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    AdminUI.ViewCommon
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.ViewCommon.DLL
    Microsoft.GeneratedCode
        Assembly Version: 1.0.0.0
        Win32 Version: 4.0.30319.18058 built by: FX45RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    Microsoft.GeneratedCode
        Assembly Version: 1.0.0.0
        Win32 Version: 4.0.30319.18058 built by: FX45RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    AdminUI.AICustomizeCatalog
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.AICustomizeCatalog.DLL
    AdminUI.AISoftwareProducts
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.AISoftwareProducts.DLL
    AdminUI.ConsoleView
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.ConsoleView.DLL
    AdminUI.External.Controls
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.External.Controls.DLL
    Microsoft.GeneratedCode
        Assembly Version: 1.0.0.0
        Win32 Version: 4.0.30319.18058 built by: FX45RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    System.Data
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.18046 built by: FX45RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
    System.Numerics
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
    PresentationFramework-SystemData
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.17929
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework-SystemData/v4.0_4.0.0.0__b77a5c561934e089/PresentationFramework-SystemData.dll
    Microsoft.ConfigurationManagement.DialogFramework
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/Microsoft.ConfigurationManagement.DialogFramework.DLL
    Microsoft.GeneratedCode
        Assembly Version: 1.0.0.0
        Win32 Version: 4.0.30319.18058 built by: FX45RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    AdminUI.DialogFoundation
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.DialogFoundation.DLL
    Accessibility
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
    AdminUI.DetailPanel
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.DetailPanel.DLL
    AdminUI.FeaturesUtilities
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.FeaturesUtilities.DLL
    Microsoft.GeneratedCode
        Assembly Version: 1.0.0.0
        Win32 Version: 4.0.30319.18058 built by: FX45RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    AdminUI.ConnectionAccount
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.ConnectionAccount.DLL
    System.Runtime.Caching
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.17929
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Caching/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.Caching.dll
    AdminUI.ConsoleRootActions
        Assembly Version: 5.0.0.0
        Win32 Version: 5.0.7804.1000
        CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Configuration%20Manager/AdminConsole/bin/AdminUI.ConsoleRootActions.DLL
    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    For example:
    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.
    When I go and check the Endpoint Protection properties it gives me the following Error:
    The SMS Provider reported and error
    With the following Details:
    ConfigMgr Error Object:
    instance of SMS_ExtendedStatus
     Description = "ERROR ON Property Convert";
     ErrorCode = 0;
     File = "e:\\nts_sccm_release\\sms\\siteserver\\sdk_provider\\smsprov\\sspsitesettingitem.h";
     Line = 377;
     Operation = "ExecQuery";
     ParameterInfo = "SELECT * FROM SMS_SCI_ClientComp WHERE FileType=2 AND SiteCode='CCM' AND ItemName='Antimalware Agent' AND ItemType='Client Component'";
     ProviderName = "WinMgmt";
     StatusCode = 2147749917;
    Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlQueryException
    The SMS Provider reported an error.
    Stack Trace:
       at Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlQueryResultsObject.<GetEnumerator>d__0.MoveNext()
       at Microsoft.ConfigurationManagement.AdminConsole.SiteSystems.EndpointProtectionSpynetControl.InitializePageControl()
       at Microsoft.ConfigurationManagement.AdminConsole.SmsPropertyPage.OnInitialize()
    System.Management.ManagementException
    Unexpected error
    Stack Trace:
       at Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlQueryResultsObject.<GetEnumerator>d__0.MoveNext()
       at Microsoft.ConfigurationManagement.AdminConsole.SiteSystems.EndpointProtectionSpynetControl.InitializePageControl()
       at Microsoft.ConfigurationManagement.AdminConsole.SmsPropertyPage.OnInitialize()

    Hi,
    If you only add one file into the excluded files and locations, does this error still appear?
    Could you reproduce this error on another system?
    Best Regards,
    Joyce Li
    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.

  • Set-CMDistributionPoint and EnableValidateContent

    Wondering if this is a bug or I am just missing something simple..
    Environment is SCCM 2012 R2 CU1.
    The lines in my script that run the Set-CMDistributionPoint are as so:
    $Schedule = New-CMSchedule -Start '06/07/2014 11:59 PM' -DayOfWeek Saturday -RecurCount 1
    Set-CMDistributionPoint -SiteSystemServerName $ServerName -SiteCode $SiteCode -ClientCommunicationType HTTP -ContentMonitoringPriority Lowest -EnableValidateContent $true -ValidateContentSchedule $Schedule -Verbose
    Here's the verbose output:
    VERBOSE: Executing WQL query: SELECT * FROM SMS_SCI_SysResUse WHERE RoleName='SMS Distribution Point'  AND FileType=2
    AND ItemType='System Resource Usage'  AND
    NALPath='["Display=\\\\SERVER.DOMAIN.COM\\"]MSWNET:["SMS_SITE=ABC"]\\\\SERVER.DOMAIN.COM\\'
    VERBOSE: Query returned 1 results.
    VERBOSE: Performing the operation "Set" on target "DistributionPoint: SiteCode="ABC"".
    VERBOSE: Setting embedded property 'SslState': Value=0 Value1='' Value2=''
    VERBOSE: Setting embedded property 'DPMonSchedule': Value=0 Value1='00011700001F2000' Value2=''
    VERBOSE: Setting embedded property 'DPMonPriority': Value=4 Value1='' Value2=''
    VERBOSE: Setting embedded property 'DPMonEmabled': Value=1 Value1='' Value2=''
    As you can see the verbose output shows DPMonEmabled instead of DPMonEnabled and its not actually enabling the content validation.  Anyone else try this?
    Thanks!

    Hi,
    The command lines ran successfully in SCCM 2012 R2. But I got the same problem in SCCM 2012 R2 CU1. The schedule hadn't been applied.
    Thank you for your response.
    Best Regards,
    Joyce
    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.

  • Bruce Eckel - Thinking in Java - VendingMachine

    Hello,
    I am working through TIJ right now and have reached the Chapter with Enumerations. I try to do all of the exercises but I seem to be stuck at Exercise 10 (Vending Machine).
    He basically shows the state design pattern and gives a Vending Machine as an example. The states are represented by an inner enumeration class and these in turn access static private variables of the Vending Machine. Because of this construction there can only be one VendingMachine. (Actually everything is static, so there is no instance of VendingMachine at all).
    In the respective exercise he says use an EnumMap to have multiple instances of VendingMachine. (the exercise is on page 1047 of the Fourth Edition).
    I have been thinking about this for a couple of hours now and I can't figure out the way he wants me to go. I would really appreciate a hint or two from someone who has the book. Unfortunately there is no Solution Guide available to the forth Ediiton so far.
    Thank you very much.
    Volkmar

    fearme69,
    (Never trust anyone who says "Trust me". Trust me on that.)
    That sounds like an interesting problem, but, like quickmick, I don't really understand what you're trying to do, or which "bit" your stuck on.
    Yeah, Post the exercise question (or maybe find a link to it), and post whatever you've tried.
    Actually everything is static, so there is no
    instance of VendingMachine at all. In the
    respective exercise he says use an EnumMap to
    have multiple instances of VendingMachine.and I just read the intro section of the EnumMAP Tiger API, and had a quick look at this EnumMap example
    When you say "everything is static" I presume you mean that all class variables & methods are static... but that the class is not abstract... so it can actaully be instantiated, but it doesn't make a ship load of sense to do so...
    Hmmm... Except look at the example above... it's not actually instantiating an AntStatus (or any constant values therein), so maybe you just do it the obvious way... suck it and see.
    Other than that just forget it and move on... write it off to the fact that Bruce can afford a better class of drugs than us mere peasants.
    keith.

  • Not able to get ItemKey value on OAF page.

    Hi OAF Gurus,
    I build a OAF transaction based on Workflow where I am using below code , but getting NULL values for itemKey
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OADBTransaction oadbtransaction = am.getOADBTransaction();
    SSHRParams sshrparams = new SSHRParams(oadbtransaction);
    // gives null String itemKey = sshrparams.getItemKey();
    // gives null String itemKey = OANavigation.getItemKey(pageContext);
    // gives null String itemKey = WFUtility.getItemKey(pageContext);
    // gives null String itemKey = ((StringBuffer)oadbTxn.findObject("wfItemKey")).toString();
    // gives null String itemKey = oaNavigation.getItemKey(pageContext);
    BIG QUESTION : How to get the itemKey???????????
    Other approaches : I extended my custom AM to oracle's AM (thinking that may be new SSHRParams(oadbtransaction), might work with oracle's transaction), but no luck
    Facts
    1. Workflow has started and this page has been invoked from workflow using BLOCK function.
    2. If I hard code the itemKey and itemType, I can calculate the activity id correctly using String activityId = new String(""+WFUtility.getActivityId(am, itemType, itemKey));
    3. I need the itemKey to abe able to navigate to NEXT or PREVIOUS page in the workflow example : WFUtility.wfTransitionActivity(pageContext, itemType, itemKey,activityId, "NEXT"); when next button is clicked
    Please help me out in this.
    Thanks,
    Chaitanya

    I am posting what approach worked for me.
    Step 1: Create a Page called InitContextPG.xml , set a controller InitContextCO.java
    Step2: In InitContextPG.xml set Application module as oracle.apps.per.selfservice.common.server.CommonAM
    Step 3: Edit InitContextCO.java
    import oracle.apps.per.selfservice.common.SSHRParams;
    import oracle.apps.per.selfservice.payrate.PayRateParams;
    import oracle.apps.per.selfservice.workflowservice.server.WFUtility;
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    /* Logging Code*/
    if(pageContext.isLoggingEnabled(OAFwkConstants.PROCEDURE))
    {pageContext.writeDiagnostics(this," processRequest().START ",OAFwkConstants.PROCEDURE);}
    super.processRequest(pageContext, webBean);
    //.........................................SETTING PAY_RATE_PARAMS.................................................................
    //oadbTxn.getValueNames();
    Hashtable PAY_RATE_PARAMS = (Hashtable)oadbTxn.findObject(PayRateParams.m_name);
    if(PAY_RATE_PARAMS==null){PAY_RATE_PARAMS= new Hashtable();}
    pageContext.putSessionValueRaw(PayRateParams.m_name,PAY_RATE_PARAMS);
    writeLog(pageContext,PayRateParams.m_name+"="+PAY_RATE_PARAMS);
    //.........................................SETTING SSHR_PARAMS.................................................................
    Hashtable SSHR_PARAMS = (Hashtable)oadbTxn.findObject(SSHRParams.m_name);
    if(SSHR_PARAMS==null){SSHR_PARAMS= new Hashtable();}
    pageContext.putSessionValueRaw(SSHRParams.m_name,SSHR_PARAMS);
    writeLog(pageContext,SSHRParams.m_name+"="+SSHR_PARAMS);
    //.........................................SETTING WORKFLOW ACTIVITY.................................................................
    SSHRParams sshrparams = new SSHRParams(pageContext.getRootApplicationModule().getOADBTransaction());
    String itemKey =sshrparams.getItemKey();
    String itemType = sshrparams.getItemType();
    String activityId = sshrparams.getActivityId();
    WFUtility.wfTransitionActivity(pageContext, itemType, itemKey,activityId, "DEFAULT");
    /* Logging Code*/
    if(pageContext.isLoggingEnabled(OAFwkConstants.PROCEDURE))
    {pageContext.writeDiagnostics(this,"processRequest().END",OAFwkConstants.PROCEDURE);}
    Step4 : Create a FND Function Y_HR_INIT_CONTEXT_SS having html call to InitContextPG.xml
    Step 5 : In the Workflow create a Function, called Init Context
    set : Function Name : HR_WORKFLOW_SERVICE.BLOCK
    set : Function Type : PLSQL
    set : Result Type : HR MEE Transacitons V4.0
    Node Attribute : HR Activity Type : JSP
    Node Attribute : HR Activity Type Value : Y_HR_INIT_CONTEXT_SS
    Step 6: So Workflow should look like
    START-----<default>---------> Init Context -----------<default>-------> MY_PAGE (which needs WF parameters)
    Step 7. Now you have MY_PAGE.xml where you need the ItemKey and ActivityID etc., create a controller MY_PAGE_CO.java
    * Layout and page setup logic for a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    /* Register the ORACLE HRMS Objects before super.processRequest*/
    this.registerObject(pageContext,SSHRParams.m_name);
    this.registerObject(pageContext,PayRateParams.m_name);
    super.processRequest(pageContext, webBean);
    SSHRParams sshrparams = new SSHRParams(oadbTxn);
    String itemKey =sshrparams.getItemKey();
    String itemType = sshrparams.getItemType();
    String activityId = sshrparams.getActivityId();
    // You Finally have the values of itemKey ,itemType and activityId
    OAApplicationModule am = pageContext.getRootApplicationModule();
    OADBTransaction oadbTxn = am.getOADBTransaction();
    * Registers an object from session to transaction.
    public void registerObject(OAPageContext pageContext,String ObjectName)
    Object objectValue = (Object)pageContext.getSessionValueRaw(ObjectName);
    this.writeLog(pageContext,ObjectName+"="+objectValue);
    OAApplicationModule am = pageContext.getRootApplicationModule();
    OADBTransaction oadbTxn = am.getOADBTransaction();
    /* Check if the Object is registered already, else register it*/
    if(oadbTxn.findObject(ObjectName) == null && objectValue!=null)
    oadbTxn.registerObject(ObjectName,objectValue);
    Edited by: Chaitanya Dubey on Feb 3, 2011 1:45 PM
    Edited by: Chaitanya Dubey on Feb 3, 2011 1:54 PM
    Edited by: Chaitanya Dubey on Feb 3, 2011 1:54 PM

  • Syntax error while creating Derieved table in universe

    Hi Guru,s
    I really need help here.
    I am trying to create relational universe based on oracle 10g and while creating one of the derieved table when I am writing a SQL sysntax it gives me an Invalid prompt defination error , first of all here is the SQL syntax"
    SELECT
      ITEM.ID,
      ITEM.AMOUNT,
      ITEM.POSTEDORISSUE
    FROM
      ACCOUNT,
      ITEM,
      ITEMTYPES,
      ACCOUNTPOOL,
      COMPANY
    WHERE
      ( ACCOUNT.COMPANYID=COMPANY.ID  )
      AND  ( ACCOUNT.POOLID=ACCOUNTPOOL.ID  )
      AND  ( ACCOUNT.ID=ITEM.ACCOUNTID  )
      AND  ( ITEMTYPES.ID=ITEM.DCIP  )
      AND
       COMPANY.NAME  =  'MLC BA Cat Accounting PRD1'
       AND
       ITEM.POSTEDORISSUE  BETWEEN  @Prompt('Start Date','D','Date\Post Date',mono,free,persistent,{'01-10-2011 00:00:00'},'1')  AND  @Prompt('End Date','D','Date\Post Date',mono,free,persistent,{'01-10-2011 00:00:00'},'2')
    Now thw error I get is that when I trying to parse or validate the query.
    "Invalid Prompt defination" (WIS 00005)
    Seems like its not validating the query through database.
    I have checked the prompt sysntax and nothing seems to be wrong, Can anyone pls look into this and advise what am I doing wrong interms of syntax, I would really appreciate your help.
    Regards.
    MD

    Hi,
    I am getting the correct results, when i can use like below
    @prompt('Enter Product Equal','A',{'TTTT','YYYYY','oooo'},Mono,Constrained,Persistent,User:1,Optional)
    @prompt('Enter Product Not Equal','A',{'TTTT','YYYYY','oooo'},Mono,Constrained,Persistent,User:2,Optional)
    If i can start using like below, not getting the correct results, Any suggestion why?
    @prompt('Enter Product Equal','A','Table_Name\Product',Mono,Constrained,Persistent,User:1,Optional)
    @prompt('Enter Product Not Equal','A','Table_Name\Product',Mono,Constrained,Persistent,User:2,Optional)
    I am thinking something issue with class name/Object Name  in BI 4.0. In XIR3  I changed the same derived table with class name and object name, it;s working fine.
    Any suggestions/advice please
    Praveen

  • What is the best practice in this case?

    I want to create a vending machine simulation program.
    The design will be something like this :
    GUI----use----VendingMachine----has----ProductStorage
    Previously, i want everything inside VendingMachine will be transparent from the GUI.
    The GUI just use VendingMachine, and it has no knowledge about ProductStorage.
    But then i realize that in order for the GUI to display the products, it has to use ProductStorage.
    So i came up with adding this getter to VendingMachine class :
    public ProductStorage getStorage()
         return storage;
    }I'm breaking the rules of encapsulation.
    Is it okay to do this? What is the practice in this case?
    Thanks,
    Ang.

    GUI----use----VendingMachine----has----ProductStorage
    Previously, i want everything inside VendingMachine will be transparent from the GUI.
    The GUI just use VendingMachine, and it has no knowledge about ProductStorage.
    But then i realize that in order for the GUI to display the products, it has to use ProductStorage.Not necessarily. You can expose the ProductStorage interface (did I get this right: methods such as getProductList(), getProductQuantity(String productId) ?), in VendingMachineImpl. That latter can simply delegates to its ProductStorage collaborator. The GUI code doesn't need to know this latter is a separate instance.
    I'm breaking the rules of encapsulation.
    Is it okay to do this? What is the practice in this case?Technically you're violating the so-called Law of Demeter, which as you mention means you reveal implementation details to the client - and makes it less flexible, if you ever want to move ProductStorage API in another class. For example it would exhibit transaction logic to the client code.
    OK we're talking about a far-fetched exemple, part of an exercise, but in general you should avoid this.

  • Roles not shown after entering SCCM 12 product key

    Hi all,
    We were using SCCM 2012 as evaluation and it was fully configured for our production environment.It was not used for some time and then we discovered that it has been expired so,now we have entered the product key.After entering the product key the problem
    is that,when i browse to server & site system roles there are no role shown for sccm server.there are 3 server's in total :-
    1>Server added for distribution point - there was 2 roles installed ,count of roles show 2 but roles are not shown in site system roles.
    2>Data base server - 3 roles installed all the roles are shown in site system roles.
    3>SCCM Server - there was 12 roles installed ,count of roles show 12 but roles are not shown in site system roles.
    i tried to reinstall the roles but it's giving me the following error :-
    ConfigMgr Error Object:
    instance of SMS_ExtendedStatus
        CauseInfo = "";
        Description = "Unable to get SQL data";
        ErrorCode = 3242528002;
        File = "e:\\nts_sccm_release\\sms\\siteserver\\sdk_provider\\smsprov\\sspobjectquery.cpp";
        Line = 932;
        Operation = "ExecQuery";
        ParameterInfo = "Select * From SMS_SCI_SysResUse Where SiteCode='Site Code' And FileType=2 And ItemType='System Resource Usage' And NALPath='[\"Display=\\\\\\\\SCCM server FQDN\\\\\"]MSWNET:[\"SMS_SITE=Site Code\"]\\\\\\\\SCCM Server FQDN\\\\'";
        ProviderName = "WinMgmt";
        SQLMessage = "[21000][512][Microsoft][SQL Server Native Client 10.0][SQL Server]Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.";
        SQLSeverity = 16;
        SQLStatus = 512;
        StatusCode = 2147749889;
    Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlQueryException
    The SMS Provider reported an error.
    Stack Trace:
       at Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlQueryResultsObject.<GetEnumerator>d__0.MoveNext()
       at Microsoft.ConfigurationManagement.AdminConsole.SiteSystems.SiteSystemsServerWizardForm.PostApply(BackgroundWorker worker, DoWorkEventArgs e)
       at Microsoft.ConfigurationManagement.AdminConsole.ProgressPage.backgroundWorkerPostApply_DoWork(Object sender, DoWorkEventArgs e)
       at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
       at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
    System.Management.ManagementException
    Generic failure
    Stack Trace:
       at Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlQueryResultsObject.<GetEnumerator>d__0.MoveNext()
       at Microsoft.ConfigurationManagement.AdminConsole.SiteSystems.SiteSystemsServerWizardForm.PostApply(BackgroundWorker worker, DoWorkEventArgs e)
       at Microsoft.ConfigurationManagement.AdminConsole.ProgressPage.backgroundWorkerPostApply_DoWork(Object sender, DoWorkEventArgs e)
       at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
       at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
    Please help...
    Thanks,
    Pranay.

    Is the SQL server running?
    Kent Agerlund | My blogs: blog.coretech.dk/kea and
    SCUG.dk/ | Twitter:
    @Agerlund | Linkedin: Kent Agerlund |
    Mastering ConfigMgr 2012 The Fundamentals

  • ADF-BC/JSF Attributes of reference entity objects do not appear on new rows

    Hi everyone,
    Here is something I have been meaning to ask for a long time and never found the time to do so.
    Let's suppose that we have two entities named Item and and ItemType and a view object named ItemsList defined like this
    SELECT Item.ID,
                  Item.NAME,
                  Item.TYPE
                  ItemType.NAME as TYPE_NAME
                  Item.PRICE
                  ItemType.ID AS ID1
       FROM
                  ITEMS Item, ITEM_TYPES ItemType
       WHERE
                  Item.TYPE = ItemType.IDLet's also suppose that using JDeveloper's standard ADF/SF pages, we create a list page and a create page that uses a combo box to allow the user to set the item type which then commits the changes and returns back to to the list page.
    I have noticed that new rows created using this method do not display the TYPE_NAME (and all similar) attributes, until the view is executed again. What I usually do in this case is have an Execute binding that fires only when a request scope variable is set from the creating page. This approach works for me but I feel that there must be an easier and "more right" way to achieve the same results.
    Thanassis

    Maybe you can use the getEstimatedRowCount() method on the view.
    See more info here:
    http://download.oracle.com/docs/html/B25947_01/bcquerying006.htm

  • Problem with oracle workflow builder 2.6.3.5

    Hello
    I have installed oracle workflow server 2.6.3 on a oracle 10G 10.2.0.1 in Red Hat linux Enterprise 4L and I have Oracle workflow builder 2.6.3.5 on Microsoft Windows XP Service pack 2
    I have the following error when i try to save or open and itemtype from the database
    1005: Language is not populated, please refers to Workflow documentation for steps on populating a language.
    How can i solve this i've alredy changed the NLS_LANG to match with the server
    In the server the language is set to American and in the NLS_LANG i have set like this AMERICAN_AMERICA.US7ASCII
    hope you can help me as soon as posible
    Andres

    Hi Matt thanks for the answer
    i've already seen the wf_languages table and i have the following:
    CODE NLS_CODESET I
    AR AR8ISO8859P6 N
    BG CL8ISO8859P5 N
    CA WE8ISO8859P1 N
    CS EE8ISO8859P2 N
    D WE8ISO8859P1 N
    DK WE8ISO8859P1 N
    E WE8ISO8859P1 N
    EG AR8ISO8859P6 N
    EL EL8ISO8859P7 N
    ESA WE8ISO8859P1 N
    F WE8ISO8859P1 N
    CODE NLS_CODESET I
    FRC WE8ISO8859P1 N
    GB WE8ISO8859P1 N
    HR EE8ISO8859P2 N
    HU EE8ISO8859P2 N
    I WE8ISO8859P1 N
    IS WE8ISO8859P1 N
    IW IW8ISO8859P8 N
    JA JA16EUC N
    KO KO16KSC5601 N
    LT NEE8ISO8859P4 N
    N WE8ISO8859P1 N
    CODE NLS_CODESET I
    NL WE8ISO8859P1 N
    PL EE8ISO8859P2 N
    PT WE8ISO8859P1 N
    PTB WE8ISO8859P1 N
    RO EE8ISO8859P2 N
    RU CL8ISO8859P5 N
    S WE8ISO8859P1 N
    SF WE8ISO8859P1 N
    SK EE8ISO8859P2 N
    SL EE8ISO8859P2 N
    TH TH8TISASCII N
    CODE NLS_CODESET I
    TR WE8ISO8859P9 N
    US US7ASCII Y
    ZHS ZHS16CGB231280 N
    ZHT ZHT16BIG5 N
    37 rows selected.
    as you can see i have installed the american_america.us7ascii
    also the nls_lang key in HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_oracleas1
    is set to AMERICAN_AMERICA.US7ASCII
    I don't know wich is the problem with this
    thank you again

  • Where is the structure of items stored?

    Hello all,
    I have created a content area in which users can only add URL items. The general idea behind this is to end up with a treeview displaying websites in categories.
    Until now I have found almost all information I need: the content area details are stored in wwsbr_all_content_areas, and the details for the URL can be found in wwsbr_all_items and wwsbr_url$.
    But how can I find out the order in which they are displayed in the content area? And how do I know which items are subitems of which? I've already had a look at the masterId's but I can't seem to find a link.
    Thanks in advance,
    Joey

    I found the content area ITEM relationships defined in a table called portal39.wwv_things and the following query shows how to determine the relationships of determining content_area/folders/categories:
    select a.title, a.id
    from PORTAL30.wwv_things a,
    PORTAL30.wwsbr_siteS$ b,
    PORTAL30.wwv_corners c,
    PORTAL30.wwv_topics d
    where a.siteid=b.id
    and a.cornerid=c.id
    and a.topicid=d.id
    and b.name = 'CONTENT_AREA_NAME'
    AND C.NAME = 'FOLDER_NAME'
    AND D.NAME = 'CATEGORY_NAME'
    AND ITEMTYPE in ('file')
    and HIDEINBROWSE = 0
    AND EXPIREDATE IS NULL
    Hope this helps.

  • Create link to delete item (in non-edit mode)

    Hi there,
    I've been trying to create a portlet that displays items (titles + edit- and delete-links) and I got so far as to be able to create the edit-link and that seems to work. The edit link is as follows (p_news is an wwsbr_all_items%rowtype)
    htp.p('<a href="/portal/pls/portal/PORTAL.wwv_edit_tab.edititem?p_thingid='|| p_news.ID ||'&p_cornerid='||p_news.folder_id||'&p_siteid='||  p_news.caid||'&p_language=sf&p_looplink='|| p_link||'&p_itemtype=basetext&p_topicid=-1&p_topicsiteid=0&p_cornerlinkid=&p_parentid=0&p_currcornerid=&p_containerpageid='|| p_news.folder_id||'">Edit</a>');and after a lot of head scratching, I managed to create a delete link as follows:
    htp.p('<a href="/portal/pls/portal/PORTAL.wwpob_page_dialogs.delete_portlets_dlg?p_instance_list='|| p_news.caid||'_'|| (TO_NUMBER(p_news.id)-1)||'_'||  p_news.caid||'_'|| p_news.folder_id||'_'|| p_news.folder_id||'&p_in_edit_mode=1&p_back_url='||p_link||'&p_confirm_url='||p_link||'&p_mode=3">delete</a>');Now what really makes me wonder is this bit:
    p_instance_list='|| p_news.caid||'_'|| (TO_NUMBER(p_news.id)-1)||'_'||  p_news.caid||'_'|| p_news.folder_id||'_'|| p_news.folder_id||'&and specifically the
    (TO_NUMBER(p_news.id)-1)I mean, it works (unlike everything else i tried in the past few days). But can this be true? Can I use this unbelievanble hack-like "solution" in production? Is there a Oracle-approved way of creating delete-links programmatically (outside the html layout templates)?
    Rgds, stupefied in Finland
    Edit: gaaah, how do I get multiple rows of code and not one real long one..? >:(
    Edited by: Baguette on 05-May-2010 03:57

    The API calls are normally executed within scripts but you could obviously call them from a PL/SQL item as well.
    The API call works fine in 10.1.4.2. Did a simple test :
    <ol>
    <li>Create a page group called 'test'
    <li>Add two items of type base URL
    <li>Created a small anonymous block with the following code :
    DECLARE
      CURSOR c1 IS
        SELECT masterthingid,id,version,iscurrentversion,active,siteid,name
        FROM portal.wwv_things WHERE siteid = (SELECT id FROM portal.wwsbr_sites$
        WHERE name = '&PgName') and itemtype = 'baseurl' ORDER BY masterthingid ;
    BEGIN
      FOR c1_rec IN c1 LOOP
      dbms_output.put_line('Now deleting item '||c1_rec.name) ;
      portal.wwsbr_api.delete_item(
              p_master_item_id=>c1_rec.masterthingid
             ,p_caid=>c1_rec.siteid
             ,p_mode=>portal.wwsbr_api.DELETE_ITEM_DEFAULT
             ,p_version_number=>NULL) ;
      END LOOP ;
    EXCEPTION
         WHEN wwsbr_api.ITEM_ALREADY_DELETED THEN
           dbms_output.put_line('ITEM_ALREADY_DELETED');
         WHEN wwsbr_api.ITEM_ACTIVE_VERSION THEN
           dbms_output.put_line('ITEM_ACTIVE_VERSION');
         WHEN wwsbr_api.INVALID_VERSION_NUMBER THEN
           dbms_output.put_line('INVALID_VERSION_NUMBER');
         WHEN wwsbr_api.INVALID_MODE THEN
           dbms_output.put_line('INVALID_MODE');
         WHEN wwsbr_api.INVALID_CAID THEN
           dbms_output.put_line('INVALID_CAID');
         WHEN wwsbr_api.INVALID_ITEM_ID THEN
           dbms_output.put_line('INVALID_ITEM_ID ');
    END ;
    /<li>Ran this code.
    <li>Invalidated the web cache for the root page of test. The items were deleted
    </ol>
    Calling the API directly through your browser is tricky. I tried it and got the following error first :
    +10/05/07 11:57:16 portal: [module=RepositoryServlet, ecid=79740104487,1] ERROR: Repository Gateway error: Request Processing Error:+
    portal.wwsbr_api.delete_item: PROCEDURE DOESN'T EXIST
    This is normal as the procedure is executed by PORTAL_PUBIC. Granting execute privileges on wwsbr_api to public did not help. The error message changed to :
    +10/05/07 11:58:27 portal: [module=RepositoryServlet, ecid=79740176945,1] ERROR: Repository Gateway error: Database Error: ORA=6502 ORA-06502: PL/SQL: numeric or value error: character to number conversion error+
    ORA-06512: at line 31
    In this case, you probably need to wrap the wwsbr_api.delete_item() procedure into your own procedure and call this from your portlet.
    Hope this helps,
    EJ

  • PS Add-CMDistributionPoint "No object corresponds to the specified parameters."

    Hi,
    I'm trying to add a distribution point via Powershell. Thanks to the Add-cmdistributionpoint it should be pretty easy. The SCCM-server sccmserver1 is the main siteserver, sccmsiteserver2 is a Windows 2012 server on which all prereqs are installed and on
    which sccmsiteserver1 is member of local administrators.
    However, I get the error below "No object corresponds to the specified parameter".
    I assume the computer account of sccmsiteserver1 is used by default (couldn't trigger this error anyhow) and the parameter -sitesystemservername is not the main siteserver but the new distribution point.
    Please advise.
    J.
    PS TLS:\> Add-CMDistributionPoint -SiteSystemServerName "sccmserver2.ourdomain" -SiteCode "TLS" -ClientConnectionType Intranet -EnableAnonymous -CertificateExpirationTimeUtc "2112/12/12 12:00:00" -MinimumFreeSpace 50 -Verbose
    VERBOSE: Performing the operation "Add" on target "DistributionPoint: NewDistributionPoint".
    VERBOSE: Executing WQL query: SELECT * FROM SMS_SCI_SysResUse WHERE SiteCode='TLS'  AND RoleName='SMS Site System'  AND FileType=2  AND ItemType='System Resource Usage'  AND N
    ALPath='["Display=\\\\sccmserver2.ourdomain\\"]MSWNET:["SMS_SITE=TLS"]\\\\sccmserver2.ourdomain\\'
    VERBOSE: Query returned 0 results.
    Add-CMDistributionPoint : No object corresponds to the specified parameters.
    At line:1 char:1
    + Add-CMDistributionPoint -SiteSystemServerName "sccmserver2.ourdomain" -SiteCod ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (:String) [Add-CMDistributionPoint], ItemNotFoundException
        + FullyQualifiedErrorId : SessionStateException,Microsoft.ConfigurationManagement.Cmdlets.HS.Commands.AddDistributionPointCommand
    Jan Hoedt

    Yes, just a typo, sorry.
    What worries me is that the output of the query is 0 "VERBOSE: Query returned 0 results."
    So that means everything is working but there is actually no result to the query. Not sure why though. 
    Jan Hoedt

Maybe you are looking for

  • X220 not turning on!

    Today when I pressed the power button to turn on my CPU the only thing that happened was the light that illuminates the keyboard turned on briefly and an orange light flickers once on the mute and microphone buttons, the cap locks light also turns on

  • Time Capsule data transfer speeds

    Hi, I just bought the 1TB Time Capsule. I'm copying 117GB from MacPro to TC which after an extremely slow start 12Mbps is now bouncing around between 80 and 120Mbps. For Gigabit Ethernet (CAT6) these speeds are not impressive. Out of curiosity, what

  • Displaying information on 2 pages (reports)

    Hi, I want to print records on a report on 2 pages because in the first page there is no enough room, but on the 2nd page, I have a bug of display : Here is the bottom of the first page : http://img11.imageshack.us/img11/1504/49385417.png Here is the

  • Batch change does not change meta data name when exporting or copy

    I use batch change to change the name of an event when photos from more than one source (camera) are imported. When I copy or export the photos the name reverts to the original meta data file. I do this to override duplicate names. For instance photo

  • Importing a 3D

    If I wanted to work with a 3D image in Motion 2, how would i even bring it in? What file format should it be in?