Locked user iview throws exception

When I try to access the locked users iview in user administration, the page comes up with the below stacktrace. How do I find the broken java (classComponentAccessToLogic.gotoPage()) and how do I fix it?
Thanks
Raj Balakrishnan

Sorry, I forgot to include the stacktrace
I am on EP6 SP2 PL25
The stacktrace
java.lang.Throwable
     at java.lang.Class.newInstance0(Native Method)
     at java.lang.Class.newInstance(Class.java:232)
     at java.beans.Beans.instantiate(Beans.java:202)
     at java.beans.Beans.instantiate(Beans.java:46)
     at sapportalsjsperror.doContent(_sapportalsjsp_error.java:69)
     at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
     at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
     at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:343)
     at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:817)
     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:385)
     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:462)
     at com.sapportals.portal.prt.core.async.AsyncPortalComponentResponse.include(AsyncPortalComponentResponse.java:609)
     at com.sap.security.core.admin.ComponentAccessToLogic.gotoPage(ComponentAccessToLogic.java:129)
     at com.sap.security.core.admin.UserAdminLogic.getDeactivatedUsers(UserAdminLogic.java:1992)
     at com.sap.security.core.admin.UserAdminLogic.executeRequest(UserAdminLogic.java:626)
     at com.sapportals.portal.prt.component.usermanagement.admin.UserAdminComponent.doContent(UserAdminComponent.java:71)
     at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
     at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
     at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:300)
     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
     at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable$1$DoDispatchRequest.run(AsyncIncludeRunnable.java:340)
     at java.security.AccessController.doPrivileged(Native Method)
     at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable.run(AsyncIncludeRunnable.java:352)
     at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:729)
     at java.lang.Thread.run(Thread.java:479)

