Name "watch" as request parameter not allowed or reserved?

Good morning, all
I just did a strange observation about the usage of parameter name "watch" in an <f:param> tag in the following way:
<h:commandLink action="#{MBUser.watchSelected}">
<f:param name="watch" value="#{orgtree.identifier}"/>
<h:outputText value="#{msg.Details}" styleClass="text_tree_link"/>
</h:commandLink>
This tag group is nested in a MyFaces tree2 component and the "watch" parameter is taken from the faces context in a managed bean.
If I change the name to anything else ("xxxxx", "wat") the orgtree.identifier has the right data. Using name "watch" results in an empty request parameter value "".
Has anybody encountered this problem? Is this problem maybe related to MyFaces?
Thanks for sharing more information about this doubt.
All the best,
Alexander

Thanks for replying.
This is what I have in the WEB-INF/lib folder of my project:
188.671 commons-beanutils-1.7.0.jar
46.725 commons-codec-1.3.jar
559.366 commons-collections-3.1.jar
168.446 commons-digester-1.6.jar
112.341 commons-el-1.0.jar
22.379 commons-fileupload.jar
207.723 commons-lang-2.1.jar
38.015 commons-logging-1.0.4.jar
84.462 commons-validator.jar
112.341 commons.jar
170.389 concurrent.jar
1.847.334 hibernate3.jar
65.425 jakarta-oro.jar
665.190 jboss-aop-jdk50.jar
285.423 jboss-aspect-library-jdk50.jar
180.060 jboss-client.jar
811.503 jboss-common-client.jar
438.017 jboss-ejb3.jar
18.037 jboss-ejb3x.jar
424.123 jboss-j2ee.jar
285.649 jboss-remoting.jar
52.653 jboss-transaction-client.jar
142.791 jbosssx-client.jar
25.903 jnp-client.jar
16.923 jstl-1.1.0.jar
352.668 log4j-1.2.8.jar
252.043 myfaces-api-1.1.3.jar
524.026 myfaces-impl-1.1.3.jar
17.090 portlet-api.jar
363.490 standard.jar
543.706 struts.jar
1.250.136 tomahawk-1.1.2.jar
About the problem: Maybe it is very difficult to reproduce since it sits in a complex environment, composed by a tree2 component in a panelGrid.
Also I could fix the error by using another parameter name, so for the moment, we are not blocked, but I consider that reports of this kind can be useful to colleague developers.
Cheers,
Alexander

