How To

How to start a conversation about depreciating assets with your kids?

By on January 18, 2017

So the big question is how to start off a conversation about depreciating assets with your kids?

Probably this article might be helpful

Parents, who always wonder if their child can understand anything about assets, investment, returns, etc. They will always be in a dilemma about when to start a conversation about this with their kids. I would like to say that there is no particular time to start a conversation about this topic, it depends on the interest levels of your child in particular.  I always wanted to be an entrepreneur but my dad used to oppose saying I must concentrate on studies first.

Having a questioning mind, I never stopped asking him about anything and everything I wanted to know. That may be related to contracts, real estates, pharmaceuticals, etc. though my dad used to explain me in detail, there were few instances where he says you are not old enough to know about them.

parents explaining to kids

I remember one such instance wherein we were discussing something related to land & buildings and there came the topic of depreciation. I was just 10 years old, hardly knew anything but was interested in all these matters as I have already mentioned above that I wanted to be an entrepreneur. He explained me a bit and he told me that you will understand it better when you are grown up.

Being a commerce student we deal with all these topics like depreciation, assets, investments, etc. I say they are no less to your kid’s reach, if well explained. So I thought of being specific on how to talk about this topic with your kids.

good investment

To start off with the topic they must understand few terms:

  • Asset
  • Depreciation
  • Depreciable asset
Asset

An asset is something that is valuable to a person/ an entity owns. There are two types of assets

  • Fixed assets
  • Current assets

Fixed assets are those which are meant to be there in the business or held by the person also known as the holder of the asset for a longer period of time i.e. more than a year as they can’t be converted into cash in a short period of time. Ex: land& buildings, plant& machinery, etc.

Current assets are those which are held for a short period i.e. less than a year. These are also known as liquid assets as they can be converted into cash easily. Ex: investments, cash, inventory (stock), etc.

Fixed assets can then be divided into:

  • Tangible assets
  • Intangible assets

Tangible assets are those which can be seen and touched. Like a computer, bikes, etc.

Intangible assets are those which can’t be seen or touched. Like goodwill, patent, etc.

Depreciation

Depreciation is nothing but decrease in the value of an asset over its useful life. An asset can be said to be depreciated with use, obsolescence or wear and tear.It is nothing but converting the asset value into an expense. It is a non-monetary amount.

Depreciable assets

These are assets that are depreciated. Ex: car, computer, etc.There are many ways used for depreciating an asset. Of which the popularly used methods are:

  • Straight line method (SLM)
  • Reducing balance method
In what way is this useful to your kids?

 It’s quite natural that kids these days are very much into gadgets. Their desire to purchase the latest trends will never call to an end. Parents must put a step forward in explaining the concept of depreciation which helps them to choose what to invest and is it appropriate? How much longer is this going to stay? Is it worth purchasing?

haapy parents

When your kids start asking these questions tell it to yourself that you don’t have to worry about your child investing in wrong things which are expensive and temporary at the same time. There will not be any situation when you will have to say NO! Anymore to what they ask once they start understanding these things.

This is to all the parents out there to explain your kids about depreciation so that they will not misunderstand you for saying no to any of their unimportant purchase.

Continue Reading

How To

How to Avoid Day time Sleep, 9 best way

By on January 17, 2017

I am sure everyone who is reading this article has been a victim of Daytime sleep and have experienced this at work and few might have gone through embarrassment. I.e. especially your boss is watching you sleep at work. This happens and I have seen many people do this, so here are quick tips to make sure that you don’t fall into this category. It’s simple and one has to follow this as a daily routine and eventually, daytime sleeping would be a myth.

Reasons for Day Time Sleep:

Well, it varies from person to person based on their lifestyle, work habits and their lack of standard sleeping patterns. This might be a silly problem to look at but it has lots of adverse effects on your health and ultimately makes you sick in different ways.

What is Hypersomnia?

An individual with Hypersomnia can fall asleep at any point of the time, i.e. either it may be at work or driving back home etc. Individuals with this symptoms have trouble being awake during daytime.

laptop while sleeping

Causes of Hypersomnia:
  • Lack of sleep can be for different reasons, here are few important ones that one has to take care:
  • Sleep apnea (i.e. having breathing problems, interruptions in breathing)
  • Sleep deprivation (individual doesn’t get enough sleep)
  • Overweight (plays an important role in terms of overall health maintenance)
  • Genetics (anyone from the family already has Hypersomnia)
  • Depression
Get a good night sleep:

I am sure most of us tend to be awake little early in the morning or stay back late for a couple of hours to finish of personal works but an adult needs to rest for about 7 hours minimum to a maximum of 9 hours. This will allow your body to heal overnight and gives you enough energy to start your next day routines.

Keep distractions out of your bed:

phone and laptop while sleeping

Most of us tend to use our phones and laptops while we are about to sleep. Watching movies or doing your household accounting while sleeping is a big no because it will leave you sleepless and makes you wide awake. Make sure you have a calm mind and go to bed.

Standard Bed Time:

good night sleep

One has to introduce standard bedtime sleeping patterns and have to follow this strictly during the weekends as well. This will help you to maintain standard sleeping patterns and one doesn’t have to work hard to go to bed.

Consistent Meal times:

Maintaining consistent meal times will help you to maintain healthy tummy (i.e. digestive system). If you are eating late then you will end up having a bloated stomach which ultimately affects your sleeping time. Make sure you follow standard meal times and quantity of food that is consumed.

Exercise:

exercise

This is very vital for your body because exercise will ease out all harmful toxins in your body and stretches your muscles. This will ultimately help an individual to slowly fall in sleep without any efforts and results in sound sleep. Also, this will help you to reduce the stress levels within an individual (Tips to Reduce Stress)

