Null warning when pushing to Git origin

<oXygen/> general issues.
lnyswonger
Posts: 4
Joined: Tue Nov 26, 2019 1:50 am

Null warning when pushing to Git origin

Post by lnyswonger » Tue Nov 26, 2019 1:57 am

I'm using Oxygen XML Editor 21.1 (trial version) and am attempting to use GitLab as the content repo. I'm able to successfully clone it from the Oxygen Git Staging add-on and I can edit files, stage, and commit. But when I click the "push to origin/master" button, I get a Null Warning. Any ideas what would be going on or how to further troubleshoot? I have attached a screenshot of the error message.
nullwarning.jpg
nullwarning.jpg (10.07 KiB) Viewed 227 times

sorin_carbunaru
Site Admin
Posts: 258
Joined: Mon May 09, 2016 9:37 am

Re: Null warning when pushing to Git origin

Post by sorin_carbunaru » Tue Nov 26, 2019 10:42 am

Hi,

With oXygen closed, please create a "log4j.properties" file in its installation folder with the following content:

Code: Select all

log4j.rootCategory= info, R2

log4j.category.com.oxygenxml.git=debug

log4j.appender.R2=org.apache.log4j.RollingFileAppender
log4j.appender.R2.File=${user.home}/Desktop/oxygenLog/oxygen.log
log4j.appender.R2.MaxFileSize=12000KB
log4j.appender.R2.MaxBackupIndex=20
log4j.appender.R2.layout=org.apache.log4j.PatternLayout
log4j.appender.R2.layout.ConversionPattern=%r %p [ %t ] %c - %m%n
Then launch oXygen, try to push, and after you get the warning, close the app. On your Desktop you should have an "oxygenLog" folder. Please add it to an archive and send it to support@oxygenxml.com. Probably I can find something in the log files.

All the best wishes,
Sorin Carbunaru
oXygen XML

lnyswonger
Posts: 4
Joined: Tue Nov 26, 2019 1:50 am

Re: Null warning when pushing to Git origin

Post by lnyswonger » Tue Nov 26, 2019 9:33 pm

Thanks - I've sent off the log file.

lnyswonger
Posts: 4
Joined: Tue Nov 26, 2019 1:50 am

Re: Null warning when pushing to Git origin

Post by lnyswonger » Wed Nov 27, 2019 12:10 am

Looks like it was indeed permissions. Following this article helped: https://stackoverflow.com/questions/561 ... er-of-team

sorin_carbunaru
Site Admin
Posts: 258
Joined: Mon May 09, 2016 9:37 am

Re: Null warning when pushing to Git origin

Post by sorin_carbunaru » Wed Nov 27, 2019 10:30 am

Hello,

I'm glad you found the cause of the problem.

BTW, is this the first time you are committing and pushing using oXygen's Git add-on? Or did the add-on work fine up until now and this happen out of the blue?

Sorin C.

lnyswonger
Posts: 4
Joined: Tue Nov 26, 2019 1:50 am

Re: Null warning when pushing to Git origin

Post by lnyswonger » Wed Dec 04, 2019 12:59 am

I'd used it in the past on a different repo in GitLab and had also successfully used it with GitHub prior to this. BTW, that Null warning also happens when you are trying to push to a protected branch. Ideally it would be great to surface those error messages in the product UI. Thanks!

sorin_carbunaru
Site Admin
Posts: 258
Joined: Mon May 09, 2016 9:37 am

Re: Null warning when pushing to Git origin

Post by sorin_carbunaru » Wed Dec 04, 2019 1:39 pm

Hi,

I also collected the message of the push result given by the underlying Git library. This should be visible in the next Git add-on version.

Best wishes,
Sorin Carbunaru
oXygen XML

Post Reply