0

Problem with notification service

asked 2014-05-02 01:52:53 -0800

pmais gravatar image

Hi everyone: I am triying to write a notification producer in java. When I run my app y get this error:

Failed to create Notification Service: Failed to find NativePlatform class for os: 'LINUX', vmVendor: 'Oracle Corporation' at org.alljoyn.ns.NotificationService.init(NotificationService.java:168) at org.alljoyn.ns.NotificationService.initSend(NotificationService.java:75) at com.digi.notification.productor.AlljoynThread.run(AlljoynThread.java:352)

somebody knows what could be this??

Thank you in advance pmais

edit retag flag offensive close merge delete

Comments

The problem appears when I call notificationService.initSend(bus,PorpertyStore)

pmais ( 2014-05-02 03:45:38 -0800 )edit

Any progress? I also wanted to send out Notifications with my Java Application running Ubuntu. I would appreciate any hint on that.

boehlefeld ( 2015-08-19 07:45:28 -0800 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-05-02 16:54:41 -0800

bspencer gravatar image

Looking at the source code: https://git.allseenalliance.org/cgit/services/notification.git/tree/java/NotificationService/src/org/alljoyn/ns/NotificationService.java

 try {
            nativePlatform       = NativePlatformFactory.getPlatformObject();
            GenericLogger logger = nativePlatform.getNativeLogger();
            logger.info(TAG,  "Notification Service created");
            transport = Transport.getInstance();
        } catch (NativePlatformFactoryException npfe) {
            throw new NotificationServiceException("Failed to create Notification Service: " + npfe.getMessage());
        } catch (Exception e) {
            throw new NotificationServiceException("Failed to create Notification Service: General Error");
        }

This is because the call to NativePlatformFactory is failing. There is no port for the Java language binding of the Notification service for Linux. We currently just have Android dalvik support. Since the project is open source you are welcome to port the native_platform software ( https://git.allseenalliance.org/cgit/services/notification.git/tree/java/native_platform ) to run on a generic Linux platform using the Java language binding.

edit flag offensive delete publish link more

Comments

Thank you so much, I will try to do it

pmais ( 2014-05-03 01:10:00 -0800 )edit
Login/Signup to Answer

Question Tools

Follow
2 followers

Stats

Asked: 2014-05-02 01:52:53 -0800

Seen: 85 times

Last updated: May 02 '14