Managing constants in large applications

This is an issue that has come up many times in my projects. While I try to avoid the practice, I almost always have some sort of Constants.java class that contains a bunch of public static final constants. This includes things like application name, filenames for configuration files, version numbers, network ports, etc. Sometimes I'll split them up into multiple classes (e.g., AppConstants.java and NetworkConstants.java).
Is this an accepted practice in larger applications, or are global constants typically handled differently? I've always considered my solution to be inelegant, but I haven't come up with a better way of doing it. Suggestions?

> Yes, I do typically use an interface to hold my
constants. I know I said "class" above.
This is considered a bad practice, or "antipattern", to wit:
Effective Java - Joshua Bloch, Chapter 4, Item #17: Use interfaces only to define types.
The constant interface pattern is a poor use of interfaces. That a class uses some constants internally is an implementation detail. Implementing a constant interface causes this implementation detail to leak into the class's exported API. It is of no consequence to the users of a class that the class implements a constant interface. In fact, it may even confuse them. Worse, it represents a commitment: if in a future release the class is modified so that it no longer needs to use the constants, it still must implement the interface to ensure binary compatibility. If a nonfinal class implements a constant interface, all of its subclasses will have their namespaces polluted by the constants in the interface.
In summary, interfaces should only be used to define types. They should not be used to export constants.
~

