You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Dave Dupre (JIRA)" <ji...@apache.org> on 2008/12/15 20:09:44 UTC

[jira] Created: (THRIFT-232) Works on CentOS, breaks on Umbutu

Works on CentOS, breaks on Umbutu
---------------------------------

                 Key: THRIFT-232
                 URL: https://issues.apache.org/jira/browse/THRIFT-232
             Project: Thrift
          Issue Type: Bug
          Components: Compiler (Ruby)
    Affects Versions: 0.1
         Environment: CentOS 4.x, Umbutu 8.10
            Reporter: Dave Dupre
            Priority: Minor


We have several Thrift services setup. Most have a Java client and a Ruby server.  Everything has been working great until a developer tried an Umbutu server. We don't execute anything on Umbutu, so this is more informational. Using the same Java client in both tests, a call to the Ruby server on CentOS works, but the exact same call to the Ruby server on Umbutu fails.  The Ruby code is exactly the same in both Linux setups, as is the versions of Ruby (1.8.6) and Rails (2.1.2).  Java is always on CentOS 4.x.

The Ruby side on Umbutu fails with:

./script/../vendor/plugins/sermo_service/lib/thrift/transport.rb:45:in `<<': can't convert nil into String (TypeError)
	from ./script/../vendor/plugins/sermo_service/lib/thrift/transport.rb:45:in `read_all'
	from ./script/../vendor/plugins/sermo_service/lib/thrift/protocol/binaryprotocol.rb:171:in `read_string'
	from ./script/../vendor/plugins/sermo_service/lib/thrift/protocol.rb:202:in `read_type'
	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:198:in `read_field'
	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:193:in `read_field'
	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:192:in `times'
	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:192:in `read_field'
	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:162:in `handle_message'
	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:84:in `read'
	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:81:in `loop'
	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:81:in `read'
	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:173:in `read_field'
	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:162:in `handle_message'
	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:84:in `read'
	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:81:in `loop'
	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:81:in `read'
	from ./script/../vendor/plugins/sermo_service/lib/thrift/client.rb:29:in `receive_message'
	from ./script/../vendor/plugins/user_service/lib/gen-rb/UserService.rb:25:in `recv_find_by_id'
	from ./script/../vendor/plugins/user_service/lib/gen-rb/UserService.rb:17:in `find_by_id'
	from ./script/../vendor/plugins/sermo_service/lib/sermo_service/thrift_client.rb:50:in `send'
	from ./script/../vendor/plugins/sermo_service/lib/sermo_service/thrift_client.rb:50:in `method_missing'
	from script/client:30

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (THRIFT-232) Works on CentOS, breaks on Umbutu

Posted by "Bryan Duxbury (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bryan Duxbury resolved THRIFT-232.
----------------------------------

    Resolution: Cannot Reproduce

I don't think we ever had any insight into what was wrong, but at least it's not still happening. Closed.

> Works on CentOS, breaks on Umbutu
> ---------------------------------
>
>                 Key: THRIFT-232
>                 URL: https://issues.apache.org/jira/browse/THRIFT-232
>             Project: Thrift
>          Issue Type: Bug
>          Components: Compiler (Ruby)
>    Affects Versions: 0.1
>         Environment: CentOS 4.x, Umbutu 8.10
>            Reporter: Dave Dupre
>            Priority: Minor
>
> We have several Thrift services setup. Most have a Java client and a Ruby server.  Everything has been working great until a developer tried an Umbutu server. We don't execute anything on Umbutu, so this is more informational. Using the same Java client in both tests, a call to the Ruby server on CentOS works, but the exact same call to the Ruby server on Umbutu fails.  The Ruby code is exactly the same in both Linux setups, as is the versions of Ruby (1.8.6) and Rails (2.1.2).  Java is always on CentOS 4.x.
> The Ruby side on Umbutu fails with:
> ./script/../vendor/plugins/sermo_service/lib/thrift/transport.rb:45:in `<<': can't convert nil into String (TypeError)
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/transport.rb:45:in `read_all'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/protocol/binaryprotocol.rb:171:in `read_string'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/protocol.rb:202:in `read_type'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:198:in `read_field'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:193:in `read_field'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:192:in `times'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:192:in `read_field'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:162:in `handle_message'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:84:in `read'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:81:in `loop'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:81:in `read'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:173:in `read_field'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:162:in `handle_message'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:84:in `read'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:81:in `loop'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:81:in `read'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/client.rb:29:in `receive_message'
> 	from ./script/../vendor/plugins/user_service/lib/gen-rb/UserService.rb:25:in `recv_find_by_id'
> 	from ./script/../vendor/plugins/user_service/lib/gen-rb/UserService.rb:17:in `find_by_id'
> 	from ./script/../vendor/plugins/sermo_service/lib/sermo_service/thrift_client.rb:50:in `send'
> 	from ./script/../vendor/plugins/sermo_service/lib/sermo_service/thrift_client.rb:50:in `method_missing'
> 	from script/client:30

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (THRIFT-232) Works on CentOS, breaks on Umbutu

