Bug 399949 - Improve logging in FilePath "Native function mod failed."
Summary: Improve logging in FilePath "Native function mod failed."
Status: ASSIGNED
Alias: None
Product: Hudson
Classification: Technology
Component: Core (show other bugs)
Version: 3.0.1   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Winston Prakash CLA
QA Contact: Geoff Waymark CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-05 03:17 EST by Aurelien Pupier CLA
Modified: 2013-02-05 11:48 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aurelien Pupier CLA 2013-02-05 03:17:45 EST
Build Identifier: 3.0.0

FilePath l.1163
Please also add the file path.
"Native function mod failed on file: "+f.getAbsolutePath()
I have thousands times this error in log but I don't know on which files it is happening.

Reproducible: Always
Comment 1 Winston Prakash CLA 2013-02-05 11:40:46 EST
BTW in which platform this is happening? Hudson native use native access (by accessing the native library like LibC) to do some native stuff like chmod, link etc (needs jna-native-support plugin). If it fails to load the library or the JNA native access plugin is not found, it simply prints out the message and switch to non native method. It is only information, not error. 

Looks like the info is displayed too many times. I'll fix it to not to display again and again.
Comment 2 Aurelien Pupier CLA 2013-02-05 11:48:18 EST
It is on
Linux ci-lin-1 2.6.32-45-generic #102-Ubuntu SMP Wed Jan 2 22:38:04 UTC 2013 x86_64 GNU/Linux

with java:
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.5) (6b24-1.11.5-0ubuntu1~10.04.2)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

In Hudson Plugin Manager, Available->Compatibility
JNA Native SUpport Plugin has a Green tick and the version is 3.0.2

In /var/log/hudson/hudson.log , there is no mention of errors when loading this plugin:
Feb 5, 2013 12:15:36 PM hudson.PluginManager$2$1$1 run
INFO: Loading plugin - jna-native-support-plugin
Feb 5, 2013 12:15:37 PM hudson.model.Hudson$5 onAttained
INFO: Attained Loading plugin jna-native-support-plugin