Similar Messages

  • How to use Source Code Control for Large Application?

    Hi, All!
    I would like to collect knowledge about "best practice" examples for using Source Code Control and project organization for relative large application (let's say approx 1000 SubVIs).
    Tools used:
    LabVIEW 8.0
    CVS Server
    PushOK CVS Proxy Client
    WinCVS
    With LabVIEW 8 we can organize large project pretty well. This described in article Managing Large Applications with the LabVIEW Project.
    I have read this article too: Using Source Control Software with LabVIEW In this Article Source Safe used, but with PushOK all looks nearby the same and works (some tricks for compare function are required).
    Example. Two developers working together on same project. Internally project is modular, so one developer will work with module "Analysis", and another one with "Configuration" without interferences. These modules placed into Subfolders as shown in example above.
    Scenario 1:
    Developer A started with modification of module "Analysis". Some files checked out. He would like to add some SubVIs here. So, he must also perform check out for the project file (*.lvproj), otherwise he cannot add anything into project structure.
    Developer B at the same time would like to add some new functions into module "Configuration". He also needed to check out project file, but this file already checked out by Developer A (and locked). So, he must wait until lvproj file will be checked in. Another way is mark *.lvproj files as text files in PushOK, but then one of developers will get conflict message by checking in and then merging will be necessary. This situation will coming very often, because in most cases *.lvproj file will be checked out all the time.
    Question: Which practice is better for such situation? Is Libraries better than folder for large project?
    Scenario 2:
    Developer C joined to the team. First, he must get complete project code for starting (or may be at least code of one Library, which assigned to him).
    Question: How it can be done within LabVIEW IDE? Or WinCVS (or other SCC UI) should be used for initial checkout?
    Scenario 3:
    Developer D is responcible for Build. Developers A,B,C have added lot of files into modules "Analysis", Configuration" and "FileIO". For building he need to get complete code. If our project splitted into folders, he should get latest *.lvproj first, then newly added SubVIs will appear in Project Explorer, then he should expand tree, select all SubVIs and get latest versions for all. If Project organized in Libraries, he must do the same for each library, isn't?.
    Question: Is this "normal way", or WinCVS should be used for this way? In WinCVS its possible with two mouseclicks, but I prefer to get all code from CVS within LabVIEW IDE recursively...
    That was a long post... So, if you already working with LabVIEW 8 with SCC used for large project, please post your knowledge here about project structure (Folders or Libraries) and best practices, its may be helpful and useful for all of us. Any examples/use cases/links etc are appreciated.
    Thank you,
    Andrey

    Regarding your scenarios:
    1. Using your example, let's say both developers checked out version 3
    of the project file. Assuming that there are only files under the
    directories in the example project, when Developer A checks in his
    version of the project, there will be new files in one section of the
    project separate from where Developer B is working. Developer B,
    notices that there is now a version 4 of the project. He needs to
    resolve the changes so will need to merge his changes to the latest
    version of project file. Since the project file is a text file, that is
    easy to do. Where an issue arrises is that after Developer B checks in
    his merged changes, there is a revision 5. When Developer A and B go to
    make another change, they get the latest version which will have the
    merged changes to the project file but not the referenced files from
    both Developer A and B. So when A opens version 5, he sees that he is
    missing the files that B checked in and visa versa. Here is where the
    developers will needs to manually use the source control client and,
    external to LabVIEW, get those new files.
    Where libraries help with the above scenario is that the library is a
    separate file from the project so changes made to it outside of the
    project do not require the project to be modified. So this time, the
    developers are using a single project again which time time references
    two libraries. The developers check out the libraries, make changes to
    the libraries, and then check those changes in. So when each developer
    opens the project file, since it references the project file, the
    changes to the library will be reflected. There is still the issue of
    the new files not automatically coming down when the latest version of
    the library is obtained. Again, the developers will needs to manually
    use the source control client and, external to LabVIEW, get those new
    files. In general, you should take advantage of the the modularity that
    libraries provide.
    2. As noted in the above scenario, there is no intrinsic mechanism to
    get all files referenced by a LabVIEW project. Files that are missing
    will be noted. The developer will then have to use the source control
    provider's IDE to get the initial contents of the project  (or library).
    3. See above scenarios.
    George M
    National Instruments

  • LabView causes system to lock up when editing block diagram of large application

    I am attempting to go through a large application which was written for on a different machine with I/O attached. I am looking at it on a plain PC with no attached hardware. The application loads, I can get into the block diagram, but after viewing it for just a short time the display freezes (including the taskmanager), then the keyboard locks up. The only way out is to cycle the power on the PC. This is running W2K on a 550Mhz pentium III processor with 256MB RAM and a new installation of Win2K with all updates applied. This is with LabView 7.1. I can run smaller subvi's with no problem.
    I am new at LabView, so any help is appreciated.
    - George

    Hi George
    what kind of Hardware - IO do you use in the app? are there any DAQ-channel- or VISA-Connection-constants in your diagramm? maybe the problem is not the size of your code but the missing hardware...
    best regards
    chris
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • Installing large applications using iPCU

    Hi everybody,
    We are working on a really big enterprise application (over 7Gb) and now trying to distribute it. iTunes on both MS Windows and Apple Mac OS X doesn't want to install such a big IPA at all, so we have chosen to use iPhone Configuration Utility. Installation went well on Mac OS X, but we have a requirement that it should also work on Windows PCs. Trying to do it on Windows led to several problems:
    First of all, it was impossible to drag'n'drop IPA file into Applications section of iPCU or even Add using corresponding button. We've just received the following error message: "C:\_BIG_APPLICATION_.IPA could not be read". Fortunately, that problem was overcome by using manual renaming IPA -> ZIP, decompressing and putting APP package into iPCU applications folder (C:\Users\$User\AppData\Local\Apple Computer\MobileDevice\Applications).
    Secondly, and it's a real problem now, we couldn't manage to install the application on device. It starts copying file, which is logged into iPCU log file, but then just stops without any error message. The last iPCU log lines are:
    [2012-02-13 16:10:03.0627 iPCU] Debug: Status : TakingInstallLock
    [2012-02-13 16:10:03.0627 iPCU] Debug: PercentComplete : 0
    [2012-02-13 16:10:03.0627 iPCU] Debug: Status : CreatingStagingDirectory
    [2012-02-13 16:10:03.0627 iPCU] Debug: PercentComplete : 5
    [2012-02-13 16:10:03.0627 iPCU] Debug: Status : ExtractingPackage
    [2012-02-13 16:10:03.0627 iPCU] Debug: PercentComplete : 15
    [2012-02-13 16:10:03.0783 iPCU] Debug: Status : InspectingPackage
    [2012-02-13 16:10:03.0783 iPCU] Debug: PercentComplete : 20
    [2012-02-13 16:10:03.1875 iPCU] Debug: Status : PreflightingApplication
    [2012-02-13 16:10:03.1875 iPCU] Debug: PercentComplete : 30
    [2012-02-13 16:10:03.1875 iPCU] Debug: Status : VerifyingApplication
    [2012-02-13 16:10:03.1875 iPCU] Debug: PercentComplete : 40
    [2012-02-13 16:10:03.2031 iPCU] Debug: Status : InstallingEmbeddedProfile
    [2012-02-13 16:10:03.2031 iPCU] Debug: PercentComplete : 40
    Seems like a signing issue, but if we prepare a build without large content, installation completes successfully. Moreover, as I've said earlier it works fine on Mac OS X. We are using the same Distribution certificate, mobileprovision and build script in both cases.
    Does anybody have an idea?

    Thanks, KiltedTim.
    I've already done it. It's just hard to say on this stage, wether it's the Apple's product bug or our internal building problem.

  • Troubleshootings while building large application

    Hello,
    I am currently trying to build a large application :
    - ~6000 vis,
    - ~300 or 400 classes,
    I am quite proud of the code, because there is only 1 vi not packaged in a lib or 1 class, it's the Main_App.vi that launches the application.
    Architecture is based on Model View Presenter design pattern.
    When I try to build the application Labview just process for hours and don't even moves.
    Last night, I let him go for 10 hours and it and just processed 1 class.
    I tried using Libp to package part of the code but with no success, a lot of linkage troubles occurs when I try to use them. And management of redefinition seems to broke Vis.
    As any body encounters that king of situation and even solved it.
    Any Ideas...
    The software have to be delivered within a week and it makes me sick not to be able to make usable to work we have done for months....
    Thanx for answers.
    Pierre
    Coss-post : http://lavag.org/topic/15004-troubleshootings-while-building-large-application/

    Hi,
    Please have a look at this thread,
    Re: Error in CompatibilityMode
    Regards,
    Saravanan K

  • Organize JDev for large applications

    Hello JDev team,
    In order to properly manage very large applications and different versions of the same application (like maintenance and development) in the same environment, there are various settings that would find their more appropriate place at the level of the workspace.
    I already saw some other threads discussing similar topics, I would only like to put them together and try to get some schedules :-)
    1. One problem is that there are no nested workspaces, and you don't have good "visibility" outside your own workspace (one example, you cannot create a BC Client Data Model unless the BC project is in the same workspace).
    Nested workspaces would be great for properly organizing a large application. If you implement this, please don't forget the visibility "details".
    2. A quite different problem is related to the definition of libraries. Once you have to manage in parallel, in the same environment, different versions of the same application, things become hard to manage.
    Most of the projects should have their associated library defined, as there are relations between projects. But a library entry is absolute, so it stands for one version. When you have to switch to another version (which is also under SCM), there are different physical paths on the disk, so different values for the libraries. And you have to change (one by one or directly in libraries.xml) their definitions.
    This would be solved naturally if the libraries were defined for a workspace. And would also provide the possibility to have relative paths rather than absolute ones, which is easier to manage.
    3. Base classes. It is nice to have this in the global Preferences, but, as somebody else noticed before me, it might be necessary sometimes to have different base classes for different applications, all in the same development environment. This comes similar to having base classes defined (also) at the level of the workspace.
    4. Debugger/Breakpoints/Default Action. This is another kind of preference I would like to have at the level of the workspace, or even for each project. Especially because of the "Group of Breakpoints" section.
    5. Deployment. Here, a new option "Relative to Workspace Directory" would do. Or, allow the definition of the default deployment directory for each workspace.
    6. Web Browser/Proxy. Well, here my problem might be more specific. We access internet resources via a proxy, so when it comes to accessing Oracle resources (like Check for Updates...) from JDeveloper, the proxy setting is useful, even required.
    But, in our intranet development, we do not use a proxy (not the same, anyway). So, for normal development purposes, there should be no proxy.
    In this case, what I would like would be to have the global setting in the IDE preferences used for global resources, while the setting in the workspace (if any) will be used for the application-specific resources (e.g. servlet URL).
    I am quite sure I did not cover all the possible enhancement topics, but I hope things will be checked carefully.
    Apart from adding valuable features for developers, the approach of moving certain preferences from the IDE to a "work component" (workspace, project) would also help team-work.
    Once one team member will set some preference(s) for a workspace (and put it under SCM), this setting(s) will be automatically available to all other team members.
    Could you please comment my issues and tell me which of them (with the solutions that you foresee) could integrate 9.0.4?
    Thank you,
    Adrian

    Hi Adrian,
    Thanks for the detailed feedback.
    I agree with you that there are significant issues when using project files at the moment in a team environment, particularly when an SCM system is involved. And since a recent survey indicated that the majority of JDeveloper users use some kind of SCM system, it's particularly important that we address this in future releases.
    At the moment, I'm putting together some suggestions for future changes in this area from the point of view of the feature team who develop SCM support in JDeveloper. Your ideas are useful input into this process. Sadly, it's unlikely that any major changes to the way project files are stored will make it into 9.0.4, since 9.0.4 has already gone into "bugfix only" mode, and the focus of the 9.0.4 release has been on performance improvements and stability. However, we are looking at this issue for a future release (possibly 9.0.5, although these discussions are at a very early stage).
    I've included comments on some of your specific points below.
    1. Nested workspaces
    There was some discussion about whether we should use nested projects a long time ago (i.e. get rid of the concept of a workspace altogether, and just allow projects to contain, and presumably inherit properties from, other projects). This is currently being tracked as ER 2048949. It requires a substantial change to the architecture of JDeveloper and could have a massive effect on components across the IDE. I believe that a lot of the issues with project files can be solved in other ways without going to the extreme of using nested projects / workspaces.
    2. Library Definitions
    Project-scope libraries should hopefully make this a whole lot easier in 9.0.3. I also like the idea of defining libraries at the workspace level so that they can be shared between projects; alternatively, using a "library definition" file as a separate, version-controllable resource that can be referred to by a project. I've filed ER 2689043 to track this.
    3. Base Classes
    This is a BC4J thing, and a bit outside my area of knowledge :) I'll pass your suggestions along.
    4. Debugger Preferences
    I'm not sure what you mean by "group of breakpoints section"
    5. Deployment
    Filed ER 2689052
    6. Web Browser/Proxy
    You might be able to make use of the "Exceptions" field in the proxy settings to help with this. Within Oracle, we have exactly the same issue, but normally use an exception list that looks something like this: "localhost|127.0.0.1|*.oracle.com|*.oraclecorp.com|*.oracleads.com"
    One of the areas I'm interested in seeing improved is the concept of "configurations" that we currently have in project files. For example, it would be nice to define a workspace-scope configuration that's inherited by projects. Also nice would be the ability to allow read-only configurations (that are source controlled as part of the checked in project definition) and user/view-specific configurations (which would not be version controlled). The user/view specific configurations could inherit preferences from the read-only configurations, and the user could override things in a way that wouldn't affect other users (e.g. in the "Paths" preferences, change the output directory to one on their own local machine) without having to check out the project file from source control.
    Thanks,
    Brian
    JDev Team

  • Bc4j; large application approach

    To follow up on an offline conversation.
    If one were to build a Very Large Application or Application Suite using JDev, does the following make sense as an approach?
    1. Set up a project with all your Domains, entity objects and View objects to be used across all other projects. This is maintained by someone (like a dba) who puts validations, defaults, rules, and the like here. Periodically this could be generated into a library for use by other projects. ( Hmmm... I don't know how to do that yet... )
    2. Set up projects for each of the applications. The entity/view objects and such DO NOT appear directly in this project ( and you might not want all the programmers to have updateable access to 'em anyway... it needs to go through some sort of command/control structure ). They use the library to add their own special view objects and such... and build the application.
    Will that work? Is that the way it should be put together?

    Business Components can be packaged up for deployment and reuse like any java classes.
    You can easily create a JAR file for all of the common entity objects, associations, domains, and base view objects of use to multiple applications. You can use the standard JDeveloper deployment wizard for this, and indicate that you want to create a "Simple Archive File". What will get JAR'ed up will be all of the XML and *.class files that comprise your components.
    Then, any other BC4J project can include this "application core" JAR file as a library and then import all of the components (READ ONLY). All of the core components are available for reuse, but the imported components cannot be modified in the importing project.
    See the help topic:
    Developing Business Components[b]
    --[b]Working with Business Components Projects, ...
    ----Ways to Import Existing Business Components
    for more details.
    Each new application you build will likely need some application-specific view objects, so I wouldn't work under the assumption that all view objects need to live under the "core" project.

  • Error when trying to Manage 'User Profile Service Application'

    Hello,
    I'm recently facing an issue two issues
    1. User Profile Service Application: when I goto manage user profile service application I get an error windows and when I look into the logs following is the error with given correlation id "ef9fb09c-ae28-1072-b404-c887d61ed915"
    08/21/2014 09:07:27.53  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Logging Correlation Data       xmnv Medium   Name=Request (GET:http://gcdwinamzanl002:8081/_layouts/15/ManageUserProfileServiceApplication.aspx?ApplicationID=9826b245%2D1d65%2D408f%2Db252%2D058b3809225f) ef9fb09c-ae28-1072-b404-c887d61ed915
    08/21/2014 09:07:27.75  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     General                        6t8h High     [Forced due to logging gap, cached @ 08/21/2014 09:07:27.50, Original
    Level: Verbose] {0} ef9fb09c-ae28-1072-b404-c887d61ed915
    08/21/2014 09:07:27.75  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Database                       8acb High     [Forced due to logging gap, Original Level: VerboseEx] Reverting to process
    identity ef9fb09c-ae28-1072-b404-c887d61ed915
    08/21/2014 09:07:27.75  w3wp.exe (0x2BB8)                        0x2448 Web Content Management       
     Publishing Cache               f6s5 Medium   ObjectCache size is set to 100 megs. ef9fb09c-ae28-1072-b404-c887d61ed915
    08/21/2014 09:07:27.75  w3wp.exe (0x2BB8)                        0x2448 Web Content Management       
     Publishing                     8zug Medium   PublishingHttpModule.Init() calling AppDomainUnloadListener.Register() ef9fb09c-ae28-1072-b404-c887d61ed915
    08/21/2014 09:07:27.75  w3wp.exe (0x2BB8)                        0x2448 Web Content Management       
     Publishing                     8x0a Medium   AppDomainUnloadListener.RegisterSelf() entered lock(this=38386177) ef9fb09c-ae28-1072-b404-c887d61ed915
    08/21/2014 09:07:27.75  w3wp.exe (0x2BB8)                        0x2448 Web Content Management       
     Publishing                     8x0b Medium   AppDomainUnloadListener.RegisterSelf() about to call HostingEnvironment.RegisterObject(this=38386177) ef9fb09c-ae28-1072-b404-c887d61ed915
    08/21/2014 09:07:27.82  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Asp Runtime                    aj1kp High     [Forced due to logging gap, Original Level: Verbose] SPRequestModule.PreSendRequestHeaders ef9fb09c-ae28-1072-b404-c887d61ed915
    08/21/2014 09:07:27.88  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     General                        6t8h High     [Forced due to logging gap, cached @ 08/21/2014 09:07:27.83, Original
    Level: Verbose] {0} ef9fb09c-ae28-1072-b404-c887d61ed915
    08/21/2014 09:07:27.88  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Database                       8acb High     [Forced due to logging gap, Original Level: VerboseEx] Reverting to process
    identity ef9fb09c-ae28-1072-b404-c887d61ed915
    08/21/2014 09:07:27.91  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Monitoring                     b4ly Medium   Leaving Monitored Scope (Request (GET:http://gcdwinamzanl002:8081/_layouts/15/ManageUserProfileServiceApplication.aspx?ApplicationID=9826b245%2D1d65%2D408f%2Db252%2D058b3809225f)).
    Execution Time=427.452048 ef9fb09c-ae28-1072-b404-c887d61ed915
    08/21/2014 09:07:27.98  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Monitoring                     nasq Medium   Entering monitored scope (Request (GET:http://gcdwinamzanl002:8081/_layouts/15/ManageUserProfileServiceApplication.aspx?ApplicationID=9826b245%2D1d65%2D408f%2Db252%2D058b3809225f)).
    Parent No 
    08/21/2014 09:07:27.98  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Logging Correlation Data       xmnv Medium   Name=Request (GET:http://gcdwinamzanl002:8081/_layouts/15/ManageUserProfileServiceApplication.aspx?ApplicationID=9826b245%2D1d65%2D408f%2Db252%2D058b3809225f) ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:28.35  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     General                        6t8h High     [Forced due to logging gap, cached @ 08/21/2014 09:07:27.98, Original
    Level: Verbose] {0} ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:28.35  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Authentication Authorization   agb9s Medium   Non-OAuth request. IsAuthenticated=True, UserIdentityName=, ClaimsCount=0 ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:28.39  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (PostAuthenticateRequestHandler). Execution Time=27.712976 ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:28.49  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Monitoring                     nass High     [Forced due to logging gap, cached @ 08/21/2014 09:07:28.39, Original Level: Verbose]
    ____{0}={1} ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:28.49  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Asp Runtime                    aj1kr High     [Forced due to logging gap, Original Level: Verbose] SPRequestModule.PostAuthorizeRequestHandler ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:28.68  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (PublishingHttpModule: PostAuthorizeRequestHandler). Execution
    Time=178.76496 ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:28.85  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Asp Runtime                    aj1km High     [Forced due to logging gap, cached @ 08/21/2014 09:07:28.72, Original Level: Verbose]
    SPRequestModule.PostResolveRequestCacheHandler ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:28.85  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Asp Runtime                    aj1kn High     [Forced due to logging gap, Original Level: Verbose] SPRequestModule.AcquireRequestStateHandler ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:28.88  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Logging Correlation Data       xmnv Medium   Site=/ ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:28.94  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Database                       ahjqp High     [Forced due to logging gap, cached @ 08/21/2014 09:07:28.90, Original
    Level: Verbose] SQL connection time: 0.050592 ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:28.94  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Database                       8acb High     [Forced due to logging gap, Original Level: VerboseEx] Reverting to process
    identity ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:29.22  OWSTIMER.EXE (0x0968)                    0x3744 SharePoint Foundation          Monitoring                   
     aeh57 Medium   Sql Ring buffer status eventsPerSec = ,processingTime=0,totalEventsProcessed=0,eventCount=0,droppedCount=0,memoryUsed=0 
    08/21/2014 09:07:29.53  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Database                       ahjqp High     [Forced due to logging gap, cached @ 08/21/2014 09:07:28.95, Original
    Level: Verbose] SQL connection time: 0.027536 ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:29.53  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     General                        6t8b High     [Forced due to logging gap, Original Level: Verbose] Looking up {0}
    site {1} in the farm {2} ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:29.59  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Topology                       umbj High     [Forced due to logging gap, cached @ 08/21/2014 09:07:29.54, Original
    Level: Verbose] Deserializing the type named {0} and with id {1}. ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:29.59  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Topology                       ahg9p High     [Forced due to logging gap, Original Level: Verbose] Completed deserializing
    the type named {0} and with id {1}. ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:29.65  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Topology                       ahg9p High     [Forced due to logging gap, cached @ 08/21/2014 09:07:29.64, Original
    Level: Verbose] Completed deserializing the type named {0} and with id {1}. ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:29.65  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Topology                       umbj High     [Forced due to logging gap, Original Level: Verbose] Deserializing the
    type named {0} and with id {1}. ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:29.71  w3wp.exe (0x2BB8)                        0x2448                              
     0x6FB700D                      ahg9p High     [Forced due to logging gap, cached @ 08/21/2014 09:07:29.68, Original Level:
    Verbose] Completed deserializing the type named {0} and with id {1}. ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:29.71  w3wp.exe (0x2BB8)                        0x2448 Access Services              
     Administration                 ackn7 High     [Forced due to logging gap, Original Level: Verbose] Tried to obtain setting {0} from Conversion Service
    Application, but it didn't exist. ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:29.80  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Topology                       umbj High     [Forced due to logging gap, cached @ 08/21/2014 09:07:29.76, Original
    Level: Verbose] Deserializing the type named {0} and with id {1}. ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:29.80  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Topology                       ahg9p High     [Forced due to logging gap, Original Level: Verbose] Completed deserializing
    the type named {0} and with id {1}. ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:29.86  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Topology                       ahg9p High     [Forced due to logging gap, cached @ 08/21/2014 09:07:29.85, Original
    Level: Verbose] Completed deserializing the type named {0} and with id {1}. ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:29.86  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Topology                       umbj High     [Forced due to logging gap, Original Level: Verbose] Deserializing the
    type named {0} and with id {1}. ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:29.91  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Topology                       ahg9p High     [Forced due to logging gap, Original Level: Verbose] Completed deserializing
    the type named {0} and with id {1}. ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:29.96  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Topology                       umbj High     [Forced due to logging gap, cached @ 08/21/2014 09:07:29.91, Original
    Level: Verbose] Deserializing the type named {0} and with id {1}. ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:29.96  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Topology                       ahg9p High     [Forced due to logging gap, Original Level: Verbose] Completed deserializing
    the type named {0} and with id {1}. ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:30.06  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Topology                       umbj High     [Forced due to logging gap, cached @ 08/21/2014 09:07:30.01, Original
    Level: Verbose] Deserializing the type named {0} and with id {1}. ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:30.06  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Topology                       ahg9p High     [Forced due to logging gap, Original Level: Verbose] Completed deserializing
    the type named {0} and with id {1}. ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:30.12  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Topology                       ahg9p High     [Forced due to logging gap, cached @ 08/21/2014 09:07:30.11, Original
    Level: Verbose] Completed deserializing the type named {0} and with id {1}. ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:30.12  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Configuration                  a16e High     SPAce PrincipalName found  account renamed to NULL SID. Using new name. ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:30.12  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Configuration                  a16e High     SPAce PrincipalName found  account renamed to NULL SID. Using new name. ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:30.14  w3wp.exe (0x2BB8)                        0x2448 SharePoint Server            
     General                        ahjnd Medium   Constructed a new async cache named Profile Property Cache ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:30.15  w3wp.exe (0x2BB8)                        0x2448 SharePoint Portal Server       User
    Profiles                  ajk4d Medium   UserProfileProperty_WCFLogging::Begin ProfilePropertyServiceClient.ExecuteOnChannel ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:30.15  w3wp.exe (0x2BB8)                        0x2448 SharePoint Portal Server       User
    Profiles                  ajk35 Medium   MossClientBase_WCFLogging::Begin MossClientBase.ExecuteOnChannel ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:30.18  w3wp.exe (0x2BB8)                        0x2448 SharePoint Portal Server       User
    Profiles                  ajk36 Medium   MossClientBase_WCFLogging:: MossClientBase.ExecuteOnChannel -  Executing codeblock on channel ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:31.27  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Claims Authentication          aeax6 High     [Forced due to logging gap, Original Level: Verbose] SPSecurityContext: The SecurityTokenServiceBehavior is attached to the AsymmetricTrustChannel. ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:31.94  w3wp.exe (0x2BB8)                        0x2448 SharePoint Foundation        
     Topology                       aeayb Medium   SecurityTokenServiceSendRequest: RemoteAddress: 'http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc/actas'
    Channel: 'Microsoft.IdentityModel.Protocols.WSTrust.IWSTrustChannelContract' Action: 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue' MessageId: 'urn:uuid:3c1f10be-67f6-4335-9245-0af94c65f814' ef9fb09c-fe46-1072-b404-c5bccdc9dc59
    08/21/2014 09:07:34.09  NodeRunnerContent1-ac7a63c6-80a (0x1A00) 0x32DC Search                         Search Platform Services     
     ajhlg Medium   NerioCluster : Got valid (Primary) lease until 2014-08-21T09:10:11.0915676Z/0 for net.tcp://gcdwinamzanl002/C62BA9/AdminComponent1/Services/InvokerService  
    08/21/2014 09:07:34.29  OWSTIMER.EXE (0x0968)                    0x3744 SharePoint Foundation          Monitoring                   
     aeh57 Medium   Sql Ring buffer status eventsPerSec = ,processingTime=0,totalEventsProcessed=0,eventCount=0,droppedCount=0,memoryUsed=0 
    08/21/2014 09:07:35.72  w3wp.exe (0x0C0C)                        0x18F0 SharePoint Foundation        
     Unified Logging Service        b8fx High     ULS Init Completed (w3wp.exe, onetnative.dll) 
    08/21/2014 09:07:35.86  w3wp.exe (0x0C0C)                        0x18F0 SharePoint Foundation        
     Topology                       2myf Medium   Disabling the configuration filesystem and memory caches.
    Abhishek Madan

    Hi Abhishek,
    According to your description, my understanding is that the User Profile Synchronization service stuck on ‘Starting’ or ‘Stopping’.
    Please check whether you installed SQL 2012 Native Client (Pre-requisites) on SharePoint server. If yes, download and install SQL 2008 R2 Native Client from the below location:
    http://download.microsoft.com/download/9/1/3/9138773A-505D-43E2-AC08-9A77E1E0490B/1033/x64/sqlncli.msi
    From the SharePoint server ->control panel -> add/Remove programs , please confirm that the SQL 2008 Native Client is listed.
    Make sure that the farm account is a member of the Administrators group on the server on which you are trying to start the User Profile Synchronization service, then restart the SharePoint Timer Service.
    Set the FIM services to "Local System" before starting the service.
    There is a troubleshooting for User Profile Synchronization Service start issues, please have a look at:
    http://technet.microsoft.com/en-us/library/gg750257(v=office.14).aspx
    Here are some similar posts for you to take a look at:
    http://www.codeproject.com/Articles/358855/user-profile-synchronization-service-not-starting
    http://www.sharepointdiary.com/2012/09/user-profile-synchronization-service-stuck-at-starting.html#ixzz2aX7Wz4GQ
    Best Regards,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • File structure in large applications

    Hello,
    I have a fairly large application, totaling around ~150,000 lines of code.
    Unfortunately, when I first began building this application, my understanding of file structure and various architectural patterns was quite limited, and the code could easily be labeled as "spaghetti code."
    Since then, I have begun migrating everything over into an MVC structure, but was not entirely sure how to proceed.
    I have one primary file, let's say Application.as that is essentially the main actionscript class, and I am using 'include "com/controller/hello.as"' instead of importing classes because I did not want to clutter up my code by using classes all over the place and having to instantiate them.
    Would creating classes instead of having flat actionscript files be a better way to proceed?
    How do you structure your large applications?
    Are there any resources out there, articles, books, etc., that discuss enterprise level architectural patterns in Flex?
    Thanks!

    Flex is an Object Oriented environment and so NOT using classes and objects will generally lead to the architectural anti-pattern (read Bad) sometimes refered to as the Big Ball Of Mud (aka spaghetti code).
    Just using classes and objects isn't always enough though. If a class is larger than 500 lines of code, it is very probably too big and doing too many things - try and split it up into smaller classes that each do exactly one thing and do it well. If a function is longer than one screen on your display, it is too big and should be broken down into smaller functions.
    One good indicator as to whether or not you have a good class is to use a unit testing framework (http://flexunit.org/) and write tests for the class. If it's hard to test it then it's probably still too complicated.
    How the classes are organized into packages is a less interesting, though if a package has more than 30 classes then there's a good chance that it's too big and you should try and divide it up.

  • Deploying large applications and common used classes

    I've got an application containing EntityBeans, statefull/stateless
    SessionBeans, and a Webapplication. Every component is packed in a jar File
    and all together in an EAR-File as an application.
    Those EJBs share some common classes, for example:
    EjbA in A.jar and EjbB in B.jar share a Helperclass C.
    Where do I put this class C? I try to avoid to put this class C in the
    Classpath of the application server. And when I put C in both jar-Files I
    got a ClassNotFoundException in one of the EJBs. I'm using WLS 6.0.
    Any ideas? Thanx in advance.

    FYI, this is fixed in 6.1
    Torsten Friebe wrote:
    Hi Daniel,
    thanks, this article answers my question. But does WLS 6.0 or 6.1 allready
    support J2EE Packaging as described in J2EE 1.3 Spec (PFD3) Chapter 8?
    Cheers
    Torsten
    "Daniel Hoppe" <[email protected]> schrieb im Newsbeitrag
    news:[email protected]..
    Hi Torsten,
    there is no really good solution so far. Check out this link, it
    elaborates this topic in detail.
    http://www.onjava.com/pub/a/onjava/2001/06/26/ejb.html
    Cheers,
    Daniel
    -----Ursprüngliche Nachricht-----
    Von: Torsten Friebe [mailto:[email protected]]
    Bereitgestellt: Freitag, 29. Juni 2001 11:59
    Bereitgestellt in: environment
    Unterhaltung: deploying large applications and common used classes
    Betreff: deploying large applications and common used classes
    I've got an application containing EntityBeans, statefull/stateless
    SessionBeans, and a Webapplication. Every component is packed
    in a jar File
    and all together in an EAR-File as an application.
    Those EJBs share some common classes, for example:
    EjbA in A.jar and EjbB in B.jar share a Helperclass C.
    Where do I put this class C? I try to avoid to put this class C in the
    Classpath of the application server. And when I put C in both
    jar-Files I
    got a ClassNotFoundException in one of the EJBs. I'm using WLS 6.0.
    Any ideas? Thanx in advance.

  • Migration of large application from JDK1.4 to 1.6

    Hi,
    I want to migrate some large application code base's from jdk1.4 to jdk1.6. Need some help regarding this. Please let me know the following as mentioned below :
    1. Is there any tool/s available that can be used for this migration (Because manually it is very difficult for a application with almost 15,000 java files and 15 * 10^6 KLOC within a limited time frame).
    2. Steps that should be followed in such cases.
    3, If any tool is not available for such activity what are the salient points that are needed to be considered while migrating.
    Thanks in advance
    AnjanN

    I want to migrate some large application code base's from jdk1.4 to jdk1.6. Need some help regarding this. Please let me know the following as mentioned below :
    1. Is there any tool/s available that can be used for this migration (Because manually it is very difficult for a application with almost 15,000 java files and 15 * 10^6 KLOC within a limited time frame).
    2. Steps that should be followed in such cases.
    3, If any tool is not available for such activity what are the salient points that are needed to be considered while migrating.
    What is it that you think needs to be 'migrated'?
    Most applications will run just fine using 1.6 - it is compatible with 1.4 already.
    You need to conduct your own tests using 1.6 to see if there are any problems/issues with your app.

  • Managing constants in base / derived classes

    Hi there,
    The problem:
    I'm facing what is certainly a simple problem but fail to come up with an acceptable solution. What I'd like to do is managing constants in a base class and derived class... which for some reasons are not parts of the same package. Also, these constants may have different values in the derived base.
    Down to earth description:
    Class base uses a set of constants A=1, B=2, C=3.
    Class derived should be provided with similarly named constants but they may have different values A=10, B=20, C=30. I could declared these constants in the classes themselves but somehow I think this is ugly.
    A "solution" that does not work:
    Assume for a moment that I'm just a very naive programmer (which actually I am... but anyway...). I would them come up with something like:
    package base;
    import base.Constants;
    public class Base {
        public Base() {
        public void myfunction() {
           System.out.println("My constant: " + Constants.A);
    }and
    package derived;
    import derived.Constants;
    public class Derived extends Base {
        public Derived() {
    }Now of course this is stupid since Derived.myfunction() prints the value of the constants given by Base.myfunction()The question is: is there a static construction that would allow me to have the desired behaviour? What I mean is that I don't want to provide a "Constants" object nor an hashtable dynamically loaded or whatever.
    Bonus question:
    I'm not a pro in OOP (seriously guys... C rocks! Oops, wrong forum :-) but it seems to be a case of "code inheritance" vs "behaviour inheritance" (I just made those expressions up!). What I mean is: if what is inherited is the actual "code" of the methods (as if a huge copy paste took place) then the naive solution would work. But in the real world, a "behaviour inheritance" is at work in the sense that what is inherited is the "behaviour" (or, more bluntly, simply the code as compiled in the base class). Hmm... Am I making any sense here? Is that distinction theorized in some way? I tried to search a bit by myself but did not know where to start.
    Thanks,

    I mucked around with this exact problem a while back.
    The (simplified) scenario is AbstractCourse is extended by CookingCourse, WritingCourse, and BusinessCourse. Every course has a basePrice and a materialsCost... both of which vary from course to course... The same price calculation applies to all types of course, just the amounts will vary.
    totalPrice = basePrice + materialsCost The traditional non-oo solution is simple enough... you would just create a "table" of all six contstants, and a function with a switch statement...
    but How to do this "The OO Way"?
    What I came up with is:
    class BaseCourse {
      abstract double getBasePrice();
      abstract double getMaterialsCost();
      public double getPrice() {
        return getBasePrice() + getMaterialsCost();
    public class CookingCourse {
      private static final double BASE_PRICE = 300.00;
      private static final double MATERIALS_COST = 112.60;
      public double getBasePrice() { return CookingCourse.BASE_PRICE }
      public double getMaterialsCost() { return CookingCourse.MATERIALS_COST }
    public class WritingCourse {
      private static final double BASE_PRICE = 200.00;
      private static final double MATERIALS_COST = 50.00;
      public double getBasePrice() { return WritingCourse.BASE_PRICE }
      public double getMaterialsCost() { return WritingCourse.MATERIALS_COST }
    public class BusinessCourse {
      private static final double BASE_PRICE = 600.00;
      private static final double MATERIALS_COST = 18.12;
      public double getBasePrice() { return BusinessCourse.BASE_PRICE }
      public double getMaterialsCost() { return BusinessCourse.MATERIALS_COST }
    }The base class specifies that each subclass must be able to tell it's base price, and it's materials cost... then we implement the calculation on those values just once, in the base class.
    For all I know there are much more succinct, flexible, efficient, and basically much more smarter ways of doing this... this is just a way that worked for me... and it's simple enough so even I can follow it.
    Java can be a very very very very verbose language :-( ... But hey it still &#115;hits on C ;-)
    Cheers. Keith.
    Edited by: corlettk on 23/05/2008 11:17 - typos

  • Large applications - Labview and other programming languages

    Hello Labview Users,
    as the forum saw this very interesting thread about large applications programmed in Labview
    (see: http://sine.ni.com/niforum/niforum?requireLogin=False&forumDU=http://forums.ni.com/ni/board/message?... ) I would like to ask the community about their experiences with Labview applications in combination with other programming languages.
    In advance: I have several years of experience in programming Labview applications starting from quick-and-dirty solutions which had to run within few hours and complex test solutions. I saw Labview growing and becoming better with the released versions and lot of things I missed in former times got implemented in the meantime. Actually I have to develop a complexe ATE solution with numerous equipment to control and numerous data to be captured and archived. Despite the Verison 8 I still feel still some drawbacks of the LV concept which let me hestitate to setup the solution completly in Labview:
    1) It is alway hard to re-use code of complex applications since it is not possible to do some kind of global search an replace of functions
    variables etc. It nearly impossible to re-use approved code structures (e.g a state machine) if the "inner part" is changing more the a little bit.
    2) If the application requires a certain flexibility (e.g. exchangeable test equipment of varying vendors) this is hard to implement since you have to define a lot of parameters through your hierarchy if you dont want use global variables which slow down your application and hide
    the code functionality.
    3) Despite modern PCs the look and feel of LV applications appears somewhat slow compared to other applications. For complex user interfaces the polling methode generates a lot of complex code. (I dont have expierence with the event-structure).
    Now my questions:
    Do you have experience of implemention of complex solutions dividingthe code modules using Labview and other languages? Which other
    languages did you use? Why did you use these languages (speed, flexibility of text based code, available library functions)? Did you found out this to improve your development time and code maintainibility?
    (I concider a solution where I do the single tests with Labview-VIs but delegate all the test sequencing and data collection stuff written in PERL which allows really very compact code)
    I'm curious what your experiences are.
    rainercats

    Given that you're asking these questions in a forum for LabVIEW users the opinions given are going to be somewhat slanted towards the general like of LabVIEW. I've been working with LabVIEW for a long time, ever since 2.something on a Mac. I've written numerous large-scale applications as well as "mundane" instrument drivers. As you've noted you're experienced with LabVIEW, so you know some of its strengths and weaknesses.
    To address your specific questions:
    (1) Yes, that has always been a limitation in LabVIEW, but I don't believe it is an overriding one to choose C over LabVIEW. Putnam provided one workaround for the search and replace of VIs. Once you've programmed in LabVIEW long enough you get used to doing it this way. Is it clumsy? Yes. As for the re-use of code structures, that's not entirely true. You can create a "template" VI (a regular VI, not a .vit) that contains the code you want to re-use and place in your palette with the "Merge VI" option set. That way you can select it from your functions palette, plop it down on your diagram, and you get the "template" VI's diagram placed right into your new VI.
    (2) This is not something that is specific to LabVIEW, as this exists with any programming language. It's not the language that limits you here, it's how you've designed your code. In a language like C++ you would go with classes. You can do the same thing in LabVIEW. IVI is another option (though not preferred by me).
    (3) As Putnam mentioned, you should be using the event structure.
    Other thoughts:
    The biggest strength I see with LabVIEW is that each VI is a miniature program, which allows development and debugging of functions a snap. With a language like C you have to write another program to call that function in order to debug it. The biggest weakness? I would say user interface. Yes, even with the event structure. Don't get me wrong, the event structure has vastly improved the way user interfaces and event handling in general are done with LabVIEW, but it simply doesn't hold muster to a program written in C or VB. ActiveX anyone? LabVIEW still doesn't do ActiveX properly in terms of actually getting the controls to work. Programming ActiveX controls is just plain aggravating what with all the property nodes taking up so much diagram space.
    It certainly makes sense to use the best tools available to you to get the job done. In my recent projects I had to write software to run automated tests on some products my company made. The test modules were written in LabVIEW. The tests executive was a proprietary engine driven by a SQL Server database. I had to write a "wrapper" DLL that interfaced between the LabVIEW code and the executive since the executive hadn't been designed to call LabVIEW DLLs directly. This allowed us to use LabVIEW as the preferred language for developing the test modules and let the guys who were fiddling with the test executive do their bit. Of course, TestStand's premise is basically that.

  • No system manager locations set, search application might not be ready yet

    Hi,
    I am just setting up a new SharePoint 2013 environment (Windows server 2008 R2 + SQL Server 2008 R2) and I am getting this error message in powershell when I try to save my new search topology: No system manager locations set, search application might
    not be ready yet. The installation script used to install and create the search service originates from this link: http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=378 and I receive the error message after running $clone.Activate().
    ULS is writing this:
    05-29-2013 14:57:00.94 mssearch.exe (0x19C0) 0x1A68 SharePoint Server Search Crawler:Content Plugin cd11 Critical Content Plugin can not be initialized - list of CSS addresses is not set.
    05-29-2013 14:56:08.27 OWSTIMER.EXE (0x09B0) 0x1304 SharePoint Server Search Administration dkd5 High synchronizing search service instance 8f28209c-5d35-a0cc-7fad-bd7b088335ee
    05-29-2013 14:56:08.27 OWSTIMER.EXE (0x09B0) 0x1304 SharePoint Server Search Administration eff0 High synchronizing search data access service instance 8f28209c-5d35-a0cc-7fad-bd7b088335ee
    05-29-2013 14:56:09.38 OWSTIMER.EXE (0x09B0) 0x1304 SharePoint Server Search Administration ajzc7 Medium Cleanup of Orphan Systems in server SR00667 8f28209c-5d35-a0cc-7fad-bd7b088335ee
    05-29-2013 14:56:09.46 OWSTIMER.EXE (0x09B0) 0x1304 SharePoint Server Search Administration agwve Medium Synchronizing legacy admin 8f28209c-5d35-a0cc-7fad-bd7b088335ee
    05-29-2013 14:56:09.46 OWSTIMER.EXE (0x09B0) 0x1304 SharePoint Server Search Administration ai4f1 High Unable to get systemmanagerlocation from db 8f28209c-5d35-a0cc-7fad-bd7b088335ee
    05-29-2013 14:56:09.46 OWSTIMER.EXE (0x09B0) 0x1304 SharePoint Server Search Administration ai84s Medium Skipping legacy admin sync as there is no system manager location set 8f28209c-5d35-a0cc-7fad-bd7b088335ee
    05-29-2013 14:56:09.46 OWSTIMER.EXE (0x09B0) 0x1304 SharePoint Server Search Administration agwvc Medium Skipping Topology Synchronize.The active topology does not have any Components. 8f28209c-5d35-a0cc-7fad-bd7b088335ee
    05-29-2013 14:56:09.46 OWSTIMER.EXE (0x09B0) 0x1304 SharePoint Server Search Administration ajnco Medium Cleaning up Orphan nodes in system : 7B4831 8f28209c-5d35-a0cc-7fad-bd7b088335ee
    So basically all else is going fine before saving the clone. Application pool is created, search service and it´s proxy is created (the databases are also created in SQL). The clone is after this created and then the components are added.
    I have tested with both March and April CU. I use separate accouns for search service, installation and so on. I have tested giving the search application pool account local admin right but didnt make any difference.
    Some posts in Internet around this matter is pointing towards there might be 4 missing patches like here: http://blog.steigis.ch/sharepoint/sps2013/search-in-starting-state/  They are all installed on my server.
    Search host controller service and SharePoint Server Search are started.
    Before creating the service I ran this. I have done this on all my other installations of search to solve the problem with the host service is in "starting" state. Info taken from here: http://mmman.itgroove.net/2012/12/search-host-controller-service-in-starting-state-sharepoint-2013-8/
    $acl = Get-Acl HKLM:\System\CurrentControlSet\Control\ComputerName
    $person = [System.Security.Principal.NTAccount] "Users"
    $access = [System.Security.AccessControl.RegistryRights]::FullControl
    $inheritance = [System.Security.AccessControl.InheritanceFlags] "ContainerInherit, ObjectInherit"
    $propagation = [System.Security.AccessControl.PropagationFlags]::None
    $type = [System.Security.AccessControl.AccessControlType]::Allow
    $rule = New-Object System.Security.AccessControl.RegistryAccessRule($person, $access, $inheritance, $propagation, $type)
    $acl.AddAccessRule($rule)
    Set-Acl HKLM:\System\CurrentControlSet\Control\ComputerName $acl
    $sh = Get-SPServiceInstance | ? {$_.TypeName -eq "Search Host Controller Service"}
    After this I do a server restart and continue with creating the search service and its components.
    Any ideas?

    I had exactly the same issue when setting up a new SharePoint 2013 environment (Windows Server 2012, SP2013 with PU March 2013 and CU April 2013, .NET 4.5). I have tried almost everything during the last weeks to configure the Search Service Applicatione,
    e.g. create the service from GUI, create it from PowerShell, verify my search account had enough permissions, check for missing updates etc. etc. Same error no matter what I tried.
    Using another SharePoint farm I went through a similar configuration of the Search Service Application. I used exactly the same script as I did on the first server and the setup completed without any issues. So why did the same features fail during the setup?
    To find an answer I compared the two farms and the only thing I noticed that were different was the lack of .NET 3.5 on the application and WFE server in the first farm. I then enabled .NET 3.5 features and now the Search Service Application works as expected
    I had no idea enabling .NET 3.5 features would solve the issue - I thought .NET 4.5 was backward compatible and SharePoint only requires .NET 4.5 according the
    requirements?

  • Endpoint Protection Managed Workstations: Antimalware policy application failed

    Hello,
    When looking at the Endpoint statistics I have the line for systems failing to apply policy. An easy fix to this is to delete the registry.pol file. I would like to make a collection that automates this task for me. Basically if it reports back failure,
    it gets added to a collection, an advertisement runs on it to fix it and redeploy the policy.
    The only thing I need to know is the query behind the "Endpoint Protection Managed Workstations: Antimalware policy application failed" so I can make a collection for it. Does anyone happen to know it?
    Thanks

    Client logs:
    Client 1:
    Create Process Command line: "c:\Program Files\Microsoft Security Client\\ConfigSecurityPolicy.exe" "C:\WINDOWS\CCM\EPAMPolicy.xml". EndpointProtectionAgent 11/3/2014 12:27:00 PM 2056 (0x0808)
    Failed to apply the policy C:\WINDOWS\CCM\EPAMPolicy.xml with error (0x80004005). EndpointProtectionAgent 11/3/2014 12:27:00 PM 2056 (0x0808)
    Failed to apply policy with error 0x80004005, retry number : 1 after 60 second. EndpointProtectionAgent 11/3/2014 12:27:00 PM 2056 (0x0808)
    Create Process Command line: "c:\Program Files\Microsoft Security Client\\ConfigSecurityPolicy.exe" "C:\WINDOWS\CCM\EPAMPolicy.xml". EndpointProtectionAgent 11/3/2014 12:28:00 PM 2056 (0x0808)
    Failed to apply the policy C:\WINDOWS\CCM\EPAMPolicy.xml with error (0x80004005). EndpointProtectionAgent 11/3/2014 12:28:00 PM 2056 (0x0808)
    Failed to apply policy with error 0x80004005, retry number : 2 after 60 second. EndpointProtectionAgent 11/3/2014 12:28:00 PM 2056 (0x0808)
    Create Process Command line: "c:\Program Files\Microsoft Security Client\\ConfigSecurityPolicy.exe" "C:\WINDOWS\CCM\EPAMPolicy.xml". EndpointProtectionAgent 11/3/2014 12:29:00 PM 2056 (0x0808)
    Failed to apply the policy C:\WINDOWS\CCM\EPAMPolicy.xml with error (0x80004005). EndpointProtectionAgent 11/3/2014 12:29:00 PM 2056 (0x0808)
    Failed to apply policy with error 0x80004005, retry number : 3 after 60 second. EndpointProtectionAgent 11/3/2014 12:29:00 PM 2056 (0x0808)
    Create Process Command line: "c:\Program Files\Microsoft Security Client\\ConfigSecurityPolicy.exe" "C:\WINDOWS\CCM\EPAMPolicy.xml". EndpointProtectionAgent 11/3/2014 12:30:00 PM 2056 (0x0808)
    Failed to apply the policy C:\WINDOWS\CCM\EPAMPolicy.xml with error (0x80004005). EndpointProtectionAgent 11/3/2014 12:30:00 PM 2056 (0x0808)
    Failed to apply policy with error 0x80004005, retry number : 4 after 60 second. EndpointProtectionAgent 11/3/2014 12:30:00 PM 2056 (0x0808)
    Create Process Command line: "c:\Program Files\Microsoft Security Client\\ConfigSecurityPolicy.exe" "C:\WINDOWS\CCM\EPAMPolicy.xml". EndpointProtectionAgent 11/3/2014 12:31:00 PM 2056 (0x0808)
    Failed to apply the policy C:\WINDOWS\CCM\EPAMPolicy.xml with error (0x80004005). EndpointProtectionAgent 11/3/2014 12:31:00 PM 2056 (0x0808)
    Failed to apply policy with error 0x80004005, retry number : 5 after 60 second. EndpointProtectionAgent 11/3/2014 12:31:00 PM 2056 (0x0808)
    Create Process Command line: "c:\Program Files\Microsoft Security Client\\ConfigSecurityPolicy.exe" "C:\WINDOWS\CCM\EPAMPolicy.xml". EndpointProtectionAgent 11/3/2014 12:32:00 PM 2056 (0x0808)
    Failed to apply the policy C:\WINDOWS\CCM\EPAMPolicy.xml with error (0x80004005). EndpointProtectionAgent 11/3/2014 12:32:01 PM 2056 (0x0808)
    Save new policy state 2 to registry SOFTWARE\Microsoft\CCM\EPAgent\PolicyApplicationState EndpointProtectionAgent 11/3/2014 12:32:01 PM 2056 (0x0808)
    State 2 and ErrorCode -2147467259 and ErrorMsg Failed to open the local machine Group Policy and PolicyName Antimalware Policy and GroupResolveResultHash 23496E87C22E7CA5048254CC04CCF582A084C108 is NOT changed. EndpointProtectionAgent 11/3/2014 12:32:01 PM 2056 (0x0808)
    Skip sending state message due to same state message already exists. EndpointProtectionAgent 11/3/2014 12:32:01 PM 2056 (0x0808)
    Client 2:
    Apply AM Policy. EndpointProtectionAgent 11/4/2014 7:27:50 AM 2536 (0x09E8)
    Failed to generate AM policy XML with error code 0x8000ffff EndpointProtectionAgent 11/4/2014 7:27:50 AM 2536 (0x09E8)
    Save new policy state 2 to registry SOFTWARE\Microsoft\CCM\EPAgent\PolicyApplicationState EndpointProtectionAgent 11/4/2014 7:27:50 AM 2536 (0x09E8)
    start to send State Message with topic type = 2002, state id = 2, error code = 0x8000ffff, and message = <Instance><AppliedAmPolicies/></Instance>
    EndpointProtectionAgent 11/4/2014 7:27:50 AM 2536 (0x09E8)
    Start to send state message. EndpointProtectionAgent 11/4/2014 7:27:50 AM 2536 (0x09E8)
    Send state message successfully EndpointProtectionAgent 11/4/2014 7:27:51 AM 2536 (0x09E8)
    Firewall provider is installed. EndpointProtectionAgent 11/4/2014 7:27:51 AM 2536 (0x09E8)
    Installed firewall provider meet the requirements. EndpointProtectionAgent 11/4/2014 7:27:51 AM 2536 (0x09E8)
    Endpoint is triggered by WMI notification. EndpointProtectionAgent 11/4/2014 7:27:51 AM 2536 (0x09E8)
    File C:\Windows\ccmsetup\SCEPInstall.exe version is 4.3.215.0. EndpointProtectionAgent 11/4/2014 7:27:51 AM 2536 (0x09E8)
    EP version 4.3.215.0 is already installed. EndpointProtectionAgent 11/4/2014 7:27:51 AM 2536 (0x09E8)
    Expected Version 4.3.215.0 is exactly same with installed version 4.3.215.0. EndpointProtectionAgent 11/4/2014 7:27:51 AM 2536 (0x09E8)
    Handle EP AM policy. EndpointProtectionAgent 11/4/2014 7:27:51 AM 2536 (0x09E8)
    Apply AM Policy. EndpointProtectionAgent 11/4/2014 7:27:51 AM 2536 (0x09E8)
    Failed to generate AM policy XML with error code 0x8000ffff EndpointProtectionAgent 11/4/2014 7:27:51 AM 2536 (0x09E8)
    Save new policy state 2 to registry SOFTWARE\Microsoft\CCM\EPAgent\PolicyApplicationState EndpointProtectionAgent 11/4/2014 7:27:51 AM 2536 (0x09E8)
    State 2 and ErrorCode -2147418113 and ErrorMsg Failed to load WMI instances. and PolicyName Antimalware Policy and GroupResolveResultHash 2B22C160D3BC8DC4BECF08D4F632D4756D4C9622 is NOT changed. EndpointProtectionAgent 11/4/2014 7:27:51 AM 2536 (0x09E8)
    Skip sending state message due to same state message already exists. EndpointProtectionAgent 11/4/2014 7:27:51 AM 2536 (0x09E8)
    Client 3:
    Apply AM Policy. EndpointProtectionAgent 11/3/2014 12:26:00 PM 1768 (0x06E8)
    Create Process Command line: "c:\Program Files\Microsoft Security Client\\ConfigSecurityPolicy.exe" "C:\Windows\CCM\EPAMPolicy.xml". EndpointProtectionAgent 11/3/2014 12:26:00 PM 1768 (0x06E8)
    Failed to apply the policy C:\Windows\CCM\EPAMPolicy.xml with error (0x80004005). EndpointProtectionAgent 11/3/2014 12:26:00 PM 1768 (0x06E8)
    Failed to apply policy with error 0x80004005, retry number : 1 after 60 second. EndpointProtectionAgent 11/3/2014 12:26:00 PM 1768 (0x06E8)
    Create Process Command line: "c:\Program Files\Microsoft Security Client\\ConfigSecurityPolicy.exe" "C:\Windows\CCM\EPAMPolicy.xml". EndpointProtectionAgent 11/3/2014 12:27:00 PM 1768 (0x06E8)
    Failed to apply the policy C:\Windows\CCM\EPAMPolicy.xml with error (0x80004005). EndpointProtectionAgent 11/3/2014 12:27:00 PM 1768 (0x06E8)
    Failed to apply policy with error 0x80004005, retry number : 2 after 60 second. EndpointProtectionAgent 11/3/2014 12:27:00 PM 1768 (0x06E8)
    Create Process Command line: "c:\Program Files\Microsoft Security Client\\ConfigSecurityPolicy.exe" "C:\Windows\CCM\EPAMPolicy.xml". EndpointProtectionAgent 11/3/2014 12:28:00 PM 1768 (0x06E8)
    Failed to apply the policy C:\Windows\CCM\EPAMPolicy.xml with error (0x80004005). EndpointProtectionAgent 11/3/2014 12:28:00 PM 1768 (0x06E8)
    Failed to apply policy with error 0x80004005, retry number : 3 after 60 second. EndpointProtectionAgent 11/3/2014 12:28:00 PM 1768 (0x06E8)
    Create Process Command line: "c:\Program Files\Microsoft Security Client\\ConfigSecurityPolicy.exe" "C:\Windows\CCM\EPAMPolicy.xml". EndpointProtectionAgent 11/3/2014 12:29:00 PM 1768 (0x06E8)
    Failed to apply the policy C:\Windows\CCM\EPAMPolicy.xml with error (0x80004005). EndpointProtectionAgent 11/3/2014 12:29:01 PM 1768 (0x06E8)
    Failed to apply policy with error 0x80004005, retry number : 4 after 60 second. EndpointProtectionAgent 11/3/2014 12:29:01 PM 1768 (0x06E8)
    Create Process Command line: "c:\Program Files\Microsoft Security Client\\ConfigSecurityPolicy.exe" "C:\Windows\CCM\EPAMPolicy.xml". EndpointProtectionAgent 11/3/2014 12:30:01 PM 1768 (0x06E8)
    Failed to apply the policy C:\Windows\CCM\EPAMPolicy.xml with error (0x80004005). EndpointProtectionAgent 11/3/2014 12:30:01 PM 1768 (0x06E8)
    Failed to apply policy with error 0x80004005, retry number : 5 after 60 second. EndpointProtectionAgent 11/3/2014 12:30:01 PM 1768 (0x06E8)
    Create Process Command line: "c:\Program Files\Microsoft Security Client\\ConfigSecurityPolicy.exe" "C:\Windows\CCM\EPAMPolicy.xml". EndpointProtectionAgent 11/3/2014 12:31:01 PM 1768 (0x06E8)
    Failed to apply the policy C:\Windows\CCM\EPAMPolicy.xml with error (0x80004005). EndpointProtectionAgent 11/3/2014 12:31:01 PM 1768 (0x06E8)
    Save new policy state 2 to registry SOFTWARE\Microsoft\CCM\EPAgent\PolicyApplicationState EndpointProtectionAgent 11/3/2014 12:31:01 PM 1768 (0x06E8)
    State 2 and ErrorCode -2147467259 and ErrorMsg Failed to open the local machine Group Policy and PolicyName Antimalware Policy and GroupResolveResultHash 23496E87C22E7CA5048254CC04CCF582A084C108 is NOT changed. EndpointProtectionAgent 11/3/2014 12:31:01 PM 1768 (0x06E8)
    Skip sending state message due to same state message already exists. EndpointProtectionAgent 11/3/2014 12:31:01 PM 1768 (0x06E8)
    I have 12 systems total having issues with Policy right now.

Maybe you are looking for