Same problem as this
https://issues.jenkins-ci.org/browse/JENKINS-25740
but the solution was to also replace jar the following files under
$jenkinsdir/plugins/twitter/WEB-INF/lib
twitter4j-core-3.0.3.jar with twitter4j-core-3.0.5.jar
twitter4j-async-3.0.3.jar with twitter4j-async-3.0.5.jar
Download from
http://central.maven.org/maven2/org/twitter4j/twitter4j-core/3.0.5/
reload jenkins deployment in tomcat manager and voila! it works!
Thursday, 30 June 2016
Wednesday, 29 June 2016
Jenkins job cannot create dirs under /home/jenkins/.m2/
ssh to the machine and check who ones the files/dirs if it owned by root change it to the tomcat users
sudo chown -R username:group directory
Friday, 18 March 2016
Python Extracting 9 digit number from tomcat access log files into a unique set and printing to the screen
I had to extract all the 9 digit IDs that were used in a tomcat access log. Here is how I solved it with Python
import re
import os
from collections import Counter
# Compile the regular expressions \d{9} selects numbers that are 9 digits longs
p = re.compile('\d{9}', re.IGNORECASE)
output_file_name = 'output.csv'
# Initiate an array to store the students ids in
most_active = []
#for the files in this directory
for name in os.listdir("."):
#if it starts with localhost_access_log & ends with a .txt extension
if name.startswith("localhost_access_log") and name.endswith(".txt"):
#read its contents
with open(name, 'r') as myfile:
print("Reading file: "+name)
data=myfile.read().replace('\n', '')
#Add the regex matches to the array
most_active = most_active + re.findall(p, data)
# Count how many times a student id is repeated in the list
# This will tell us the most active students in the app
count = Counter(most_active)
# For each of the students, order them from most common to least
output_file = open(output_file_name,"w")
output_file.write("Student ID, Activity\n")
for student in count.most_common():
line = str(student[0])+","+str(student[1])
#print(line)
output_file.write(line+"\n")
output_file.close()
print("File written successfully: "+output_file_name)
#Print out the total amount of students
print("Total Students:"+ str(len(count)))
Tuesday, 15 March 2016
Missing iOS Distribution signing identity
After building and Archiving my App I was unable to Validate or Upload into the App Store due to missing iOS Distribution identity.
After verifying that all credentials exist in the member center, restarting XCode and iOS the following post from stackoverflow fixed my issue
http://stackoverflow.com/a/35406327/5335798
- Download https://developer.apple.com/certificationauthority/AppleWWDRCA.cer
- Double-click to install to Keychain.
- Then in Keychain, Select View -> "Show Expired Certificates" in Keychain app.
- It will list all the expired certifcates.
- Delete "Apple Worldwide Developer Relations Certificate Authority certificates" from "login" tab
- And also delete it from "System" tab.
Friday, 5 February 2016
FIXED Invalid Apple Watch icon file names must match pattern “*@x.png”
Invalid Icon Name - The
watch application 'Ellucian GO.app/Watch/Ellucian GO WatchKit App.app' contains
an invalid icon file name 'Ellucian GO.app/Watch/Ellucian GO WatchKit App.app/AppIcon44x44@2x.png'.
Make sure that icon file names follow the pattern
"*<dimension>@<scale>x.png" and they match the required
dimensions. Please visit https://developer.apple.com/watchkit/
for more information
I discoved the fix to this to be the following:
Disabled WatchOS 1.0
Making sure the the Icons are called APP ICON:
AppIcon24x24@2x.png
AppIcon27.5x27.5@2x.png
AppIcon29x29@2x.png
AppIcon29x29@3x.png
AppIcon40x40@2x.png
AppIcon44x44@2x.png
AppIcon86x86@2x.png
AppIcon98x98@2x.png
Clearing derived data & Restart XCODE
Deleted all files within XCODEs derived data folder
Build and Resubmit
Voila! No issues with Icons anymore!!!
I discoved the fix to this to be the following:
Disabled WatchOS 1.0
AppIcon24x24@2x.png
AppIcon27.5x27.5@2x.png
AppIcon29x29@2x.png
AppIcon29x29@3x.png
AppIcon40x40@2x.png
AppIcon44x44@2x.png
AppIcon86x86@2x.png
AppIcon98x98@2x.png
Clearing derived data & Restart XCODE
Deleted all files within XCODEs derived data folder
Build and Resubmit
Voila! No issues with Icons anymore!!!
Tuesday, 15 December 2015
[Ellucian Mobile] Uknown error for registration-register
Database Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production PL/SQL Release 11.2.0.4.0 - Production
grails Grails 2.4.3.
Problem Whenever one of our Devs compiles and installs a modification or a new PLSQL report the Grails application stops working and only reponds with
"Uknown error for registration-register"
Solution for us was: make sure studentAPI Installed on the Database Server matches the StudentAPI war file on the Ellucian Mobile server
Thursday, 10 December 2015
mongodb authentication failed code 18
If you are receiving this error and are 100% sure you are using the correct DATABASE username/password. try to update your mongodb client
PHP
pecl upgrade mongodb
Grails
add to to the BuildConfig.groovy file
Also if you are having problems serializing a list in Grails and only receiving the first item. It may be because <Domain Class>.list() does not return a list or array item but a MongoDB collection now (since MongoDB updates) to remedy this for now I have cast the lists to Arrays.
PHP
pecl upgrade mongodb
Grails
add to to the BuildConfig.groovy file
compile "org.grails.plugins:mongodb:5.0.0.RC1"
Also if you are having problems serializing a list in Grails and only receiving the first item. It may be because <Domain Class>.list() does not return a list or array item but a MongoDB collection now (since MongoDB updates) to remedy this for now I have cast the lists to Arrays.
Subscribe to:
Posts (Atom)