Similar Messages

  • Logical system name for this BI is not allowed

    Working under Data Warehouse Workbench, when I click BI Content button, I get pop-up: "Logical system name for this BI is not allowed". Then I get three options from NW system: "Create",  "Assign" or "Cancel".
    What can I do? How to create a new Logical System?
    Thanks,
    Mike

    Refer this link to create a Logical System...
    http://help.sap.com/saphelp_nw70/helpdata/en/aa/b4b13b00ae793be10000000a11402f/content.htm

  • Need to be able to type in a colon(:) in the Email line of setting up my ntlworld mail account. Able to put in a colon in the Name or Password line but not allowed in this line as presumably who ever heard of an email address with a colon.

    How can I insert a colon(:) when setting up my ipad mini for a New Account ? (Mail, Contacts, Calendars   to  Add Mail Account  to  New Account)
    Virgin media require a colon as part of the Email line . I can put in a colon on the line above or below ie Name or Password line but not this line

    I had a similar problem in that my wife's iphone 5 could not send pics with imessage.  Had to set the settings to default to SMS or whatever.  After laboring many hours on the web I coincidentally was on the phone with the internet people to question my internet speed.  They changed the router channel, which is something that I am capable of doing myself.  After that, the pics go over imessage.  My own Iphone didn't have the problem.  We are both latest IOS 7.0.6.

  • UCCX 10.5 AppAdmin Parameter - Not allowing a backslash to be added to string parameter - gets removed

    I have a script where the prompt directory is a parameter exposed on the "Application Management" web page.
    The way the script is structured is that it expects the directory name to have a backslash at the end of it.  Example
    In the script the full prompt path is created such as:  (all variables are string)
    FullPromptFile = DirectoryName\ + Filename.wav
    In all the past versions of UCCX that I've worked with (4,7,8,8.5,9.x) I could edit the directory path name, as a parameter, on the AppAdmin web page including the trailing backslash and it would save and work properly.
    In UCCX 10.5 when I save it, the backslash is simply removed.  The save appears to work correctly but going back to the webpage the backslash at the end of the string (inside the quotes) is simply gone.
    Tested in multiple browsers (IE 10 and FF 30) and multiple workstations
    See screen captures below.
    After the Save

    I opened a TAC case on this issue.
    Turns out this change was made in UCCX 10.0 and forward.
    Prior to 10.0, the backslash was accepted in the web interface for an application parameter.
    The fix is to use a forward slash in all file and URL paths.
    The interesting part,  the script "engine" still works fine with file and directory paths using a backslash in 10.5.  Its only the web interface change, under app admin, that is causing the issue.
    I agree with TAC's recommendation that all file and URL paths use the forward slash instead of the backslash on the Linux platform.  This is the case of using scripts previously developed and that used to work but should have been changed to use the new Linux method.
    There was nothing in the release notes about this.
    Heads up to all.

  • Building a data flow task, within a foreach loop for dynamic table name, but ole db source not allowing variable

    In my control flow, I set up a variable for the table name, enumerated by SMO, following the instructions from the link here:
    http://www.bidn.com/blogs/mikedavis/ssis/156/using-a-for-each-loop-on-tables-ssis
    Now, I put a data flow task inside the foreach. I selected the OLE DB connection manger for my database, set the Data access mode to "Table name or view name variable", and selected my variable name from the drop down. So far so good. When I click on OK,
    it gives me an error 0x80040E37, basically saying it can't open the rowset for "my variable", Check that the object exists in the database.
    So, I assume I won't be able to do this "that' easily, and I will need to build a "SQL command from variable" or some such thing. Any advice on how to build this Source editor to dynamically name my columns from the variable?
    Thanks in advance!
    mpleaf

    Hi mpleaf,
    Please try to set "ValidateExternalData" to False in your OLE DB Source Properties and "DelayValidation" property to TRUE, please refer to similar threads:
    http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/620557d9-41bc-4a40-86d5-0a8d2f910d8c/
    http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/456f2201-447c-41b3-bf27-b3ba47e6b737
    Thanks,
    Eileen
    Eileen Zhao
    TechNet Community Support

  • I need to log in to a website that expects a case-sensitive name ID, and FF is not allowing this - it is defaulting to the lower-case version of the word I am entering. How do I change this?

    A website that I use (forums.garmin.com) requires the user to log in with their user name in all upper case characters.
    My user name is the same on multiple sites, so when I try to enter this name in upper-case, FF 4b12 automatically changes it to lower-case on tabbing/clicking off the field.
    How do I stop this happening?

    You can only save one name for a web server (domain). If you need a different spelling for some specific login then you can't use the Firefox password manager to store multiple names and passwords.
    If you did save more than one versions of the name (uppercase and lowercase) then you need to remove the others.
    * Firefox > Preferences > Security: Passwords: "Saved Passwords" > "Show Passwords"

  • Error msg: "Blank access parameter not allowed" while saving the salesorder

    Hi Every one,
       I am facing with one standard error message while trying to selects the print option and output type and saves the output the error appears.
    Can any one please suggest me on this.
    Thanks,
    Manju

    Hi,
    Maintain the correct configuration settings.
    Also maintain the correct values for your condition records.
    Debug the code with the help of your ABAPer so that we can know that blank value.
    Regards,
    Krishna.

  • Remote Server returned '550 5.7.1 Command not allowed'

    I have a user that modified a meeting request that was initially sent by her boss.  She has rights to her boss' calendar.  After modifying the meeting request, she received the following undeliverable.  Any idea where to start troubleshooting?
    Thanks
    Your message wasn't delivered due to a permission or security issue. It may have been rejected by a moderator, the address may only accept email from certain senders, or another restriction
    may be preventing delivery.<o:p></o:p>
    "domain name" gave this error:
    Command not allowed <o:p></o:p>
     

    Hi redman71,
    Thank you for your question.
    We could refer to the following steps to make sure we have grant correct permission for user:
    1.Open Outlook 2013.
    2.Select Calendar.
    3.On the Home tab, select Calendar Permissions.
    4.Select the Permissions tab if it is not already selected.
    5.Select Add. 
    6.Type the name of the person you wish to add (e.g, doe, jane).  Highlight the name that you want to add.
    7.Click the Add button and the user's name will display underlined in the text box to the right.
    8.Click Ok.
    9.Under Permissions you can set the appropriate permissions for the user (e.g., Reviewer, Author, etc.)
    10.Click OK when you are finished selecting the permissions.
    Permission Settings:
    Owner: Create, read, modify, and delete all items, and create subfolders. Can change the permission levels that other people have for the folder. 
    Publishing Editor :Create, read, modify, and delete all items and create subfolders. 
    Editor: Create, read, modify, and delete all items.
    Publishing Author: Create and read items, create subfolders, and modify and delete items and files that you create. (Does not apply to delegates.)
    Author: Create and read items, and modify and delete items and files that you create.
    We could refer to the following link:
    https://technet.microsoft.com/en-us/library/dd298062(v=exchg.150).aspx
    If there are any questions regarding this issue, please be free to let me know. 
    Best Regard,
    Jim
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Jim Xu
    TechNet Community Support

  • Bex Transport request is not available

    Hi guys
    I want to change the Bex query from query designer, when i go for change mode it didnu2019t allow me to change and throws error message "Bex transport request " is not available or not suitable" and in second line it gives "choose an existing request.
    Can any one tell me how to change the Bex query with a transport request?
    Gaurav

    Hi,
    You get this message if you have captured the query in a transport request and released or transported the request.
    You can somply capture the query in a new request again from transport connection and then you will be able to edit the query.
    even after capturing the query in the request is not allowing to edit then you need to try the option as explained by our friend above.
    Regds,
    Shashank

  • How to send more than one request parameter through a submit button?

    Hi,
    I want to send two request parameters from the JSP page to the Struts application via following tag:
    <html-el:submit property="event" value="Assign"/>
    This piece of code sends only one request parameter to the backend application: The name of the request parameter is "event" and the value is "Assign".
    However I want to send one more request parameter with each button click. How can I do this?
    Any help is greatly appreciated.

    One thing u can do is add a hidden field and set value into it. When u submit the form this value also will be available in the request object. use request.getParameter("name") to get the value.

  • Manual reservation for order category 10 not allowed

    why cant i make any manual reservations for a production order? is this possible or i can i configure the system to allow this?

    >
    R Brahmankar wrote:
    > Dear,
    >
    > It is not possible.
    >
    > You entered an order whose category only permits automatic reservations. The following order categories do not allow manual reservations:
    >
    > 10 PP production order
    > 20 network
    > 30 maintenance order
    > 40 batch order (process manufacturing)
    > 50 inspection lot
    >
    > When convert the planned order into production order, reservation will take place.
    > This planned order is created by mrp run.
    > Without running mrp, you are creating production order manually.So not possible to reserve.
    >
    > Order reservation will be created in issuing plant for components if u create production order manually.
    >
    > Plese check the "Plant"assigned in for the 2component in the "Component Overview" of the Prodution order.if it is 0002, order reservation will be created in at 0002 .
    >
    > Regards,
    > R.Brahmankar
    can this order category be configured?

  • Reservation not allow manual

    Dear Gurus,
    any one please tell me how to allow manual reservation for order category 10.
    following is the error message.
    Manual reservation for order category 10 not allowed
    Message no. M7126
    Diagnosis
    You entered an order whose category only permits automatic reservations. The following order categories do not allow manual reservations:
    10 PP production order
    20 network
    30 maintenance order
    40 batch order (process manufacturing)
    50 inspection lot
    System Response
    The system does not accept your specification.
    Regards,
    qsm sap

    Hi Qsm,
    Order category 10 is Production order. For production order system will create an automatic reservation through the order.
    So it is not possible to create a manual reservation.
    Can u plz explain the business need to create a manual reservation for a production order?
    Thanks & regards
    Mahesh
    Reward points if useful

  • The type initializer for 'System.Data.SqlClient.SqlConnection' threw an exception. InnerException: Requested registry access is not allowed.

    I have read some of the other posts for people that got this error, but none seem to apply to me.
    My program has been working for weeks.  I made some minor changes, and started getting the error (full details below).
    I did a TFS "undo pending changes" and still getting the same error, even after logging off.  The one odd thing is that I did change my Windows password this week. The connection string is using a SQL user id and password that has no issues.
    I'm an Admin own my own box (running WIn XP SP3).  I even tried "Run as Admin" on Visual Studio.
    I'm doing a Debug-Start, running a Console-Test-Program that calls a WCF service, which on local machine is hosted by "ASP.NET Development Server".
    We have two other developers, one has the same problem, one does not.  In theory, we have all done "get latest" and are running the same code.
    The SQL Connection is related to a trace database; we are using this library http://ukadcdiagnostics.codeplex.com which has worked fine for months.
    When I do "Start Run" in Visual Studio, I get this error:
    {"The type initializer for 'System.Data.SqlClient.SqlConnection' threw an exception. "}
    with InnerException: {"The type initializer for 'System.Data.SqlClient.SqlConnectionFactory' threw an exception."}
    and it has InnerException: {"Requested registry access is not allowed. "}
    Outmost StackTrace:
       at System.Data.SqlClient.SqlConnection..ctor()
       at System.Data.SqlClient.SqlConnection..ctor(String connectionString)
       at FRB.Diagnostics.Listeners.SqlDataAccessCommand..ctor(String connectionString, String commandText, CommandType commandType)
       at FRB.Diagnostics.Listeners.SqlDataAccessAdapter.CreateCommand()
       at FRB.Diagnostics.Listeners.SqlTraceListener.TraceEventCore(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String message)
       at FRB.Diagnostics.Listeners.CustomTraceListener.FilterTraceEventCore(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String message)
       at FRB.Diagnostics.Listeners.CustomTraceListener.TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String format, Object[] args)
       at System.Diagnostics.TraceSource.TraceEvent(TraceEventType eventType, Int32 id, String format, Object[] args)
       at System.Diagnostics.TraceSource.TraceInformation(String message)
       at FRB.EC.AdminService.AdminService.TestHelloWorldWithTrace(String name)
       at SyncInvokeTestHelloWorldWithTrace(Object , Object[] , Object[] )
       at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
       at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
    Second Inner StackTrace:
       at System.Data.SqlClient.SqlConnection..cctor()
    Third Inner StackTrace:
          at System.Data.SqlClient.SqlConnectionFactory..cctor()
    When I do "Run as Admin", I get this error:
    {"Could not load file or assembly 'FRB.EFDataAccess, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied. "}
    Server stack trace:
       at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
       at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
    Exception rethrown at [0]:
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at FRB.EC.AdminService.ConsoleTester.svcRef.IAdminService.GetDispositionStatusTypeList()
       at FRB.EC.AdminService.ConsoleTester.svcRef.AdminServiceClient.GetDispositionStatusTypeList() in C:\SourceEagleConnect\EagleConnect\Dev\WCFServices\FRB.EC.AdminService.ConsoleTester\Service References\svcRef\Reference.cs:line 2459
       at FRB.EC.AdminService.ConsoleTester.ConsoleProgram.GetDispositionStatusTypeList() in C:\SourceEagleConnect\EagleConnect\Dev\WCFServices\FRB.EC.AdminService.ConsoleTester\ConsoleProgram.cs:line 565
       at FRB.EC.AdminService.ConsoleTester.ConsoleProgram.ExecuteNewRelease103QueryMethods() in C:\SourceEagleConnect\EagleConnect\Dev\WCFServices\FRB.EC.AdminService.ConsoleTester\ConsoleProgram.cs:line 189
       at FRB.EC.AdminService.ConsoleTester.ConsoleProgram.Main(String[] args) in C:\SourceEagleConnect\EagleConnect\Dev\WCFServices\FRB.EC.AdminService.ConsoleTester\ConsoleProgram.cs:line 76
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
    I am also posting the web.config/app.config, but I would rather not focus on that since there were absolutely no changes to it between the time it was working and the time it began failing. 
    Client app.config
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
      <connectionStrings>
      </connectionStrings>
      <system.serviceModel>
        <behaviors>
          <serviceBehaviors>
            <behavior name="ServiceBehavior">
              <serviceMetadata httpGetEnabled="true"/>
              <serviceDebug includeExceptionDetailInFaults="false"/>
              <serviceAuthorization impersonateCallerForAllOperations="true"/>
            </behavior>
          </serviceBehaviors>
          <endpointBehaviors>
            <behavior name="FRB.AllowImpersonate">
              <clientCredentials>
                <windows allowedImpersonationLevel="Impersonation"/>
              </clientCredentials>
            </behavior>
          </endpointBehaviors>
        </behaviors>
        <bindings>
          <wsHttpBinding>
            <binding name="WSHttpBinding_IAdminService" closeTimeout="00:01:00"
              openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
              bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
              maxBufferPoolSize="524288" maxReceivedMessageSize="5565536"
              messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
              allowCookies="false">
              <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                maxBytesPerRead="4096" maxNameTableCharCount="16384" />
              <reliableSession ordered="true" inactivityTimeout="00:10:00"
                enabled="false" />
              <security mode="Message">
                <transport clientCredentialType="Windows" proxyCredentialType="None"
                  realm="" />
                <message clientCredentialType="Windows" negotiateServiceCredential="true"
                  algorithmSuite="Default" />
              </security>
            </binding>
          </wsHttpBinding>
        </bindings>
            <client>
                  <endpoint address="http://localhost:3588/AdminService.svc" binding="wsHttpBinding"
                        bindingConfiguration="WSHttpBinding_IAdminService" contract="svcRef.IAdminService"
                        name="WSHttpBinding_IAdminService">
                        <identity>
                              <dns value="localhost" />
                        </identity>
                  </endpoint>
            </client>
        </system.serviceModel>
    </configuration>
    web.config of WCF service:
      <?xml version="1.0"?>
    <configuration>
        <configSections>
        <section name="FRB.Diagnostics" type="FRB.Diagnostics.Configuration.UkadcDiagnosticsSection, FRB.Diagnostics"/>
      </configSections>
        <appSettings>
           <!-- whatever goes here -->
        </appSettings>
        <!-- connection string section -->
      <connectionStrings>
        <add name="log" connectionString="Data Source=myserver;Initial Catalog=ECWCFLOG_SharedDev;User ID=myuser;Password=mypass;MultipleActiveResultSets=True" providerName="System.Data.SqlClient"/>
        <add name="DBConn" connectionString="Data Source=myserver;Initial Catalog=ECData_SharedDev;User ID=myuser;Password=mypass;MultipleActiveResultSets=True" providerName="System.Data.SqlClient"/>
        <add name="EagleConnectEntities" connectionString="metadata=res://*/EagleConnect.csdl|res://*/EagleConnect.ssdl|res://*/EagleConnect.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=myserver;Initial
    Catalog=ECData_SharedDev;User ID=myuser;Password=mypass;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient"/>
      </connectionStrings>
        <!-- FRB.Diagnostics logging section -->
        <FRB.Diagnostics>
            <sqlTraceListeners>
                <sqlTraceListener name="sqlTraceListenerSettings"
                            connectionStringName="log"
                            commandText="INSERT INTO LogStore VALUES(@Source, @ActivityId, @ProcessId, @ThreadId, @EventType, @Message, @Timestamp)"
                            commandType="Text">
                    <parameters>
                        <parameter name="@Source" propertyToken="{Source}"/>
                        <parameter name="@ActivityId" propertyToken="{ActivityId}"/>
                        <parameter name="@ProcessId" propertyToken="{ProcessId}"/>
                        <parameter name="@ThreadId" propertyToken="{ThreadId}"/>
                        <parameter name="@EventType" propertyToken="{EventType}" callToString="true"/>
                        <parameter name="@Message" propertyToken="{Message}"/>
                        <parameter name="@Timestamp" propertyToken="{DateTime}"/>
              <!-- <parameter name="@UserId" propertyToken="{WindowsIdentity}"/> -->
            </parameters>
                </sqlTraceListener>
            </sqlTraceListeners>
            <smtpTraceListeners>
                <smtpTraceListener name="smtpTraceListenerSettings"
                             host="vssmtp"
                             port="25"
                             from="[email protected]"
                             to="[email protected]"
                             subject="AdminService Logging Event: {EventType}, {MachineName}"
                             body="{Message}&#xA;=======&#xA;Process={ProcessId},&#xA;Thread={ThreadId},&#xA;ActivityId={ActivityId}"/>
            </smtpTraceListeners>
        </FRB.Diagnostics>
        <!-- System.Diagnostics logging section -->
        <system.diagnostics>
            <sources>
                <source name="FRB.EC.AdminService" switchValue="All">
                    <listeners>
                        <clear/>
                        <add name="ods"/>
                        <add name="smtp"/>
                        <add name="sql"/>
                    </listeners>
                </source>
                <source name="System.ServiceModel" switchValue="Off" propagateActivity="true">
                    <listeners>
                        <add name="ignored" type="System.Diagnostics.ConsoleTraceListener"/>
                    </listeners>
                </source>
            </sources>
            <sharedListeners>
                <!-- OutputDebugStringTraceListener -->
                <add name="ods"
               type="FRB.Diagnostics.Listeners.OutputDebugStringTraceListener, FRB.Diagnostics"
               initializeData="{ActivityId}|{EventType}: {Message} - {DateTime}, Process={ProcessId}, Thread={ThreadId}"/>
                <!-- SqlTraceListener -->
                <add name="sql"
               type="FRB.Diagnostics.Listeners.SqlTraceListener, FRB.Diagnostics"
               initializeData="sqlTraceListenerSettings"
               traceOutputOptions="Timestamp"/>
                <!-- SmtpTraceListener -->
                <add name="smtp"
               type="FRB.Diagnostics.Listeners.SmtpTraceListener, FRB.Diagnostics"
               initializeData="smtpTraceListenerSettings">
                       <filter type="System.Diagnostics.EventTypeFilter"
                       initializeData="Error"/>
                </add>
            </sharedListeners>
            <trace autoflush="true"/>
        </system.diagnostics>
        <system.web>
        <compilation debug="true" targetFramework="4.0">
        </compilation>
            <roleManager enabled="true" defaultProvider="AspNetWindowsTokenRoleProvider"/>
        </system.web>
        <system.serviceModel>
            <services>
                <service name="FRB.EC.AdminService.AdminService"
                   behaviorConfiguration="FRB.EC.AdminService.AdminServiceBehavior">
                    <!-- Service Endpoints -->
                    <endpoint address="" binding="wsHttpBinding"
                      bindingConfiguration="wsHttpEndpointBinding"
                      contract="FRB.EC.AdminService.IAdminService">
                        <!--
                  Upon deployment, the following identity element should be removed or replaced to reflect the
                  identity under which the deployed service runs. 
                  If removed, WCF will infer an appropriate identity automatically.
              -->
                        <identity>
                            <dns value="localhost"/>
                        </identity>
                    </endpoint>
                    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
                </service>
            </services>
            <bindings>
                <wsHttpBinding>
                    <binding name="wsHttpEndpointBinding"
                     maxBufferPoolSize="2147483647"
                     maxReceivedMessageSize="500000000">
                        <readerQuotas maxDepth="2147483647"
                            maxStringContentLength="2147483647"
                            maxArrayLength="2147483647"
                            maxBytesPerRead="2147483647"
                            maxNameTableCharCount="2147483647"/>
                        <security>
                            <message clientCredentialType="Windows"/>
                        </security>
                    </binding>
                </wsHttpBinding>
            </bindings>
            <behaviors>
                <serviceBehaviors>
                    <behavior name="FRB.EC.AdminService.AdminServiceBehavior">
                        <!-- To avoid disclosing metadata information, set the value below to false and
                   remove the metadata endpoint above before deployment -->
                        <serviceMetadata httpGetEnabled="true"/>
                        <!-- To receive exception details in faults for debugging purposes, set the value below to true. 
                   Set to false before deployment to avoid disclosing exception information -->
                        <serviceDebug includeExceptionDetailInFaults="true"/>
                        <serviceCredentials>
                        </serviceCredentials>
                        <!--<serviceAuthorization principalPermissionMode="UseAspNetRoles"
                    roleProviderName="AspNetWindowsTokenRoleProvider"/>-->
                        <serviceAuthorization principalPermissionMode="UseWindowsGroups"
                                    impersonateCallerForAllOperations="true"/>
                    </behavior>
                    <behavior name="FRB.EC.AdminService.IAdminServiceTransportBehavior">
                        <!-- To avoid disclosing metadata information, set the value below to false and
                   remove the metadata endpoint above before deployment -->
                        <serviceMetadata httpGetEnabled="true"/>
                        <!-- To receive exception details in faults for debugging purposes, set the value below to true. 
                   Set to false before deployment to avoid disclosing exception information -->
                        <serviceDebug includeExceptionDetailInFaults="false"/>
                        <serviceCredentials>
                            <clientCertificate>
                                <authentication certificateValidationMode="PeerTrust"/>
                                <!--<authentication certificateValidationMode="Custom" customCertificateValidatorType="DataFactionServices.FRBX509CertificateValidator"/>-->
                            </clientCertificate>
                            <serviceCertificate findValue="WCfServer"
                                    storeLocation="LocalMachine"
                                    storeName="My" x509FindType="FindBySubjectName"/>
                        </serviceCredentials>
                    </behavior>
                </serviceBehaviors>
            </behaviors>
            <serviceHostingEnvironment multipleSiteBindingsEnabled="true"/>
        </system.serviceModel>
        <system.webServer>
            <modules runAllManagedModulesForAllRequests="true"/>
        </system.webServer>
    </configuration>
    Thanks for any help.
    Neal

    I think I found it... this is sure a strange error for what is really happening.
    Apparently it had happened to me before, and fortuantely, I actually added the following comment:
                // Above is related to the WCFLOG SQL Diagnostics Trace 
                // If you get error here an inner exception "requested registry access is not allowed"
                // inside exception "type initializer for System.Data.SqlClient.SqlConnection"
                // then make sure you have impersonation enabled in your client.
                // See AdminConsole web.config or FRB.EC.AdminService.ConsoleTester.app.config for examples
    Now I think I will do a try catch and spit out the same text.
    Still testing to assure that this really was the issue.
          <endpointBehaviors>
            <behavior name="FRB.AllowImpersonate ">
              <clientCredentials>
                <windows allowedImpersonationLevel="Impersonation"/>
              </clientCredentials>
            </behavior>
          </endpointBehaviors>
    The line below in BOLD below is what somehow seemed to disappear from my app.config - probably due to a TFS human error - still checking that also:
            <client>
                  <endpoint address="http://localhost:4998/AdminService.svc"
                                  behaviorConfiguration="FRB.AllowImpersonate"
                                  binding="wsHttpBinding"
                                  bindingConfiguration="WSHttpBinding_IAdminService"
                                 contract="svcRef.IAdminService"
                            name="WSHttpBinding_IAdminService">
                        <identity>
                              <dns value="localhost" />
                        </identity>
                  </endpoint>
            </client>
    Here's how I "idiot-proofed" this error for now, to give an error that actually at least points to a solution:
            public SqlDataAccessCommand(string connectionString, string commandText, CommandType commandType)
                try
                    _connection = new SqlConnection(connectionString);
                    // Above is related to the WCFLOG SQL Diagnostics Trace  
                    // If you get error here an inner exception "requested registry access is not allowed"
                    // inside exception "type initializer for System.Data.SqlClient.SqlConnection"
                    // then make sure you have impersonation enabled in your client.
                    // See AdminConsole web.config or FRB.EC.AdminService.ConsoleTester.app.config for examples
                catch (Exception ex)
                    if (ex.ToString().Contains("The type initializer for"))
                    throw new System.ApplicationException(@"
                    Your client app <endpoint> must be cofigured have a
                  'behaviorConfiguration' attribute like this:
                    behaviorConfiguration='FRB.AllowImpersonate'
                   that points back to a behavior that has this syntax:         
              <behavior name='FRB.AllowImpersonate'>
                 <clientCredentials>
                     <windows allowedImpersonationLevel='Impersonation'/>
                 </clientCredentials>
              </behavior>
              ", ex);
                   else
                        throw ex;
                _command = _connection.CreateCommand();
                _command.CommandText = commandText;
                _command.CommandType = commandType;
                // TODO _command.CommandTimeout = ;
    Neal

  • Request parameter are not stored in database through Java Bean

    Hi,
    I want to store the request parameter in database through Java Bean.Allthough program are properly run but value are not store in DB.
    Here My code:
    Login.html:<html>
    <head>
    <title>A simple JSP application</title>
    <head>
    <body>
    <form method="get" action="submit.jsp" >
    Name: <input type="text" name="User">
    Password: <input type="password" name="Pass">
    <input type="Submit" value="Submit">
    </form>
    </body>
    </html>SimpleBean.java:
    package co;
    import java.util.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.util.*;
    public class SimpleBean implements java.io.Serializable{
    private String User="";
    private String Pass="";
    public SimpleBean(){}
    public String getUser() {
    return User;
    public void setUser(String User) {
    this.User = User;
    public String getPass() {
    return Pass;
    public void setPass(String Pass) {
    this.Pass = Pass;
    public void show()
         try
    System.out.println("Printed*************************************************************");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    System.out.println("Loading....");
    Connection con=DriverManager.getConnection("jdbc:odbc:Ex11dump");
    System.out.println("Connected....");
    PreparedStatement st=con.prepareStatement("insert into Table1 values(?,?)");
    System.out.println("~~~~~~~~~~~~~~~~~~~~");
    String User=getUser();
    st.setString(1,User);
    String Pass=getPass();
    st.setString(2,Pass);
    int y= st.executeUpdate();
    System.out.println(y);
    System.out.println("Query Executed");
    con.commit();
    con.close();
    System.out.println("Your logging is saved in DB *****************");
    catch(Exception e)
    e.printStackTrace();
    }submit.jsp:
    <jsp:useBean id="obj" class="co.SimpleBean"/>
    <jsp:setProperty name="obj" property="*" />
    <jsp:getProperty name="obj" property="User" /> <br>
    <jsp:getProperty name="obj" property="Pass" /> <br>
    <% obj.show();%>
    <%
    out.println("Ur data is saved in DB");
    %>Please Help me.
    Thanks.

    The issue is in the naming of your fields.
    Change User -> user and Pass->pass
    Name: <input type="text" name="user">
    Password: <input type="password" name="pass">

  • Atg.rest.RestException: Access to the requested resource is not allowed

    Hi,
    While testing REST services, I have created a file in my localconfig directory at atg/rest/security named restSecurityConfiguration.xml and added the following lines to the file,replacing #username# with admin ( for testing purpose).
    <programlisting>
    <rest-security>
    <default-acl value="Profile$login$#admin#:read,write,execute"/>
    </rest-security>
    </programlisting>
    Still while accessing the REST service through code, I am getting "atg.rest.RestException: Access to the requested resource is not allowed".
    Can anyone please throw some light if I have missed anything here?
    Thanks in advance!

    Hi,
    I am facing an InvalidPersonaException , when I try to use the following in my restSecurityConfiguration.xml, any idea of the error? Still, I am able to login through admin credentials in BCC, and it is a valid Internal user.
    <resource component="/heb/store/service/RestContactUsManager">
    <method name="restContactUsStatus" secure="false">
    <acl value="Profile$login$admin:read,write,execute" />
    </method>
    </resource>

Maybe you are looking for