You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Giorgio Zoppi (JIRA)" <tu...@ws.apache.org> on 2007/11/22 19:53:43 UTC
[jira] Created: (TUSCANY-1916) Callable References don't work over
binding-sca-axis2
Callable References don't work over binding-sca-axis2
------------------------------------------------------
Key: TUSCANY-1916
URL: https://issues.apache.org/jira/browse/TUSCANY-1916
Project: Tuscany
Issue Type: Bug
Affects Versions: Java-SCA-0.90
Environment: Linux/JDK 1.1
Reporter: Giorgio Zoppi
Fix For: Java-SCA-1.1
If you try to get a reference from a component, which resides in an another node, it doesn't work because it's not serialized correctly. For example:
public class AComponentImpl implements AComponent {
@Context
protected ComponentContext componentContext;
@Reference
protected BComponent bReference;
@Reference
protected CComponent cReference;
public String foo()
{
org.apache.tuscany.sca.core.context.CallableReferenceImpl<CComponent> dupref = (CallableReferenceImpl) cReference.getComponentReference();
return dupref.getService().foo();
}
}
In the current code, i get a TransformationException, because CallableReferenceImpl is seen as a POJO. With the alleged patch i serialized it to an ObjectStream, base64code that stream, and then i create an OMElment with only a node to send over Axis. And so it works.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Updated: (TUSCANY-1916) Callable References don't work over
binding-sca-axis2
Posted by "Giorgio Zoppi (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Giorgio Zoppi updated TUSCANY-1916:
-----------------------------------
Attachment: callable-patch3.txt
I missed in this patch the file Utils.java
> Callable References don't work over binding-sca-axis2
> ------------------------------------------------------
>
> Key: TUSCANY-1916
> URL: https://issues.apache.org/jira/browse/TUSCANY-1916
> Project: Tuscany
> Issue Type: Bug
> Affects Versions: Java-SCA-0.90
> Environment: Linux/JDK 1.1
> Reporter: Giorgio Zoppi
> Fix For: Java-SCA-1.1
>
> Attachments: callable-patch3.txt
>
>
> If you try to get a reference from a component, which resides in an another node, it doesn't work because it's not serialized correctly. For example:
> public class AComponentImpl implements AComponent {
> @Context
> protected ComponentContext componentContext;
> @Reference
> protected BComponent bReference;
>
> @Reference
> protected CComponent cReference;
>
>
> public String foo()
> {
>
> org.apache.tuscany.sca.core.context.CallableReferenceImpl<CComponent> dupref = (CallableReferenceImpl) cReference.getComponentReference();
> return dupref.getService().foo();
> }
> }
> In the current code, i get a TransformationException, because CallableReferenceImpl is seen as a POJO. With the alleged patch i serialized it to an ObjectStream, base64code that stream, and then i create an OMElment with only a node to send over Axis. And so it works.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Resolved: (TUSCANY-1916) Callable References don't work over
binding-sca-axis2
Posted by "Simon Laws (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Laws resolved TUSCANY-1916.
---------------------------------
Resolution: Fixed
Thank your Giorgio.
I've checked the patch in. I changed it slightly to use the Base64 code that is already in databinding so I didn't need the util class here. I also added a CallableRefererence databinding type that uses the Externalizable transformers so that I can specify the base CallableReference type as a parameter type. I updated the callable reference itest and the domain code to make use of this new function
Simon
> Callable References don't work over binding-sca-axis2
> ------------------------------------------------------
>
> Key: TUSCANY-1916
> URL: https://issues.apache.org/jira/browse/TUSCANY-1916
> Project: Tuscany
> Issue Type: Bug
> Affects Versions: Java-SCA-0.90
> Environment: Linux/JDK 1.1
> Reporter: Giorgio Zoppi
> Assignee: Simon Laws
> Fix For: Java-SCA-1.1
>
> Attachments: callable-patch3.txt, Utils.java
>
>
> If you try to get a reference from a component, which resides in an another node, it doesn't work because it's not serialized correctly. For example:
> public class AComponentImpl implements AComponent {
> @Context
> protected ComponentContext componentContext;
> @Reference
> protected BComponent bReference;
>
> @Reference
> protected CComponent cReference;
>
>
> public String foo()
> {
>
> org.apache.tuscany.sca.core.context.CallableReferenceImpl<CComponent> dupref = (CallableReferenceImpl) cReference.getComponentReference();
> return dupref.getService().foo();
> }
> }
> In the current code, i get a TransformationException, because CallableReferenceImpl is seen as a POJO. With the alleged patch i serialized it to an ObjectStream, base64code that stream, and then i create an OMElment with only a node to send over Axis. And so it works.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Updated: (TUSCANY-1916) Callable References don't work over
binding-sca-axis2
Posted by "Giorgio Zoppi (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Giorgio Zoppi updated TUSCANY-1916:
-----------------------------------
Attachment: Utils.java
The file which i forget in the patch.
> Callable References don't work over binding-sca-axis2
> ------------------------------------------------------
>
> Key: TUSCANY-1916
> URL: https://issues.apache.org/jira/browse/TUSCANY-1916
> Project: Tuscany
> Issue Type: Bug
> Affects Versions: Java-SCA-0.90
> Environment: Linux/JDK 1.1
> Reporter: Giorgio Zoppi
> Fix For: Java-SCA-1.1
>
> Attachments: callable-patch3.txt, Utils.java
>
>
> If you try to get a reference from a component, which resides in an another node, it doesn't work because it's not serialized correctly. For example:
> public class AComponentImpl implements AComponent {
> @Context
> protected ComponentContext componentContext;
> @Reference
> protected BComponent bReference;
>
> @Reference
> protected CComponent cReference;
>
>
> public String foo()
> {
>
> org.apache.tuscany.sca.core.context.CallableReferenceImpl<CComponent> dupref = (CallableReferenceImpl) cReference.getComponentReference();
> return dupref.getService().foo();
> }
> }
> In the current code, i get a TransformationException, because CallableReferenceImpl is seen as a POJO. With the alleged patch i serialized it to an ObjectStream, base64code that stream, and then i create an OMElment with only a node to send over Axis. And so it works.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Assigned: (TUSCANY-1916) Callable References don't work over
binding-sca-axis2
Posted by "Simon Laws (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Laws reassigned TUSCANY-1916:
-----------------------------------
Assignee: Simon Laws
> Callable References don't work over binding-sca-axis2
> ------------------------------------------------------
>
> Key: TUSCANY-1916
> URL: https://issues.apache.org/jira/browse/TUSCANY-1916
> Project: Tuscany
> Issue Type: Bug
> Affects Versions: Java-SCA-0.90
> Environment: Linux/JDK 1.1
> Reporter: Giorgio Zoppi
> Assignee: Simon Laws
> Fix For: Java-SCA-1.1
>
> Attachments: callable-patch3.txt, Utils.java
>
>
> If you try to get a reference from a component, which resides in an another node, it doesn't work because it's not serialized correctly. For example:
> public class AComponentImpl implements AComponent {
> @Context
> protected ComponentContext componentContext;
> @Reference
> protected BComponent bReference;
>
> @Reference
> protected CComponent cReference;
>
>
> public String foo()
> {
>
> org.apache.tuscany.sca.core.context.CallableReferenceImpl<CComponent> dupref = (CallableReferenceImpl) cReference.getComponentReference();
> return dupref.getService().foo();
> }
> }
> In the current code, i get a TransformationException, because CallableReferenceImpl is seen as a POJO. With the alleged patch i serialized it to an ObjectStream, base64code that stream, and then i create an OMElment with only a node to send over Axis. And so it works.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org