vusonbmt / rosjava

Automatically exported from code.google.com/p/rosjava
0 stars 0 forks source link

ROSJava Core in Mac 10.7 #117

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. roscd into rosjava_core and run ./gradlew install (using Mac OSX and ROS 
Fuerte)
2.
3.

What is the expected output? What do you see instead?
Expected - BUILD SUCCESSFUL

Instead - BUILD FAILED (below is a compressed stack trace)

MessageInterfaceBuilder.java:158: cannot find symbol symbol : method 
getJavaTypeName() location: class org.ros.internal.message.PrimitiveFieldType 
primitiveFieldType.getJavaTypeName(), field.getName(), value));

What version of the product are you using? On what operating system?
ROS Fuerte/MacOSX 10.7

Please provide any additional information below.

I edited the source code of MessageInterfaaceBuilder.java:158 to read:
"        builder.append(String.format("  static final %s %s = %s;\n", 
field.getJavaTypeName(), field.getName(), value));"

instead of:
"        builder.append(String.format("  static final %s %s = %s;\n", 
primitiveFieldType.getJavaTypeName(), field.getName(), value));"

and this fixed the issue.  In case you are interested, here is the full stack 
trace.

org.gradle.api.tasks.TaskExecutionException: Execution failed for task 
':rosjava_bootstrap:compileJava'. at 
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction
s(ExecuteActionsTaskExecuter.java:68) at 
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(Execu
teActionsTaskExecuter.java:46) at 
org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execut
e(PostExecutionAnalysisTaskExecuter.java:34) at 
org.gradle.api.internal.changedetection.CacheLockHandlingTaskExecuter$1.run(Cach
eLockHandlingTaskExecuter.java:34) at 
org.gradle.cache.internal.DefaultCacheAccess$2.create(DefaultCacheAccess.java:20
0) at 
org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAc
cess.java:172) at 
org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAc
cess.java:198) at 
org.gradle.cache.internal.DefaultPersistentDirectoryStore.longRunningOperation(D
efaultPersistentDirectoryStore.java:111) at 
org.gradle.api.internal.changedetection.DefaultTaskArtifactStateCacheAccess.long
RunningOperation(DefaultTaskArtifactStateCacheAccess.java:83) at 
org.gradle.api.internal.changedetection.CacheLockHandlingTaskExecuter.execute(Ca
cheLockHandlingTaskExecuter.java:32) at 
org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpT
oDateTaskExecuter.java:55) at 
org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(Validatin
gTaskExecuter.java:57) at 
org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute
(SkipEmptySourceFilesTaskExecuter.java:41) at 
org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(Sk
ipTaskWithNoActionsExecuter.java:51) at 
org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyI
fTaskExecuter.java:52) at 
org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(Ex
ecuteAtMostOnceTaskExecuter.java:42) at 
org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractT
ask.java:247) at 
org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTaskGraphExecut
er.java:192) at 
org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGraphExecuter
.java:177) at 
org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.j
ava:83) at 
org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAc
tion.java:36) at 
org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61) 
at 
org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:2
3) at 
org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:67
) at 
org.gradle.api.internal.changedetection.TaskCacheLockHandlingBuildExecuter$1.run
(TaskCacheLockHandlingBuildExecuter.java:31) at 
org.gradle.cache.internal.DefaultCacheAccess$1.create(DefaultCacheAccess.java:11
1) at 
org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:12
6) at 
org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:10
9) at 
org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(DefaultPersis
tentDirectoryStore.java:103) at 
org.gradle.api.internal.changedetection.DefaultTaskArtifactStateCacheAccess.useC
ache(DefaultTaskArtifactStateCacheAccess.java:79) at 
org.gradle.api.internal.changedetection.TaskCacheLockHandlingBuildExecuter.execu
te(TaskCacheLockHandlingBuildExecuter.java:29) at 
org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61) 
at 
org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:2
3) at 
org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:67
) at 
org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionActi
on.java:32) at 
org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61) 
at 
org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:54) 
at 
org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLaunc
her.java:155) at 
org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.ja
va:110) at 
org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:7
8) at 
org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:45) at 
org.gradle.launcher.daemon.protocol.Build.run(Build.java:67) at 
org.gradle.launcher.daemon.protocol.Build.run(Build.java:63) at 
org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:45
) at 
org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly
.java:34) at 
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonComm
andExecution.java:122) at 
org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDis
connection.java:45) at 
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonComm
andExecution.java:122) at 
org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDepre
cationLogger.java:24) at 
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonComm
andExecution.java:122) at 
org.gradle.launcher.daemon.server.exec.ReturnResult.execute(ReturnResult.java:34
) at 
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonComm
andExecution.java:122) at 
org.gradle.launcher.daemon.server.exec.ForwardClientInput$4.call(ForwardClientIn
put.java:116) at 
org.gradle.launcher.daemon.server.exec.ForwardClientInput$4.call(ForwardClientIn
put.java:114) at org.gradle.util.Swapper.swap(Swapper.java:38) at 
org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientI
nput.java:114) at 
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonComm
andExecution.java:122) at 
org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60) 
at 
org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly
.java:34) at 
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonComm
andExecution.java:122) at 
org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(Establi
shBuildEnvironment.java:61) at 
org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly
.java:34) at 
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonComm
andExecution.java:122) at 
org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy.doBuild(Start
BuildOrRespondWithBusy.java:49) at 
org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly
.java:34) at 
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonComm
andExecution.java:122) at 
org.gradle.launcher.daemon.server.exec.HandleStop.execute(HandleStop.java:36) 
at 
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonComm
andExecution.java:122) at 
org.gradle.launcher.daemon.server.exec.CatchAndForwardDaemonFailure.execute(Catc
hAndForwardDaemonFailure.java:32) at 
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonComm
andExecution.java:122) at 
org.gradle.launcher.daemon.server.exec.HandleClientDisconnectBeforeSendingComman
d.execute(HandleClientDisconnectBeforeSendingCommand.java:21) at 
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonComm
andExecution.java:122) at 
org.gradle.launcher.daemon.server.exec.StopConnectionAfterExecution.execute(Stop
ConnectionAfterExecution.java:27) at 
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonComm
andExecution.java:122) at 
org.gradle.launcher.daemon.server.exec.DefaultDaemonCommandExecuter.executeComma
nd(DefaultDaemonCommandExecuter.java:55) at 
org.gradle.launcher.daemon.server.Daemon$1$1.run(Daemon.java:123) at 
org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.r
un(DefaultExecutorFactory.java:66) Caused by: 
org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation 
failed; see the compiler error output for details. at 
org.gradle.api.internal.tasks.compile.jdk6.Jdk6JavaCompiler.execute(Jdk6JavaComp
iler.java:42) at 
org.gradle.api.internal.tasks.compile.jdk6.Jdk6JavaCompiler.execute(Jdk6JavaComp
iler.java:33) at 
org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleE
rrors(NormalizingJavaCompiler.java:95) at 
org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(Normalizin
gJavaCompiler.java:48) at 
org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(Normalizin
gJavaCompiler.java:34) at 
org.gradle.api.internal.tasks.compile.DelegatingJavaCompiler.execute(DelegatingJ
avaCompiler.java:29) at 
org.gradle.api.internal.tasks.compile.DelegatingJavaCompiler.execute(DelegatingJ
avaCompiler.java:20) at 
org.gradle.api.internal.tasks.compile.IncrementalJavaCompilerSupport.execute(Inc
rementalJavaCompilerSupport.java:33) at 
org.gradle.api.internal.tasks.compile.IncrementalJavaCompilerSupport.execute(Inc
rementalJavaCompilerSupport.java:23) at 
org.gradle.api.tasks.compile.Compile.compile(Compile.java:60) at 
org.gradle.api.internal.BeanDynamicObject$MetaClassAdapter.invokeMethod(BeanDyna
micObject.java:196) at 
org.gradle.api.internal.BeanDynamicObject.invokeMethod(BeanDynamicObject.java:10
2) at 
org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObje
ct.java:99) at 
org.gradle.api.tasks.compile.Compile_Decorated.invokeMethod(Unknown Source) at 
org.gradle.util.ReflectionUtil.invoke(ReflectionUtil.groovy:23) at 
org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$4.ex
ecute(AnnotationProcessingTaskFactory.java:150) at 
org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$4.ex
ecute(AnnotationProcessingTaskFactory.java:145) at 
org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java
:477) at 
org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java
:466) at 
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction
s(ExecuteActionsTaskExecuter.java:60) ... 76 more

Original issue reported on code.google.com by AMittlei...@gmail.com on 28 May 2012 at 9:13

GoogleCodeExporter commented 9 years ago
This is a bug in the JDK. http://gs.sun.com/view_bug.do?bug_id=6522780

I've pushed a work around.

Original comment by damonkoh...@google.com on 29 May 2012 at 5:03

GoogleCodeExporter commented 9 years ago
Issue 116 has been merged into this issue.

Original comment by damonkoh...@google.com on 29 May 2012 at 5:04