You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@storm.apache.org by "M.Tarkeshwar Rao" <ta...@gmail.com> on 2014/07/03 08:56:41 UTC

I am getting following error message when i am upgrading my project to storm 0.9.2.

Hi all,

I am getting following error message when i am upgrading my project to
storm 0.9.2.
we are using gradle.
Actually it is using thrift 7.0. Gradle is not able to download this. can
you please suggest what should we do?

*1)  1st we tried with following option in build.gradle:*

       maven {
        url= 'http://repo.maven.apache.org/maven2/org/apache/'
          }

    compile 'org.apache.storm:storm-core:0.9.2-incubating'



Creating properties on demand (a.k.a. dynamic properties) has been
deprecated and is scheduled to be removed in Gradle 2.0. Please read
http://gradle.org/docs/current/dsl/org.gradle.api.plugins.ExtraPropertiesExtension.html
for information on the replacement for dynamic properties.
Deprecated dynamic property: "effort" on
"org.gradle.api.plugins.quality.CheckstyleExtension_Decorated@34df5a9d",
value: "max".
Deprecated dynamic property: "reportLevel" on
"org.gradle.api.plugins.quality.CheckstyleExtension_Decorated@34df5a9d",
value: "low".
:eclipseClasspath
:eclipseJdt
:eclipseProject
:eclipse
:compileJava
/home/emtarao/.gradle/caches/modules-2/files-2.1/org.apache.storm/storm-core/0.9.2-incubating/64342cfa48109b3b2e504eaf7b24231f13eae274/storm-core-0.9.2-incubating.jar(org/apache/thrift7/TUnion.java):28:
error: package org.apache.thrift.protocol does not exist
import org.apache.thrift.protocol.TField;
                                 ^
/home/emtarao/.gradle/caches/modules-2/files-2.1/org.apache.storm/storm-core/0.9.2-incubating/64342cfa48109b3b2e504eaf7b24231f13eae274/storm-core-0.9.2-incubating.jar(org/apache/thrift7/TUnion.java):29:
error: package org.apache.thrift.protocol does not exist
import org.apache.thrift.protocol.TProtocol;
                                 ^
/home/emtarao/.gradle/caches/modules-2/files-2.1/org.apache.storm/storm-core/0.9.2-incubating/64342cfa48109b3b2e504eaf7b24231f13eae274/storm-core-0.9.2-incubating.jar(org/apache/thrift7/TUnion.java):30:
error: package org.apache.thrift.protocol does not exist
import org.apache.thrift.protocol.TProtocolException;
                                 ^
/home/emtarao/.gradle/caches/modules-2/files-2.1/org.apache.storm/storm-core/0.9.2-incubating/64342cfa48109b3b2e504eaf7b24231f13eae274/storm-core-0.9.2-incubating.jar(org/apache/thrift7/TUnion.java):31:
error: package org.apache.thrift.protocol does not exist
import org.apache.thrift.protocol.TStruct;
                                 ^
/home/emtarao/.gradle/caches/modules-2/files-2.1/org.apache.storm/storm-core/0.9.2-incubating/64342cfa48109b3b2e504eaf7b24231f13eae274/storm-core-0.9.2-incubating.jar(org/apache/thrift7/TUnion.java):33:
error: cannot find symbol
public abstract class TUnion<T extends TUnion<?,?>, F extends TFieldIdEnum>
implements TBase<T, F> {

^
 2) when i added following dependency as well

    compile 'org.apache.thrift:libthrift:0.7.0'

i am getting following error message even tunion class is present there:

Creating properties on demand (a.k.a. dynamic properties) has been
deprecated and is scheduled to be removed in Gradle 2.0. Please read
http://gradle.org/docs/current/dsl/org.gradle.api.plugins.ExtraPropertiesExtension.html
for information on the replacement for dynamic properties.
Deprecated dynamic property: "effort" on
"org.gradle.api.plugins.quality.CheckstyleExtension_Decorated@33b61489",
value: "max".
Deprecated dynamic property: "reportLevel" on
"org.gradle.api.plugins.quality.CheckstyleExtension_Decorated@33b61489",
value: "low".
:eclipseClasspath
:eclipseJdt
:eclipseProject
:eclipse
:compileJava
/home/emtarao/clone/mm-storm/src/main/java/com/ericsson/mm/storm/transactional/bolt/impl/TransactionalBoltImpl.java:123:
error: cannot access TUnion
                for( String component : Utils.get(
context.getThisTargets(), getCoordStream( groupedNode.getMasterBatchId() ),
new HashMap<String, Grouping>() ).keySet() )


^
  bad source file:
/home/emtarao/.gradle/caches/modules-2/files-2.1/org.apache.storm/storm-core/0.9.2-incubating/64342cfa48109b3b2e504eaf7b24231f13eae274/storm-core-0.9.2-incubating.jar(org/apache/thrift7/TUnion.java)
    file does not contain class org.apache.thrift7.TUnion
    Please remove or make sure it appears in the correct subdirectory of
the sourcepath.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
:compileJava FAILED



Regards
Tarkeshwar