Master your prioritization skills:

This is one of those skills which is highly appreciated in the fast moving work environment. Prioritizing tasks will help you complete your tasks on time and also won’t affect your sleeping patterns and also helps you understand what is pending vs what is completed. Based on the list the individual can plan it accordingly during the course of the day.

Don’t go to bed until you’re sleepy:

One has to understand the difference between being tired vs being sleepy. If you are tired then involve yourself in quick bath or have a massage which will release excess stress from your body. If you are sleepy, i.e. drowsy eyes, then it is ideal to hit the sack.

Alcohol Consumption:

Alcohol com

Having a couple of drinks before bedtime is not at all advisable for adults because it might actually lead up to several drinks and it goes on. This will lead to dehydration and headaches where an individual loses his sleep again.

Consult a Specialist:

doctor consultation

If you are having serious sleeping disorder problems then we would suggest you visit a doctor to take an expert opinion and follow on with the medication that they provide.

 

Continue Reading

Travel

Amazing canal road with lots of twists and turns

By on

This time I have been to an exciting place near my hometown and found this beauty via Google Maps ( Duvva to Bhimavaram) and it has helped in two ways, found a quick route to reach my destination and the road was a canal road, that means we have greenery on both sides of the road.

Read more: How to save money by using Google Maps

IMG_5595

Please do check out the google maps route linked here and you can see how steep the curves were. It was great and pleasant drive and I was able to see the sunrise and captured some beautiful moments. Imagine a view where the land is covered with greenery ( paddy fields) and the sky is in light blue colour and sun is just rising up. Well, this is a perfect moment for an individual who loves nature with a pure heart. I am blessed to see this view and thought it would be great to take some videos while I drive. ( This video is captured while I was driving, all safety precautions are taken care off)

Journey Details:

Total journey is about 36km from Duva village to  Bhimavaram city ( West Godavari District, Andhra Pradesh). This route connects small villages in between and has some food joints for a quick snack if you are hungry.  I would suggest to stop by a place where there is some movement rather than a remote place. This entire route goes dead silent after 5 PM and slowly you won’t see any movement at all.

 From Beautiful Route to Scary Route:

This is one of the finest routes where it is excellent in daytime and turns to be dangerous at night as you don’t have street lights. Only lights that I relied upon was my car head lights ( So make sure your car head lights are working absolutely perfect).  I have managed to drive this route accidentally at night and found that to be very scary because there was no light at all and humping sounds that I get to hear from the canal water. I am not sure what it was exactly but it was like a perfect set for a horror movie.

Who can enjoy this ride:
  • People who like to travel to new places and admire nature’s beauty
  • People who like to drive different routes, especially which has more twists and turns
  • All individuals got habituated to city life should be definitely visiting this place
  •  Individuals who have craze for selfies can take selfies near paddy fields
  • Anyone want to enjoy cool breeze and want to spent time  in farms

This ride will definitely be stress buster, please do try and let me know your experience in comments section.

 

Continue Reading

Technical

How to resolve frequent crashes on Eclipse Luna?

By on January 16, 2017

Have you ever wondered why your eclipse IDE started behaving cranky and crashes very frequently?

If you are one among many individuals having following questions , we have appropriate solution for you 🙂

  • Eclipse Luna hangs frequently?
  • Eclipse frequently hangs with High CPU usage
  • Eclipse freezes every few minutes
  • Eclipse hangs at startup showing only the splash screen

Then the following tips might help you resolve your issue with the IDE. Let’s take a look at what measures can be taken in an attempt to resolve this issue.

APPROACH-1:

If you’ve recently added any plugin to your eclipse IDE, it is better to run your IDE with –clean argument, as this re-scans the installed plugins on your IDE and rebuilds the cache in ECLIPSE_HOME\configuration folder. It is a better idea to startup your eclipse for the first time after the successful installation of any plugin to clear this and at the same time can also help you resolve any crashes that might happen in future as well (due to the new plugin that you added to eclipse).

The approach here is to add the following parameters at the beginning of your eclipse.ini file and open your eclipse only once with these arguments.

clean
  -clearPersistedState

After the first run of your eclipse with these arguments, this can either be chucked off or be left alone (should you choose to leave it as is, you might face a delayed startup time of your IDE)

APPROACH-2:

If it isn’t any new plugins that you’ve added to your IDE, then it could be something else altogether. In such cases, the following arguments have come handy in most of the situations for me (personally). Add the following parameters and it should fix your IDE issue. Along with the arguments that I’ve added to my eclipse.ini file, I will also share the issue that I faced just so that you can refer to – for your case.

Add the following to your eclipse.ini file:

-vmargs
  -Dosgi.requiredJavaVersion=1.8
  -XX:+UseG1GC
  -XX:+UseStringDeduplication
  -Dosgi.requiredJavaVersion=1.8
  -Xms40m
  -Xmx512m
  -XX:PermSize=64M 
  -XX:MaxPermSize=128M
  -XX:+UseCompressedOops

If it’s Windows 7 the OS that you’re running your IDE on, then the above setting will work just fine. The error details that I promised to share along with the solution follows:

Error screenshot:HowToResolveEclipseLUNAFrequentCrashes_1

Eclipse.ini configuration that I had when I had the issue is as follows:

-clean
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20150204-1316
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:\Program Files\Java\jdk1.8.0_111\bin\javaw.exe
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m
-XX:+UseCompressedOops

