Отправляет email-рассылки с помощью сервиса Sendsay

Бюллетень "Lotus Notes CodeStore"

  Все выпуски  

LO38846: HTTP CRASH WHEN RUNNING WEB AGENT IN DOMINO 8.0.2


Рассылку ведет: Программист на Lotus NotesLotus CoderВыпуск No 418 от 2010-11-24
рассылка о программировании на Lotus Notes/Domino
Обсуждения на форумах, блогах. Примеры программного кода на LotusScript,@formula, Java

рассылка:выпускархивлентаблогсайт

Бюллетень "Lotus Notes CodeStore" Выпуск 13 от 21.04.2008

comp.soft.prog.lotuscodesrore

CodeStore. Примеры кодов

Еще примеры:
Больше кодов на сайтах:

Форумы.Свежи темы и обсуждения

Добрый день!
Планирую переход на Domino 8.5.2 64 разряда на новое железо. Сервер HP ProLiant DL380g7. Есть несколько вопросов по совместимости:
1. Какую версию SLES предпочтительно установить SLES10 SP3 или SLES11 SP1?
2. На сайте IBM в дистрибутивах есть 32-х разрядная версия для Linux xSeries и 64-х разрядная для Linux zSeries. Соответственно xSeries для DL сервера? Где здесь 64 бита?
3. На старом сервере установлен Trendmicro ScanMail for Lotus Domino 3.1. Версия 32 битная. В настоящее время существует 64 битная версия 5.0, но только для Windows 2008. Возможно ли установить 3.1 на Domino 64 бита?
Спасибо.
Здравствуйте!
...
Агент для выполнения процедуры в 1С. 1С стоит на сервере, на машине 1С не установлена.
Агент запускается сервером
кусок скрипта
    Dim s As New NotesSession
    Dim agent As NotesAgent
    Set agent = s.CurrentAgent
    Dim db As NotesDatabase
    Dim doc As NotesDocument
    Set db = s.CurrentDatabase
    Dim mdoc As NotesDocument
    Set mdoc=New NotesDocument(db)
    mdoc.Form="ICExport"
    mdoc.begin=now
    Dim BaseDir As String
    Dim TempDir As String
    Dim   UserName As String
    Dim  UserPass As String
    Dim ConnStr As String
    Dim Conn As Variant
    Set aObjV8 = CreateObject("V81.ComConnector")

При запуске агента руками, процедура выполняется.
При запуске по кнопке пользователя в которой agent.RunOnServer(doc.NoteID)
Lotus ругается на последнюю строчку.
Ошибка в логе

Agent '1CExperTest|1CExperTest' error: Operation is disallowed in this session

Может кто-то может помочь в єтой проблеме?!

Зараннее спасибо.
Интересные темы:
Список форумов:

Tips. Советы

Peter Presnell provides a rather lengthy list of points to ponder on the benefits of using agents. He also provides a few warnings on signing them.

Read | Permalink
David Brown provides visual proof that not all Technotes are reviewed by grammarians prior to publication.

Read | Permalink
Luis Benitez has posted links so you can download the CMIS (Content Management Interoperability Services) for your browser, or iPhone, to link to Lotus Connections 3.0.

Read | Permalink

This is one of those blog entries I hope will help future Googlers. Probably not worth a read by my regular readers - although there is perhaps something to learn within.

Flash player 10 introduced a new Framework called Text Layout (TLF) which lets you edit and display Rich Text in Flex.

TLF came in really handy on a project I worked this year, which let students create and save posters with their own photos and text in.

The text part of the Flex-based poster-making application is a RichEditableText component which has a toolbar above it - allowing them to change font style, face and colour in the TextFlow element it contained.

Everything worked well until, being kids, they had a go at creating rainbow text -- where every subsequent word is a different colour, which broke it.

Here's a very simple example of how it broke the editor. Notice the rich text has one word in red. Now press the second button below it, which says "broken". The whitespace surrounding the word in red is stripped out.

Either scripts and active content are not permitted to run or Adobe Flash Player version 10.0.0 or greater is not installed.

Get Adobe Flash Player

The button exports the TLF-based XML from the editor and then re-imports it straight back in.

The code for the above Flex app is here.

The XML produced by the TextFlow's export method looks similar to this:

<p><span>Click here to start</span> <span color="red">editing</span> <span>your poster</span></p>

The spaces on either side of the red word are there, but, as we all know, XML "abhors whitespace" and so it gets stripped out.

To get round this we can tell Flex's XML class not to ignore whitespace. Like so:

var originalSettings:Object = XML.settings(); XML.ignoreProcessingInstructions = false;
XML.ignoreWhitespace = false;
XML.prettyPrinting=false; var t:String = null; try
{ t=TextFlowUtil.export(this.textFlow).toString();
} catch(e:Error){
} finally { XML.setSettings(originalSettings);
}

The XML then looks something like this:

<p><span>Click here to start</span><span> </span><span color="red">editing</span><span> </span><span>your poster</span></p>

Notice the spaces have been added in to span elements of their own.

Round-Tripping With a Server

The above workaround is all very well but it's not as simple as adding a line or two of code.

Here are two other gotchas I stumbled upon which meant this bug took a lot, lot longer to resolve than I'd have hoped.

  1. If you're using SQL Server in the backend make sure the column isn't of XML data type. This will turn "<span> </span>" in to "<span />" and break it regardless of the above ActionScript workaround.
  2. If you use an HTTPService to fetch the XML for the TextFlow of saved posters from the database make sure it has a result format of "text" (not "E4X" or "XML") as this will do the string-to-XML conversion for you before you have chance to apply the workaround. Cast it to XML in the result event instead, after setting the new XML settings.

