Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » [Trac] Cannot retrieve existing context
[Trac] Cannot retrieve existing context [message #43404] Mon, 18 February 2008 11:22 Go to next message
Eclipse User
Originally posted by: smarek.plus.net

Hi all,

I've tried to integrate Trac with Mylyn recently, got XML RPC plugin
working, can create tasks, attach context, and so on.
But when I try to retrieve a context on a diff machine it fails with a
message
"No local task context exists. Retrieve from repository?"

Answering yes or no doesn't help. Switching between diff context on the
same machine where it was created works fine. Can you tell me what am I
doing wrong?

ta

--
Sebastian Marek <smarek(at)plus(dot)net>
Re: [Trac] Cannot retrieve existing context [message #43500 is a reply to message #43404] Mon, 18 February 2008 22:49 Go to previous message
Eclipse User
Originally posted by: smarek.plus.net

--=-Ouac//A2ygYLqLEz+ecc
Content-Type: text/plain
Content-Transfer-Encoding: 7bit


On Mon, 2008-02-18 at 11:22 +0000, Sebastian Marek wrote:

> Hi all,
>
> I've tried to integrate Trac with Mylyn recently, got XML RPC plugin
> working, can create tasks, attach context, and so on.
> But when I try to retrieve a context on a diff machine it fails with a
> message
> "No local task context exists. Retrieve from repository?"
>
> Answering yes or no doesn't help. Switching between diff context on the
> same machine where it was created works fine. Can you tell me what am I
> doing wrong?
>
> ta
>


Right, I've debugged it and got to the point where in
org.eclipse.mylyn.context.core.InteractionContextManager.jav a line 628
it checks local context:

if (getActiveContext() != null &&
handleIdentifier.equals(getActiveContext().getHandleIdentifi er())) {
return !getActiveContext().getAllElements().isEmpty() <<<<< HERE
} else {
File file = getFileForContext(handleIdentifier);
return contextFiles.contains(file);
}

For some reason it gets to the point marked with "<<<<< HERE". What I
know for sure is that handle identified looks like my server address,
but is postfixed with '-3'.

Anybody any ideas why it happens?

cheers
--
Sebastian Marek <smarek@plus.net>
PlusNet

--=-Ouac//A2ygYLqLEz+ecc
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.16.1">
</HEAD>
<BODY>
<BR>
<TT>On Mon, 2008-02-18 at 11:22 +0000, Sebastian Marek wrote:</TT>
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000"><TT>Hi all,</TT></FONT>

<FONT COLOR="#000000"><TT>I've tried to integrate Trac with Mylyn recently, got XML RPC plugin</TT></FONT>
<FONT COLOR="#000000"><TT>working, can create tasks, attach context, and so on.</TT></FONT>
<FONT COLOR="#000000"><TT>But when I try to retrieve a context on a diff machine it fails with a</TT></FONT>
<FONT COLOR="#000000"><TT>message</TT></FONT>
<FONT COLOR="#000000"><TT>&quot;No local task context exists. Retrieve from repository?&quot;</TT></FONT>

<FONT COLOR="#000000"><TT>Answering yes or no doesn't help. Switching between diff context on the</TT></FONT>
<FONT COLOR="#000000"><TT>same machine where it was created works fine. Can you tell me what am I</TT></FONT>
<FONT COLOR="#000000"><TT>doing wrong?</TT></FONT>

<FONT COLOR="#000000"><TT>ta</TT></FONT>

</PRE>
</BLOCKQUOTE>
<BR>
<TT>Right, I've debugged it and got to the point where in org.eclipse.mylyn.context.core.InteractionContextManager.jav a line 628 it checks local context:</TT><BR>
<BR>
<TT>if (getActiveContext() != null &amp;&amp; handleIdentifier.equals(getActiveContext().getHandleIdentifi er())) {</TT><BR>
<TT>&nbsp;&nbsp;&nbsp; return !getActiveContext().getAllElements().isEmpty() &lt;&lt;&lt;&lt;&lt; HERE</TT><BR>
<TT>} else {</TT><BR>
<TT> File file = getFileForContext(handleIdentifier);</TT><BR>
<TT> return contextFiles.contains(file);</TT><BR>
<TT>}</TT><BR>
<BR>
<TT>For some reason it gets to the point marked with &quot;&lt;&lt;&lt;&lt;&lt; HERE&quot;. What I know for sure is that handle identified looks like my server address, but is postfixed with '-3'.</TT><BR>
<BR>
Anybody any ideas why it happens?<BR>
<BR>
cheers<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<TT>-- </TT><BR>
<TT>Sebastian Marek &lt;<A HREF="mailto:smarek@plus.net">smarek@plus.net</A>&gt;</TT><BR>
<TT>PlusNet</TT>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>

--=-Ouac//A2ygYLqLEz+ecc--
Re: [Trac] Cannot retrieve existing context [message #587861 is a reply to message #43404] Mon, 18 February 2008 22:49 Go to previous message
Sebastian Marek is currently offline Sebastian Marek
Messages: 2
Registered: July 2009
Junior Member
--=-Ouac//A2ygYLqLEz+ecc
Content-Type: text/plain
Content-Transfer-Encoding: 7bit


On Mon, 2008-02-18 at 11:22 +0000, Sebastian Marek wrote:

> Hi all,
>
> I've tried to integrate Trac with Mylyn recently, got XML RPC plugin
> working, can create tasks, attach context, and so on.
> But when I try to retrieve a context on a diff machine it fails with a
> message
> "No local task context exists. Retrieve from repository?"
>
> Answering yes or no doesn't help. Switching between diff context on the
> same machine where it was created works fine. Can you tell me what am I
> doing wrong?
>
> ta
>


Right, I've debugged it and got to the point where in
org.eclipse.mylyn.context.core.InteractionContextManager.jav a line 628
it checks local context:

if (getActiveContext() != null &&
handleIdentifier.equals(getActiveContext().getHandleIdentifi er())) {
return !getActiveContext().getAllElements().isEmpty() <<<<< HERE
} else {
File file = getFileForContext(handleIdentifier);
return contextFiles.contains(file);
}

For some reason it gets to the point marked with "<<<<< HERE". What I
know for sure is that handle identified looks like my server address,
but is postfixed with '-3'.

Anybody any ideas why it happens?

cheers
--
Sebastian Marek <smarek@plus.net>
PlusNet

--=-Ouac//A2ygYLqLEz+ecc
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.16.1">
</HEAD>
<BODY>
<BR>
<TT>On Mon, 2008-02-18 at 11:22 +0000, Sebastian Marek wrote:</TT>
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000"><TT>Hi all,</TT></FONT>

<FONT COLOR="#000000"><TT>I've tried to integrate Trac with Mylyn recently, got XML RPC plugin</TT></FONT>
<FONT COLOR="#000000"><TT>working, can create tasks, attach context, and so on.</TT></FONT>
<FONT COLOR="#000000"><TT>But when I try to retrieve a context on a diff machine it fails with a</TT></FONT>
<FONT COLOR="#000000"><TT>message</TT></FONT>
<FONT COLOR="#000000"><TT>&quot;No local task context exists. Retrieve from repository?&quot;</TT></FONT>

<FONT COLOR="#000000"><TT>Answering yes or no doesn't help. Switching between diff context on the</TT></FONT>
<FONT COLOR="#000000"><TT>same machine where it was created works fine. Can you tell me what am I</TT></FONT>
<FONT COLOR="#000000"><TT>doing wrong?</TT></FONT>

<FONT COLOR="#000000"><TT>ta</TT></FONT>

</PRE>
</BLOCKQUOTE>
<BR>
<TT>Right, I've debugged it and got to the point where in org.eclipse.mylyn.context.core.InteractionContextManager.jav a line 628 it checks local context:</TT><BR>
<BR>
<TT>if (getActiveContext() != null &amp;&amp; handleIdentifier.equals(getActiveContext().getHandleIdentifi er())) {</TT><BR>
<TT>&nbsp;&nbsp;&nbsp; return !getActiveContext().getAllElements().isEmpty() &lt;&lt;&lt;&lt;&lt; HERE</TT><BR>
<TT>} else {</TT><BR>
<TT> File file = getFileForContext(handleIdentifier);</TT><BR>
<TT> return contextFiles.contains(file);</TT><BR>
<TT>}</TT><BR>
<BR>
<TT>For some reason it gets to the point marked with &quot;&lt;&lt;&lt;&lt;&lt; HERE&quot;. What I know for sure is that handle identified looks like my server address, but is postfixed with '-3'.</TT><BR>
<BR>
Anybody any ideas why it happens?<BR>
<BR>
cheers<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<TT>-- </TT><BR>
<TT>Sebastian Marek &lt;<A HREF="mailto:smarek@plus.net">smarek@plus.net</A>&gt;</TT><BR>
<TT>PlusNet</TT>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>

--=-Ouac//A2ygYLqLEz+ecc--
Previous Topic:Want to use mylyn with gForge
Next Topic:Generic Web Connector timeout
Goto Forum:
  


Current Time: Tue Sep 02 23:55:05 GMT 2014

Powered by FUDForum. Page generated in 0.13506 seconds