Error stack-trace:
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized.  Will retry after the state location is initialized.
org.eclipse.m2e.logback.configuration: Logback config file: E:\ProjectWorkspace\.metadata\.plugins\org.eclipse.m2e.logback.configuration\logback.1.5.1.20150109-1820.xml
org.eclipse.m2e.logback.configuration: Initializing logback
Exception in thread "org.eclipse.jdt.internal.ui.text.JavaReconciler" java.lang.OutOfMemoryError: GC overhead limit exceeded
        at org.eclipse.core.runtime.Path.append(Path.java:273)
        at org.eclipse.core.internal.dtree.DeltaDataTree.getChildren(DeltaDataTree.java:540)
        at org.eclipse.core.internal.watson.ElementTree.getChildIDs(ElementTree.java:332)
        at org.eclipse.core.internal.watson.ElementTree.getChildren(ElementTree.java:348)
        at org.eclipse.core.internal.resources.Container.getChildren(Container.java:142)
        at org.eclipse.core.internal.resources.Container.members(Container.java:270)
        at org.eclipse.core.internal.resources.Container.members(Container.java:249)
        at org.eclipse.jdt.internal.core.PackageFragmentRoot.computeFolderChildren(PackageFragmentRoot.java:224)
        at org.eclipse.jdt.internal.core.PackageFragmentRoot.computeFolderChildren(PackageFragmentRoot.java:250)
        at org.eclipse.jdt.internal.core.PackageFragmentRoot.computeFolderChildren(PackageFragmentRoot.java:250)
        at org.eclipse.jdt.internal.core.PackageFragmentRoot.computeFolderChildren(PackageFragmentRoot.java:250)
        at org.eclipse.jdt.internal.core.PackageFragmentRoot.computeFolderChildren(PackageFragmentRoot.java:250)
        at org.eclipse.jdt.internal.core.PackageFragmentRoot.computeFolderChildren(PackageFragmentRoot.java:250)
        at org.eclipse.jdt.internal.core.PackageFragmentRoot.computeFolderChildren(PackageFragmentRoot.java:250)
        at org.eclipse.jdt.internal.core.PackageFragmentRoot.computeFolderChildren(PackageFragmentRoot.java:250)
        at org.eclipse.jdt.internal.core.PackageFragmentRoot.computeChildren(PackageFragmentRoot.java:198)
        at org.eclipse.jdt.internal.core.JavaProjectElementInfo.initializePackageNames(JavaProjectElementInfo.java:253)
        at org.eclipse.jdt.internal.core.JavaProjectElementInfo.getProjectCache(JavaProjectElementInfo.java:226)
        at org.eclipse.jdt.internal.core.JavaProjectElementInfo.newNameLookup(JavaProjectElementInfo.java:291)
        at org.eclipse.jdt.internal.core.JavaProject.newNameLookup(JavaProject.java:2329)
        at org.eclipse.jdt.internal.core.SearchableEnvironment.<init>(SearchableEnvironment.java:59)
        at org.eclipse.jdt.internal.core.SearchableEnvironment.<init>(SearchableEnvironment.java:66)
        at org.eclipse.jdt.internal.core.CancelableNameEnvironment.<init>(CancelableNameEnvironment.java:26)
        at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:178)
        at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:271)
        at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:191)
        at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:90)
        at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:729)
        at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:789)
        at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1247)
        at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:126)
        at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.access$0(JavaReconcilingStrategy.java:108)
org.eclipse.swt.SWTException: Widget is disposed
        at org.eclipse.swt.SWT.error(SWT.java:4441)
        at org.eclipse.swt.SWT.error(SWT.java:4356)
        at org.eclipse.swt.SWT.error(SWT.java:4327)
        at org.eclipse.swt.widgets.Widget.error(Widget.java:476)
        at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:348)
        at org.eclipse.swt.widgets.Shell.isVisible(Shell.java:1170)
        at org.eclipse.ui.internal.progress.ProgressManagerUtil.getDefaultParent(ProgressManagerUtil.java:387)
        at org.eclipse.ui.internal.statushandlers.InternalDialog.<init>(InternalDialog.java:154)
        at org.eclipse.ui.internal.statushandlers.WorkbenchStatusDialogManagerImpl.doAddStatusAdapter(WorkbenchStatusDialogManagerImpl.java:260)
        at org.eclipse.ui.internal.statushandlers.WorkbenchStatusDialogManagerImpl.addStatusAdapter(WorkbenchStatusDialogManagerImpl.java:198)
        at org.eclipse.ui.statushandlers.WorkbenchStatusDialogManager.addStatusAdapter(WorkbenchStatusDialogManager.java:158)
        at org.eclipse.ui.statushandlers.WorkbenchErrorHandler.showStatusAdapter(WorkbenchErrorHandler.java:105)
        at org.eclipse.ui.statushandlers.WorkbenchErrorHandler.access$0(WorkbenchErrorHandler.java:98)
        at org.eclipse.ui.statushandlers.WorkbenchErrorHandler$1.run(WorkbenchErrorHandler.java:65)
        at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:167)
        at org.eclipse.ui.internal.UISynchronizer$3.run(UISynchronizer.java:165)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4147)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3764)
        at org.eclipse.swt.widgets.Display.release(Display.java:3817)
        at org.eclipse.swt.graphics.Device.dispose(Device.java:295)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
