Error:500 unexpected Condition at Xpage application - xpages

Currently working at 9.0.1 FP6.
When I Make some changes and run Xpage application at lotus notes it gives me Error 500 : unexpected error condition. To resolve it I sign the application from IBM domino administrator and clean it from designer then I again execute the application it works fine until I make some other changes .
please some one guide me how to resolve this issue permanently.

Firstly, do you have the xpage error page checked?
In Designer >> Application Properties >>Errors and Timeouts >> [Check] Display XPage runtime error page.
Checking that option may give you some more information - Also, is anything extra written to the server log?
Are you making changes to the design of the application or to a document within the database?
If it is with designer, are you building the project? You should do this really after each change before using the application.
Where you say you sign the database from the admin client, are you doing so with an admin id which is different to the id you are normally using, as if it is a different id, it may be the id you are using does not have the correct rights?
Also, is the database is located in a folder within the Notes data directory? If so try putting the database in the Notes data directory and not in any
subdirectories.

Just a couple of quick things:
Your code MUST be signed with the same ID. Just re-check by looking at the design elements in Domino Designer!
What does the logs on the server tell you? You could use the Log File Reader project on OpenNTF to get easy access to these logs and stack traces.
/John

Open the Domino\data\domino\workspace\logs\error-log-0.xml file. It contains full stack trace of the error.

Related

Message while accessing lotus notes application at Lotus Designer

I have Manager rights at the ACL of an application .When I open this application from designer it gives me below error
"you cannot view the design of this database because it is hidden "
I dont know what went wrong with this application . Can any one help
You need to have access to the template (usually an .ntf- file) of the database.
The design of the database was hidden when replacing the design using a template.
There is NO WAY to access the design of the database anymore.
There was a hack some years ago where you could open SOME of the design- elements by editing some bits in the nsf with a HEX- editor, but this does not help you at all as it does not make the relevant code visible.
Wihtout access to the template that was used to create the database there is no chance for you to do anything with the design of that database anymore.

How to Publish InfoPath (which is fulltrusted having codebehid code ) in sharePoint?

I created one InfoPath form which is having C# code and i gave security option is 'full trusted' to access infopath object model,and it should be open with Browser.finally i published the Infopath form to SharePoint(by using admin-approved) site.
But when i'am trying to open, it is not opening and giving an error that is 'InfoPath can not create a new or blank form InfoPath can not open the form,To fix this problem,Contact your System administrator'
and in error show details its giving following message.
'The form template is trying to access files and settings on your computer. InfoPath cannot grant access to these files and settings because the form template is not fully trusted. For a form to run with full trust, it must be installed or digitally signed with a certificate'.
please give me a solution.
Unfortunately, if you are using any file system calls in your C# code then you will have to keep the fully trusted setting. As the error message says, any fully trusted form has to be either installed or have a certificate associated with it to run. Infopath is really just a glorified webpage when it runs on a users machine - you wouldn't want a webpage to run unsecurely and have full rights to the machine without the user knowing it.
You should only need full trust if the form accesses LOCAL resources (indivdiual hard drives). If you don't include C# libraries for file/directory access then domain trust should be sufficient and the form will work fine. (Database access, webservices, etc are not local and will work under domain level).
In the Form Setting change the browser enabled documents as "Display as Web Page".
it resolved the issue :)

Extracting Metadata of Lotus Notes Applications Using Notes Java API?

I am looking for extracting metadata about Notes Applications on a Domino server using Java Notes API. I tried reading the list of applications/databases from catalog.nsf file.
But catalog.nsf does not have new Applications that are created based on a existing template.
So From where can I get the list of applications that are existing on a Domino Server? Will the new Applications be added to catalog? If not how to make them to be added in the catalog?
Any help or Ideas will be much appreciated.
Thanks,
Srinivas
So if you want to do this in Java If the catalog.nsf is not upto date, then you can also try the dbdirectory class, look ==>here.
This should have an example to give you an idea how to read through all database on the server. If the Domino server is not registering new applications then catalog process is not running. You can load it by simply type "load catalog" at the console. More details ==>here.
There can still be other issues, but will wait for your response.
This is more of a "Server Fault" answer, but in the Domino Directory, you can turn on the Domain Catalog server task for a server in your domain, and that server will populate (and keep updated) the catalog.nsf file, which will then replicate across your domain.
So just enable that task within the server document, or go to the domino console and type load catalog

sharepoint listview web part access deined error

I have created listview web part do display infopath form . When i open the forms using adminstrator login everything works fine but when i login using normal user account the fallowing error is displayed .
"Error: Access denid"
Can anyone give solution for this..
The user doesn't have rights to view the list the listview web part is reading from?
The only time I've had such errors is when a resource refferenced from a webpart (whether custom or not), is being read from the file system. e.g. DataFormWebPart reading an xslt from the file system (layouts folder) instead of the style library. I would just double check that you haven't got a file like an xslt being called from the file system. If you have, try storing it somewhere within SharePoint e.g. Style Library.

SharePoint Custom Web Part With Active Directory

I am currently working on a custom SharePoint web part (WSS 3.0, not MOSS) that will pull in information for all of the users in Active Directory to build an up to date employee directory. This web part shows things like phone number, address, and other similar fields. The issue that I am having is that, by default, the SharePoint web site on IIS is running as the user IUSR_. This user does not have access to Active Directory, so I am unable to retrieve any user information.
To get around this for testing I have hard coded the credentials for a test user which I added just for this purpose. This, obviously, is not ideal. If anyone removes this user or if they ever change the password then the web part will break and they will have no way to fix it (they have no in-house developers to take it over once I am finished here). To fix this problem, I would like to make the Username/Password custom properties on the web part so I can pass those to Active Directory to retrieve the information I need. The issue I am having with this is that the password is stored in plain text so anyone can read it. I would like it to display as ******** or something similar. Is there a way to make a custom property on a web part a password type?
If this isn't possible, can anyone recommend another way to accomplish what I am trying to do? At this time I cannot change the user that the SharePoint website runs as. Although, if I cannot find any other solutions I will try again to persuade them.
Thanks in advance!
We use a service account for that. That service account is solely used for that. Something like DOMAIN\SPS_AD_READ_CUSTOMER
In our documentation that we deliver when putting the application in production that account is put in the list of stuff that is needed to make the webpart run. If the webpart ever fails, the ITPro can go to the chapter and check if everything is still ok.
It's not ideal, but I don't really know another way on how to fix it.
I would go with custom Editor Part, then set up a control of TextBox with property TextBoxMode set to Password, then override methods from type EditorPart - SynchChanges() and ApplyChanges() to set and retrieve values.
tip: override method CreateEditorParts of a WebPart type to start with.

Resources