Search -
Search - Search -
found 1663 matches
 forum index   my profile   search 
Not found what you where looking for? Try the  advanced search 
Solutions Developer > sql query returns text with invalid xml characters : how to solve ?
Joined: 7-February-2005
Posts: 249
Location: Uncharted territory
Posted: 4-March-2005 10:44
Where are the non-XML characters?
I suspect that your non-XML characters are in your column names rather than the actual row data. Because of the way that the result sets are serialized to XML all the column names are used as element names. So for example if you have a column called "2part" this would fail because XML elements cannot start with a number. See the XML specifications for more restrictions.

As a workaround you can use an SQL query like:
SELECT 2part AS twopart FROM mytable;

Sorry this isn't clearer in the documentation. I'll add it now.

News > HTTP Client Module: ext-http-client v0.9.0
Joined: 7-February-2005
Posts: 397
Location: UK
Posted: 4-March-2005 09:52
Errata: MergeConfig.xsl - fixed with v0.9.1
francop has pointed out that we srewed up the configuration of the 0.9.0 release. An error "Can't find MergeConfig.xsl" occurs because the module configuration does not export these resources!

A new module that fixes the config is available:

http://www.1060.org/upload/ext-http-client-0.9.1.jar

This came about because I've used an elegant pattern to perform the dynamic tranreption (object conversion) of the HTTPClientConfig.xml - it uses an XSLT to merge any user specified config with a default config resource, selecting defaults when the user has not provided overrides. Unfortunately I'd not exported the transform and the default config from the ext-http-client module, and so the XSLT accessor wasn't able to find them!

In my development environment the XSLT was imported at a lower level and so looked up the super-stack and found the resources in the ext-http-client module - hence when I tested it all worked! Goes to show you should test on a vanilla system and not in your development environment,
Solutions Developer > sql query returns text with invalid xml characters : how to solve ?
Joined: 3-March-2005
Posts: 23
Posted: 4-March-2005 08:24
sql query returns text with invalid xml characters : how to solve ?
Hi,

I'm using a query which returns text. This text however contains characters not allowed in an xml file (that is, without using the CDATA thing). What's the best way to get around this ?
Installation > problems with starting it after installation
Joined: 7-February-2005
Posts: 397
Location: UK
Posted: 3-March-2005 21:45
Java Socket Blocked
Sometimes you see the JVM block a socket after you shutdown. Make sure you've totally killed all Java processes between restarts (on unix 'killall java' - win32 look in the task manager).

Otherwise, like Tony suggests, use a tcp monitor to ensure another application hasn't already grabbed port 1060.
Installation > problems with starting it after installation
Joined: 7-February-2005
Posts: 249
Location: Uncharted territory
Posted: 3-March-2005 14:21
It looks like you have another process using port 1060
try using a utility like tcpview:

http://www.sysinternals.com/ntw2k/source/tcpview.shtml

to see what process is running. If this is a rogue process you can kill it. Otherwise it is easy to reconfigure NetKernel to use a different port. I can tell you how to do this.
Installation > problems with starting it after installation
Joined: 3-March-2005
Posts: 2
Posted: 3-March-2005 13:45
a little more a bout the problem..
I've only got windows firewall, and it does not help to turn it off.. :-(
Installation > problems with starting it after installation
Joined: 3-March-2005
Posts: 2
Posted: 3-March-2005 13:25
problems with starting it after installation
I've tried to install / uninstall a few times now, because i can't make it work. I know it worked for a little while the first time i installed it, but for some reason I uninstaled it and had to do it again.. after that it just doesn't work..

the startup.bat works up until the point of adding a socketListner..

14:19:03.007 WARN!! Failed to start: SocketListener@0.0.0.0:1060

however the one a bit before works fine:
14:19:02.957 EVENT Started SocketListener on 0.0.0.0:8080

setting my browser at http://localhost:1060 returns a "connection refused ... "
BUT.. setting the browser at http://localhost:8080 says that I've set up NetKernel successfully.. which I can't agree with ;-)

can anyone help??

-PÃ¥l
General Support > sending (POST) xml from Netkernel to other Web Services
Joined: 7-February-2005
Posts: 397
Location: UK
Posted: 3-March-2005 11:45
New HTTP Client Module
We've created a new HTTP client module that has comprehensive HTTP client services. For download, installation details see...

http://www.1060.org/forum/topic/20/1
News > HTTP Client Module: ext-http-client v0.9.0
Joined: 7-February-2005
Posts: 397
Location: UK
Posted: 3-March-2005 11:44
HTTP Client Module: ext-http-client v0.9.0
HTTP Client Module

Module: ext-http-client
Version: 0.9.0
Status: First release/Beta testing.

The ext-http-client module provides a set of HTTP client services. The services include support for client-side state management including session cookies and basic, digest and NTDomain HTTP authentication protocols.

Download

http://www.1060.org/upload/ext-http-client-0.9.0.jar
http://www.1060.org/upload/test-http-client.zip

Installation

[install] means the base path at which you installed NetKernel.

1. Copy ext-http-client-0.9.0.jar to [install]/modules

2. Unzip test-http-client.zip to [install]/modules/test-http-client/

3. Edit [install]/etc/deployedModules.xml and add the following entries to modules
a) <module>modules/ext-http-client-0.9.0.jar</module>
b) <module>modules/test-http-client/</module>

4. Edit [install]/modules/front-end-fulcrum/module.xml
a) Add an entry in the mapping section...

<import>
<uri>urn:org:ten60:netkernel:test:ext:http:client</uri>
</import>

5. Reboot or Cold Restart NetKernel.

Documentation

There are 5 new accessors: httpGet, httpPost, httpPut, httpDelete and httpState. They are fully documented - docs can be found in the ext-http-module entrypoints or are automatically discovered and found in the accessor listing section of the on-line documentation alternatively just search 'httpGet' etc).

Test/Example Module

"test-http-client" is test module which provides a set of simple servers and some clients which will call the servers. Together this provides a self-hosted HTTP client-server environment.

At install step 4.the test module was imported into the front-end-fulcrum which and is accessible with a browser. The first test simple HTTP get test can be executed with...

http://localhost:8080/test-http-client/client/httpGet1.idoc

Within the test module the client/ directory contains client tests etc.

Testing

This is a v0.9.0 release and it has been tested reasonably well. Please provide feedback and/or bug reports through the 1060 forum. Once we have your reports on stability etc we will release a v1.0.0 through the NetKernel update servers.
Solutions Developer > links.xml problem
Joined: 7-February-2005
Posts: 249
Location: Uncharted territory
Posted: 3-March-2005 11:00
Two things
The <this/> element in the <mapping/> section needs to contain the resources/ path. To do this add a <match>ffcpl:/resources/.*</match>.

Second in the links.xml file the internal path needs to point at the correct operand idoc:
<int>active:dpml+operand@ffcpl:/resources/showForegs.idoc</int>

© 2003-2006, 1060 Research Limited. 1060 registered trademark, NetKernel trademark of 1060 Research Limited.