Posted by "Bryan Duxbury (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12664756#action_12664756 ] 

Bryan Duxbury commented on THRIFT-232:
--------------------------------------

Has anyone else experienced this issue? Are you sure that the Thrift libraries are the same in both cases? What transport are you using?

> Works on CentOS, breaks on Umbutu
> ---------------------------------
>
>                 Key: THRIFT-232
>                 URL: https://issues.apache.org/jira/browse/THRIFT-232
>             Project: Thrift
>          Issue Type: Bug
>          Components: Compiler (Ruby)
>    Affects Versions: 0.1
>         Environment: CentOS 4.x, Umbutu 8.10
>            Reporter: Dave Dupre
>            Priority: Minor
>
> We have several Thrift services setup. Most have a Java client and a Ruby server.  Everything has been working great until a developer tried an Umbutu server. We don't execute anything on Umbutu, so this is more informational. Using the same Java client in both tests, a call to the Ruby server on CentOS works, but the exact same call to the Ruby server on Umbutu fails.  The Ruby code is exactly the same in both Linux setups, as is the versions of Ruby (1.8.6) and Rails (2.1.2).  Java is always on CentOS 4.x.
> The Ruby side on Umbutu fails with:
> ./script/../vendor/plugins/sermo_service/lib/thrift/transport.rb:45:in `<<': can't convert nil into String (TypeError)
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/transport.rb:45:in `read_all'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/protocol/binaryprotocol.rb:171:in `read_string'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/protocol.rb:202:in `read_type'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:198:in `read_field'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:193:in `read_field'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:192:in `times'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:192:in `read_field'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:162:in `handle_message'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:84:in `read'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:81:in `loop'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:81:in `read'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:173:in `read_field'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:162:in `handle_message'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:84:in `read'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:81:in `loop'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:81:in `read'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/client.rb:29:in `receive_message'
> 	from ./script/../vendor/plugins/user_service/lib/gen-rb/UserService.rb:25:in `recv_find_by_id'
> 	from ./script/../vendor/plugins/user_service/lib/gen-rb/UserService.rb:17:in `find_by_id'
> 	from ./script/../vendor/plugins/sermo_service/lib/sermo_service/thrift_client.rb:50:in `send'
> 	from ./script/../vendor/plugins/sermo_service/lib/sermo_service/thrift_client.rb:50:in `method_missing'
> 	from script/client:30

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (THRIFT-232) Works on CentOS, breaks on Umbutu

Posted by "Dave Dupre (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12688530#action_12688530 ] 

Dave Dupre commented on THRIFT-232:
-----------------------------------

No. I do not believe it is a problem anymore.

> Works on CentOS, breaks on Umbutu
> ---------------------------------
>
>                 Key: THRIFT-232
>                 URL: https://issues.apache.org/jira/browse/THRIFT-232
>             Project: Thrift
>          Issue Type: Bug
>          Components: Compiler (Ruby)
>    Affects Versions: 0.1
>         Environment: CentOS 4.x, Umbutu 8.10
>            Reporter: Dave Dupre
>            Priority: Minor
>
> We have several Thrift services setup. Most have a Java client and a Ruby server.  Everything has been working great until a developer tried an Umbutu server. We don't execute anything on Umbutu, so this is more informational. Using the same Java client in both tests, a call to the Ruby server on CentOS works, but the exact same call to the Ruby server on Umbutu fails.  The Ruby code is exactly the same in both Linux setups, as is the versions of Ruby (1.8.6) and Rails (2.1.2).  Java is always on CentOS 4.x.
> The Ruby side on Umbutu fails with:
> ./script/../vendor/plugins/sermo_service/lib/thrift/transport.rb:45:in `<<': can't convert nil into String (TypeError)
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/transport.rb:45:in `read_all'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/protocol/binaryprotocol.rb:171:in `read_string'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/protocol.rb:202:in `read_type'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:198:in `read_field'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:193:in `read_field'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:192:in `times'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:192:in `read_field'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:162:in `handle_message'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:84:in `read'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:81:in `loop'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:81:in `read'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:173:in `read_field'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:162:in `handle_message'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:84:in `read'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:81:in `loop'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:81:in `read'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/client.rb:29:in `receive_message'
> 	from ./script/../vendor/plugins/user_service/lib/gen-rb/UserService.rb:25:in `recv_find_by_id'
> 	from ./script/../vendor/plugins/user_service/lib/gen-rb/UserService.rb:17:in `find_by_id'
> 	from ./script/../vendor/plugins/sermo_service/lib/sermo_service/thrift_client.rb:50:in `send'
> 	from ./script/../vendor/plugins/sermo_service/lib/sermo_service/thrift_client.rb:50:in `method_missing'
> 	from script/client:30

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (THRIFT-232) Works on CentOS, breaks on Umbutu

