dev@glassfish.java.net

Re: Build error?

From: Nandini Ektare <Nandini.Ektare_at_Sun.COM>
Date: Mon, 26 Oct 2009 15:29:50 -0700

Oleksiy Stashok wrote:
> Hi,
>
> Nandini, it looks like you try to compile latest GF core/kernel with
> prev. grizzly 1.9.18d version.
> Pls. make sure you have updated GF/pom.xml, with the latest grizzly
> 1.9.18-e dependency.
>
Thanks, Alexey. I am not sure why older Grizzly version would come into
picture. I normally follow the regular process of checking out latest
v3 trunk and run mvn -U clean install on it. For some weird reason, that
did not work this time.

Finally I wiped out my maven repo and built from scratch and that
worked. So most likely it indeed had the older version, but I am not
sure how did it get in there in the first place.

But that's all right, I have my build now :)

Regards,
Nandini.
> WBR,
> Alexey.
>
> On Oct 26, 2009, at 20:26 , Nandini Ektare wrote:
>
>>
>> Hudson seems to indicate everything is fine.
>>
>> But locally I get this compilation error on latest v3 trunk.
>>
>> Anyone else see this?
>>
>> Thanks
>> Nandini
>>
>>
>> [INFO] [hk2:hk2-compile {execution: default-hk2-compile}]
>> [INFO] Compiling 167 source files to
>> /Users/glassfish/ws/v3/core/kernel/target/classes
>> /Users/glassfish/ws/v3/core/kernel/src/main/java/com/sun/enterprise/v3/services/impl/monitor/MonitorableThreadPool.java:42:
>> package com.sun.grizzly.util.AbstractThreadPool does not exist
>> import com.sun.grizzly.util.AbstractThreadPool.Worker;
>> ^
>> /Users/glassfish/ws/v3/core/kernel/src/main/java/com/sun/enterprise/v3/services/impl/monitor/MonitorableThreadPool.java:42:
>> package com.sun.grizzly.util.AbstractThreadPool does not exist
>> import com.sun.grizzly.util.AbstractThreadPool.Worker;
>> ^
>> /Users/glassfish/ws/v3/core/kernel/src/main/java/com/sun/enterprise/v3/services/impl/monitor/MonitorableEmbeddedHttp.java:70:
>> newThreadPool(java.lang.String,int,int,int,long,java.util.concurrent.TimeUnit)
>> in
>> com.sun.enterprise.v3.services.impl.monitor.MonitorableEmbeddedHttp
>> cannot override
>> newThreadPool(java.lang.String,int,int,int,long,java.util.concurrent.TimeUnit)
>> in com.sun.grizzly.config.GrizzlyEmbeddedHttp; attempting to use
>> incompatible return type
>> found : com.sun.grizzly.util.ExtendedThreadPool
>> required: com.sun.grizzly.util.DefaultThreadPool
>> protected ExtendedThreadPool newThreadPool(String name, int
>> minThreads,
>> ^
>> /Users/glassfish/ws/v3/core/kernel/src/main/java/com/sun/enterprise/v3/services/impl/monitor/MonitorableEmbeddedHttp.java:69:
>> method does not override or implement a method from a supertype
>> @Override
>> ^
>> /Users/glassfish/ws/v3/core/kernel/src/main/java/com/sun/enterprise/v3/services/impl/monitor/MonitorableThreadPool.java:138:
>> cannot find symbol
>> symbol : method
>> onWorkerStarted(com.sun.grizzly.util.DefaultThreadPool.Worker)
>> location: class com.sun.grizzly.http.StatsThreadPool
>> super.onWorkerStarted(worker);
>> ^
>> /Users/glassfish/ws/v3/core/kernel/src/main/java/com/sun/enterprise/v3/services/impl/monitor/MonitorableThreadPool.java:136:
>> method does not override or implement a method from a supertype
>> @Override
>> ^
>> /Users/glassfish/ws/v3/core/kernel/src/main/java/com/sun/enterprise/v3/services/impl/monitor/MonitorableThreadPool.java:143:
>> method does not override or implement a method from a supertype
>> @Override
>> ^
>> /Users/glassfish/ws/v3/core/kernel/src/main/java/com/sun/enterprise/v3/services/impl/monitor/MonitorableThreadPool.java:154:
>> cannot find symbol
>> symbol : method onMaxNumberOfThreadsReached()
>> location: class com.sun.grizzly.http.StatsThreadPool
>> super.onMaxNumberOfThreadsReached();
>> ^
>> /Users/glassfish/ws/v3/core/kernel/src/main/java/com/sun/enterprise/v3/services/impl/monitor/MonitorableThreadPool.java:150:
>> method does not override or implement a method from a supertype
>> @Override
>> ^
>> /Users/glassfish/ws/v3/core/kernel/src/main/java/com/sun/enterprise/v3/services/impl/monitor/MonitorableThreadPool.java:184:
>> cannot find symbol
>> symbol : method nextThreadId()
>> location: class
>> com.sun.enterprise.v3.services.impl.monitor.MonitorableThreadPool.ProbeWorkerThreadFactory
>>
>> "-(" + nextThreadId() + ")",
>> ^
>> /Users/glassfish/ws/v3/core/kernel/src/main/java/com/sun/enterprise/v3/services/impl/monitor/MonitorableEmbeddedHttps.java:69:
>> newThreadPool(java.lang.String,int,int,int,long,java.util.concurrent.TimeUnit)
>> in
>> com.sun.enterprise.v3.services.impl.monitor.MonitorableEmbeddedHttps
>> cannot override
>> newThreadPool(java.lang.String,int,int,int,long,java.util.concurrent.TimeUnit)
>> in com.sun.grizzly.config.GrizzlyEmbeddedHttp; attempting to use
>> incompatible return type
>> found : com.sun.grizzly.util.ExtendedThreadPool
>> required: com.sun.grizzly.util.DefaultThreadPool
>> protected ExtendedThreadPool newThreadPool(String name, int
>> minThreads,
>> ^
>> /Users/glassfish/ws/v3/core/kernel/src/main/java/com/sun/enterprise/v3/services/impl/monitor/MonitorableEmbeddedHttps.java:68:
>> method does not override or implement a method from a supertype
>> @Override
>> ^
>> Note: Some input files use or override a deprecated API.
>> Note: Recompile with -Xlint:deprecation for details.
>> Note: Some input files use unchecked or unsafe operations.
>> Note: Recompile with -Xlint:unchecked for details.
>> 11 errors
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Fatal error compiling
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>