You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Andriyko (JIRA)" <ji...@apache.org> on 2011/02/07 01:01:36 UTC
[jira] Created: (FELIX-2826) LogService.log second overload does
not work
LogService.log second overload does not work
--------------------------------------------
Key: FELIX-2826
URL: https://issues.apache.org/jira/browse/FELIX-2826
Project: Felix
Issue Type: Bug
Components: Log Service
Reporter: Andriyko
I am using org.osgi.service.log.LogService.
I have the weirdest bug, when writting my LogHelper class. The second overloaded "log" function does not work.
Now I can call the:
LogService.log(int level, String message)
with no problems, but when I try to use the one with the Throwable overloaded argument:
LogService.log(int level, String message, Throwable exception)
Eclipse highlights the call as wrong, and gives me this wierd error message:
The type org.osgi.framework.ServiceReference cannot be resolved. It is indirectly referenced from required .class files
P.S.: I created a stackoverflow question for this issue, no-one seems to know what's up:
http://stackoverflow.com/questions/4819269/osgi-logservice-log-method-does-not-work
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (FELIX-2826) LogService.log second overload does
not work
Posted by "Andriyko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andriyko updated FELIX-2826:
----------------------------
Attachment: logServiceError.png
> LogService.log second overload does not work
> --------------------------------------------
>
> Key: FELIX-2826
> URL: https://issues.apache.org/jira/browse/FELIX-2826
> Project: Felix
> Issue Type: Bug
> Components: Log Service
> Reporter: Andriyko
> Attachments: logServiceError.png
>
>
> I am using org.osgi.service.log.LogService.
> I have the weirdest bug, when writting my LogHelper class. The second overloaded "log" function does not work.
> Now I can call the:
> LogService.log(int level, String message)
> with no problems, but when I try to use the one with the Throwable overloaded argument:
> LogService.log(int level, String message, Throwable exception)
> Eclipse highlights the call as wrong, and gives me this wierd error message:
> The type org.osgi.framework.ServiceReference cannot be resolved. It is indirectly referenced from required .class files
> P.S.: I created a stackoverflow question for this issue, no-one seems to know what's up:
> http://stackoverflow.com/questions/4819269/osgi-logservice-log-method-does-not-work
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (FELIX-2826) LogService.log second overload does
not work
Posted by "Andriyko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12991387#comment-12991387 ]
Andriyko commented on FELIX-2826:
---------------------------------
Wow, thank you.
I put the "org.osgi.core" into my dependency managed pom, and now it works.
How did you figure that out, heh?
You should answer my SO question so I can mark your answer as correct :)
http://stackoverflow.com/questions/4819269/osgi-logservice-log-method-does-not-work
> LogService.log second overload does not work
> --------------------------------------------
>
> Key: FELIX-2826
> URL: https://issues.apache.org/jira/browse/FELIX-2826
> Project: Felix
> Issue Type: Bug
> Components: Log Service
> Reporter: Andriyko
> Attachments: logServiceError.png
>
>
> I am using org.osgi.service.log.LogService.
> I have the weirdest bug, when writting my LogHelper class. The second overloaded "log" function does not work.
> Now I can call the:
> LogService.log(int level, String message)
> with no problems, but when I try to use the one with the Throwable overloaded argument:
> LogService.log(int level, String message, Throwable exception)
> Eclipse highlights the call as wrong, and gives me this wierd error message:
> The type org.osgi.framework.ServiceReference cannot be resolved. It is indirectly referenced from required .class files
> P.S.: I created a stackoverflow question for this issue, no-one seems to know what's up:
> http://stackoverflow.com/questions/4819269/osgi-logservice-log-method-does-not-work
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (FELIX-2826) LogService.log second overload does
not work
Posted by "Justin Edelson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12991731#comment-12991731 ]
Justin Edelson commented on FELIX-2826:
---------------------------------------
@Andriyko - this is a fairly common Eclipse issue IMHO. I don't use stackoverflow, but feel free to credit me there :)
@Toni - I see this when using the provided scope, which is semantically correct for osgi-core and osgi-compendium.
@Richard - yes
> LogService.log second overload does not work
> --------------------------------------------
>
> Key: FELIX-2826
> URL: https://issues.apache.org/jira/browse/FELIX-2826
> Project: Felix
> Issue Type: Bug
> Components: Log Service
> Reporter: Andriyko
> Attachments: logServiceError.png
>
>
> I am using org.osgi.service.log.LogService.
> I have the weirdest bug, when writting my LogHelper class. The second overloaded "log" function does not work.
> Now I can call the:
> LogService.log(int level, String message)
> with no problems, but when I try to use the one with the Throwable overloaded argument:
> LogService.log(int level, String message, Throwable exception)
> Eclipse highlights the call as wrong, and gives me this wierd error message:
> The type org.osgi.framework.ServiceReference cannot be resolved. It is indirectly referenced from required .class files
> P.S.: I created a stackoverflow question for this issue, no-one seems to know what's up:
> http://stackoverflow.com/questions/4819269/osgi-logservice-log-method-does-not-work
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (FELIX-2826) LogService.log second overload does
not work
Posted by "Andriyko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12991394#comment-12991394 ]
Andriyko commented on FELIX-2826:
---------------------------------
Interesting.
I am using something that shows up as "Maven Integration for Eclipse" in my installed software tab, which I do believe is the same as m2eclipse. I installed it from marketplace.
> LogService.log second overload does not work
> --------------------------------------------
>
> Key: FELIX-2826
> URL: https://issues.apache.org/jira/browse/FELIX-2826
> Project: Felix
> Issue Type: Bug
> Components: Log Service
> Reporter: Andriyko
> Attachments: logServiceError.png
>
>
> I am using org.osgi.service.log.LogService.
> I have the weirdest bug, when writting my LogHelper class. The second overloaded "log" function does not work.
> Now I can call the:
> LogService.log(int level, String message)
> with no problems, but when I try to use the one with the Throwable overloaded argument:
> LogService.log(int level, String message, Throwable exception)
> Eclipse highlights the call as wrong, and gives me this wierd error message:
> The type org.osgi.framework.ServiceReference cannot be resolved. It is indirectly referenced from required .class files
> P.S.: I created a stackoverflow question for this issue, no-one seems to know what's up:
> http://stackoverflow.com/questions/4819269/osgi-logservice-log-method-does-not-work
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (FELIX-2826) LogService.log second overload does
not work
Posted by "Justin Edelson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12991385#comment-12991385 ]
Justin Edelson commented on FELIX-2826:
---------------------------------------
Is the ServiceReference class on your Eclipse classpath?
> LogService.log second overload does not work
> --------------------------------------------
>
> Key: FELIX-2826
> URL: https://issues.apache.org/jira/browse/FELIX-2826
> Project: Felix
> Issue Type: Bug
> Components: Log Service
> Reporter: Andriyko
> Attachments: logServiceError.png
>
>
> I am using org.osgi.service.log.LogService.
> I have the weirdest bug, when writting my LogHelper class. The second overloaded "log" function does not work.
> Now I can call the:
> LogService.log(int level, String message)
> with no problems, but when I try to use the one with the Throwable overloaded argument:
> LogService.log(int level, String message, Throwable exception)
> Eclipse highlights the call as wrong, and gives me this wierd error message:
> The type org.osgi.framework.ServiceReference cannot be resolved. It is indirectly referenced from required .class files
> P.S.: I created a stackoverflow question for this issue, no-one seems to know what's up:
> http://stackoverflow.com/questions/4819269/osgi-logservice-log-method-does-not-work
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (FELIX-2826) LogService.log second overload does
not work
Posted by "Marcel Offermans (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12991283#comment-12991283 ]
Marcel Offermans commented on FELIX-2826:
-----------------------------------------
Any chance of adding some code that demonstrates the problem? Preferably a test that fails, but anything else we can run to validate the problem would be great.
> LogService.log second overload does not work
> --------------------------------------------
>
> Key: FELIX-2826
> URL: https://issues.apache.org/jira/browse/FELIX-2826
> Project: Felix
> Issue Type: Bug
> Components: Log Service
> Reporter: Andriyko
>
> I am using org.osgi.service.log.LogService.
> I have the weirdest bug, when writting my LogHelper class. The second overloaded "log" function does not work.
> Now I can call the:
> LogService.log(int level, String message)
> with no problems, but when I try to use the one with the Throwable overloaded argument:
> LogService.log(int level, String message, Throwable exception)
> Eclipse highlights the call as wrong, and gives me this wierd error message:
> The type org.osgi.framework.ServiceReference cannot be resolved. It is indirectly referenced from required .class files
> P.S.: I created a stackoverflow question for this issue, no-one seems to know what's up:
> http://stackoverflow.com/questions/4819269/osgi-logservice-log-method-does-not-work
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (FELIX-2826) LogService.log second overload does
not work
Posted by "Toni Menzel (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12991390#comment-12991390 ]
Toni Menzel commented on FELIX-2826:
------------------------------------
Though this is nothing about OSGi at all. Its just Eclipse trying to follow the entire call stack of a library you are using. So this is a generic thing to remember (and to know). Just out of curiosity, which maven eclipse integration do you use ? Would believe M2Eclipse takes care of this transitive dependency.
> LogService.log second overload does not work
> --------------------------------------------
>
> Key: FELIX-2826
> URL: https://issues.apache.org/jira/browse/FELIX-2826
> Project: Felix
> Issue Type: Bug
> Components: Log Service
> Reporter: Andriyko
> Attachments: logServiceError.png
>
>
> I am using org.osgi.service.log.LogService.
> I have the weirdest bug, when writting my LogHelper class. The second overloaded "log" function does not work.
> Now I can call the:
> LogService.log(int level, String message)
> with no problems, but when I try to use the one with the Throwable overloaded argument:
> LogService.log(int level, String message, Throwable exception)
> Eclipse highlights the call as wrong, and gives me this wierd error message:
> The type org.osgi.framework.ServiceReference cannot be resolved. It is indirectly referenced from required .class files
> P.S.: I created a stackoverflow question for this issue, no-one seems to know what's up:
> http://stackoverflow.com/questions/4819269/osgi-logservice-log-method-does-not-work
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (FELIX-2826) LogService.log second overload does
not work
Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12991409#comment-12991409 ]
Richard S. Hall commented on FELIX-2826:
----------------------------------------
Should this be closed now?
> LogService.log second overload does not work
> --------------------------------------------
>
> Key: FELIX-2826
> URL: https://issues.apache.org/jira/browse/FELIX-2826
> Project: Felix
> Issue Type: Bug
> Components: Log Service
> Reporter: Andriyko
> Attachments: logServiceError.png
>
>
> I am using org.osgi.service.log.LogService.
> I have the weirdest bug, when writting my LogHelper class. The second overloaded "log" function does not work.
> Now I can call the:
> LogService.log(int level, String message)
> with no problems, but when I try to use the one with the Throwable overloaded argument:
> LogService.log(int level, String message, Throwable exception)
> Eclipse highlights the call as wrong, and gives me this wierd error message:
> The type org.osgi.framework.ServiceReference cannot be resolved. It is indirectly referenced from required .class files
> P.S.: I created a stackoverflow question for this issue, no-one seems to know what's up:
> http://stackoverflow.com/questions/4819269/osgi-logservice-log-method-does-not-work
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (FELIX-2826) LogService.log second overload does
not work
Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard S. Hall closed FELIX-2826.
----------------------------------
Resolution: Not A Problem
> LogService.log second overload does not work
> --------------------------------------------
>
> Key: FELIX-2826
> URL: https://issues.apache.org/jira/browse/FELIX-2826
> Project: Felix
> Issue Type: Bug
> Components: Log Service
> Reporter: Andriyko
> Attachments: logServiceError.png
>
>
> I am using org.osgi.service.log.LogService.
> I have the weirdest bug, when writting my LogHelper class. The second overloaded "log" function does not work.
> Now I can call the:
> LogService.log(int level, String message)
> with no problems, but when I try to use the one with the Throwable overloaded argument:
> LogService.log(int level, String message, Throwable exception)
> Eclipse highlights the call as wrong, and gives me this wierd error message:
> The type org.osgi.framework.ServiceReference cannot be resolved. It is indirectly referenced from required .class files
> P.S.: I created a stackoverflow question for this issue, no-one seems to know what's up:
> http://stackoverflow.com/questions/4819269/osgi-logservice-log-method-does-not-work
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (FELIX-2826) LogService.log second overload does
not work
Posted by "Justin Edelson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12991732#comment-12991732 ]
Justin Edelson commented on FELIX-2826:
---------------------------------------
@Andriyko - this is a fairly common Eclipse issue IMHO. I don't use stackoverflow, but feel free to credit me there :)
@Toni - I see this when using the provided scope, which is semantically correct for osgi-core and osgi-compendium.
@Richard - yes
> LogService.log second overload does not work
> --------------------------------------------
>
> Key: FELIX-2826
> URL: https://issues.apache.org/jira/browse/FELIX-2826
> Project: Felix
> Issue Type: Bug
> Components: Log Service
> Reporter: Andriyko
> Attachments: logServiceError.png
>
>
> I am using org.osgi.service.log.LogService.
> I have the weirdest bug, when writting my LogHelper class. The second overloaded "log" function does not work.
> Now I can call the:
> LogService.log(int level, String message)
> with no problems, but when I try to use the one with the Throwable overloaded argument:
> LogService.log(int level, String message, Throwable exception)
> Eclipse highlights the call as wrong, and gives me this wierd error message:
> The type org.osgi.framework.ServiceReference cannot be resolved. It is indirectly referenced from required .class files
> P.S.: I created a stackoverflow question for this issue, no-one seems to know what's up:
> http://stackoverflow.com/questions/4819269/osgi-logservice-log-method-does-not-work
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (FELIX-2826) LogService.log second overload does
not work
Posted by "Andriyko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12991371#comment-12991371 ]
Andriyko commented on FELIX-2826:
---------------------------------
Here is a screenshot, as you can see it does not even compile it.
> LogService.log second overload does not work
> --------------------------------------------
>
> Key: FELIX-2826
> URL: https://issues.apache.org/jira/browse/FELIX-2826
> Project: Felix
> Issue Type: Bug
> Components: Log Service
> Reporter: Andriyko
> Attachments: logServiceError.png
>
>
> I am using org.osgi.service.log.LogService.
> I have the weirdest bug, when writting my LogHelper class. The second overloaded "log" function does not work.
> Now I can call the:
> LogService.log(int level, String message)
> with no problems, but when I try to use the one with the Throwable overloaded argument:
> LogService.log(int level, String message, Throwable exception)
> Eclipse highlights the call as wrong, and gives me this wierd error message:
> The type org.osgi.framework.ServiceReference cannot be resolved. It is indirectly referenced from required .class files
> P.S.: I created a stackoverflow question for this issue, no-one seems to know what's up:
> http://stackoverflow.com/questions/4819269/osgi-logservice-log-method-does-not-work
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira