Issue with 64-bit Eclipse Indigo?

40 views
Skip to first unread message

Scott Stroz

unread,
Feb 5, 2012, 12:12:08 PM2/5/12
to mxu...@googlegroups.com
I am setting up a project and getting started on some unit/integration tests. I had a few issues getting the plugin to be able to execute test - but that was mostly a configuration issue on my part. Now I can get the plugin to see the tests and test methods, but it seems that there is a problem else where.

I have the following test:

function test(){
request.debug("moo");
}

When I try to run the test, after about 2-3 minutes, I get this error:

java.net.SocketException: Connection reset

In the properties for the directory, I have specified the correct WSDL URL as the 'ping' works as expected. I know CF is up and running because a) the WSDL ping works and 2) I can hit the 'main' page of the app.

This set up is similar to others I have used and the only thing I can think of that might be different are the fact that I am using Eclipse Indigo 64-bit. 

Any ideas on what might be wrong?

Marc Esher

unread,
Feb 5, 2012, 2:51:14 PM2/5/12
to mxu...@googlegroups.com
Scott

1) can you run the test in the browser, i.e.
http://localhost/blah/mytest.cfc?method=runTestRemote ?
2) what version of CF? 9? or Zeus?
3) what do you see in the CF console output? When a test runs from
the plugin, in the CF console (assuming yo'ure starting CF from cmd),
you'd see something like:

02/05 14:50:23 Information [jrpp-3] - Initialized TestRun with key
16AC3112-7071-BCD2-95D35A09D241CE0A
02/05 14:50:23 Information [jrpp-3] - Initializing cache with key
16AC3112-7071-BCD2-95D35A09D241CE0A
02/05 14:50:23 Information [jrpp-3] - RemoteSuiteCount: initial 1; now: 0

Let me know what you see.

Marc

> --
> You received this message because you are subscribed to the Google Groups
> "mxunit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/mxunit/-/C0qEQmSm9FMJ.
> To post to this group, send email to mxu...@googlegroups.com.
> To unsubscribe from this group, send email to
> mxunit+un...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/mxunit?hl=en.

Scott Stroz

unread,
Feb 6, 2012, 12:31:16 PM2/6/12
to mxu...@googlegroups.com
I am able to run the test in the HTML runner. (Took some work to get it running correctly as the wiki is down so I was flying blind) :D

I am using ColdFusion 9.0.1.

In the CF Consoel I was getting an error, but I corrected that and this is now what I see.

02/06 12:19:50 Information [jrpp-27] - Initialized TestRun with key 44C7F1D1-A7FE-35F2-8B1D45F66D9362F3
02/06 12:19:50 Information [jrpp-27] - Initializing cache with key 44C7F1D1-A7FE-35F2-8B1D45F66D9362F3
02/06 12:19:51 Information [jrpp-27] - Loading test beans: /config/beans.xml
Hibernate:
    insert
    into
        Account
        (Deleted, Name, Expires)
    values
        (?, ?, ?)
02/06 12:22:56 Information [jrpp-27] - RemoteSuiteCount: initial 1; now: 0

I then see the 'Connection Reset' error in Eclipse.

Oddly enough, if I fire up CFB2 standalone I can run the same exact test on the same exact code and it works fine. This leads me to believe the issue is either with Indigo (but I think in an IM you said you were using Indigo) or the fact that its 64-bit. 

When trying to work through this, I started with simple tests, simply using assertTrue( true) - this worked as expected. Even assertTrue( false ) worked as expected. However, when I added a = b; I see the error in CF console right away, but eventually the process times out and I get the 'connection reset' message.

Scott Stroz

unread,
Feb 10, 2012, 2:54:08 PM2/10/12
to mxu...@googlegroups.com
Posting this in case others have solved this issue.

I had chatted with Marc about this issue and he said he was able to run tests in the MXUnit plugin running Indigo (Eclipse 3.7) 64-bit without issues.

I just now downloaded the 64-Bit 'Classic' version and have only the MXUnit plugin installed and it still fails with the same error:

'java.net.SocketException: Connection reset'

These same tests run fine in ColdFusion Builder 2 standalone.

Anyone have any ideas?

Scott Stroz

unread,
Feb 10, 2012, 2:57:56 PM2/10/12
to mxu...@googlegroups.com
And...as soon as I clicked 'send' I had a thought.

I shut down AVG and ran the tests and they worked as expected.

Now to figure out how to add an exception for Eclipse...should be fun.....

Scott Stroz

unread,
Feb 10, 2012, 3:37:35 PM2/10/12
to mxu...@googlegroups.com
Turns out it was the "Surf-Shield" feature. I am not really sure what that does or why it does not interfere with with ColdFusion Builder running tests, or even stopping me from browsing the project from my web browser.

But, its now working and the fix is on the Inner-webs for all of eternity.

Matt Quackenbush

unread,
Feb 10, 2012, 3:54:23 PM2/10/12
to mxu...@googlegroups.com
I secretly had faith in you!

Although, I guess it isn't so secret anymore. Oops.

On Fri, Feb 10, 2012 at 2:37 PM, Scott Stroz <sc...@boyzoid.com> wrote:
Turns out it was the "Surf-Shield" feature. I am not really sure what that does or why it does not interfere with with ColdFusion Builder running tests, or even stopping me from browsing the project from my web browser.

But, its now working and the fix is on the Inner-webs for all of eternity.

--
You received this message because you are subscribed to the Google Groups "mxunit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/mxunit/-/pUTP9H4_9hgJ.
Reply all
Reply to author
Forward
0 new messages