You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Giulio Speri - MpStyle Srl <gi...@mpstyle.it> on 2022/11/24 23:41:46 UTC

Problems in pushing changes to trunk GitHub repository

Hello devs,

I hope you're doing great.
I am currently having some problems in pushing ("Preview") a commit to the
GitHub trunk repository.
I am using Eclipse with the integrated git plugin and I am getting this
error:

Can't connect to any URI: https://github.com/apache/ofbiz-framework.git
> (Rejected by "pre-push" hook.
> FAILURE: Build failed with an exception
> * What went wrong:
> Execution failed for task ':compileJava'.
> >java.lang.IllegalAccessError:class
> org.gradle.internal.compiler.java.ClassNameCollector(in unnamed
> module @0x5cfb4510) cannot access class
> com.sun.tools.javac.code.Symbol$TypeSymbol (in module jdk.compiler) because
> module jdk.compiler does not export com.sun.tools.javac.code to unnamed
> module @0x5cfb4510

...
> BUILD FAILED in 3s


I am using openjdk-11 as java and the project itself correctly builds and
run using standard commands *./gradlew build* - *./gradlew ofbiz*

The error above shows up with the standard gradlew build command only when
trying to compile the code using openjdk-17 (but I am not using it), and as
I mentioned when trying to "Preview" the push of the HEAD.

Anyone have had a similar issue or have some suggestions regarding it?

Thank you in advance,
Giulio



-- 
Giulio Speri


*Mp Styl**e Srl*
via Antonio Meucci, 37
41019 Limidi di Soliera (MO)
T 059/684916
M 347/0965506

www.mpstyle.it

Re: Problems in pushing changes to trunk GitHub repository

Posted by Giulio Speri - MpStyle Srl <gi...@mpstyle.it>.
Hello Daniel,

I can confirm you that using git push from CLI worked correctly, so it has
to be an issue with the git integrated plugin of Eclipse.

Thank you for the suggestion,
Giulio

Il giorno ven 25 nov 2022 alle ore 14:51 Giulio Speri - MpStyle Srl <
giulio.speri@mpstyle.it> ha scritto:

> Hi Daniel,
>
> I will give git cli a try and return to you with feedback.
>
> Thank you,
> Giulio
>
> Il giorno ven 25 nov 2022 alle ore 09:15 Daniel Watford <da...@foomoo.co.uk>
> ha scritto:
>
>> Hi Giulio,
>>
>> Do you see the same issue if running 'git push' from the command line?
>>
>> One theory is the paths used by the Git integration in eclipse reference a
>> different version of JDK to your regular builds.
>>
>> On Thu, 24 Nov 2022 at 23:42, Giulio Speri - MpStyle Srl <
>> giulio.speri@mpstyle.it> wrote:
>>
>> > Hello devs,
>> >
>> > I hope you're doing great.
>> > I am currently having some problems in pushing ("Preview") a commit to
>> the
>> > GitHub trunk repository.
>> > I am using Eclipse with the integrated git plugin and I am getting this
>> > error:
>> >
>> > Can't connect to any URI: https://github.com/apache/ofbiz-framework.git
>> > > (Rejected by "pre-push" hook.
>> > > FAILURE: Build failed with an exception
>> > > * What went wrong:
>> > > Execution failed for task ':compileJava'.
>> > > >java.lang.IllegalAccessError:class
>> > > org.gradle.internal.compiler.java.ClassNameCollector(in unnamed
>> > > module @0x5cfb4510) cannot access class
>> > > com.sun.tools.javac.code.Symbol$TypeSymbol (in module jdk.compiler)
>> > because
>> > > module jdk.compiler does not export com.sun.tools.javac.code to
>> unnamed
>> > > module @0x5cfb4510
>> >
>> > ...
>> > > BUILD FAILED in 3s
>> >
>> >
>> > I am using openjdk-11 as java and the project itself correctly builds
>> and
>> > run using standard commands *./gradlew build* - *./gradlew ofbiz*
>> >
>> > The error above shows up with the standard gradlew build command only
>> when
>> > trying to compile the code using openjdk-17 (but I am not using it),
>> and as
>> > I mentioned when trying to "Preview" the push of the HEAD.
>> >
>> > Anyone have had a similar issue or have some suggestions regarding it?
>> >
>> > Thank you in advance,
>> > Giulio
>> >
>> >
>> >
>> > --
>> > Giulio Speri
>> >
>> >
>> > *Mp Styl**e Srl*
>> > via Antonio Meucci, 37
>> > 41019 Limidi di Soliera (MO)
>> > T 059/684916
>> > M 347/0965506
>> >
>> > www.mpstyle.it
>> >
>>
>>
>> --
>> Daniel Watford
>>
>
>
> --
> Giulio Speri
>
>
> *Mp Styl**e Srl*
> via Antonio Meucci, 37
> 41019 Limidi di Soliera (MO)
> T 059/684916
> M 347/0965506
>
> www.mpstyle.it
>
>
>

-- 
Giulio Speri


*Mp Styl**e Srl*
via Antonio Meucci, 37
41019 Limidi di Soliera (MO)
T 059/684916
M 347/0965506

www.mpstyle.it

Re: Problems in pushing changes to trunk GitHub repository

Posted by Giulio Speri - MpStyle Srl <gi...@mpstyle.it>.
Hi Daniel,

I will give git cli a try and return to you with feedback.

Thank you,
Giulio

Il giorno ven 25 nov 2022 alle ore 09:15 Daniel Watford <da...@foomoo.co.uk>
ha scritto:

> Hi Giulio,
>
> Do you see the same issue if running 'git push' from the command line?
>
> One theory is the paths used by the Git integration in eclipse reference a
> different version of JDK to your regular builds.
>
> On Thu, 24 Nov 2022 at 23:42, Giulio Speri - MpStyle Srl <
> giulio.speri@mpstyle.it> wrote:
>
> > Hello devs,
> >
> > I hope you're doing great.
> > I am currently having some problems in pushing ("Preview") a commit to
> the
> > GitHub trunk repository.
> > I am using Eclipse with the integrated git plugin and I am getting this
> > error:
> >
> > Can't connect to any URI: https://github.com/apache/ofbiz-framework.git
> > > (Rejected by "pre-push" hook.
> > > FAILURE: Build failed with an exception
> > > * What went wrong:
> > > Execution failed for task ':compileJava'.
> > > >java.lang.IllegalAccessError:class
> > > org.gradle.internal.compiler.java.ClassNameCollector(in unnamed
> > > module @0x5cfb4510) cannot access class
> > > com.sun.tools.javac.code.Symbol$TypeSymbol (in module jdk.compiler)
> > because
> > > module jdk.compiler does not export com.sun.tools.javac.code to unnamed
> > > module @0x5cfb4510
> >
> > ...
> > > BUILD FAILED in 3s
> >
> >
> > I am using openjdk-11 as java and the project itself correctly builds and
> > run using standard commands *./gradlew build* - *./gradlew ofbiz*
> >
> > The error above shows up with the standard gradlew build command only
> when
> > trying to compile the code using openjdk-17 (but I am not using it), and
> as
> > I mentioned when trying to "Preview" the push of the HEAD.
> >
> > Anyone have had a similar issue or have some suggestions regarding it?
> >
> > Thank you in advance,
> > Giulio
> >
> >
> >
> > --
> > Giulio Speri
> >
> >
> > *Mp Styl**e Srl*
> > via Antonio Meucci, 37
> > 41019 Limidi di Soliera (MO)
> > T 059/684916
> > M 347/0965506
> >
> > www.mpstyle.it
> >
>
>
> --
> Daniel Watford
>


-- 
Giulio Speri


*Mp Styl**e Srl*
via Antonio Meucci, 37
41019 Limidi di Soliera (MO)
T 059/684916
M 347/0965506

www.mpstyle.it

Re: Problems in pushing changes to trunk GitHub repository

Posted by Daniel Watford <da...@foomoo.co.uk>.
Hi Giulio,

Do you see the same issue if running 'git push' from the command line?

One theory is the paths used by the Git integration in eclipse reference a
different version of JDK to your regular builds.

On Thu, 24 Nov 2022 at 23:42, Giulio Speri - MpStyle Srl <
giulio.speri@mpstyle.it> wrote:

> Hello devs,
>
> I hope you're doing great.
> I am currently having some problems in pushing ("Preview") a commit to the
> GitHub trunk repository.
> I am using Eclipse with the integrated git plugin and I am getting this
> error:
>
> Can't connect to any URI: https://github.com/apache/ofbiz-framework.git
> > (Rejected by "pre-push" hook.
> > FAILURE: Build failed with an exception
> > * What went wrong:
> > Execution failed for task ':compileJava'.
> > >java.lang.IllegalAccessError:class
> > org.gradle.internal.compiler.java.ClassNameCollector(in unnamed
> > module @0x5cfb4510) cannot access class
> > com.sun.tools.javac.code.Symbol$TypeSymbol (in module jdk.compiler)
> because
> > module jdk.compiler does not export com.sun.tools.javac.code to unnamed
> > module @0x5cfb4510
>
> ...
> > BUILD FAILED in 3s
>
>
> I am using openjdk-11 as java and the project itself correctly builds and
> run using standard commands *./gradlew build* - *./gradlew ofbiz*
>
> The error above shows up with the standard gradlew build command only when
> trying to compile the code using openjdk-17 (but I am not using it), and as
> I mentioned when trying to "Preview" the push of the HEAD.
>
> Anyone have had a similar issue or have some suggestions regarding it?
>
> Thank you in advance,
> Giulio
>
>
>
> --
> Giulio Speri
>
>
> *Mp Styl**e Srl*
> via Antonio Meucci, 37
> 41019 Limidi di Soliera (MO)
> T 059/684916
> M 347/0965506
>
> www.mpstyle.it
>


-- 
Daniel Watford