org.eclipse.swt.SWTException: Widget is disposed
        at org.eclipse.swt.SWT.error(SWT.java:4441)
        at org.eclipse.swt.SWT.error(SWT.java:4356)
        at org.eclipse.swt.SWT.error(SWT.java:4327)
        at org.eclipse.swt.widgets.Widget.error(Widget.java:476)
        at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:348)
        at org.eclipse.swt.widgets.Shell.isVisible(Shell.java:1170)
        at org.eclipse.ui.internal.progress.ProgressManagerUtil.getDefaultParent(ProgressManagerUtil.java:387)
        at org.eclipse.ui.internal.statushandlers.InternalDialog.<init>(InternalDialog.java:154)
        at org.eclipse.ui.internal.statushandlers.WorkbenchStatusDialogManagerImpl.doAddStatusAdapter(WorkbenchStatusDialogManagerImpl.java:260)
        at org.eclipse.ui.internal.statushandlers.WorkbenchStatusDialogManagerImpl.addStatusAdapter(WorkbenchStatusDialogManagerImpl.java:198)
        at org.eclipse.ui.statushandlers.WorkbenchStatusDialogManager.addStatusAdapter(WorkbenchStatusDialogManager.java:158)
        at org.eclipse.ui.statushandlers.WorkbenchErrorHandler.showStatusAdapter(WorkbenchErrorHandler.java:105)
        at org.eclipse.ui.statushandlers.WorkbenchErrorHandler.access$0(WorkbenchErrorHandler.java:98)
        at org.eclipse.ui.statushandlers.WorkbenchErrorHandler$1.run(WorkbenchErrorHandler.java:65)
        at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:167)
        at org.eclipse.ui.internal.UISynchronizer$3.run(UISynchronizer.java:165)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4147)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3764)
        at org.eclipse.swt.widgets.Display.release(Display.java:3817)
        at org.eclipse.swt.graphics.Device.dispose(Device.java:295)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1438)

 

Continue Reading

Technical

How to install MAVEN on your system?

By on

The following article will help you understand the use and step by step installation guide (Maven in 5 minutes)

To set-up MAVEN 3.3.9 on Windows 7 64-bit machine, you could follow the below steps. This should be a piece of cake, if you are doing it all right in the first go itself. To install you would firstly require the MAVEN’s zip file from here, the official MAVEN downloads page

https://maven.apache.org/download.cgi )

  • Once you are able to download MAVEN successfully, you need to set-up the following variables
    • JAVA_HOME
    • M2_HOME
    • MAVEN_HOME
  • To do that, right-click on My Computer –> Properties –> Advanced System Properties –> Environment Variables –> System Variables
  • Click New and then click on Add
  • Considering that you would’ve already set-up your JAVA_HOME environment variable, go ahead and set the following variables:

JAVA_HOME=”YOUR JAVA HOME PATH”

HowToInstallMAVENOnWindows7_1

  • M2_HOME and MAVEN_HOME=”YOUR MAVEN HOME PATH”

This should be the folder location where you would’ve unzipped the Maven from the downloaded zip file

HowToInstallMAVENOnWindows7_2

The official documentation refers to M2_HOME, but there are programs that refer to MAVEN from MAVEN_HOME environment variable. So to be on a safer side, it is recommended to set these two variables with the same path.

Edit the Path environment Variable and add %M2_HOME%\bin; at the end of the existing path

HowToInstallMAVENOnWindows7_3

  • Apply and Close the System Properties
  • Open a new command prompt and type
    • mvn –version

HowToInstallMAVENOnWindows7_4

Following will be the message to confirm that MAVEN is successfully installed on your local system:

Continue Reading

Technical

How to resolve Auto Discovery Method Factory Error or Auto Import Method Factory in your newly created Soap UI-Jenkins Job?

By on

If you are on Windows 7 and using SoapUI 5.2.1 or SoapUI 5.3.0 then you might be facing an issue as mentioned below when you running your SoapUI-Jenkins job for the very first time after installation of SoapUI

(or)

If you are Windows 7 and have recently migrated your SoapUI versions from 5.0.0 to 5.2.0 or from 5.2.1 to 5.3.0, then it is most likely that you will end getting the following issue anyway.

Are you not being able to run a SoapUI project via your Jenkins job, getting an error as like this:

11:43:32,432 INFO  [PluginManager] Adding plugin from [C:\Users\jenkins\.soapuios\plugins\readyapi-postman-1.0.1.jar]
11:43:32,432 INFO  [PluginManager] Adding plugin from [C:\Users\jenkins\.soapuios\plugins\ready-mqtt-plugin-dist.jar]
11:43:34,773 ERROR [SoapUI] An error occurred [com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory], see error log for details
java.lang.ClassNotFoundException: com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory
  at java.net.URLClassLoader$1.run(Unknown Source)
  at java.net.URLClassLoader$1.run(Unknown Source)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Unknown Source)
  at com.eviware.soapui.plugins.LoaderBase.loadAutoFactories(LoaderBase.java:112)
  at com.eviware.soapui.plugins.LoaderBase.loadFactories(LoaderBase.java:80)
  at com.eviware.soapui.plugins.PluginLoader.loadPluginFactories(PluginLoader.java:141)
  at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:104)
  at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:54)
  at com.eviware.soapui.plugins.PluginManager.doInstallPlugin(PluginManager.java:141)
  at com.eviware.soapui.plugins.PluginManager.access$600(PluginManager.java:43)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.computeSequentially(PluginManager.java:420)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:377)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:382)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:365)
  at java.util.concurrent.RecursiveTask.exec(Unknown Source)
  at java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
  at java.util.concurrent.ForkJoinWorkerThread.execTask(Unknown Source)
  at java.util.concurrent.ForkJoinPool.scan(Unknown Source)
  at java.util.concurrent.ForkJoinPool.work(Unknown Source)
  at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
