One Star

connecting to socket on port 3938 - Error while running a job

Hello guys, I am trying to run the demo routines that comes with the java project. I get the following error. I also get the same error when attempting to run any job - complex or simple. I am not sure why. i searched google and also the talendforge but could not find a similar problem. Any help is much appreciated.
connecting to socket on port 3938
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at routines.system.RunStat.startThreadStat(RunStat.java:195)
at talenddemosjava.taggregaterow_0_1.tAggregateRow.runJobInTOS(tAggregateRow.java:1557)
at talenddemosjava.taggregaterow_0_1.tAggregateRow.main(tAggregateRow.java:1445)
Exception in component tAggregateRow_1_AGGOUT
java.lang.NullPointerException
at routines.system.RunStat.sendMessages(RunStat.java:286)
at routines.system.RunStat.updateStatOnConnection(RunStat.java:343)
at talenddemosjava.taggregaterow_0_1.tAggregateRow.tRowGenerator_1Process(tAggregateRow.java:770)
at talenddemosjava.taggregaterow_0_1.tAggregateRow.runJobInTOS(tAggregateRow.java:1577)
at talenddemosjava.taggregaterow_0_1.tAggregateRow.main(tAggregateRow.java:1445)
Exception in thread "main" java.lang.NullPointerException
at routines.system.RunStat.sendMessages(RunStat.java:286)
at routines.system.RunStat.updateStatOnJob(RunStat.java:412)
at talenddemosjava.taggregaterow_0_1.tAggregateRow.runJobInTOS(tAggregateRow.java:1605)
at talenddemosjava.taggregaterow_0_1.tAggregateRow.main(tAggregateRow.java:1445)

\|/
14 REPLIES
One Star

Re: connecting to socket on port 3938 - Error while running a job

Hi
Which version of TOS do you use? Which OS?
Could you upload the screen shot of your job?
I don't think this is simple caused by routine. It indicates a NPE exception regarding to tAggregaterow.
Regards,
Pedro
One Star

Re: connecting to socket on port 3938 - Error while running a job

Thanks for responding Pedro.
I am facing the issue in Talend Version: 4.1.2 Build id: r53616-20110106-0635
as well as on
Talend Version: 5.1.0 Build id: r82787-20120504-1225
How do i upload an image here? Please help Thanks
One Star

Re: connecting to socket on port 3938 - Error while running a job

Hi
To upload an image, please click on "Edit" of your comment.
Then you would see "Image Upload" section.
Tip: 20 images per post, each image must be less then 1024x768 pixels and 200 KB.
Regards,
Pedro
One Star

Re: connecting to socket on port 3938 - Error while running a job

Thanks pedro
as per your information i uploaded image .but image file not shown in my comment .Are you able to see?
One Star

Re: connecting to socket on port 3938 - Error while running a job

Hi
No. I can't find it. I guess the image is beyond 1024x768 pixels and 200 KB.
Please recheck it.
Regards,
Pedro
One Star

Re: connecting to socket on port 3938 - Error while running a job

Sorry Smiley Happy
Find the image attached. Thanks for all your help
Seventeen Stars

Re: connecting to socket on port 3938 - Error while running a job

hi,
it's a problem about connection for log's message. You haven't rant permission to write in database i think.
regards
laurent
One Star

Re: connecting to socket on port 3938 - Error while running a job

Thanks kzone.
It is a fresh install. I am not even sure that there is a database by default with talend. This happens for all the jobs
Seventeen Stars

Re: connecting to socket on port 3938 - Error while running a job

for sure ...
but as far as I know into DEMOJAVA , stat & logs are written into a Mysql database (by default) ...
laurent
One Star

Re: connecting to socket on port 3938 - Error while running a job

How does talend work? What is listening on port 3938? It appears that something is refusing connection. Is there some setting that I need to do? Any help is appreciated. Thank you
Seventeen Stars

Re: connecting to socket on port 3938 - Error while running a job

sorry i was thinking that you are running DEMOJAVA ...
what 's in your aggregate !?
test a "debug run" to see data through the flow and check if one of them is null !
One Star

Re: connecting to socket on port 3938 - Error while running a job

Kzone, I get the error for ANY job that i create. I tried uninstalling Talend and reinstalling. Nothing helps.
PLease see the job below. I am just reading from a text file and outputing to the tlogrow component. Even for this simplest of jobs I get the error. I have other machines here for which Talend works fine. Please advise. Thanks
One Star

Re: connecting to socket on port 3938 - Error while running a job

When you are on the Run tab to execute your job, check under the Advanced Settings tab and ensure Statistics is unchecked.
Seventeen Stars

Re: connecting to socket on port 3938 - Error while running a job

+1
because it's not an error on your job (logRow have result).
Also check in "project settings" ...
laurent