Menu

#10 Can't configure File to socket mode

socketReader 1.x
open-accepted
config (2)
5
2014-08-29
2014-08-28
Marc
No

Hi,

I read several times the readme file, but I missed something.

I have local HL7 files I want to send thru socket to an other computer. On the second one, a tool (not socketreader) is listening on a port (21110), firewall is off on both computers.

[outgoing_socket]
queuename = file-to-socket
transtech = socket
transdir = out
messagedir=D:/socket/files
usehl7 = true
useack = True
queuedb = D:/socket/queue
createserversocket = False
ipaddr = localhost
port = 21110

I tried different cases with ipaddr and createserversocket. Is the section correct ?

When I run socketReader32.exe, I get this error in the log file :

2014-08-28 10:12:28,447 - Main - CRITICAL - socketReader 1.2.4 is starting up.
2014-08-28 10:12:28,447 - Main - CRITICAL - Python Interpreter: CPython 2.7.5 32bit
2014-08-28 10:12:28,447 - Main - CRITICAL - Host System: Windows marc XP 5.1.2600 x86 x86 Family 6 Model 23 Stepping 6, GenuineIntel
2014-08-28 10:12:28,447 - Main - CRITICAL - Command: D:\socket\socketReader32.exe
2014-08-28 10:12:28,447 - Main - ERROR - socketReader encountered an unexpected exception:
Traceback (most recent call last):
File "<string>", line 405, in <module>
File "<string>", line 334, in startAll
File "<string>", line 122, in spawnThreads
AttributeError: 'NoneType' object has no attribute 'keys'

Thanks for your help !

Marc

Discussion

  • Sebastian Weigmann

    Hi Marc,

    it seems that you missed a few statements in your config. In addition to your outgoing-socket adapter, you need to configure a file-in adapter. Please see example.cfg for a template (there it is named incoming_file). Also, please do set up the [general] section of your config accordingly.

    Best regards!

     
  • Sebastian Weigmann

    • labels: --> config
    • status: unread --> open-accepted
    • assigned_to: Sebastian Weigmann
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.