11:43:34,779 ERROR [SoapUI] An error occurred [com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory], see error log for details
java.lang.ClassNotFoundException: com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory
  at java.net.URLClassLoader$1.run(Unknown Source)
  at java.net.URLClassLoader$1.run(Unknown Source)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Unknown Source)
  at com.eviware.soapui.plugins.LoaderBase.loadAutoFactories(LoaderBase.java:112)
  at com.eviware.soapui.plugins.LoaderBase.loadFactories(LoaderBase.java:80)
  at com.eviware.soapui.plugins.PluginLoader.loadPluginFactories(PluginLoader.java:141)
  at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:104)
  at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:54)
  at com.eviware.soapui.plugins.PluginManager.doInstallPlugin(PluginManager.java:141)
  at com.eviware.soapui.plugins.PluginManager.access$600(PluginManager.java:43)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.computeSequentially(PluginManager.java:420)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:377)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:382)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:365)
  at java.util.concurrent.RecursiveTask.exec(Unknown Source)
  at java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
  at java.util.concurrent.ForkJoinWorkerThread.execTask(Unknown Source)
  at java.util.concurrent.ForkJoinPool.scan(Unknown Source)
  at java.util.concurrent.ForkJoinPool.work(Unknown Source)
  at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
11:43:34,815 INFO  [PluginManager] Adding plugin from [C:\Users\jenkins\.soapuios\plugins\ready-uxm-plugin-1.0.1-dist.jar]
11:43:34,850 ERROR [SoapUI] An error occurred [com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory], see error log for details
java.lang.ClassNotFoundException: com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory
  at java.net.URLClassLoader$1.run(Unknown Source)
  at java.net.URLClassLoader$1.run(Unknown Source)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Unknown Source)
  at com.eviware.soapui.plugins.LoaderBase.loadAutoFactories(LoaderBase.java:112)
  at com.eviware.soapui.plugins.LoaderBase.loadFactories(LoaderBase.java:80)
  at com.eviware.soapui.plugins.PluginLoader.loadPluginFactories(PluginLoader.java:141)
  at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:104)
  at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:54)
  at com.eviware.soapui.plugins.PluginManager.doInstallPlugin(PluginManager.java:141)
  at com.eviware.soapui.plugins.PluginManager.access$600(PluginManager.java:43)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.computeSequentially(PluginManager.java:420)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:377)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:365)
  at java.util.concurrent.RecursiveTask.exec(Unknown Source)
  at java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
  at java.util.concurrent.ForkJoinWorkerThread.execTask(Unknown Source)
  at java.util.concurrent.ForkJoinPool.scan(Unknown Source)
  at java.util.concurrent.ForkJoinPool.work(Unknown Source)
  at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
11:43:34,852 ERROR [SoapUI] An error occurred [com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory], see error log for details
java.lang.ClassNotFoundException: com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory
  at java.net.URLClassLoader$1.run(Unknown Source)
  at java.net.URLClassLoader$1.run(Unknown Source)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Unknown Source)
  at com.eviware.soapui.plugins.LoaderBase.loadAutoFactories(LoaderBase.java:112)
  at com.eviware.soapui.plugins.LoaderBase.loadFactories(LoaderBase.java:80)
  at com.eviware.soapui.plugins.PluginLoader.loadPluginFactories(PluginLoader.java:141)
  at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:104)
  at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:54)
  at com.eviware.soapui.plugins.PluginManager.doInstallPlugin(PluginManager.java:141)
  at com.eviware.soapui.plugins.PluginManager.access$600(PluginManager.java:43)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.computeSequentially(PluginManager.java:420)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:377)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:365)
  at java.util.concurrent.RecursiveTask.exec(Unknown Source)
  at java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
  at java.util.concurrent.ForkJoinWorkerThread.execTask(Unknown Source)
  at java.util.concurrent.ForkJoinPool.scan(Unknown Source)
  at java.util.concurrent.ForkJoinPool.work(Unknown Source)
  at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
11:43:34,861 INFO  [PluginManager] Adding plugin from [C:\Users\jenkins\.soapuios\plugins\soapui-swagger-plugin-2.2-dist.jar]
11:43:37,408 ERROR [SoapUI] An error occurred [com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory], see error log for details
java.lang.ClassNotFoundException: com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory
  at java.net.URLClassLoader$1.run(Unknown Source)
  at java.net.URLClassLoader$1.run(Unknown Source)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Unknown Source)
  at com.eviware.soapui.plugins.LoaderBase.loadAutoFactories(LoaderBase.java:112)
  at com.eviware.soapui.plugins.LoaderBase.loadFactories(LoaderBase.java:80)
  at com.eviware.soapui.plugins.PluginLoader.loadPluginFactories(PluginLoader.java:141)
  at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:104)
  at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:54)
  at com.eviware.soapui.plugins.PluginManager.doInstallPlugin(PluginManager.java:141)
  at com.eviware.soapui.plugins.PluginManager.access$600(PluginManager.java:43)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.computeSequentially(PluginManager.java:420)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:377)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:382)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:365)
  at java.util.concurrent.RecursiveTask.exec(Unknown Source)
  at java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
  at java.util.concurrent.ForkJoinWorkerThread.execTask(Unknown Source)
  at java.util.concurrent.ForkJoinPool.scan(Unknown Source)
  at java.util.concurrent.ForkJoinPool.work(Unknown Source)
  at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