Similar Messages

  • No Access Error with Locked User iView

    Hi
    We are running EP6SP2 Patch 35
    I’m trying to give access to the Locked User iView to a group of users (I don’t want them to have full User Management functionality)
    I’ve created a role and added Locked User iView to it.  The role has the same property values as the standard User Admin role (eg UME Action ID: UME.Manage_All = Yes), but when I try to access the Locked User iView I get:
    No Access
    You have no permission to perform this action.
    Can anybody advise what else I need to do to get this to work?
    Thanks.

    Hi Mike,
    just to make sure: did you restart the server after assigning the UME Action to the role???
    Unfortunately, this has to be done in order for your changes to take effect.
    Best regards,
    Robert

  • IViews throwing exception from Non Admin Login?

    Hi,
    I have created some iViews using .Net PDK for SAP.
    I have added these iViews to a page. Then the page is added to workset. I have created a new role and assigned this workset to the new Role. Then I have created a new User and associated this user with the newly created Role.
    Now the problem is whenever I login to portal using new user name and password I am able to see the workset as well as page and iViews. But these iViews are throwing following exception.
    An Error occurred while processing one of the iViews on this page in the .NET server.
    More information:
    1. Default Trace
    Exception id: 10:37_04/10/05_0037_6409650
    However these iViews are running properly when I preview them from admin login.
    What are possible causes/solutions for the above mentioned behavior?
    Thanks for suggestions
    Regards,
    Vikas Khandpur

    Hi Vikas
    You should use the Permission Editor to assign user, group and role permissions to portal objects.
    You can launch the Permission Editor in two ways:
    1. Using the central Permission Editor
    a. Choose System Administration ® Permissions.
    b. Locate the folder or object you want to assign or edit permissions for, right-click it and choose Open ® Permissions from the context menu.
    2. Using the object-specific Permission Editor
    a. Launch the relevant administration tool or editor in the portal.
    b. In the Portal Catalog, locate the object or folder to want to set or edit permissions for. Then, do one of the following:
       i. Right-click the object and choose Open ® Permissions from the context menu.
       ii. Open the object in the editor, and from the Display menu or drop-down list, choose Permissions.
    To know how to set permissions in the permission editor, please refer to the following thread.
    http://help.sap.com/saphelp_nw04/helpdata/en/f6/2604db05fd11d7b84200047582c9f7/content.htm
    As for your doubt on why you are able to view the iViews from an administrator's login,it is because The standard super administer role is assigned maximum access to the entire set of portal initial content. The Super Administrator role is assigned by default to the Administrators group. Therefore, initially all standard administrator users have super administrator permissions in the portal.
    Hope that helped.
    Best Regards
    Priya

  • Impersonate domain user to call MessageQueue.Create() to create a private queue throw exception "Msmq service is not available".

    The code impersonate a domain user to create a private messaging queue on local machine, using MessageQueue.Create(".\\myqueue").
    When the current user is a member of local administrators, it works well. 
    When the current user is a member of local users, it throw exception "Msmq service is not available."

    Hi Psun,
    In my opinion, this thread is related to MSMQ forum. So please post thread on that forum for more effective response. Thank you for understanding. Please refer to the following link.
    http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/home?forum=msmq
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Using sql bulk copy throwing exception -The given value of type String from the data source cannot be converted to type int of the specified target column

    Hi All,
    I am reading notepads files and inserting data in sql tables from the notepad-
    while performing sql bulk copy on this line it throws exception - "bulkcopy.WriteToServer(dt); -"data type related(mentioned in subject )".
    Please go through my  logic and tell me what to change to avoid this error -
    public void Main()
    Dts.TaskResult = (int)ScriptResults.Success;
    string[] filePaths = Directory.GetFiles(@"C:\Users\jainruc\Desktop\Sudhanshu\master_db\Archive\test\content_insert\");
    for (int k = 0; k < filePaths.Length; k++)
    string[] lines = System.IO.File.ReadAllLines(filePaths[k]);
    //table name needs to extract after = sign
    string[] pathArr = filePaths[0].Split('\\');
    string tablename = pathArr[9].Split('.')[0];
    DataTable dt = new DataTable(tablename);
    |
    string[] arrColumns = lines[1].Split(new char[] { '|' });
    foreach (string col in arrColumns)
    dt.Columns.Add(col);
    for (int i = 2; i < lines.Length; i++)
    string[] columnsvals = lines[i].Split(new char[] { '|' });
    DataRow dr = dt.NewRow();
    for (int j = 0; j < columnsvals.Length; j++)
    //Console.Write(columnsvals[j]);
    if (string.IsNullOrEmpty(columnsvals[j]))
    dr[j] = DBNull.Value;
    else
    dr[j] = columnsvals[j];
    dt.Rows.Add(dr);
    SqlConnection conn = new SqlConnection();
    conn.ConnectionString = "Data Source=UI3DATS009X;" + "Initial Catalog=BHI_CSP_DB;" + "User Id=sa;" + "Password=3pp$erv1ce$4";
    conn.Open();
    SqlBulkCopy bulkcopy = new SqlBulkCopy(conn);
    bulkcopy.DestinationTableName = dt.TableName;
    bulkcopy.WriteToServer(dt);
    conn.Close();
    Issue 1:-
    I am reading notepad: getting all column and values in my data table now while inserting for date and time or integer field i need to do explicit conversion how to write for specific column before bulkcopy.WriteToServer(dt);
    Issue 2:- Notepad does not contains all columns nor in specific sequence in that case i can add few column ehich i am doing now but the issue is now data table will add my columns + notepad columns and while inserting how to assign in perticular colums?
    sudhanshu sharma Do good and cast it into river :)

    Hi,
    I think you'll have to do an explicit column mapping if they are not in exact sequence in both source and destination.
    Have a look at this link:
    https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlbulkcopycolumnmapping(v=vs.110).aspx
    Good Luck!
    Kaur.
    Please mark as answer if this resolves your issue.

  • Programmatically adding chart to a report throws exception

    programmatically adding chart to a report throws exception "chart condition fields are not valid".
    Configuration:
    I am using CR4E to create web application, I've added RAS jars (rasapp.jar, rascore.jar, reporttemplate.jar, serialization.jar) to this web application. For designing reports i am using Crystal Reports 2008.
    Code:
    <%
    // Get the previously opened report from the session.
    ReportClientDocument reportClientDocument =
         (ReportClientDocument)session.getAttribute("ReportClientDocument");
    System.out.println(reportClientDocument.getReportDocument().getName());
    // Try to get the report's DataDefinition object.
    IDataDefinition dataDefinition;
    try
         dataDefinition = reportClientDocument.getDataDefController().getDataDefinition();
    // If the DataDefinition object can not be retrieved, redirect the user to an error page.
    catch (Exception e)
         System.out.println("With error1");
        return;
    // Create a new ChartDefinition object and set its type to ChartType.group.
    ChartDefinition chartDefinition = new ChartDefinition();
    chartDefinition.setChartType(ChartType.group);
    Get the conditional field of the report's first group. Set this conditional
    field for the ChartDefinition object using the setConditonalFields method. Notice
    that the conditional field is first placed in a Fields collection because the
    setConditionalFields method takes a Fields object as an argument.
    Fields conditionFields = new Fields();
    if (!dataDefinition.getGroups().isEmpty())
         IField field = dataDefinition.getGroups().getGroup(0).getConditionField();
         System.out.println("Condition field name ->" + field.getLongName(Locale.ENGLISH));
         conditionFields.addElement(field);
    chartDefinition.setConditionFields(conditionFields);
    //Get the summary field name from the form on the previous page.
    String summaryFieldName = URLDecoder.decode(request.getParameter("summaryField"));
    System.out.println("Summary field name ->" + summaryFieldName);
    Loop through all of the report's summary fields until the one matching the name
    above is found. Set this summary field for the ChartDefinition object using the
    setDataFields method. Notice that the summary field is first placed in a Fields
    collection because the setDataFields method takes a Fields object as an argument.
    Fields dataFields = new Fields();
    for (int i = 0; i < dataDefinition.getSummaryFields().size(); i++)
        IField summaryField = dataDefinition.getSummaryFields().getField(i);
         if (summaryField.getLongName(Locale.ENGLISH).equals(summaryFieldName))
              System.out.println("Adding data field ->" + summaryFieldName);
              dataFields.addElement(summaryField);
    chartDefinition.setDataFields(dataFields);
    Create a new ChartObject to represent the chart that will be added.  Set the
    ChartDefinition property of the ChartObject using the ChartDefinition object created
    above.
    ChartObject chartObject = new ChartObject();
    chartObject.setChartDefinition(chartDefinition);
    Get the chart type, chart placement, and chart title strings from the form on the
    previous page. If no chart title was chosen, create a generic title.
    String chartTypeString = request.getParameter("type");
    String chartPlacementString = request.getParameter("placement");
    String chartTitle = request.getParameter("title");
    System.out.println("chartTypeString ->"+ chartTypeString + "<-chartPlacementString->" + chartPlacementString + "<-chartTitle->"+chartTitle);
    if (chartTitle.equals(""))
         chartTitle = "untitled";
    Create a ChartStyleType object and a AreaSectionKind object based on the
    the chartTypeString and chartPlacementString retrieved above. In this example
    possible chart types are bar chart and pie chart. Possible chart placements
    are header and footer.
    ChartStyleType chartStyleType = ChartStyleType.from_string(chartTypeString);
    AreaSectionKind chartPlacement = AreaSectionKind.from_string(chartPlacementString);
    // Set the chart type, chart placement, and chart title for the chart.
    chartObject.getChartStyle().setType(chartStyleType);
    chartObject.setChartReportArea(chartPlacement);
    chartObject.getChartStyle().getTextOptions().setTitle(chartTitle);
    // Set the width, height, and top for the chart.
    chartObject.setHeight(5000);
    chartObject.setWidth(5000);
    chartObject.setTop(1000);
    Get a ReportDefController object that can be used to modify the report's definition.
    ReportDefController reportDefController;
    try
         reportDefController = reportClientDocument.getReportDefController();
    catch (Exception e)
         System.out.println("With Error2");
         return;
    *Create a Section object that represents the section that will hold the chart.
    If the chart placement was set header, get the header section, otherwise, if the
    chart placement was set to footer, get the footer section.
    Section chartSection = null;
    if (chartPlacement.equals(AreaSectionKind.reportHeader))
         IArea reportHeaderArea =
              reportDefController.getReportDefinition().getReportHeaderArea();
         chartSection = (Section)reportHeaderArea.getSections().getSection(0);
    else if (chartPlacement.equals(AreaSectionKind.reportFooter))
         IArea reportFooterArea =
              reportDefController.getReportDefinition().getReportFooterArea();
         chartSection = (Section)reportFooterArea.getSections().getSection(0);
    Add the chart to the section using the ReportDefController object.
    reportDefController.getReportObjectController().add(chartObject, chartSection, 1);
    // Save the changes and close the report.
    reportClientDocument.save();
    reportClientDocument.close();
    session.removeAttribute("ReportClientDocument");
    %>     
    Trace:
    com.crystaldecisions.sdk.occa.report.lib.ReportDefControllerException: The chart condition fields are not valid.---- Error code:-2147213287 Error code name:invalidChartObject
         at com.crystaldecisions.sdk.occa.report.lib.ReportDefControllerException.throwReportDefControllerException(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportObjectController.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportObjectController.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportObjectController.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportObjectController.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportObjectController.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportObjectController.add(Unknown Source)
         at org.apache.jsp.AddChart_jsp._jspService(AddChart_jsp.java:230)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
         at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
         at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:393)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         at java.lang.Thread.run(Thread.java:595)

    Please try this code snippet
    var cs:ColumnSeries = new ColumnSeries();
    cs.dataProvider = dp;
    cs.displayName = "Series 2";
    cs.yField = "values";
    chart.series.push(cs);
    OR
    var temp:Array = [];
    var cs:ColumnSeries = new ColumnSeries();
    cs.dataProvider = dp;
    cs.displayName = "Series 2";
    cs.yField = "values";
    temp = chart.series;
    temp.add(cs);
    chart.series = temp;

  • Custom XSLT Functions Throw Exception

    Hi,
    I have following requirement-
    1. I have defined and configured some custom XSLT functions in Jdev and BPEL, which throw exception in case of an error.
    2. Now I want to catch that exception in my BPEL process
    3. In My BPEL process I have defined transformation step ( which is using those Custom XSLT functions) in a scope and added a catch branch to that
    4. But even XSLT java function throw an exception , it is not being catch by catch branch.
    Could you please help me regarding this and tell me any other way to catch an exception in BPEL process thrown by Custom XSLT function within transformation step?
    Thanks.

    Hi,
    Its the problem with the date. In the configuration file i used dateTime for java.util.Date, because of this i cant see "User Defined" option in Jdeveloper component pallete. I checked at XML data types i had seen dateTime for java.util.Date Class, but its not working.
    Do anyone created a custom xslt function which has date as parameter or return type?, If so wht they had used as data type for xml and java.
    Thanks,
    RR

  • Dispatching GridSelectionEvent throw exception at runtime - A build issue with FB 4.5

    This is a strang probelm I am facing with.
    My code dispatches GridSelectionEvent after setting girds' selected item in one logic path. Following is code lines -
    myDataGrid.selectedItem = instanceTag;
    myDataGrid.dispatchEvent(new GridSelectionEvent(GridSelectionEvent.SELECTION_CHANGE));
    Flash player throws following error on above statements encounter -
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at spark.accessibility::DataGridAccImpl/eventHandler()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at mx.core::UIComponent/dispatchEvent()
    I am saying it is a strang for me because when I use swf file generated by Flex Builder (4.5)'s export to release build, it does not throw error and code works fine as expected.
    But, when I user swf file generated by Ant script, I face the above issue.
    The Flex builder settings is as shown in following image -
    Ant  mxmlc script is as follow -
    <mxmlc      
               file="${basedir}/src/AppMonConfigWizard.mxml"
                static-rsls="false"
               keep-generated-actionscript="false"
               output="${basedir}/bin-release/AppMonConfigWizard.swf" >
         <locale>en_US</locale>
          <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
          <source-path path-element="${FLEX_HOME}/frameworks"/>
          <source-path path-element="${basedir}/src/locale/{locale}"></source-path>
          <compiler.library-path file="${basedir}/../wizard_framework/bin/wizard_framework.swc" append="true"/>
         <compiler.library-path file="${basedir}/../../utils/bin/utils.swc" append="true"/>
          <include-resource-bundles>ErrorMessages</include-resource-bundles>
          <include-resource-bundles>Strings</include-resource-bundles>
    </mxmlc>
    As mentioned earlier that following statements cause exception -
         myDataGrid.selectedItem = instanceTag;
         myDataGrid.dispatchEvent(new GridSelectionEvent(GridSelectionEvent.SELECTION_CHANGE));
    If I change it to
         myDataGrid.setSelectedIndex(<some index value>)   /*selectedItem replaced with setSelectedIndex*/
         myDataGrid.dispatchEvent(new GridSelectionEvent(GridSelectionEvent.SELECTION_CHANGE));
    it does not throw exception.  I would like to mention that myDataGrid.selectedItem = instanceTag; does sets the selected item but then in that case issue arises when dispatching event.
    I my application, similar statemetns were lot at many places (as there were no such issue with SDK 3.1 which was using earlier) so instead of making changes there, it would be better to imitate the build that Flex builder uses when exported the release build.
    Thanks in advance,
    Prithveesingh Zankat.

    Solved it: had set the only public surface contracts checkbox by mistake and the cosntructor was protected...
    Luis Abreu

  • Web part throwing exception at run time but not in debug mode

    The below code is throwing exception at run time but does not throw exception while debugging in Visual Studio. This is really causing difficulty for me to detect the cause of exception. Below I have also placed the exception image for reference.
    namespace CheckforContractorLogin.VisualWebPart1
    public partial class VisualWebPart1UserControl : UserControl
    protected void Page_Load(object sender, EventArgs e)
    if (!IsPostBack)
    string loginName = string.Empty;
    string coc_url = string.Empty;
    SPQuery spQuery = new SPQuery();
    spQuery.Query = "<Where><Eq><FieldRef Name='LoginName' /><Value Type='Text'>" + currentUser + "</Value></Eq></Where>";
    Guid _spSiteID = SPContext.Current.Site.ID;
    Guid _spWebID = SPContext.Current.Site.OpenWeb().ID;
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite _spSite = new SPSite(_spSiteID))
    using (SPWeb _spWeb = _spSite.OpenWeb(_spWebID))
    //if user has already accepted the COC
    SPList getSPList = _spWeb.Lists["RedirectUrl"];
    SPListItemCollection getspItemColl = getSPList.Items;
    foreach (SPListItem item in getspItemColl)
    if (Convert.ToString(item["Title"]) == "Policy Acceptance")
    coc_url = Convert.ToString(item["Url"]);
    SPList spList = _spWeb.Lists["Policy Acceptance Status"];
    SPListItemCollection spItemColl = spList.GetItems(spQuery);
    bool result = getADUserInfo();
    if ((spItemColl.Count == 0) && (result))
    Response.Redirect(coc_url);
    protected string currentUser
    get
    string currentUser1 = HttpContext.Current.User.Identity.ToString();
    int index = currentUser1.IndexOf("\\") + 1;
    string currentLoginUser = currentUser1.Substring(index);
    return currentLoginUser;
    protected bool getADUserInfo()
    DirectoryEntry dentry = null;
    DirectorySearcher dsearcher = null;
    string ldap = string.Empty;
    string empID = string.Empty;
    string _empID = string.Empty;
    try
    Guid spSiteGUID = SPContext.Current.Site.ID;
    Guid spWebGUID = SPContext.Current.Site.OpenWeb().ID;
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite elevatedSiteColl = new SPSite(spSiteGUID))
    using (SPWeb elevatedWeb = elevatedSiteColl.OpenWeb(spWebGUID))
    SPList spList = elevatedWeb.Lists["LDAP_Paths"];
    SPQuery spQuery = new SPQuery();
    spQuery.Query = "<Where><Eq><FieldRef Name='OU'/>"
    + "<Value Type='Text'>QD</Value></Eq></Where>";
    SPListItem spItem = spList.GetItemById(1);
    ldap = spItem["Path"].ToString();
    dentry = new DirectoryEntry();
    dentry.Path = ldap;
    dentry.Username = "******\\sp_admin";
    dentry.Password = "******";
    dsearcher = new DirectorySearcher(dentry);
    dsearcher.Filter = String.Format("(&(ObjectCategory=Person)(sAMAccountName=" + currentUser + "))");
    SearchResult searchResult = dsearcher.FindOne();
    dentry = searchResult.GetDirectoryEntry();
    if (searchResult != null)
    if (dentry.Properties.Contains("physicalDeliveryOfficeName"))
    empID = dentry.Properties["physicalDeliveryOfficeName"][0].ToString();
    if (empID.Contains("QA-"))
    return true;
    else
    return false;
    catch (Exception e)
    throw e;
    finally
    dentry.Close();
    dentry.Dispose();
    dsearcher.Dispose();

    Hi Zakir,
    I am not sure but it would be nice if you can do following
    Try search ULS log with correlation id and find exact error and share here. If not able to find do following
    Or in catch block write
    Response.Write(ex.ToString());
    and check what exception its giving.

  • Custom Indirection Container throwing exception in constructor

    Hi I've following the how-to and implemented my own custom indirection container. However, when reading an object from the database I'm getting the following exception. I'm guessing that it could be related to having null references stored as 0 in id columns. Any help would be greatly appreciated.
    Thanks,
    Jon
    Exception thrown in main Exception [TOPLINK-152] (OracleAS TopLink - 10g (9.0.4.8) (Build 050712)):
    oracle.toplink.exceptions.DescriptorException
    Exception Description: The operation [buildContainer constructor (null) Failed: java.lang.NullPointe
    rException] is invalid for this indirection policy [oracle.toplink.internal.indirection.ContainerInd
    irectionPolicy@cc0e01].
    Mapping: oracle.toplink.mappings.OneToOneMapping[ryFromMail]
    Descriptor: Descriptor(com.peoplesoft.crm.omk.design.PsRyedocVar --> [DatabaseTable(PS_RYEDOC_VAR)])
    Local Exception Stack:
    Exception [TOPLINK-152] (OracleAS TopLink - 10g (9.0.4.8) (Build 050712)): oracle.toplink.exceptions
    .DescriptorException
    Exception Description: The operation [buildContainer constructor (null) Failed: java.lang.NullPointe
    rException] is invalid for this indirection policy [oracle.toplink.internal.indirection.ContainerInd
    irectionPolicy@cc0e01].
    Mapping: oracle.toplink.mappings.OneToOneMapping[ryFromMail]
    Descriptor: Descriptor(com.peoplesoft.crm.omk.design.PsRyedocVar --> [DatabaseTable(PS_RYEDOC_VAR)])
    at oracle.toplink.exceptions.DescriptorException.invalidIndirectionPolicyOperation(Descripto
    rException.java:669)
    at oracle.toplink.internal.indirection.ContainerIndirectionPolicy.buildContainer(ContainerIn
    directionPolicy.java:62)
    at oracle.toplink.internal.indirection.ContainerIndirectionPolicy.valueFromQuery(ContainerIn
    directionPolicy.java:254)
    at oracle.toplink.mappings.ForeignReferenceMapping.valueFromRow(ForeignReferenceMapping.java
    :898)
    at oracle.toplink.mappings.OneToOneMapping.valueFromRow(OneToOneMapping.java:1302)
    at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:876)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder
    .java:164)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:322)
    at oracle.toplink.queryframework.ObjectLevelReadQuery.buildObject(ObjectLevelReadQuery.java:
    242)
    at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadObjectQuery.java:368)
    at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:510)
    at oracle.toplink.queryframework.ReadQuery.execute(ReadQuery.java:125)
    at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:1962)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1086)
    at oracle.toplink.internal.indirection.NoIndirectionPolicy.valueFromQuery(NoIndirectionPolic
    y.java:254)
    at oracle.toplink.mappings.ForeignReferenceMapping.valueFromRow(ForeignReferenceMapping.java
    :898)
    at oracle.toplink.mappings.OneToOneMapping.valueFromRow(OneToOneMapping.java:1302)
    at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:876)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder
    .java:164)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:322)
    at oracle.toplink.queryframework.ObjectLevelReadQuery.buildObject(ObjectLevelReadQuery.java:
    242)
    at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadObjectQuery.java:368)

    Clients of your class might not like you throwing
    exceptions from the ctor. If they're checked
    exceptions it'll mean try/catch blocks. If there are
    LOTS of checked exceptions that'll mean lots of catch
    blocks. Could get messy fast. You could catch in the
    ctor and wrap in a subclass of
    java.lang.RuntimeException. Those are unchecked, like
    java.lang.IllegalArgumentException.I would strongly advise against making your checked exceptions unchecked just so that the caller's code will compile without try/catch blocks. Either way--checked or unchecked--if I do Foo foo = new Foo();
    foo.doStuff(); I won't get to doStuff() if the ctor threw an exception.
    You'd throw unchecked exceptions in those cases where it's appropriate--e.g., the caller passed you invalid args (bad code on the caller's part, appropriated for unchecked exception), or the VM couldn't get enough memory to create your object (probably not something the caller can do anything about, so, again, appropriate for unchecked).
    But if, for example, he's passing you database login parameters that an end user provided, and the password is wrong or the host is unreachable, then you'd want to throw a checked exception, because it's not bad code on the caller's part, and there might be something he can do to recover.
    Note that the example of the incorrect password above is quite different from the "invalid args" example in the previous paragraph. Your method would throw IllegalArgumentException if the caller passed args that violate your method's precondition--e..g. lie outside some range of numbers. That is, it's a value that your method simply can't use. A bad password for a db login, on the other hand, is legal as far as your method is concerned, it just failed authentication in the db.
    @%: I know you're aware of the proper use of checked/unchecked exceptions, but the way you worded you post kind of sounded like you were saying, "just use unchecked if you find the caller has too many try statements."
    &para;

  • Program to lock users

    Dear Pros,
    As a security admin. I would appreciate if someone could help me program to lock users vis following requiremnt:
    1)       Has logged onto the system in the past, but has not logged on in the last 90 days.
    2)       Has never logged onto the system in the past 30 days.
    3)       Does NOT belong to User Group “SUPER”.
    4)       Dialog Users ONLY.
    Thanks for any help or suggestion

    Hi,
       Try with this program or you can modify:
    Selection Text
    001     Program Parameter
    002     User Lockeds
    003     User Erased
    004     Report of User Lokeds and Erased
    005     User
    006     Last  Access Date
    007     Creation Date
    008     Result
    009     Full Name
    010     Exception (Not to erase these users)
    CHECK_T Test ejecution
    CLASS     Users Group
    MESBL     Months to Lock
    MESBO     Months to Delete
    S_EXCEP     Users
    REPORT ZBAR0009 NO STANDARD PAGE HEADING LINE-SIZE 155 LINE-COUNT 60.
    TABLES: USR02,              "Datos logon
            USR21,              "Asignación nombre usuario - clave dirección
            ADRP.               "Personas (gestión de direcciones central)
    DATA: BEGIN OF IT_USBOR OCCURS 0,
              BNAME LIKE USR02-BNAME, "Nombre de usuario según maestro de us
              ERDAT LIKE USR02-ERDAT, "Fecha de creación del maestro de usua
              TRDAT LIKE USR02-TRDAT. "Fecha del último acceso al sistema
    DATA END OF IT_USBOR.
    DATA: BEGIN OF IT_USBLO OCCURS 0,
              BNAME LIKE USR02-BNAME, "Nombre de usuario según maestro de us
              ERDAT LIKE USR02-ERDAT, "Fecha de creación del maestro de usua
              TRDAT LIKE USR02-TRDAT. "Fecha del último acceso al sistema
    DATA END OF IT_USBLO.
    DATA: BEGIN OF BDCDATAC OCCURS 5.
            INCLUDE STRUCTURE BDCDATA.
    DATA: END OF BDCDATAC.                 "Estructura Batch Input
    Tablas de mensajes generados por el batch input de modificación.
    DATA: BEGIN OF BDCMSGCOLLM OCCURS 5.
            INCLUDE STRUCTURE BDCMSGCOLL.
    DATA: END OF BDCMSGCOLLM.
    DATA: FECHA1 LIKE USR02-TRDAT,
          FECHA2 LIKE USR02-TRDAT,
          FECHA3 LIKE USR02-TRDAT,
          TR_MS(30),
          I      TYPE I,
          P      TYPE I,
          CONT   TYPE I.
    SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
        PARAMETERS: MESBL(2) DEFAULT '03',
                    MESBO(2) DEFAULT '06',
                    CLASS LIKE USR02-CLASS DEFAULT 'UPSTREAM',
                    CHECK_T AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN: BEGIN OF BLOCK C1 WITH FRAME TITLE TEXT-010.
        SELECT-OPTIONS: S_EXCEP FOR USR02-BNAME.
    SELECTION-SCREEN END OF BLOCK C1.
    START-OF-SELECTION.
    Armado de Fechas
      MOVE SY-DATUM TO FECHA1.
      FECHA2 = FECHA1 - ( 30 * MESBL ).
      FECHA3 = FECHA1 - ( 30 * MESBO ).
      PERFORM EXTRACCIÓN_US_BLOQUEAR.
      PERFORM EXTRACCIÓN_US_BORRAR.
      PERFORM VALIDAR_EXCEPCIONES.
      PERFORM EJECUTAR_TRANS.
      TOP-OF-PAGE.
          FORMAT COLOR 4 ON.
          SKIP.
          WRITE: /57 TEXT-004, 134 'Fecha: ', SY-DATUM.
          WRITE: /134 'Página: ', SY-PAGNO, 151 ' '.
          SKIP.
      END-OF-PAGE.
    *&      Form  EXTRACCIÓN_US_BORRAR
          text
    -->  p1        text
    <--  p2        text
    FORM EXTRACCIÓN_US_BORRAR.
    Selección de los Usuarios a Borrar que han entrado alguna vez
        SELECT BNAME ERDAT TRDAT APPENDING CORRESPONDING FIELDS OF TABLE
                           IT_USBOR FROM USR02 WHERE TRDAT LT FECHA3 AND
                                                TRDAT NE '00000000' AND
                                                CLASS EQ CLASS.
    Selección de los Usuarios a Borrar que aún no han entrado
        SELECT BNAME ERDAT TRDAT APPENDING CORRESPONDING FIELDS OF TABLE
                           IT_USBOR FROM USR02 WHERE ERDAT LT FECHA3 AND
                                                TRDAT EQ '00000000' AND
                                                CLASS EQ CLASS.
    ENDFORM.                    " EXTRACCIÓN_US_BORRAR
    *&      Form  EXTRACCIÓN_US_BLOQUEAR
          text
    -->  p1        text
    <--  p2        text
    FORM EXTRACCIÓN_US_BLOQUEAR.
    Selección de los Usuarios a Bloquear que han entrado alguna vez
        SELECT BNAME ERDAT TRDAT APPENDING CORRESPONDING FIELDS OF TABLE
                         IT_USBLO FROM USR02 WHERE TRDAT LT FECHA2 AND
                                                TRDAT GE FECHA3 AND
                                                CLASS EQ CLASS.
    Selección de los Usuarios a Bloquear que aún no han entrado
        SELECT BNAME ERDAT TRDAT APPENDING CORRESPONDING FIELDS OF TABLE
                       IT_USBLO FROM USR02 WHERE ERDAT LT FECHA2 AND
                                                ERDAT GE FECHA3 AND
                                                TRDAT EQ '00000000' AND
                                                CLASS EQ CLASS.
    ENDFORM.                    " EXTRACCIÓN_US_BLOQUEAR
    *&      Form  VALIDAR_EXCEPCIONES
          text
    -->  p1        text
    <--  p2        text
    FORM VALIDAR_EXCEPCIONES.
        IF S_EXCEP NE SPACE.
            DELETE IT_USBLO WHERE BNAME EQ 'SAP*' OR
                                  BNAME EQ 'DDIC' OR
                                  BNAME EQ 'MAILADM' OR
                                  BNAME EQ 'SAPGUEST' OR
                                  BNAME EQ 'WF-BATCH' OR
                                  BNAME IN S_EXCEP.
            DELETE IT_USBOR WHERE BNAME EQ 'SAP*' OR
                                  BNAME EQ 'DDIC' OR
                                  BNAME EQ 'MAILADM' OR
                                  BNAME EQ 'SAPGUEST' OR
                                  BNAME EQ 'WF-BATCH' OR
                                  BNAME IN S_EXCEP.
        ELSE.
            DELETE IT_USBLO WHERE BNAME EQ 'SAP*' OR
                                  BNAME EQ 'DDIC' OR
                                  BNAME EQ 'MAILADM' OR
                                  BNAME EQ 'SAPGUEST' OR
                                  BNAME EQ 'WF-BATCH'.
            DELETE IT_USBOR WHERE BNAME EQ 'SAP*' OR
                                  BNAME EQ 'DDIC' OR
                                  BNAME EQ 'MAILADM' OR
                                  BNAME EQ 'SAPGUEST' OR
                                  BNAME EQ 'WF-BATCH'.
        ENDIF.
    ENDFORM.                    " VALIDAR_EXCEPCIONES
    *&      Form  EJECUTAR_TRANS
          text
    -->  p1        text
    <--  p2        text
    FORM EJECUTAR_TRANS.
    DATA: L TYPE I.
        DESCRIBE TABLE IT_USBLO LINES L.
        IF L GT 0.
            LOOP AT IT_USBLO.
                ADD 1 TO CONT.
                IF CHECK_T EQ SPACE.
                    PERFORM EJECUTAR_US01 USING 'LOCK' IT_USBLO-BNAME.
                ENDIF.
                PERFORM LISTAR USING IT_USBLO-BNAME IT_USBLO-ERDAT
                                     IT_USBLO-TRDAT TR_MS 'LOCK'.
                AT LAST.
                    ULINE /1(152).
                ENDAT.
            ENDLOOP.
        ENDIF.
        DESCRIBE TABLE IT_USBOR LINES L.
        IF L GT 0.
            CLEAR CONT.
            LOOP AT IT_USBOR.
                ADD 1 TO CONT.
                IF CHECK_T EQ SPACE.
                    PERFORM EJECUTAR_US01 USING 'DELE' IT_USBOR-BNAME.
                ENDIF.
                PERFORM LISTAR USING IT_USBOR-BNAME IT_USBOR-ERDAT
                                     IT_USBOR-TRDAT TR_MS 'DELE'.
                AT LAST.
                    ULINE /1(152).
                ENDAT.
            ENDLOOP.
        ENDIF.
    ENDFORM.                    " EJECUTAR_TRANS
    *&      Form  EJECUTAR_US01
          text
         -->P_0154   text                                                *
    FORM EJECUTAR_US01 USING VALCODE USUARIO.
    REFRESH BDCDATAC.
    MOVE: 'SAPLSUU5' TO BDCDATAC-PROGRAM,
          '0050'     TO BDCDATAC-DYNPRO,
          'X'        TO BDCDATAC-DYNBEGIN.
    APPEND BDCDATAC.
    CLEAR  BDCDATAC.
    MOVE: 'USR02-BNAME' TO BDCDATAC-FNAM, "Usuario SAP
           USUARIO TO BDCDATAC-FVAL.
    APPEND BDCDATAC.
    CLEAR  BDCDATAC.
    IF VALCODE EQ 'LOCK'.
    MOVE: 'BDC_OKCODE' TO BDCDATAC-FNAM, "OK_CODE
          '=LOCK' TO BDCDATAC-FVAL.
    APPEND BDCDATAC.
    CLEAR  BDCDATAC.
    MOVE: 'SAPLSUU5' TO BDCDATAC-PROGRAM,
          '0500'     TO BDCDATAC-DYNPRO,
          'X'        TO BDCDATAC-DYNBEGIN.
    APPEND BDCDATAC.
    CLEAR  BDCDATAC.
    MOVE: 'BDC_OKCODE' TO BDCDATAC-FNAM, "OK_CODE
          '=LOCK' TO BDCDATAC-FVAL.
    APPEND BDCDATAC.
    CLEAR  BDCDATAC.
    ELSEIF VALCODE EQ 'DELE'.
    MOVE: 'BDC_OKCODE' TO BDCDATAC-FNAM, "OK_CODE
          '=DELE' TO BDCDATAC-FVAL.
    APPEND BDCDATAC.
    CLEAR  BDCDATAC.
    MOVE: 'SAPLSPO1' TO BDCDATAC-PROGRAM,
          '0300'     TO BDCDATAC-DYNPRO,
          'X'        TO BDCDATAC-DYNBEGIN.
    APPEND BDCDATAC.
    CLEAR  BDCDATAC.
    MOVE: 'BDC_OKCODE' TO BDCDATAC-FNAM, "OK_CODE
          '=YES' TO BDCDATAC-FVAL.
    APPEND BDCDATAC.
    CLEAR  BDCDATAC.
    ENDIF.
      CALL TRANSACTION 'SU01' USING BDCDATAC
           MODE 'N'
           UPDATE 'S'
           MESSAGES INTO BDCMSGCOLLM.
      REFRESH BDCDATAC.
          MOVE BDCMSGCOLLM-MSGV1(30) TO TR_MS.
          CLEAR BDCMSGCOLLM.
          REFRESH BDCMSGCOLLM.
    ENDFORM.                    " EJECUTAR_US01
    *&      Form  LISTAR
          text
         -->P_IT_USBLO_USUARIO  text                                     *
    FORM LISTAR USING CODUS FECHA1 FECHA2 MENSAGE ACC.
    DATA: NOMBRE(50), LOCKSTATE LIKE  USLOCK .  "RM 06-04-05
      Búsqueda del Nombre Completo del Usuario
        CLEAR NOMBRE.
        SELECT PERSNUMBER INTO USR21-PERSNUMBER FROM USR21
                          WHERE BNAME EQ CODUS.
        ENDSELECT.
        SELECT NAME_FIRST NAME_LAST INTO (ADRP-NAME_FIRST, ADRP-NAME_LAST)
                          FROM ADRP
                          WHERE PERSNUMBER EQ USR21-PERSNUMBER.
        ENDSELECT.
        CONCATENATE ADRP-NAME_FIRST ADRP-NAME_LAST INTO NOMBRE
                                    SEPARATED BY SPACE.
        IF ACC EQ 'LOCK'.
            ADD 1 TO I.
            IF I EQ 1.
                ULINE /1(30).
                WRITE: / SY-VLINE,  2  TEXT-002, 30 SY-VLINE.
                ULINE /1(152).
                WRITE: / SY-VLINE, 2 TEXT-005, 15 SY-VLINE, 17 TEXT-009,
                       68 SY-VLINE, 70 TEXT-007, 93 SY-VLINE, 95 TEXT-006,
                       118 SY-VLINE, 120 TEXT-008, 152 SY-VLINE.
                ULINE /1(152).
            ENDIF.
            IF CONT EQ 1.
                FORMAT COLOR 2 INTENSIFIED ON.
            ELSEIF CONT EQ 2.
                CLEAR CONT.
                FORMAT COLOR 2 INTENSIFIED OFF.
            ENDIF.
          Búsqueda del Status de Bloqueo del Usuario
            CALL FUNCTION 'SUSR_USER_LOCKSTATE_GET'
                 EXPORTING
                      USER_NAME           =  CODUS
                 IMPORTING
                      LOCKSTATE           =  LOCKSTATE
                 EXCEPTIONS
                      USER_NAME_NOT_EXIST = 1
                      OTHERS              = 2.
           IF LOCKSTATE-LOCAL_LOCK EQ 'X'.   "RM 06-04-05
               MOVE 'BLOQUEADO' TO MENSAGE.
           ELSE.
               CLEAR MENSAGE.
           ENDIF.
            WRITE: / SY-VLINE, 2 CODUS, 15 SY-VLINE, 17 NOMBRE,
                     68 SY-VLINE, 70 FECHA1, 93 SY-VLINE, 95 FECHA2,
                     118 SY-VLINE, 120 MENSAGE, 152 SY-VLINE.
        ELSEIF ACC EQ 'DELE'.
            ADD 1 TO P.
            IF P EQ 1.
                ULINE /1(30).
                WRITE: / SY-VLINE,  2  TEXT-003, 30 SY-VLINE.
                ULINE /1(152).
                WRITE: / SY-VLINE, 2 TEXT-005, 15 SY-VLINE, 17 TEXT-009,
                        68 SY-VLINE, 70 TEXT-007, 93 SY-VLINE, 95 TEXT-006,
                        118 SY-VLINE, 120 TEXT-008, 152 SY-VLINE.
                ULINE /1(152).
            ENDIF.
            IF CONT EQ 1.
                FORMAT COLOR 2 INTENSIFIED ON.
            ELSEIF CONT EQ 2.
                CLEAR CONT.
                FORMAT COLOR 2 INTENSIFIED OFF.
            ENDIF.
            WRITE: / SY-VLINE, 2 CODUS, 15 SY-VLINE, 17 NOMBRE,
                     68 SY-VLINE, 70 FECHA1, 93 SY-VLINE, 95 FECHA2,
                     118 SY-VLINE, 120 MENSAGE, 152 SY-VLINE.
        ENDIF.
    ENDFORM.                    " LISTAR

  • Lock the entire computer, except for one program?

    I am having my 20th high school reunion this weekend and was wondering if there is a way to lock my entire MacBook except for a guestbook I would probably make in Filemaker Pro or something. Thanks in advance!

    create a normal user (no admin) , and censured all the program except filemaker. you can find this option in account setting.
    look at create user account:
    http://www.apple.com/support/mac101/work/1/

  • WebService throw Exception

    I am trying to test throwing exceptions from a java web service.
         * Web service operation
        @WebMethod(operationName = "newRole")
        public String newRole(@WebParam(name = "name") String name, @WebParam(name = "users") String users)  throws Exception
            throw new Exception("TestException");
        }Now whenever I test this webservice I get:
    "Service invocation threw an exception with message : null; Refer to the server log for more details"
    "Exceptions details : java.lang.reflect.InvocationTargetException ..."
    The stack trace is massive.
    Now if I examine the log I see the regular normal "Exception: TestException" message.
    How can I get the web service to properly convert the Exception into a proper SOAP message not wrapped up on this InvocationTargetException .
    Thanks,
    Stephen

    Hi Mahesh,
    I refered those scenarios. But, our requirment is we want to take 'Additional Text' option from SXMB_MONI and map to WS source structure one element.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?><!-- Call Adapter --> <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1"><SAP:Category>XIServer</SAP:Category><SAP:Code area="INTERNAL">PL_TIMEOUT</SAP:Code><SAP:P1/><SAP:P2/><SAP:P3/><SAP:P4/><SAP:AdditionalText>TIME OUT REACHED</SAP:AdditionalText><SAP:ApplicationFaultMessage namespace=""/><SAP:Stack>Timeout condition of pipeline reached
    </SAP:Stack><SAP:Retry>N</SAP:Retry></SAP:Error>
    Could you kindly help me ?

  • Locked user tab on portal

    Hi All,
    Iam gettin the following error when iam clicking the 'locked user' tab on the portal .
    User Management Exception
    An exception occurred. Inform your system administrator. 
    Suggested Options 
    Look at the log file for the cause of the error
    can anybody help me its very urgent.........
    Thanks in advance..........

    Hi,
    You either have DB inconsistencies, or you are on SP14.
    There was a problem with SP14 for the empty lock reason with locked user accounts. If on SP 14, it is best to upgrade. You can also run the UME consistency check tool in order to remove any inconsistencies which might cause this problem.
    Regards,
    Iliyan

  • Besides throwing exceptions and the "return;" statement

    Besides throwing exceptions and the "*return*" statement, what else clauses could complete a code block abruptly?
    Originally I thought System.exit() should be one of that kind, and I was totally puzzled by the fact that finally clause dose not work with System.exit(). But after a few thoughts, it becomes clear to me that System.exit() dose not even complete a code block, let alone completing a code block abruptly. So is there other logic that could make a code block complete abruptly?
    My question originates from paragraphs in <Thinking in JAVA>, which claim that, I quote,
    "Unfortuantely, there's a flaw in Java's exception implementation. Although exceptions are an indication of a crisis in your program and should never be ignored, it's possible for an exception to simply be lost. This happens with a particular configuration using a finally clause"..."This is a rather serious pitfall, since it means that an exception can be completely lost, and in a far more subtle and difficult -to-detect fashion..."..."Perhaps a future version of Java will repair this problem"...
    After check with JLS, it seams that it is legitimate to ignore the reason for the abrupt completion of the try block, if the corresponding finally block completes abruptly. I think whether this is a "pitfall, flaw" or not depends on how deeply we language users understand the purpose of the finally clause and it is better for me to know all the possible reasons for a code block to complete abruptly.
    So, besides throwing exceptions and the "*return*" statement, what else clauses could complete a code block abruptly?

    warnerja wrote:
    Case 1: Normal flow (no exception is about to be bubbled to the caller before getting to the finally block) - I'd say we want an exception back due to the failure to close the stream.
    Case 2: The finally block was entered through an exception about to be bubbled to the caller - the caller can only get one or the other exception back, either the original exception or the one indicating the failure to close the stream. The finally block has no access to the pending exception however and is unaware of whether there is an exception pending or not. All it knows is an exception occurred during the execution of the finally block, and should throw that or wrap it in another exception - same handling as in Case 1.
    try {
      write();
      flush();
    finally {
      try {
        close();
      catch (...) {
        log();
    }The flush() at the end of try seems kind of redundant, since close() calls flush() anyway. The benefit is that the try statement completion matches the try block ("real work") completion.
    If we get to the end of the try block with no exception, then write() and flush() have succeeded and the data is where it needs to be. All that's left is to release the I/O resource, which will always be done in finally.
    If there's an exception in the try block, it is propagated out, so we know of any failure that occurred doing the "real work." The I/O resource is still released in finally.
    Regardless of how the try block completed, releasing the resource does not affect how the try statement completes, and hence does not supersede how our "real work" completes, which is all we care about. We still log any close() errors for later investigation. What matters to our program is whether all the data was written, and the completion of write() and flush() tells us that.

Maybe you are looking for

  • Mysterious sound appears in my movie after burning

    I originally posted this in the iDVD forum, since it seems to be an iDVD issue, but since no one answered I thought I would try here: I made a 10-minute video in iMovie '09 and burned it to a disc using iDVD 7.0.4. The movie itself is completely sile

  • Early 2009 Mac Mini slow with Mavericks

    I bought an early 2009 Mac Mini, and it was really slow with Maverick 10.9.1 installed. I proceed to upgrade the ram to 8GB and replaced the Hard Drive with a WD 500GB Blue Drive. The system is still pegging the CPU to 98%. I am posting 2 EtreChecks.

  • Issue with SOAP receiver AXIS adapter

    Hi  All, We have a scenario  SOAP -- > PI -- > SOAP (axis)  using SOAP 1.2 version  synchnrous scenario.  Using Webservice navigator am trying to trigger a message to  PI . Message has reached to PI box and failing in the receiver SOAP(axis) channel

  • Missing driver in Update Retriever / System Update

    Hi, We are missing a driver in Update Retriever for the T540p model: The driver is also missing in System Update, when we query Lenovo repository directly. Neither is the driver available for download manually on the support page. Device 8086:08b2 "I

  • Rows to column in 11g as single query

    I would like to create single row with column name as ISIN, CUSIP, SEDOL for each row which has desc IS, CU, SE as below SQL> select * from test;       CODE DESCR                     VALUE         10 IS                          100         10 CU