Hope this helps somebody in the future.

Click here to post a response

I was expecting a delivery of wine yesterday, so, when it didn't turn up, I logged in to the Virgin Wines website to see why.

Here's the order tracking page. After a quick glance I noticed the Failed Delivery status due to an "Address Query" and a number to call.

image

Half way through the call to that number (which was the courier - not the wine company, who I had to call separately) I noticed what I'd failed to notice on first glance - there's a row above the one with the phone number in:

image

Had I seen that row I wouldn't have needed to waste my time making two phone calls (or writing this blog for that matter ;-)

I'm sure it's just a seasonal background they've added, but the grey on red text is a massive usability failure. Seems nobody thought about the effect of changing the background colour...

Click here to post a response

Paul Cable has quietly posted a number of code snippets over the last couple of years. He's now published a "directory" linking to the different postings to help you find them.

Read | Permalink


EXTEND LOTUS QUICKR WITH DOCOVA
Extend your Lotus Quickr solution with Docova, a professional, easily modified, fully functional Document and Content Management platform. Share, collaborate and promote your project, departmental and enterprise content.

Docova Integrated Content Services enables your Quickr implementation to address your organization's Document Management, Records Management, and Domino Document Manager migration needs.

See the New Possibilities for Lotus Quickr on Domino

Dave Hay has posted links to some IBM training packages available for download. There are three sections, ranging from 15 to 22 hours of instruction, covering best practices and more.

Read | Permalink
John James reminds you, if your databases are not at the correct ODS level for your version of Domino, you have to run a copy-style compaction or risk problems.

Read | Permalink
Karthikeyan A has posted some code to let you add a Link hotspot to a RichText Field in a Notes document.

Read | Permalink


WHAT'S THE MOST COST-EFFECTIVE & RESPECTED TRAINING RESOURCE FOR LOTUS PROFESSIONALS?
Visit THE VIEW Online Knowledgebase at www.eview.com.

Еще советы:
Смотри советы на сайтах:

Блоги. Что обсуждают и пишут

David Taieb has released a new version of the JAVADDIN project. The project proposes a new way of writing server addin tasks by using the Java OSGi programming model. The new release contains the following functionality (more in the ...
The latest release of the XPages Extension Library comes with a Controls documentation. Phil Riand describes the new documentation and his plans in the release notes: << Expand the XPages-Doc.zip file into its own directory and launch ...
The www.OpenNTF.org site receives over 250,000 page views on a monthly basis from tens of thousands of Lotus developers around the world. OpenNTF is one of the most trafficked sites on the web for Lotus Notes and Domino developers. OpenNTF.org has two ...
Author: Travis Hiscock
Tags: calendar
Idea:
Ever deleted a Calendar Entry by mistake?  There does not appear to be a way to recover from this, and especially with a customer appointment, this can lead to missed meetings, and revenue!
 
Often, many people in an organisation can not only see, but control content in other peoples calendars.
 
I think that there should be a Calendar Trashcan, were I can go and check for accidently deleted Calendar entires.

Author: Mark Demicoli
Tags: deletion views updates
Idea:
Deleting a bunch (or even a single) document from Mail can be tediously slow compared to other email clients.  Not sure how others do it quicker, but here is one suggestion for Notes.
 
When a change to a view occurs, Notes must always trigger a view update on the server then synchronously receive the updated entries.
 
When talking about changing data, this is a necessary round-trip, but when just deleting documents, the UIView should be able to safely assume that the call to the server will succeed, and just update the UIView immediately while the transaction with the server occurs asynchronously.
 
If the transaction fails it can be dealt with appropriately. This could be extended to a general view option "Pre-emptive view update" or something like that.
 
 
 

UK Lotus Business Partner Intec Systems Ltd. has recently joined the OpenNTF Alliance and here is what they have to say about OpenNTF: "Intec is proud to join the OpenNTF Alliance. For development and administration we have utilised the ...
Еще записи:
Интересные блоги специалистов:

Статьи и Документация

Fatal requests in 2 NSD's show as follows:
When importing into a LS library, you receive the following error and cannot save the library after the import:
When setting multiple Managed Desktop Settings, they are not all read in by the Eclipse client after been pushed down to the
Customer has multiple Domino servers running on one system. Each week they end
Java heap memory leak when run Xpage applications, will eventually cause the jvm to run out of memory and shutdown the
A tool called Lotus Notes Diagnostic is available from an IBM FTP server. This tool can be used to analyze NSD and other files resulting from a Lotus Domino server crash, hang, or performance issues.
Lotus Notes Diagnostic
An administrator can deny a user access to the IBM® Lotus Notes® Traveler server. To delete a specific device from the Lotus Notes Traveler: 1. Run the following command: tell traveler delete device ID username Note: The device ID is case sensitive. To completely remove a user ...
When you create a meeting the start and end times are in 12 hour format by default. You would like the start and end times to be displayed in 24 hour format.
How to find details on an error in the Eclipse-based Notes client or Designer code.
Lotus Notes 8.5.2 introduces a Notes preloader for the Windows platform that can be run at OS startup. The preloader allows for faster Notes client startup by preloading some required Notes libraries when the OS is started.
Также почитатай:
Найти документацию можно на сайтах:

В избранное