11:43:37,412 ERROR [SoapUI] An error occurred [com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory], see error log for details
java.lang.ClassNotFoundException: com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory
  at java.net.URLClassLoader$1.run(Unknown Source)
  at java.net.URLClassLoader$1.run(Unknown Source)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Unknown Source)
  at com.eviware.soapui.plugins.LoaderBase.loadAutoFactories(LoaderBase.java:112)
  at com.eviware.soapui.plugins.LoaderBase.loadFactories(LoaderBase.java:80)
  at com.eviware.soapui.plugins.PluginLoader.loadPluginFactories(PluginLoader.java:141)
  at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:104)
  at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:54)
  at com.eviware.soapui.plugins.PluginManager.doInstallPlugin(PluginManager.java:141)
  at com.eviware.soapui.plugins.PluginManager.access$600(PluginManager.java:43)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.computeSequentially(PluginManager.java:420)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:377)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:382)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:365)
  at java.util.concurrent.RecursiveTask.exec(Unknown Source)
  at java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
  at java.util.concurrent.ForkJoinWorkerThread.execTask(Unknown Source)
  at java.util.concurrent.ForkJoinPool.scan(Unknown Source)
  at java.util.concurrent.ForkJoinPool.work(Unknown Source)
  at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
11:43:37,421 INFO  [PluginManager] Adding plugin from [C:\Users\jenkins\.soapuios\plugins\readyapi-swaggerhub-plugin-1.0.jar]
11:43:37,491 ERROR [SoapUI] An error occurred [com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory], see error log for details
java.lang.ClassNotFoundException: com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory
  at java.net.URLClassLoader$1.run(Unknown Source)
  at java.net.URLClassLoader$1.run(Unknown Source)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Unknown Source)
  at com.eviware.soapui.plugins.LoaderBase.loadAutoFactories(LoaderBase.java:112)
  at com.eviware.soapui.plugins.LoaderBase.loadFactories(LoaderBase.java:80)
  at com.eviware.soapui.plugins.PluginLoader.loadPluginFactories(PluginLoader.java:141)
  at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:104)
  at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:54)
  at com.eviware.soapui.plugins.PluginManager.doInstallPlugin(PluginManager.java:141)
  at com.eviware.soapui.plugins.PluginManager.access$600(PluginManager.java:43)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.computeSequentially(PluginManager.java:420)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:377)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:365)
  at java.util.concurrent.RecursiveTask.exec(Unknown Source)
  at java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
  at java.util.concurrent.ForkJoinWorkerThread.execTask(Unknown Source)
  at java.util.concurrent.ForkJoinPool.scan(Unknown Source)
  at java.util.concurrent.ForkJoinPool.work(Unknown Source)
  at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
11:43:37,494 ERROR [SoapUI] An error occurred [com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory], see error log for details
java.lang.ClassNotFoundException: com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory
  at java.net.URLClassLoader$1.run(Unknown Source)
  at java.net.URLClassLoader$1.run(Unknown Source)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Unknown Source)
  at com.eviware.soapui.plugins.LoaderBase.loadAutoFactories(LoaderBase.java:112)
  at com.eviware.soapui.plugins.LoaderBase.loadFactories(LoaderBase.java:80)
  at com.eviware.soapui.plugins.PluginLoader.loadPluginFactories(PluginLoader.java:141)
  at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:104)
  at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:54)
  at com.eviware.soapui.plugins.PluginManager.doInstallPlugin(PluginManager.java:141)
  at com.eviware.soapui.plugins.PluginManager.access$600(PluginManager.java:43)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.computeSequentially(PluginManager.java:420)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:377)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:365)
  at java.util.concurrent.RecursiveTask.exec(Unknown Source)
  at java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
  at java.util.concurrent.ForkJoinWorkerThread.execTask(Unknown Source)
  at java.util.concurrent.ForkJoinPool.scan(Unknown Source)
  at java.util.concurrent.ForkJoinPool.work(Unknown Source)
  at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
11:43:38,450 ERROR [SoapUI] An error occurred [com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory], see error log for details
java.lang.ClassNotFoundException: com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory
  at java.net.URLClassLoader$1.run(Unknown Source)
  at java.net.URLClassLoader$1.run(Unknown Source)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Unknown Source)
  at com.eviware.soapui.plugins.LoaderBase.loadAutoFactories(LoaderBase.java:112)
  at com.eviware.soapui.plugins.LoaderBase.loadFactories(LoaderBase.java:80)
  at com.eviware.soapui.plugins.PluginLoader.loadPluginFactories(PluginLoader.java:141)
  at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:104)
  at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:54)
  at com.eviware.soapui.plugins.PluginManager.doInstallPlugin(PluginManager.java:141)
  at com.eviware.soapui.plugins.PluginManager.access$600(PluginManager.java:43)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.computeSequentially(PluginManager.java:420)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:377)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:382)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:365)
  at java.util.concurrent.RecursiveTask.exec(Unknown Source)
  at java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
  at java.util.concurrent.ForkJoinWorkerThread.execTask(Unknown Source)
  at java.util.concurrent.ForkJoinPool.scan(Unknown Source)
  at java.util.concurrent.ForkJoinPool.work(Unknown Source)
  at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
11:43:38,453 ERROR [SoapUI] An error occurred [com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory], see error log for details
java.lang.ClassNotFoundException: com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory
  at java.net.URLClassLoader$1.run(Unknown Source)
  at java.net.URLClassLoader$1.run(Unknown Source)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Unknown Source)
  at com.eviware.soapui.plugins.LoaderBase.loadAutoFactories(LoaderBase.java:112)
  at com.eviware.soapui.plugins.LoaderBase.loadFactories(LoaderBase.java:80)
  at com.eviware.soapui.plugins.PluginLoader.loadPluginFactories(PluginLoader.java:141)
  at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:104)
  at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:54)
  at com.eviware.soapui.plugins.PluginManager.doInstallPlugin(PluginManager.java:141)
  at com.eviware.soapui.plugins.PluginManager.access$600(PluginManager.java:43)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.computeSequentially(PluginManager.java:420)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:377)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:382)
  at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:365)
  at java.util.concurrent.RecursiveTask.exec(Unknown Source)
  at java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
  at java.util.concurrent.ForkJoinWorkerThread.execTask(Unknown Source)
  at java.util.concurrent.ForkJoinPool.scan(Unknown Source)
  at java.util.concurrent.ForkJoinPool.work(Unknown Source)
  at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)

