I got a problem while running the client-sample-app source that i import into eclipse,
while i run this example in device, I got this error :
Class 'com.rim.samples.device.push.Logger$LogMessages' multiply defined.
Error starting Push: Class 'com.rim.samples.device.push.Logger$LogMessages' multiply defined.
can anyone help me?
You likely have another sample app installed on the device, which defines the same Logger.LogMessages class. Delete the other sample apps, and this one should start working.
Related
Hi from this morning i've got a weird thing !
Xcode won't Suggest ,
won't AutoComplete ,
won't give color to my codes ,
wont give me any Errors and won't find out my properties or methods or anything !
But indexing compelete with success
Build compelete with success
Run compelete with success
I Had same problem , and i have solutions for that :
1.DerivedData :
Xcode caches some files that cause this problem
Go to --> YourUserName/Library/Developer/Xcode/
Then remove the DerivedData directory in the Xcode directory
if you didnt saw Library folder because it is a hidden directory
Here is a good Resource of how to show hidden files in macOS
2.Memory
clean up some memory , on devices that have
8GB of RAM this problem Occurred more
I suggest you to use CleanMyMac3 it also free a lot of Storage
You can download it from here
3.Code Clean !
I suggest you to code clean first !
a few things that i used to do in my Projects :
For every method that only belongs to body of that class use fileprivate which means this method is available for the class and extenstions which just private is only available to the body of the class
Any property that belongs only to body of the class should mark with fileprivate
Avoid of declaring variables outside of the class ! this will get memory all the time
Deinit() the Models after you end up working with them
Avoid of doing Notification Center because you forget to dispose them ! instead of that i suggest you to start RxSwift that works better you can find it here
RxSwift
4. Code Completion
go to the Xcode->Preferences->TextEditing
Check that is your code completion options is checked to true
Restart your Xcode.
If still not work, restart your computer.
I am trying to create a CNC machine and using GRBL 0.9i Firmware and universal g code sender. after creating the gcode in inkspace and sending the gcode to machine
,
I am getting error as following
An error was detected while sending 'M18': error: Unsupported command. Streaming has been paused.
**** Pausing file transfer. ****"
I am quite new to this and any help would be wonderful and greatly appreciated.
Thanks
Jaideep
GRBL does not support M18 (Spindle Orient) so you will need to remove all M18s from your program before running it. If you you can't prevent inkspace (I'm not familiar with it) from using that code you might have to use a text editor to replace all M18
I'm building an iOS app using React Native and trying to get it testable on phones.
If I plug my phone into the computer and "build" directly to the phone, the app is built correctly and opens/operates correctly, no problem.
But if I try to archive it and send it to phones using iTunes Connect's TestFlight or Fabric with Crashlytics, the app crashes immediately upon opening. It briefly shows the launch screen, but no more.
Moreover, there are no crash reports -- in TestFlight, in Crashlytics, or in XCode, once I plug the phone back in. So I'm operating in the dark here, without any information on what's breaking. Haven't been able to find a similar issue online, so I figured I'd just ask. Any ideas what could be going wrong?
Please let me know if there's any code or other data you might need to see. Some of it's confidential, but I'll try to post an approximate version.
As Chris Geirman suggested, the problem was a JavaScript error. I'm not sure people with similar problems will find this thread, but in case they do, here is the weird error that was occurring.
I had created a simple ORM system, with a BaseModel and a bunch of models that inherited from it. The BaseModel constructor looked like this:
constructor(props = {}, relations = {}) {
Object.keys(props).forEach((k) => {
// Save props to object
this[k] = props[k];
});
this.relations = relations;
this.className = this.constructor.name;
}
That last line was the problem. On my local simulator and if I build the app to my phone by plugging it in, this works fine. As in, if a Message model inherits from BaseModel, calling var msg = new Message(data, relations); msg.className returns Message.
But something about bundling/archiving/sending the app through TestFlight or Fabric.io minifies and uglifies the JavaScript, such that the class names are changed. So instead, if I do this -- var msg = new Message(data, relations); msg.className -- I'll get back a random variable name, something like 't'.
This was a problem in my app, because my home page contained a switch statement that worked off of the className:
iconContent() {
return {
Message: {
icon: <Image style={styles.feedItemIconImage} source={ require('../assets/img/icon_message.png') } />,
color: c.grass
}, ...
}[this.props.className] // from the model item
}
But 'Message' wasn't, as expected, the value of this.props.className -- 't' was. And so, if I were to try to tunnel into, say, the color value, I'd hit an error, because I was trying to access the color property of null.
Why that didn't report, I don't know (I followed Chris's suggestions and installed Sentry, but it still seemed not to report that error).
But that's what was going on. Minification/uglification occurred only when I installed the app on a phone via TestFlight/Fabric, and that's why the app only crashed in those conditions.
Hope this saves anyone running into a similar bug from tearing out their hair.
I'd like to share my own experience of production stage crash, whereas everything worked fine in development stage.
I had the similar problem which caused by the Reactotron logger. Since I'm not bundling it in production stage, a single line of console.tron.log crashed my app with full stealth. (Its kinda my fault, since I didn't give a damn about my linter with 'no-console' setting)
Here's the code snippet I introduce in my root level file, root.js.
if (__DEV__) {
...
console.tron = Reactotron;
...
}
Hope somebody finds this before wasting time figuring out what's wrong.
Not sure if you still have this problem - but if you do, I'd recommend checking out Bugsnag for react native error reporting - which reports crashes in both the JavaScript layer as well as the native layers (java/cocoa).
One of the harder problems to solve in react native crash reporting (as Sasha mentioned) is restoring the original stack traces when using minification and/or obfuscation - this is handled in Bugsnag by providing full support for JS source maps, as well as iOS symbolication and Android Proguard support at the native layers.
Let me know if this helps - I'm a founder # Bugsnag
I'm entering the world of android development, i haven't written java since uni (some time ago now). I have written and deployed a working WCF Data Service and am now attempting to consumer that service from my android app.
i've been reading blogs and following tutorials and everything starts with
ODataConsumer c = ODataConsumer.create("http://www.tooks-net.co.uk/DataService/PublicDataService.svc/");
List<OEntity> list = c.getEntities("NewsBulletins").execute().toList();
the problem that i am getting won't even let me run the app to see if the service will connect and retrieve the list of news. The error i get in eclipse is this:
The method create(String) is undefined for the type ODataConsumer
Like i said, all documentation says to start with ODataConsumer.create and it won't let me get even that far.
What i've done so far is. Follow the the android training programme here http://developer.android.com/training/basics/firstapp/index.html until the point where i create a new activity and start that, but instead of displaying the message entered i run the above code.
What have i missed? Thanks in advance!
You have to use
ODataConsumer c = ODataJerseyConsumer.create("http://www.tooks-net.co.uk/DataService/PublicDataService.svc");
Make sure that you added the clientbundle jar (the latest is odata4j-0.7.0-clientbundle.jar).
I have a method to import products, what I do is this, I create a new file in local/Mage/Catalog/Model/Convert/Adapter and I override saveRow functions, this files class is a extension of Mage_Catalog_Model_Convert_Adapter_Product.
And Everythings works fine IN LOCAL. No problems in my pc, in my local server. So it’s time to test it in the client server, I upload de file, the csv as well and when I execute at dataflow Advances profiles, I have this error:
Method “parse” not defined in adapter catalog/convert_adapter_productconfigurable
I repeat, I check it on local and it works, but not at the server.
I disable, flush then enable again cache, reindex data and I do not what more do. For a reason in the server do not find the class or something like that.
Thanks in advance !
There Must be some error in defining class name of the "local" code file please check classname of local file's product.php.
1) instead of uploading the file i think you should explicitly write your new adapter class on the client server magento...and before that please check out the version conflicts
2) if still the problem persists try calling the parent class parse method explicitly or override it...
hope this helps it....actly without knowing the code its hard to predict what you should do...
Best way to get to the bottom of problem is to check logs which are located in your magento root folder:
var/log/system.log
var/log/exception.log
My guess is that you haven't compiled the plugin. Please run in your admin panel System -> Tools -> Compile