Posted by "Bryan Duxbury (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12688505#action_12688505 ] 

Bryan Duxbury commented on THRIFT-232:
--------------------------------------

Is this issue still a problem? 

> Works on CentOS, breaks on Umbutu
> ---------------------------------
>
>                 Key: THRIFT-232
>                 URL: https://issues.apache.org/jira/browse/THRIFT-232
>             Project: Thrift
>          Issue Type: Bug
>          Components: Compiler (Ruby)
>    Affects Versions: 0.1
>         Environment: CentOS 4.x, Umbutu 8.10
>            Reporter: Dave Dupre
>            Priority: Minor
>
> We have several Thrift services setup. Most have a Java client and a Ruby server.  Everything has been working great until a developer tried an Umbutu server. We don't execute anything on Umbutu, so this is more informational. Using the same Java client in both tests, a call to the Ruby server on CentOS works, but the exact same call to the Ruby server on Umbutu fails.  The Ruby code is exactly the same in both Linux setups, as is the versions of Ruby (1.8.6) and Rails (2.1.2).  Java is always on CentOS 4.x.
> The Ruby side on Umbutu fails with:
> ./script/../vendor/plugins/sermo_service/lib/thrift/transport.rb:45:in `<<': can't convert nil into String (TypeError)
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/transport.rb:45:in `read_all'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/protocol/binaryprotocol.rb:171:in `read_string'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/protocol.rb:202:in `read_type'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:198:in `read_field'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:193:in `read_field'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:192:in `times'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:192:in `read_field'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:162:in `handle_message'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:84:in `read'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:81:in `loop'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:81:in `read'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:173:in `read_field'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:162:in `handle_message'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:84:in `read'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:81:in `loop'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:81:in `read'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/client.rb:29:in `receive_message'
> 	from ./script/../vendor/plugins/user_service/lib/gen-rb/UserService.rb:25:in `recv_find_by_id'
> 	from ./script/../vendor/plugins/user_service/lib/gen-rb/UserService.rb:17:in `find_by_id'
> 	from ./script/../vendor/plugins/sermo_service/lib/sermo_service/thrift_client.rb:50:in `send'
> 	from ./script/../vendor/plugins/sermo_service/lib/sermo_service/thrift_client.rb:50:in `method_missing'
> 	from script/client:30

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (THRIFT-232) Works on CentOS, breaks on Umbutu

Posted by "Dave Dupre (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12664867#action_12664867 ] 

Dave Dupre commented on THRIFT-232:
-----------------------------------

We only have one Umbutu machine, so this is the only one that has the problem. Both Thrift libraries are exactly the same. I'm sure of that becomes we deliver the Thrift libraries with our code.  The transport is HTTP.

> Works on CentOS, breaks on Umbutu
> ---------------------------------
>
>                 Key: THRIFT-232
>                 URL: https://issues.apache.org/jira/browse/THRIFT-232
>             Project: Thrift
>          Issue Type: Bug
>          Components: Compiler (Ruby)
>    Affects Versions: 0.1
>         Environment: CentOS 4.x, Umbutu 8.10
>            Reporter: Dave Dupre
>            Priority: Minor
>
> We have several Thrift services setup. Most have a Java client and a Ruby server.  Everything has been working great until a developer tried an Umbutu server. We don't execute anything on Umbutu, so this is more informational. Using the same Java client in both tests, a call to the Ruby server on CentOS works, but the exact same call to the Ruby server on Umbutu fails.  The Ruby code is exactly the same in both Linux setups, as is the versions of Ruby (1.8.6) and Rails (2.1.2).  Java is always on CentOS 4.x.
> The Ruby side on Umbutu fails with:
> ./script/../vendor/plugins/sermo_service/lib/thrift/transport.rb:45:in `<<': can't convert nil into String (TypeError)
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/transport.rb:45:in `read_all'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/protocol/binaryprotocol.rb:171:in `read_string'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/protocol.rb:202:in `read_type'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:198:in `read_field'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:193:in `read_field'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:192:in `times'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:192:in `read_field'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:162:in `handle_message'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:84:in `read'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:81:in `loop'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:81:in `read'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:173:in `read_field'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:162:in `handle_message'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:84:in `read'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:81:in `loop'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/struct.rb:81:in `read'
> 	from ./script/../vendor/plugins/sermo_service/lib/thrift/client.rb:29:in `receive_message'
> 	from ./script/../vendor/plugins/user_service/lib/gen-rb/UserService.rb:25:in `recv_find_by_id'
> 	from ./script/../vendor/plugins/user_service/lib/gen-rb/UserService.rb:17:in `find_by_id'
> 	from ./script/../vendor/plugins/sermo_service/lib/sermo_service/thrift_client.rb:50:in `send'
> 	from ./script/../vendor/plugins/sermo_service/lib/sermo_service/thrift_client.rb:50:in `method_missing'
> 	from script/client:30

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.