Then in such case, the solution to the problem is pretty simple. Follow the steps given below to resolve your issue:

If you are running SoapUI version 5.2.1 or 5.3.0 (I found this issue on both the versions listed just earlier), the problem is with the default plugins installed under “C:\Users\<user name>.soapuios\plugin“.

  • For SoapUI 5.2.1, there are 4 plugins that are installed in this directory:
    • readyapi-swaggerhub-plugin-1.0.jar
    • ready-mqtt-plugin-dist.jar
    • ready-uxm-plugin-1.0.1-dist.jar
    • soapui-swagger-plugin-2.2-dist.jar
  • For SoapUI 5.3.0, there are 5 plugins that are installed in this directory:
    • readyapi-postman-1.0.1.jar
    • readyapi-swaggerhub-plugin-1.0.jar
    • ready-mqtt-plugin-dist.jar
    • ready-uxm-plugin-1.0.1-dist.jar
    • soapui-swagger-plugin-2.2-dist.jar

You can resolve your issue (for any version of SoapUI listed above) by just renaming the original folder ‘plugins‘ to ‘plugins_NOTUsed‘ (or any other name of your choice). You might be thinking, by just renaming this folder how the actual problem has been solved – To explain this, it is just so that default plugins could be forced to be hidden during runtime and hence the problem doesn’t arise anymore.

Continue Reading

Technical

How to use Pivot in MicroSoft SQL Server

By on

Following a lot of questions on the internet, how to convert rows of a table to depict as columns of a table and also on how to use a PIVOT in SQL Server – here is an attempt to showcase the same on MS SQL Server 2012

Read more: How to edit top 200 rows in SQL

So let us start with a scenario which is simple enough for the basic understanding.

Consider a table that stores User Vs Privilege mapping, where we query for a particular USER and get to identify the PRIVILEGEs that he has, here’s the CREATE TABLE script for the same.

CREATE TABLE USER_PRIVILEGES(
  USER_PRIVILEGE_ID INT IDENTITY(1,1),
  USERNAME VARCHAR(25),
    PRIVILEGE VARCHAR(25)
   PRIMARY KEY(USER_PRIVILEGE_ID)
);

 Considering the above, let’s fill it up with some data to work on the example under discussion. The INSERT scripts are as follows, if you want to use them instead of writing them all by yourself:

INSERT INTO USER_PRIVILEGES VALUES('Tim Cook', 'Read')
INSERT INTO USER_PRIVILEGES VALUES('Satya Nadella', 'Read')
INSERT INTO USER_PRIVILEGES VALUES('Satya Nadella', 'Write')
INSERT INTO USER_PRIVILEGES VALUES('Mark Zuckerberg', 'Read')
INSERT INTO USER_PRIVILEGES VALUES('Mark Zuckerberg', 'Write')
INSERT INTO USER_PRIVILEGES VALUES('Mark Zuckerberg', 'Read/Write')
INSERT INTO USER_PRIVILEGES VALUES('Warren Buffet', 'Read')
INSERT INTO USER_PRIVILEGES VALUES('Warren Buffet', 'Write')
INSERT INTO USER_PRIVILEGES VALUES('Warren Buffet', 'Read/Write')
INSERT INTO USER_PRIVILEGES VALUES('Warren Buffet', 'Administrator')
INSERT INTO USER_PRIVILEGES VALUES('Steve Jobs', 'Read')
INSERT INTO USER_PRIVILEGES VALUES('Steve Jobs', 'Write')
INSERT INTO USER_PRIVILEGES VALUES('Steve Jobs', 'Read/Write')
INSERT INTO USER_PRIVILEGES VALUES('Steve Jobs', 'Administrator')
INSERT INTO USER_PRIVILEGES VALUES('Steve Jobs', 'SuperUser')

Now if we do a SELECT, we will be able to see the flat data as follows:

HowToUsePIVOTInMSSQLServer_1This is a lot of data that can get growing on a day to day basis, and could be hard to get to know the number of Users who have the particular PRIVILEGE which you are interested in and having said that, on a day-to-day basis the number of PRIVILEGES that could be offered to the users can also grow.

This simple PL/SQL should do the trick, to convert your ROWS to COLUMNS and represent the same data in a total different view for your to refer.

DECLARE @columns AS NVARCHAR(MAX),
        @query AS NVARCHAR(MAX)

SELECT @columns = STUFF((SELECT DISTINCT ',[' + privilege +']'
                         FROM user_privileges 
          FOR XML PATH(''), TYPE).value('.', 'NVARCHAR(MAX)') ,1, 1, '')

SET @query = 'SELECT username,' + @columns + ' FROM 
              (
                SELECT username, privilege, 1 as xCount FROM user_privileges
              ) x
              PIVOT 
              (
                count(xCount)
                FOR privilege IN (' + @columns + ')
              ) p
    ORDER BY username DESC'

EXECUTE(@query);

 On executing the above piece of PL/SQL code, you’ll be able to see that data has been reformatted to the following:

HowToUsePIVOTInMSSQLServer_2

Hope that you are able to benefit from this post.Keep checking for more and more fun to do activities, concepts and technical queries on this space.

Continue Reading

Technical

How to generate Client side Java Client using Swagger Codegen?

By on January 11, 2017

Swagger (hyperlink to this site http://swagger.io) provides the most simple, yet powerful representation of your API’s. Most of the cases what you would want to do after generating a thorough set of API’s is to have a simple Java client to access these – and Swagger comes to rescue here, by providing an open source tool just to do that.

Here in this article, we would be using Swagger Codegen tool to generate our Client side code. You can simply download the Swagger Codegen zip file from this location (link to this site https://github.com/swagger-api/swagger-codegen)

Open the link and then click on the green coloured button ‘Clone or download’ and from the drop-down click on ‘Download Zip’.

How to build Swagger Codegen?

After downloading the source zip file from the site above, you would have to build this project. You could use either ANT or MAVEN to build the project, but the downloaded file is a MAVEN project. Hence there is a prerequisite that you need to have MAVEN installed and configured on the system.

Now with all the pre-requisite being handled and answered, let’s get down to business in building the Swagger Codegen project that you’ve downloaded in the last step.

  • Extract the zip file to a location which you would be referring to from a command line tool
  • Fire the following command to on a command prompt to build the project
  • mvn package

 

How to generate Client-side code using Swagger Codegen?

The above step would download all the requisite dependencies on to your local system, which is something that MAVEN handles on its own. Along with the dependencies, it will also generate the needed modules under this directory which will be used in the steps below. With the above step done, you’ll need to follow the steps below to get the client-side code generated using Swagger Codegen.

  • There are a plenty of supported languages to choose from (like Clojure, Groovy, Haskell, Java) but I will try to keep this article targeted to be used with JAVA.
  • With the choice made above, all you need to have is a YAML or a JSON input file, which would be used to represent the API using Swagger.
  • You can take any of the sample YAML/JSON files provided by Swagger themselves, or write your own YAML by hand and use the same as the input
    • You can use Swagger editor (link to this site: http://editor.swagger.io/#/) to write your own YAML / JSON input files.
    • If you decide to go by having your own YAML / JSON input file, then this Swagger specifications (link to this site: http://swagger.io/specification/) should be followed with due respect.
  • From the same location as above, fire the command below:
    • This command will work if you are using any of the sample YAML / JSON files provided by Swagger itself
    • java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate
      
              -i http://petstore.swagger.io/v2/swagger.json
      
              -l java
      
              -o samples/client/petstore/java

       

 

  • The following command will work if you are using any of your own input YAML file to generate client-side code with an assumption that the YAML file is placed under the folder structure shown in the command below.
  • java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate
    
            -i modules/swagger-codegen-cli/target/sample_api.yaml
    
            -l java
    
            -o samples/client/java
    
    

     

    Choose whichever the case as you like and it will generate a java project with the package structure as mentioned in the command above with the -o

How to use the generated client-side code?

Now that the toughest part of the task being completed, you could use the generated client side code in whichever way that you wish.

  • You could import this code as a Java project into any IDE of your choice or you could very well zip the project as a JAR and ship to it whoever wants to gain access to your API’s that are generated.
  • If you take a look into the code that has been created, you would find a package named ‘io.swagger.client.api’ and under which you’d find 3 classes. Using these you would be able to do whatever you want with the API specification that you have.
  • A sample code to say update a pet and display it’s name can be done using the following code.
package io.swagger.test;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import org.w3c.dom.ls.LSException;

import io.swagger.client.ApiException;
import io.swagger.client.api.*;

public class test 
{
  public static void main(String[] args) throws IOException
  {
    List<String> status = new ArrayList<String>();
    status.add("sold");
    PetApi pet = new PetApi();

    try 
    {
      pet.updatePetWithForm("1", "nicky", "available");
      System.out.println(pet.getPetById((long) 1).getName());
    }
    catch (ApiException e) 
    {
      e.printStackTrace();
    }
  }
}

 

 

Continue Reading

iPhone

How to Turn off the Badge Count for Single App

By on January 9, 2017

With the help of the technology and mobile apps evolution, spreading information or marketing about a brand or product has been very simple and also proved to be very economical, unlike the traditional SMS where the user has to no control over the Inbox and it is cluttered with different messages and doesn’t have any segregation.


With the help of mobile application, information is pushed to their devices by the vendors and it is all available within the mobile application. All these notifications are cluttered and they are all placed in notification tray for the mobile application and it is handy for the user and can check at ease. What if these notifications are not taken care off, obviously they pile up. When they are not checked at proper intervals the number goes up and the badge count looks ridiculous. Also ending up taking a lot of memory, reducing the battery life (iPhone Charging)

What is badge count?

Badge count is the number of un-noticed or not read messages/notifications within the single application. This is a reminder for the user and provokes him or her to check their messages and be up-to-date with offers or product launches. Usually, this is displayed next to the app icon and the number is highlighted in the red circle.

How to Turn off the Badge Count?

To turn off the badge count for a specific application:

img_5524

  • Go to Settings on your iPhone (Full Review)
  • Tap on Notifications section on the screen
  • A list of all installed applications is displayed within this screen.

img_5525

  • Tap on the application where you want to turn off the badge count.

img_5091

  • Look for Badge count Info section and turn off that section.
We have selected Jabong mobile application to show this trick and its results . 

img_5526

One has to follow the above process and trick works perfectly 🙂

img_5528

 

You can apply this trick to the multiple applications according to your necessity. By doing this user will still receive notifications but the outstanding number is not displayed in badge count.

 What is the use of  Deactivating Badge Count?

  • Well, this is just an option that one can prefer and they can have a cleaner Home screen rather than cluttered with badge counts. Imagine this for all the applications installed.
  • It is useful within festive seasons, businesses generally pound on promoting their products to increase their sales during festive seasons.
  • It is another option that a user can try

 

 

Continue Reading