问:
libGDX RoboVM fork iOS build error
I always get the same strange error when I try to run the iOS version of my libGDX game. The error only shows this message: Error:com.android.tools.idea.gradle.util.Projects.lastGradleSyncFailed(Lcom/intellij/openapi/project/Project;)Z

I can sync gradle successfully but the error message stays the same. It was suggested to use the same android studio version as the RoboVM fork version, so I did that. Now I use version 2.3.0 for them both, but it wasn't fixed by doing this. To set up RoboVM I followed the instructions from the RoboVM fork website: http://robovm.mobidevelop.com/.

Does someone know how to fix this problem?

答:
You can work-around this problem with Android Studio higher than 2.2 (I am using AS 3.0 Canary 3, which supports Java 8 features) by splitting your project into two separate projects, one for Android and one for iOS, sharing an imported module where all the common code is.

To set this up you will need to copy your iOS app module into a separate folder. I use this structure:

```<code>Toplevel
    android
        androidApp
        lib
    ios
        iosApp
</code>```

Each project should have a copy of the gradle.build, gradlew script and gradle folders - easiest way is just to duplicate the tree then remove androidApp from one and iosApp from the other.

Both the android and ios folders contain a top level build.gradle, and a settings.gradle file. The common code is in the lib directory, so the ios folder will need a settings.gradle like this

```<code>include ':iosApp', ':lib'
project(':lib').projectDir = new File('../android/lib')
</code>```

while the android project settings.gradle looks like this:

```<code>include ':lib', ':androidApp'
</code>```

Open each project in its own window in AS, you can now build and run them independently. You can test from the command line (often easier to debug gradle issues) by using

```<code>gradlew androidApp:assembleDebug
</code>```

for the android project and

```<code>gradlew iosApp:assemble
</code>```

for the ios version.
The only issue I currently have with AS 3 is an occasional null pointer error during the dexing phase in the android project. Building from the command line makes this go away for a while. You can of course use AS 2.3 which does not have this issue (but doesn't support Java 8 features like lambdas in Android.)

Title: libGDX RoboVM fork iOS build error

Body:
You can work-around this problem with Android Studio higher than 2.2 (I am using AS 3.0 Canary 3, which supports Java 8 features) by splitting your project into two separate projects, one for Android and one for iOS, sharing an imported module where all the common code is.

To set this up you will need to copy your iOS app module into a separate folder. I use this structure:

Toplevel
    android
        androidApp
        lib
    ios
        iosApp

Each project should have a copy of the gradle.build, gradlew script and gradle folders - easiest way is just to duplicate the tree then remove androidApp from one and iosApp from the other.

Both the android and ios folders contain a top level build.gradle, and a settings.gradle file. The common code is in the lib directory, so the ios folder will need a settings.gradle like this

include ':iosApp', ':lib'
project(':lib').projectDir = new File('../android/lib')

while the android project settings.gradle looks like this:

include ':lib', ':androidApp'

Open each project in its own window in AS, you can now build and run them independently. You can test from the command line (often easier to debug gradle issues) by using

gradlew androidApp:assembleDebug

for the android project and

gradlew iosApp:assemble

for the ios version.
The only issue I currently have with AS 3 is an occasional null pointer error during the dexing phase in the android project. Building from the command line makes this go away for a while. You can of course use AS 2.3 which does not have this issue (but doesn't support Java 8 features like lambdas in Android.)


来源: stackexchange

问:
Android customised box plot chart
How do I implement a box plot graph on Android like this? It seems to be similar to CandleStick Chart of MPAndroidChart. Is there any other good way?

答:
The CandleStickChart is the closest match to your requirement for that library in MPAndroidChart although you could have a look at the other chart libraries here
to see if there is anything closer.

The CandleStickChart from MPAndroidChart looks like this:

CandleStickChartActivity in the example GitHub project is a good start for you to base your implementation.

If you need to customise the appearance of the chart further (e.g., to use circles instead of boxes) you will need to write a custom renderer. See this question for how to do that.

ContentLicense: CC BY-SA 3.0

Title: Android customised box plot chart


问:
Is there a way to get a QTP to fail a test if a particular element appears on a web page
I am trying to test a JSP based web application with QTP. On some of the pages the JSP is coded to return a particular div element, which will have an ID attribute, to the browser, only of the underlying model has a certain boolean flag set. I'd like to be able to develop a QTP test that fails if the div is present in the returned web page. However, the QTP documentation doesn't seem to have any details on how to do this.

答:
The point is to detect if the condition applies and then explicitly fail the test.</p>

```<code>If Browser("b").Page("p").WebElement("html tag:=div", "html id:=theId").Exist Then
    ''# Report failure
    Reporter.ReportEvent micFail, "Element Exists", "It shouldn't"
    ''# if you also want to stop the test
    ExitTest
End If
</code>```

ContentLicense: CC BY-SA 2.5

Body:
The point is to detect if the condition applies and then explicitly fail the test.

If Browser("b").Page("p").WebElement("html tag:=div", "html id:=theId").Exist Then
    ''# Report failure
    Reporter.ReportEvent micFail, "Element Exists", "It shouldn't"
    ''# if you also want to stop the test
    ExitTest
End If


问:
Permission denied when installing Tensorflow
I am trying to install TensorFlow by Anaconda(My Python is 3.5.2 edition).

When I run:

```<code>(tensorflow)C:> pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.1-cp35-cp35m-win_amd64.whl
</code>```

According to the guide in Tensorflow.org, the following tips emerge:

```<code>Exception:
Traceback (most recent call last):
File "C:\Users\Anaconda3\lib\site-packages\pip\basecommand.py", line 215, in main
    status = self.run(options, args)
File "C:\Users\Anaconda3\lib\site-packages\pip\commands\install.py", line 317, in run
prefix=options.prefix_path,
File "C:Anaconda3\lib\site-packages\pip\req\req_set.py", line 742, in install
**kwargs
File "C:\Users\Anaconda3\lib\site-packages\pip\req\req_install.py", line 831, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "C:\Users\Anaconda3\lib\site-packages\pip\req\req_install.py", line 1032, in move_wheel_files
isolated=self.isolated,
File "C:\Users\Anaconda3\lib\site-packages\pip\wheel.py", line 346, in move_wheel_files
clobber(source, lib_dir, True)
File "C:\Users\Anaconda3\lib\site-packages\pip\wheel.py", line 324, in clobber
shutil.copyfile(srcfile, destfile)
File "C:\Users\Anaconda3\lib\shutil.py", line 115, in copyfile
with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\Anaconda3\\Lib\\site-packages\\numpy\\core\\multiarray.cp35-win_amd64.pyd'
</code>```

I don't know what causes this error. Can someone help me with that?

答:
Might be late but I got the exact same error and this is what happened. My issue was that there was some file that was being used inside numpy that was locked by anaconda(or some other process) I guess and tensorflow needed that file. Hence I got permission denied. All I did was shut down every process anaconda, jupyter etc and ran:

```<code>1) conda update --all
2) pip install --ignore-installed tensorflow
</code>```

Open your cmd as an administrator and do not activate tensorflow. Just simply fire commands from your cmd. For eg: C:\\> pip install --ignore-installed tensorflow (your directory may vary) should be fine. Let me know if you get stuck.

Body:
I am trying to install TensorFlow by Anaconda(My Python is 3.5.2 edition).

When I run:

(tensorflow)C:> pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.1-cp35-cp35m-win_amd64.whl

According to the guide in Tensorflow.org, the following tips emerge:

Exception:
Traceback (most recent call last):
File "C:\Users\Anaconda3\lib\site-packages\pip\basecommand.py", line 215, in main
    status = self.run(options, args)
File "C:\Users\Anaconda3\lib\site-packages\pip\commands\install.py", line 317, in run
prefix=options.prefix_path,
File "C:Anaconda3\lib\site-packages\pip\req\req_set.py", line 742, in install
**kwargs
File "C:\Users\Anaconda3\lib\site-packages\pip\req\req_install.py", line 831, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "C:\Users\Anaconda3\lib\site-packages\pip\req\req_install.py", line 1032, in move_wheel_files
isolated=self.isolated,
File "C:\Users\Anaconda3\lib\site-packages\pip\wheel.py", line 346, in move_wheel_files
clobber(source, lib_dir, True)
File "C:\Users\Anaconda3\lib\site-packages\pip\wheel.py", line 324, in clobber
shutil.copyfile(srcfile, destfile)
File "C:\Users\Anaconda3\lib\shutil.py", line 115, in copyfile
with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\Anaconda3\\Lib\\site-packages\\numpy\\core\\multiarray.cp35-win_amd64.pyd'

I don't know what causes this error. Can someone help me with that?

Body:
Might be late but I got the exact same error and this is what happened. My issue was that there was some file that was being used inside numpy that was locked by anaconda(or some other process) I guess and tensorflow needed that file. Hence I got permission denied. All I did was shut down every process anaconda, jupyter etc and ran:

1) conda update --all
2) pip install --ignore-installed tensorflow

Open your cmd as an administrator and do not activate tensorflow. Just simply fire commands from your cmd. For eg: C:\\> pip install --ignore-installed tensorflow (your directory may vary) should be fine. Let me know if you get stuck.


问:
Regex accepting string that meets "('a'*N - 'b'*M)%3 = 0" requirement
going further with the subject, I have been trying to write a regex which:
"from an alphabet of {a,b} accepts the string only if it's occurences of 'a' minus occurences of 'b' can be divided by 3."
Could someone please help me dealing with this? I know that I should give ANY input of my own to help solving this problem but I have no clue whatsoever.

Maybe only that it probably should start with (aaa) as a base an then expand further with next "pairs" of 'a's and 'b's but I dont know how to make it expand like "(aaa)aaabbb" and not like "(aaa)ababab".

答:
Count-based regex problems are easiest to represent using a Finite State Automata, and reduce it to a single pattern.

With three nodes, one for each modular value; Define the transitions as what happens to the modular value when a or b are processed.

Then collapse one node, by replacing each path through the node by single transitions.

0->2->0 → 0->0 (ba)

0->2->1 → 0->1 (bb)

1->2->0 → 1->0 (aa)

1->2->1 → 1->1 (ab)

Repeat for another node.

0->1(->1)*->0 → 0->0 ((a|bb)(ab)*(b|aa))

The final pattern is: (ba|(a|bb)(ab)*(b|aa))*


问:
Javascript get JSON value from URL error
im using the function below to get image names. I also use the json code to get data of a different url, but somehow it isnt working at this. (im new to javascript. Just writing php normally.</p>

```<code>function getImgname(name) {
        $.getJSON("http://url.com/info.php?name="+name, function(json321) {
       return json321.js_skininfo;
     });
}
</code>```

答:
Try this:</p>

```<code>function getImgname(myName) {
    $.ajax({
        url: 'http://url.com/info.php',
        data: {
            name: myName
        },
        type: 'POST',
        dataType: 'json',
        success: function(data) {
            // do what you want with your data
            return data.js_skininfo;
        }
    });
}
</code>```

Body:
im using the function below to get image names. I also use the json code to get data of a different url, but somehow it isnt working at this. (im new to javascript. Just writing php normally.

function getImgname(name) {
        $.getJSON("http://url.com/info.php?name="+name, function(json321) {
       return json321.js_skininfo;
     });
}

Body:
Try this:

function getImgname(myName) {
    $.ajax({
        url: 'http://url.com/info.php',
        data: {
            name: myName
        },
        type: 'POST',
        dataType: 'json',
        success: function(data) {
            // do what you want with your data
            return data.js_skininfo;
        }
    });
}


问:
Heroku + Rails: Heroku connecting to wrong database from CLI
I recently created a basic level database for my rails app and I noticed while I was attempting to run:

```<code>heroku run rake db:migrate
</code>```

from the command line, that it was connecting to my old database.  How do you control which database heroku connects to from the heroku run command?

答:
I don't think it's possible to specify the database when running Heroku Rake commands, but you could set a specific database as primary (and thus automatically connecting to it when running said commands).

Run heroku pg:info, which should output something like (two databases should be listed in your case):

```<code>=== HEROKU_POSTGRESQL_MAROON_URL (DATABASE_URL)
Plan:           Ronin
Status:         Available
Data Size:      26.1 MB
Tables:         5
PG Version:     9.5.3
Connections:    2
Fork/Follow:    Available
Rollback:       Unsupported
Created:        2012-05-02 21:54 UTC
Maintenance:    not required (Mondays 23:00 to Tuesdays 03:00 UTC)
Infrastructure: Legacy
</code>```

You can then choose a database to promote:

```<code>heroku pg:promote HEROKU_POSTGRESQL_MAROON_URL
</code>```

You can read more in this Heroku article.

Body:
I recently created a basic level database for my rails app and I noticed while I was attempting to run:

heroku run rake db:migrate

from the command line, that it was connecting to my old database.  How do you control which database heroku connects to from the heroku run command?

Body:
I don't think it's possible to specify the database when running Heroku Rake commands, but you could set a specific database as primary (and thus automatically connecting to it when running said commands).

Run heroku pg:info, which should output something like (two databases should be listed in your case):

=== HEROKU_POSTGRESQL_MAROON_URL (DATABASE_URL)
Plan:           Ronin
Status:         Available
Data Size:      26.1 MB
Tables:         5
PG Version:     9.5.3
Connections:    2
Fork/Follow:    Available
Rollback:       Unsupported
Created:        2012-05-02 21:54 UTC
Maintenance:    not required (Mondays 23:00 to Tuesdays 03:00 UTC)
Infrastructure: Legacy

You can then choose a database to promote:

heroku pg:promote HEROKU_POSTGRESQL_MAROON_URL

You can read more in this Heroku article.


问:
Neo4j CE failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@473c001d' was successfully initialized, but failed to start
I was trying on NEO4J CE 3.2.1. Worked fine for a couple of days. Unable to start it after downloading APOC jars. I see below error on starting.

```<code>Starting Neo4j failed: Component
'org.neo4j.server.database.LifecycleManagingDatabase@473c001d' was
successfully initialized, but failed to start. Please see the attached cause
exception "org.neo4j.kernel.configuration.Config.getParams()Ljava/util/Map;".
</code>```

Below is the log it generated on starting neo4j. I tried reinstalling as an update and by deleting the neo4j folder from Documents folder and resulted in same.

```2017-06-07 13:57:25.649+0000 WARN [o.n.i.p.PageCache] The dbms.memory.pagecache.size setting has not been configured. It is recommended that this setting is always explicitly configured, to ensure the system has a balanced configuration. Until then, a computed heuristic value of 6440222720 bytes will be used instead.
2017-06-07 13:57:25.722+0000 INFO [o.n.k.i.f.CommunityEditionModule] No locking implementation specified, defaulting to 'community'
2017-06-07 13:57:25.737+0000 INFO [o.n.k.AvailabilityGuard] Requirement makes database unavailable: Database available
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] --- INITIALIZED diagnostics START ---
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] Neo4j Kernel properties:
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] dbms.connector.http.enabled=true
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] dbms.security.auth_enabled=true
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] dbms.connector.bolt.type=BOLT
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] unsupported.dbms.directories.neo4j_home=C:\Users\KON1299\Documents\Neo4j\default.graphdb
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] dbms.directories.import=import
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] dbms.connector.https.enabled=true
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] dbms.connector.http.type=HTTP
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] unsupported.dbms.directories.database=C:\Users\KON1299\Documents\Neo4j\default.graphdb
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] dbms.logs.http.enabled=false
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] dbms.connector.https.type=HTTP
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] unsupported.dbms.edition=community
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] dbms.connector.bolt.enabled=true
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] Diagnostics providers:
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] org.neo4j.kernel.configuration.Config
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] org.neo4j.kernel.info.DiagnosticsManager
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] SYSTEM_MEMORY
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] JAVA_MEMORY
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] OPERATING_SYSTEM
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] JAVA_VIRTUAL_MACHINE
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] CLASSPATH
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] LIBRARY_PATH
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] SYSTEM_PROPERTIES
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] NETWORK
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] System memory information:
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] Total Physical memory: 15.43 GB
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] Free Physical memory: 12.19 GB
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] Committed virtual memory: 711.41 MB
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] Total swap space: 30.85 GB
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] Free swap space: 27.05 GB
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] JVM memory information:
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] Free  memory: 265.88 MB
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] Total memory: 410.50 MB
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] Max   memory: 3.43 GB
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] Garbage Collector: PS Scavenge: [PS Eden Space, PS Survivor Space]
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] Garbage Collector: PS MarkSweep: [PS Eden Space, PS Survivor Space, PS Old Gen]
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] Memory Pool: Code Cache (Non-heap memory): committed=10.94 MB, used=10.90 MB, max=240.00 MB, threshold=0.00 B
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] Memory Pool: Metaspace (Non-heap memory): committed=40.38 MB, used=38.85 MB, max=-1.00 B, threshold=0.00 B
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] Memory Pool: Compressed Class Space (Non-heap memory): committed=6.38 MB, used=6.02 MB, max=1.00 GB, threshold=0.00 B
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] Memory Pool: PS Eden Space (Heap memory): committed=134.00 MB, used=85.12 MB, max=1.20 GB, threshold=?
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] Memory Pool: PS Survivor Space (Heap memory): committed=39.50 MB, used=0.00 B, max=39.50 MB, threshold=?
2017-06-07 13:57:25.740+0000 INFO [o.n.k.i.DiagnosticsManager] Memory Pool: PS Old Gen (Heap memory): committed=237.00 MB, used=59.50 MB, max=2.57 GB, threshold=0.00 B
2017-06-07 13:57:25.740+0000 INFO [o.n.k.i.DiagnosticsManager] Operating system information:
2017-06-07 13:57:25.740+0000 INFO [o.n.k.i.DiagnosticsManager] Operating System: Windows 7; version: 6.1; arch: amd64; cpus: 4
2017-06-07 13:57:25.741+0000 INFO [o.n.k.i.DiagnosticsManager] Process id: 8168@OF060R90L0SXV5
2017-06-07 13:57:25.741+0000 INFO [o.n.k.i.DiagnosticsManager] Byte order: LITTLE_ENDIAN
2017-06-07 13:57:25.741+0000 INFO [o.n.k.i.DiagnosticsManager] Local timezone: America/New_York
2017-06-07 13:57:25.741+0000 INFO [o.n.k.i.DiagnosticsManager] JVM information:
2017-06-07 13:57:25.741+0000 INFO [o.n.k.i.DiagnosticsManager] VM Name: Java HotSpot(TM) 64-Bit Server VM
2017-06-07 13:57:25.741+0000 INFO [o.n.k.i.DiagnosticsManager] VM Vendor: Oracle Corporation
2017-06-07 13:57:25.741+0000 INFO [o.n.k.i.DiagnosticsManager] VM Version: 25.131-b11
2017-06-07 13:57:25.741+0000 INFO [o.n.k.i.DiagnosticsManager] JIT compiler: HotSpot 64-Bit Tiered Compilers
2017-06-07 13:57:25.741+0000 INFO [o.n.k.i.DiagnosticsManager] VM Arguments: [-Dexe4j.semaphoreName=Local\c:_program_files_neo4j_ce_3.2.1_bin_neo4j-ce.exe, -Dexe4j.isInstall4j=true, -Dexe4j.moduleName=C:\Program Files\Neo4j CE 3.2.1\bin\neo4j-ce.exe, -Dexe4j.tempDir=, -Dexe4j.unextractedPosition=0, -Djava.library.path=C:\Program Files\Java\jdk1.8.0_131\bin;C:\Program Files\Java\jdk1.8.0_131\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\ActiveState\Perl64 v5.16.1\site\bin;C:\Program Files\ActiveState\Perl64 v5.16.1\bin\;C:\Program Files (x86)\Lenovo\Fingerprint Manager Pro\;C:\Program Files\Dell\Dell Data Protection\Encryption\;C:\Program Files\Apache Software Foundation\apache-maven-3.5.0\bin;C:\Program Files (x86)\GitExtensions\;C:\Program Files\gradle-3.5\bin;C:\Program Files\nodejs\;C:\Users\KON1299\AppData\Roaming\npm;c:\program files\java\jdk1.8.0_131\jre\bin, -Dexe4j.consoleCodepage=cp0, -Dinstall4j.launcherId=24, -Dinstall4j.swt=false]
2017-06-07 13:57:25.741+0000 INFO [o.n.k.i.DiagnosticsManager] Java classpath:
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.0] file:/C:/Program%20Files/Neo4j%20CE%203.2.1/plugins/apoc-3.1.3.7-all.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [bootstrap] C:\Program Files\Java\jdk1.8.0_131\jre\lib\sunrsasign.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [classpath] C:\Program Files\Neo4j CE 3.2.1\bin\neo4j-desktop-3.2.1.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.1] file:/C:/Program%20Files/Java/jdk1.8.0_131/jre/lib/ext/jaccess.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.0] file:/C:/Program%20Files/Neo4j%20CE%203.2.1/bin/neo4j-desktop-3.2.1.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.1] file:/C:/Program%20Files/Java/jdk1.8.0_131/jre/lib/ext/access-bridge-64.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [bootstrap] C:\Program Files\Java\jdk1.8.0_131\jre\lib\jsse.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [bootstrap] C:\Program Files\Java\jdk1.8.0_131\jre\lib\charsets.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.1] file:/C:/Program%20Files/Java/jdk1.8.0_131/jre/lib/ext/sunmscapi.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [classpath] C:\Program Files\Neo4j CE 3.2.1\plugins\apoc-3.1.3.7-all.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.0] file:/C:/Program%20Files/Neo4j%20CE%203.2.1/.install4j/i4jruntime.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [bootstrap] C:\Program Files\Java\jdk1.8.0_131\jre\lib\resources.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.1] file:/C:/Program%20Files/Java/jdk1.8.0_131/jre/lib/ext/sunec.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.1] file:/C:/Program%20Files/Java/jdk1.8.0_131/jre/lib/ext/nashorn.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.1] file:/C:/Program%20Files/Java/jdk1.8.0_131/jre/lib/ext/localedata.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.1] file:/C:/Program%20Files/Java/jdk1.8.0_131/jre/lib/ext/jfxrt.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.1] file:/C:/Program%20Files/Java/jdk1.8.0_131/jre/lib/ext/zipfs.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [classpath] C:\Program Files\Neo4j CE 3.2.1\.install4j\i4jruntime.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [bootstrap] C:\Program Files\Java\jdk1.8.0_131\jre\lib\jce.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.1] file:/C:/Program%20Files/Java/jdk1.8.0_131/jre/lib/ext/dnsns.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.1] file:/C:/Program%20Files/Java/jdk1.8.0_131/jre/lib/ext/cldrdata.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.1] file:/C:/Program%20Files/Java/jdk1.8.0_131/jre/lib/ext/sunjce_provider.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.1] file:/C:/Program%20Files/Java/jdk1.8.0_131/jre/lib/ext/sunpkcs11.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [bootstrap] C:\Program Files\Java\jdk1.8.0_131\jre\lib\rt.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [bootstrap] C:\Program Files\Java\jdk1.8.0_131\jre\lib\jfr.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [bootstrap] C:\Program Files\Java\jdk1.8.0_131\jre\classes
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager] Library path:
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Program Files\Java\jdk1.8.0_131\bin
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Program Files\Java\jdk1.8.0_131\bin
2017-06-07 13:57:25.747+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Windows\System32
2017-06-07 13:57:25.747+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Windows
2017-06-07 13:57:25.747+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Windows\System32\wbem
2017-06-07 13:57:25.747+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Windows\System32\WindowsPowerShell\v1.0
2017-06-07 13:57:25.748+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Program Files\ActiveState\Perl64 v5.16.1\site\bin
2017-06-07 13:57:25.748+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Program Files\ActiveState\Perl64 v5.16.1\bin
2017-06-07 13:57:25.748+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Program Files (x86)\Lenovo\Fingerprint Manager Pro
2017-06-07 13:57:25.749+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Program Files\Dell\Dell Data Protection\Encryption
2017-06-07 13:57:25.749+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Program Files\Apache Software Foundation\apache-maven-3.5.0\bin
2017-06-07 13:57:25.749+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Program Files (x86)\GitExtensions
2017-06-07 13:57:25.749+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Program Files\gradle-3.5\bin
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Program Files\nodejs
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Users\KON1299\AppData\Roaming\npm
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Program Files\Java\jdk1.8.0_131\jre\bin
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] System.properties:
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] exe4j.moduleName = C:\Program Files\Neo4j CE 3.2.1\bin\neo4j-ce.exe
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] exe4j.semaphoreName = Local\c:_program_files_neo4j_ce_3.2.1_bin_neo4j-ce.exe
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] sun.boot.library.path = c:\program files\java\jdk1.8.0_131\jre\bin
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] exe4j.consoleCodepage = cp0
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] path.separator = ;
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] file.encoding.pkg = sun.io
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] user.country = US
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] user.script =
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] sun.os.patch.level = Service Pack 1
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] install4j.exeDir = C:\Program Files\Neo4j CE 3.2.1\bin\
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] user.dir = C:\Program Files\Neo4j CE 3.2.1\bin
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] user.variant =
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] exe4j.tempDir =
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] sun.jnu.encoding = Cp1252
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] sun.nio.ch.bugLevel =
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] unsupported.dbms.udc.source = desktop
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] sun.awt.enableExtraMouseButtons = true
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] install4j.launcherId = 24
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] sun.management.compiler = HotSpot 64-Bit Tiered Compilers
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] exe4j.isInstall4j = true
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] install4j.swt = false
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] user.home = C:\Users\KON1299
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] user.timezone = America/New_York
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] file.encoding = Cp1252
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] user.name = KON1299
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] sun.java.command = C:\Program Files\Neo4j CE 3.2.1\bin\neo4j-ce.exe
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] sun.arch.data.model = 64
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] exe4j.launchName = C:\Program Files\Neo4j CE 3.2.1\bin\neo4j-ce.exe
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] user.language = en
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] awt.toolkit = sun.awt.windows.WToolkit
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] exe4j.unextractedPosition = 0
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] install4j.appDir = C:\Program Files\Neo4j CE 3.2.1\
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] file.separator = \
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] sun.io.unicode.encoding = UnicodeLittle
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] sun.cpu.endian = little
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] sun.desktop = windows
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] sun.cpu.isalist = amd64
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] Network information:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Software Loopback Interface 1:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager]     address: 127.0.0.1
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager]     address: 0:0:0:0:0:0:0:1
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface WAN Miniport (SSTP):
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface WAN Miniport (L2TP):
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface WAN Miniport (PPTP):
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface WAN Miniport (PPPOE):
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface WAN Miniport (IPv6):
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface WAN Miniport (Network Monitor):
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface WAN Miniport (IP):
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface RAS Async Adapter:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface WAN Miniport (IKEv2):
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Intel(R) Ethernet Connection I219-LM:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager]     address: fe80:0:0:0:75fa:63ed:4bb1:57cc%eth3
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Teredo Tunneling Pseudo-Interface:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager]     address: fe80:0:0:0:0:ffff:ffff:fffe%net4
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Intel(R) Dual Band Wireless-AC 8260:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager]     address: 10.9.87.85
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager]     address: fe80:0:0:0:dc25:660:cf70:e2a8%wlan0
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Bluetooth Device (RFCOMM Protocol TDI):
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Bluetooth Device (Personal Area Network):
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager]     address: fe80:0:0:0:5163:a5aa:66f3:9480%eth4
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Microsoft ISATAP Adapter #3:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Juniper Network Connect Virtual Adapter:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager]     address: fe80:0:0:0:ec5c:8cab:1712:4d96%eth5
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Microsoft ISATAP Adapter #4:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager]     address: fe80:0:0:0:0:5efe:a09:5755%net7
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Microsoft ISATAP Adapter:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Microsoft ISATAP Adapter-Symantec Endpoint Protection Firewall-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Microsoft ISATAP Adapter #3-Symantec Endpoint Protection Firewall-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Microsoft ISATAP Adapter #4-Symantec Endpoint Protection Firewall-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Teredo Tunneling Pseudo-Interface-Symantec Endpoint Protection Firewall-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Intel(R) Dual Band Wireless-AC 8260-Symantec Endpoint Protection Firewall-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Intel(R) Dual Band Wireless-AC 8260-Virtual WiFi Filter Driver-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Intel(R) Dual Band Wireless-AC 8260-QoS Packet Scheduler-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Intel(R) Ethernet Connection I219-LM-Symantec Endpoint Protection Firewall-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Intel(R) Ethernet Connection I219-LM-QoS Packet Scheduler-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Intel(R) Ethernet Connection I219-LM-WFP LightWeight Filter-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Juniper Network Connect Virtual Adapter-Symantec Endpoint Protection Firewall-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Juniper Network Connect Virtual Adapter-QoS Packet Scheduler-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Juniper Network Connect Virtual Adapter-WFP LightWeight Filter-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface WAN Miniport (IPv6)-Symantec Endpoint Protection Firewall-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface WAN Miniport (IPv6)-QoS Packet Scheduler-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface WAN Miniport (IP)-Symantec Endpoint Protection Firewall-0000:
2017-06-07 13:57:25.943+0000 INFO [o.n.k.i.DiagnosticsManager] Interface WAN Miniport (IP)-QoS Packet Scheduler-0000:
2017-06-07 13:57:25.943+0000 INFO [o.n.k.i.DiagnosticsManager] Interface WAN Miniport (Network Monitor)-Symantec Endpoint Protection Firewall-0000:
2017-06-07 13:57:25.943+0000 INFO [o.n.k.i.DiagnosticsManager] Interface WAN Miniport (Network Monitor)-QoS Packet Scheduler-0000:
2017-06-07 13:57:25.943+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Intel(R) Dual Band Wireless-AC 8260-Native WiFi Filter Driver-0000:
2017-06-07 13:57:25.943+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Intel(R) Dual Band Wireless-AC 8260-WFP LightWeight Filter-0000:
2017-06-07 13:57:25.943+0000 INFO [o.n.k.i.DiagnosticsManager] --- INITIALIZED diagnostics END ---
2017-06-07 13:57:25.955+0000 INFO [o.n.b.v.r.WorkerFactory] Bolt Server extension loaded.
2017-06-07 13:57:25.956+0000 INFO [o.n.b.v.r.WorkerFactory] Bolt enabled on 127.0.0.1:7687.
2017-06-07 13:57:25.969+0000 INFO [o.n.k.i.s.f.RecordFormatSelector] Selected RecordFormat:StandardV3_2[v0.A.8] record format from store C:\Users\KON1299\Documents\Neo4j\default.graphdb
2017-06-07 13:57:25.976+0000 INFO [o.n.k.i.s.f.RecordFormatSelector] Selected RecordFormat:StandardV3_2[v0.A.8] record format from store C:\Users\KON1299\Documents\Neo4j\default.graphdb
2017-06-07 13:57:25.976+0000 INFO [o.n.k.i.s.f.RecordFormatSelector] Format not configured. Selected format from the store: RecordFormat:StandardV3_2[v0.A.8]
2017-06-07 13:57:26.170+0000 INFO [o.n.k.i.a.i.IndexingService] IndexingService.init: indexes not specifically mentioned above are ONLINE
2017-06-07 13:57:27.073+0000 INFO [o.n.k.NeoStoreDataSource] No commits found after last check point (which is at LogPosition{logVersion=0, byteOffset=50892771})
2017-06-07 13:57:27.084+0000 INFO [o.n.k.i.a.i.IndexingService] IndexingService.start: indexes not specifically mentioned above are ONLINE
2017-06-07 13:57:27.106+0000 INFO [o.n.k.i.DatabaseHealth] Database health set to OK
2017-06-07 13:57:27.224+0000 INFO [o.n.k.i.t.l.c.CheckPointerImpl] Check Pointing triggered by database shutdown [58]:  Starting check pointing...
2017-06-07 13:57:27.225+0000 INFO [o.n.k.i.t.l.c.CheckPointerImpl] Check Pointing triggered by database shutdown [58]:  Starting store flush...
2017-06-07 13:57:27.317+0000 INFO [o.n.k.i.t.l.c.CheckPointerImpl] Check Pointing triggered by database shutdown [58]:  Store flush completed
2017-06-07 13:57:27.318+0000 INFO [o.n.k.i.t.l.c.CheckPointerImpl] Check Pointing triggered by database shutdown [58]:  Starting appending check point entry into the tx log...
2017-06-07 13:57:27.319+0000 INFO [o.n.k.i.t.l.c.CheckPointerImpl] Check Pointing triggered by database shutdown [58]:  Appending check point entry into the tx log completed
2017-06-07 13:57:27.321+0000 INFO [o.n.k.i.t.l.c.CheckPointerImpl] Check Pointing triggered by database shutdown [58]:  Check pointing completed
2017-06-07 13:57:27.321+0000 INFO [o.n.k.i.t.l.p.LogPruningImpl] Log Rotation [0]:  Starting log pruning.
2017-06-07 13:57:27.322+0000 INFO [o.n.k.i.t.l.p.LogPruningImpl] Log Rotation [0]:  Log pruning complete.
2017-06-07 13:57:27.417+0000 INFO [o.n.k.i.DiagnosticsManager] --- STOPPING diagnostics START ---
2017-06-07 13:57:27.417+0000 INFO [o.n.k.i.DiagnosticsManager] --- STOPPING diagnostics END ---
2017-06-07 13:57:27.418+0000 INFO [o.n.k.i.f.GraphDatabaseFacadeFactory] Shutdown started
```

答: Smells like you are not using the APOC version matching your neo4j version.</p>

Body:
I was trying on NEO4J CE 3.2.1. Worked fine for a couple of days. Unable to start it after downloading APOC jars. I see below error on starting.

Starting Neo4j failed: Component
'org.neo4j.server.database.LifecycleManagingDatabase@473c001d' was
successfully initialized, but failed to start. Please see the attached cause
exception "org.neo4j.kernel.configuration.Config.getParams()Ljava/util/Map;".

Below is the log it generated on starting neo4j. I tried reinstalling as an update and by deleting the neo4j folder from Documents folder and resulted in same.

2017-06-07 13:57:25.649+0000 WARN [o.n.i.p.PageCache] The dbms.memory.pagecache.size setting has not been configured. It is recommended that this setting is always explicitly configured, to ensure the system has a balanced configuration. Until then, a computed heuristic value of 6440222720 bytes will be used instead.
2017-06-07 13:57:25.722+0000 INFO [o.n.k.i.f.CommunityEditionModule] No locking implementation specified, defaulting to 'community'
2017-06-07 13:57:25.737+0000 INFO [o.n.k.AvailabilityGuard] Requirement makes database unavailable: Database available
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] --- INITIALIZED diagnostics START ---
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] Neo4j Kernel properties:
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] dbms.connector.http.enabled=true
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] dbms.security.auth_enabled=true
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] dbms.connector.bolt.type=BOLT
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] unsupported.dbms.directories.neo4j_home=C:\Users\KON1299\Documents\Neo4j\default.graphdb
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] dbms.directories.import=import
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] dbms.connector.https.enabled=true
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] dbms.connector.http.type=HTTP
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] unsupported.dbms.directories.database=C:\Users\KON1299\Documents\Neo4j\default.graphdb
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] dbms.logs.http.enabled=false
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] dbms.connector.https.type=HTTP
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] unsupported.dbms.edition=community
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] dbms.connector.bolt.enabled=true
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] Diagnostics providers:
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] org.neo4j.kernel.configuration.Config
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] org.neo4j.kernel.info.DiagnosticsManager
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] SYSTEM_MEMORY
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] JAVA_MEMORY
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] OPERATING_SYSTEM
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] JAVA_VIRTUAL_MACHINE
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] CLASSPATH
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] LIBRARY_PATH
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] SYSTEM_PROPERTIES
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] NETWORK
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] System memory information:
2017-06-07 13:57:25.738+0000 INFO [o.n.k.i.DiagnosticsManager] Total Physical memory: 15.43 GB
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] Free Physical memory: 12.19 GB
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] Committed virtual memory: 711.41 MB
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] Total swap space: 30.85 GB
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] Free swap space: 27.05 GB
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] JVM memory information:
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] Free  memory: 265.88 MB
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] Total memory: 410.50 MB
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] Max   memory: 3.43 GB
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] Garbage Collector: PS Scavenge: [PS Eden Space, PS Survivor Space]
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] Garbage Collector: PS MarkSweep: [PS Eden Space, PS Survivor Space, PS Old Gen]
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] Memory Pool: Code Cache (Non-heap memory): committed=10.94 MB, used=10.90 MB, max=240.00 MB, threshold=0.00 B
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] Memory Pool: Metaspace (Non-heap memory): committed=40.38 MB, used=38.85 MB, max=-1.00 B, threshold=0.00 B
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] Memory Pool: Compressed Class Space (Non-heap memory): committed=6.38 MB, used=6.02 MB, max=1.00 GB, threshold=0.00 B
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] Memory Pool: PS Eden Space (Heap memory): committed=134.00 MB, used=85.12 MB, max=1.20 GB, threshold=?
2017-06-07 13:57:25.739+0000 INFO [o.n.k.i.DiagnosticsManager] Memory Pool: PS Survivor Space (Heap memory): committed=39.50 MB, used=0.00 B, max=39.50 MB, threshold=?
2017-06-07 13:57:25.740+0000 INFO [o.n.k.i.DiagnosticsManager] Memory Pool: PS Old Gen (Heap memory): committed=237.00 MB, used=59.50 MB, max=2.57 GB, threshold=0.00 B
2017-06-07 13:57:25.740+0000 INFO [o.n.k.i.DiagnosticsManager] Operating system information:
2017-06-07 13:57:25.740+0000 INFO [o.n.k.i.DiagnosticsManager] Operating System: Windows 7; version: 6.1; arch: amd64; cpus: 4
2017-06-07 13:57:25.741+0000 INFO [o.n.k.i.DiagnosticsManager] Process id: 8168@OF060R90L0SXV5
2017-06-07 13:57:25.741+0000 INFO [o.n.k.i.DiagnosticsManager] Byte order: LITTLE_ENDIAN
2017-06-07 13:57:25.741+0000 INFO [o.n.k.i.DiagnosticsManager] Local timezone: America/New_York
2017-06-07 13:57:25.741+0000 INFO [o.n.k.i.DiagnosticsManager] JVM information:
2017-06-07 13:57:25.741+0000 INFO [o.n.k.i.DiagnosticsManager] VM Name: Java HotSpot(TM) 64-Bit Server VM
2017-06-07 13:57:25.741+0000 INFO [o.n.k.i.DiagnosticsManager] VM Vendor: Oracle Corporation
2017-06-07 13:57:25.741+0000 INFO [o.n.k.i.DiagnosticsManager] VM Version: 25.131-b11
2017-06-07 13:57:25.741+0000 INFO [o.n.k.i.DiagnosticsManager] JIT compiler: HotSpot 64-Bit Tiered Compilers
2017-06-07 13:57:25.741+0000 INFO [o.n.k.i.DiagnosticsManager] VM Arguments: [-Dexe4j.semaphoreName=Local\c:_program_files_neo4j_ce_3.2.1_bin_neo4j-ce.exe, -Dexe4j.isInstall4j=true, -Dexe4j.moduleName=C:\Program Files\Neo4j CE 3.2.1\bin\neo4j-ce.exe, -Dexe4j.tempDir=, -Dexe4j.unextractedPosition=0, -Djava.library.path=C:\Program Files\Java\jdk1.8.0_131\bin;C:\Program Files\Java\jdk1.8.0_131\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\ActiveState\Perl64 v5.16.1\site\bin;C:\Program Files\ActiveState\Perl64 v5.16.1\bin\;C:\Program Files (x86)\Lenovo\Fingerprint Manager Pro\;C:\Program Files\Dell\Dell Data Protection\Encryption\;C:\Program Files\Apache Software Foundation\apache-maven-3.5.0\bin;C:\Program Files (x86)\GitExtensions\;C:\Program Files\gradle-3.5\bin;C:\Program Files\nodejs\;C:\Users\KON1299\AppData\Roaming\npm;c:\program files\java\jdk1.8.0_131\jre\bin, -Dexe4j.consoleCodepage=cp0, -Dinstall4j.launcherId=24, -Dinstall4j.swt=false]
2017-06-07 13:57:25.741+0000 INFO [o.n.k.i.DiagnosticsManager] Java classpath:
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.0] file:/C:/Program%20Files/Neo4j%20CE%203.2.1/plugins/apoc-3.1.3.7-all.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [bootstrap] C:\Program Files\Java\jdk1.8.0_131\jre\lib\sunrsasign.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [classpath] C:\Program Files\Neo4j CE 3.2.1\bin\neo4j-desktop-3.2.1.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.1] file:/C:/Program%20Files/Java/jdk1.8.0_131/jre/lib/ext/jaccess.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.0] file:/C:/Program%20Files/Neo4j%20CE%203.2.1/bin/neo4j-desktop-3.2.1.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.1] file:/C:/Program%20Files/Java/jdk1.8.0_131/jre/lib/ext/access-bridge-64.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [bootstrap] C:\Program Files\Java\jdk1.8.0_131\jre\lib\jsse.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [bootstrap] C:\Program Files\Java\jdk1.8.0_131\jre\lib\charsets.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.1] file:/C:/Program%20Files/Java/jdk1.8.0_131/jre/lib/ext/sunmscapi.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [classpath] C:\Program Files\Neo4j CE 3.2.1\plugins\apoc-3.1.3.7-all.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.0] file:/C:/Program%20Files/Neo4j%20CE%203.2.1/.install4j/i4jruntime.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [bootstrap] C:\Program Files\Java\jdk1.8.0_131\jre\lib\resources.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.1] file:/C:/Program%20Files/Java/jdk1.8.0_131/jre/lib/ext/sunec.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.1] file:/C:/Program%20Files/Java/jdk1.8.0_131/jre/lib/ext/nashorn.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.1] file:/C:/Program%20Files/Java/jdk1.8.0_131/jre/lib/ext/localedata.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.1] file:/C:/Program%20Files/Java/jdk1.8.0_131/jre/lib/ext/jfxrt.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.1] file:/C:/Program%20Files/Java/jdk1.8.0_131/jre/lib/ext/zipfs.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [classpath] C:\Program Files\Neo4j CE 3.2.1\.install4j\i4jruntime.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [bootstrap] C:\Program Files\Java\jdk1.8.0_131\jre\lib\jce.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.1] file:/C:/Program%20Files/Java/jdk1.8.0_131/jre/lib/ext/dnsns.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.1] file:/C:/Program%20Files/Java/jdk1.8.0_131/jre/lib/ext/cldrdata.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.1] file:/C:/Program%20Files/Java/jdk1.8.0_131/jre/lib/ext/sunjce_provider.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [loader.1] file:/C:/Program%20Files/Java/jdk1.8.0_131/jre/lib/ext/sunpkcs11.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [bootstrap] C:\Program Files\Java\jdk1.8.0_131\jre\lib\rt.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [bootstrap] C:\Program Files\Java\jdk1.8.0_131\jre\lib\jfr.jar
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager]  [bootstrap] C:\Program Files\Java\jdk1.8.0_131\jre\classes
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager] Library path:
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Program Files\Java\jdk1.8.0_131\bin
2017-06-07 13:57:25.746+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Program Files\Java\jdk1.8.0_131\bin
2017-06-07 13:57:25.747+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Windows\System32
2017-06-07 13:57:25.747+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Windows
2017-06-07 13:57:25.747+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Windows\System32\wbem
2017-06-07 13:57:25.747+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Windows\System32\WindowsPowerShell\v1.0
2017-06-07 13:57:25.748+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Program Files\ActiveState\Perl64 v5.16.1\site\bin
2017-06-07 13:57:25.748+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Program Files\ActiveState\Perl64 v5.16.1\bin
2017-06-07 13:57:25.748+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Program Files (x86)\Lenovo\Fingerprint Manager Pro
2017-06-07 13:57:25.749+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Program Files\Dell\Dell Data Protection\Encryption
2017-06-07 13:57:25.749+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Program Files\Apache Software Foundation\apache-maven-3.5.0\bin
2017-06-07 13:57:25.749+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Program Files (x86)\GitExtensions
2017-06-07 13:57:25.749+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Program Files\gradle-3.5\bin
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Program Files\nodejs
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Users\KON1299\AppData\Roaming\npm
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] C:\Program Files\Java\jdk1.8.0_131\jre\bin
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] System.properties:
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] exe4j.moduleName = C:\Program Files\Neo4j CE 3.2.1\bin\neo4j-ce.exe
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] exe4j.semaphoreName = Local\c:_program_files_neo4j_ce_3.2.1_bin_neo4j-ce.exe
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] sun.boot.library.path = c:\program files\java\jdk1.8.0_131\jre\bin
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] exe4j.consoleCodepage = cp0
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] path.separator = ;
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] file.encoding.pkg = sun.io
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] user.country = US
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] user.script =
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] sun.os.patch.level = Service Pack 1
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] install4j.exeDir = C:\Program Files\Neo4j CE 3.2.1\bin\
2017-06-07 13:57:25.750+0000 INFO [o.n.k.i.DiagnosticsManager] user.dir = C:\Program Files\Neo4j CE 3.2.1\bin
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] user.variant =
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] exe4j.tempDir =
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] sun.jnu.encoding = Cp1252
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] sun.nio.ch.bugLevel =
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] unsupported.dbms.udc.source = desktop
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] sun.awt.enableExtraMouseButtons = true
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] install4j.launcherId = 24
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] sun.management.compiler = HotSpot 64-Bit Tiered Compilers
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] exe4j.isInstall4j = true
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] install4j.swt = false
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] user.home = C:\Users\KON1299
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] user.timezone = America/New_York
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] file.encoding = Cp1252
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] user.name = KON1299
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] sun.java.command = C:\Program Files\Neo4j CE 3.2.1\bin\neo4j-ce.exe
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] sun.arch.data.model = 64
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] exe4j.launchName = C:\Program Files\Neo4j CE 3.2.1\bin\neo4j-ce.exe
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] user.language = en
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] awt.toolkit = sun.awt.windows.WToolkit
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] exe4j.unextractedPosition = 0
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] install4j.appDir = C:\Program Files\Neo4j CE 3.2.1\
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] file.separator = \
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] sun.io.unicode.encoding = UnicodeLittle
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] sun.cpu.endian = little
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] sun.desktop = windows
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] sun.cpu.isalist = amd64
2017-06-07 13:57:25.751+0000 INFO [o.n.k.i.DiagnosticsManager] Network information:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Software Loopback Interface 1:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager]     address: 127.0.0.1
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager]     address: 0:0:0:0:0:0:0:1
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface WAN Miniport (SSTP):
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface WAN Miniport (L2TP):
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface WAN Miniport (PPTP):
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface WAN Miniport (PPPOE):
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface WAN Miniport (IPv6):
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface WAN Miniport (Network Monitor):
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface WAN Miniport (IP):
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface RAS Async Adapter:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface WAN Miniport (IKEv2):
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Intel(R) Ethernet Connection I219-LM:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager]     address: fe80:0:0:0:75fa:63ed:4bb1:57cc%eth3
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Teredo Tunneling Pseudo-Interface:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager]     address: fe80:0:0:0:0:ffff:ffff:fffe%net4
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Intel(R) Dual Band Wireless-AC 8260:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager]     address: 10.9.87.85
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager]     address: fe80:0:0:0:dc25:660:cf70:e2a8%wlan0
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Bluetooth Device (RFCOMM Protocol TDI):
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Bluetooth Device (Personal Area Network):
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager]     address: fe80:0:0:0:5163:a5aa:66f3:9480%eth4
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Microsoft ISATAP Adapter #3:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Juniper Network Connect Virtual Adapter:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager]     address: fe80:0:0:0:ec5c:8cab:1712:4d96%eth5
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Microsoft ISATAP Adapter #4:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager]     address: fe80:0:0:0:0:5efe:a09:5755%net7
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Microsoft ISATAP Adapter:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Microsoft ISATAP Adapter-Symantec Endpoint Protection Firewall-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Microsoft ISATAP Adapter #3-Symantec Endpoint Protection Firewall-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Microsoft ISATAP Adapter #4-Symantec Endpoint Protection Firewall-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Teredo Tunneling Pseudo-Interface-Symantec Endpoint Protection Firewall-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Intel(R) Dual Band Wireless-AC 8260-Symantec Endpoint Protection Firewall-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Intel(R) Dual Band Wireless-AC 8260-Virtual WiFi Filter Driver-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Intel(R) Dual Band Wireless-AC 8260-QoS Packet Scheduler-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Intel(R) Ethernet Connection I219-LM-Symantec Endpoint Protection Firewall-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Intel(R) Ethernet Connection I219-LM-QoS Packet Scheduler-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Intel(R) Ethernet Connection I219-LM-WFP LightWeight Filter-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Juniper Network Connect Virtual Adapter-Symantec Endpoint Protection Firewall-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Juniper Network Connect Virtual Adapter-QoS Packet Scheduler-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Juniper Network Connect Virtual Adapter-WFP LightWeight Filter-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface WAN Miniport (IPv6)-Symantec Endpoint Protection Firewall-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface WAN Miniport (IPv6)-QoS Packet Scheduler-0000:
2017-06-07 13:57:25.942+0000 INFO [o.n.k.i.DiagnosticsManager] Interface WAN Miniport (IP)-Symantec Endpoint Protection Firewall-0000:
2017-06-07 13:57:25.943+0000 INFO [o.n.k.i.DiagnosticsManager] Interface WAN Miniport (IP)-QoS Packet Scheduler-0000:
2017-06-07 13:57:25.943+0000 INFO [o.n.k.i.DiagnosticsManager] Interface WAN Miniport (Network Monitor)-Symantec Endpoint Protection Firewall-0000:
2017-06-07 13:57:25.943+0000 INFO [o.n.k.i.DiagnosticsManager] Interface WAN Miniport (Network Monitor)-QoS Packet Scheduler-0000:
2017-06-07 13:57:25.943+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Intel(R) Dual Band Wireless-AC 8260-Native WiFi Filter Driver-0000:
2017-06-07 13:57:25.943+0000 INFO [o.n.k.i.DiagnosticsManager] Interface Intel(R) Dual Band Wireless-AC 8260-WFP LightWeight Filter-0000:
2017-06-07 13:57:25.943+0000 INFO [o.n.k.i.DiagnosticsManager] --- INITIALIZED diagnostics END ---
2017-06-07 13:57:25.955+0000 INFO [o.n.b.v.r.WorkerFactory] Bolt Server extension loaded.
2017-06-07 13:57:25.956+0000 INFO [o.n.b.v.r.WorkerFactory] Bolt enabled on 127.0.0.1:7687.
2017-06-07 13:57:25.969+0000 INFO [o.n.k.i.s.f.RecordFormatSelector] Selected RecordFormat:StandardV3_2[v0.A.8] record format from store C:\Users\KON1299\Documents\Neo4j\default.graphdb
2017-06-07 13:57:25.976+0000 INFO [o.n.k.i.s.f.RecordFormatSelector] Selected RecordFormat:StandardV3_2[v0.A.8] record format from store C:\Users\KON1299\Documents\Neo4j\default.graphdb
2017-06-07 13:57:25.976+0000 INFO [o.n.k.i.s.f.RecordFormatSelector] Format not configured. Selected format from the store: RecordFormat:StandardV3_2[v0.A.8]
2017-06-07 13:57:26.170+0000 INFO [o.n.k.i.a.i.IndexingService] IndexingService.init: indexes not specifically mentioned above are ONLINE
2017-06-07 13:57:27.073+0000 INFO [o.n.k.NeoStoreDataSource] No commits found after last check point (which is at LogPosition{logVersion=0, byteOffset=50892771})
2017-06-07 13:57:27.084+0000 INFO [o.n.k.i.a.i.IndexingService] IndexingService.start: indexes not specifically mentioned above are ONLINE
2017-06-07 13:57:27.106+0000 INFO [o.n.k.i.DatabaseHealth] Database health set to OK
2017-06-07 13:57:27.224+0000 INFO [o.n.k.i.t.l.c.CheckPointerImpl] Check Pointing triggered by database shutdown [58]:  Starting check pointing...
2017-06-07 13:57:27.225+0000 INFO [o.n.k.i.t.l.c.CheckPointerImpl] Check Pointing triggered by database shutdown [58]:  Starting store flush...
2017-06-07 13:57:27.317+0000 INFO [o.n.k.i.t.l.c.CheckPointerImpl] Check Pointing triggered by database shutdown [58]:  Store flush completed
2017-06-07 13:57:27.318+0000 INFO [o.n.k.i.t.l.c.CheckPointerImpl] Check Pointing triggered by database shutdown [58]:  Starting appending check point entry into the tx log...
2017-06-07 13:57:27.319+0000 INFO [o.n.k.i.t.l.c.CheckPointerImpl] Check Pointing triggered by database shutdown [58]:  Appending check point entry into the tx log completed
2017-06-07 13:57:27.321+0000 INFO [o.n.k.i.t.l.c.CheckPointerImpl] Check Pointing triggered by database shutdown [58]:  Check pointing completed
2017-06-07 13:57:27.321+0000 INFO [o.n.k.i.t.l.p.LogPruningImpl] Log Rotation [0]:  Starting log pruning.
2017-06-07 13:57:27.322+0000 INFO [o.n.k.i.t.l.p.LogPruningImpl] Log Rotation [0]:  Log pruning complete.
2017-06-07 13:57:27.417+0000 INFO [o.n.k.i.DiagnosticsManager] --- STOPPING diagnostics START ---
2017-06-07 13:57:27.417+0000 INFO [o.n.k.i.DiagnosticsManager] --- STOPPING diagnostics END ---
2017-06-07 13:57:27.418+0000 INFO [o.n.k.i.f.GraphDatabaseFacadeFactory] Shutdown started


问:
Using Proguard with a library has a @Service bean which should autowire
I have a library Common.License which I am obfuscating with Proguard:

```<code><plugin>
    <groupId>com.pyx4me</groupId>
    <artifactId>proguard-maven-plugin</artifactId>
    <executions>
        <execution>
            <phase>package</phase>
            <goals>
                <goal>proguard</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <obfuscate>true</obfuscate>
        <options>
            <option>-dontoptimize</option>
            <option>-renamesourcefileattribute SourceFile</option>
            <option>-keepattributes Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,*Annotation*,EnclosingMethod</option>
            <option>-keep public class * { public protected *;}</option>
            <option>-keepclassmembernames class * {java.lang.Class class$(java.lang.String); java.lang.Class class$(java.lang.String, boolean);}</option>
            <option>-keepclassmembernames class * {com.common.license.LicenseSessionStore licenseSessionStore; com.common.license.LicenseStore licenseStore;}</option>
            <option>-keepclassmembers enum * {public static **[] values(); public static ** valueOf(java.lang.String);}</option>
            <option>-keepclassmembers class * implements java.io.Serializable { static final long serialVersionUID; private static final java.io.ObjectStreamField[] serialPersistentFields; private void writeObject(java.io.ObjectOutputStream); private void readObject(java.io.ObjectInputStream); java.lang.Object writeReplace(); java.lang.Object readResolve();}</option>
        </options>
        <libs>
            <lib>${java.home}/lib/rt.jar</lib>
            <lib>${java.home}/lib/jsse.jar</lib>
        </libs>
        <addMavenDescriptor>false</addMavenDescriptor>
    </configuration>
</plugin>
</code>```

This library has a Spring bean annotated with @Service:

```<code>@Service
public class LicenseServiceImpl implements LicenseService {

    @Autowired(required = false)
    LicenseSessionStore licenseSessionStore;

    @Autowired(required = false)
    LicenseStore licenseStore;

...

}
</code>```

I use this library in a web service Company.License where I want the LicenseService to autowire:

```<code>@Component
public class BackgroundTasks {

    @Autowired
    ScheduledExecutorService scheduledExecutorService;

    @Autowired
    LicenseService licenseService;

...

}
</code>```

So Company.License has a dependency on Common.License.  If I obfuscate Common.License then licenseService will not autowire in BackgroundTasks.  The only way I could work around this was to define licenseService explicitly as a bean:

```<code>@Bean(name = "licenseService", autowire = Autowire.BY_NAME)
public LicenseService getLicenseService() {
    if (licenseService == null) {
        licenseService = new LicenseServiceImpl();
    }
    return licenseService;
}
</code>```

I should not need to explicitly declare this as a bean like this as I have already annotated the class with @Service which should be enough to make the autowiring of licenseService in BackgroundTasks Spring-magically work.  But it doesn't!

What is Proguard specifically doing to make this not work?  Is there anything I can do in the configuration of Proguard to make it more Spring friendly?

Grant

答:
Here's another way to switch to version 4.4 of proguard (which is probably a bit better):</p>

```<code><configuration>
  <proguardVersion>4.4</proguardVersion>
  <obfuscate>true</obfuscate>
  <options>
  ...
  </options>
  <libs>
    <lib>${java.home}/lib/rt.jar</lib>
    <lib>${java.home}/lib/jsse.jar</lib>
  </libs>
  <addMavenDescriptor>false</addMavenDescriptor>
</configuration>
<dependencies>
  <dependency>
    <groupId>net.sf.proguard</groupId>
    <artifactId>proguard</artifactId>
    <version>4.4</version>
    <scope>runtime</scope>
    <optional>true</optional>
  </dependency>
</dependencies>
</code>```

Body:
I have a library Common.License which I am obfuscating with Proguard:

<plugin>
    <groupId>com.pyx4me</groupId>
    <artifactId>proguard-maven-plugin</artifactId>
    <executions>
        <execution>
            <phase>package</phase>
            <goals>
                <goal>proguard</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <obfuscate>true</obfuscate>
        <options>
            <option>-dontoptimize</option>
            <option>-renamesourcefileattribute SourceFile</option>
            <option>-keepattributes Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,*Annotation*,EnclosingMethod</option>
            <option>-keep public class * { public protected *;}</option>
            <option>-keepclassmembernames class * {java.lang.Class class$(java.lang.String); java.lang.Class class$(java.lang.String, boolean);}</option>
            <option>-keepclassmembernames class * {com.common.license.LicenseSessionStore licenseSessionStore; com.common.license.LicenseStore licenseStore;}</option>
            <option>-keepclassmembers enum * {public static **[] values(); public static ** valueOf(java.lang.String);}</option>
            <option>-keepclassmembers class * implements java.io.Serializable { static final long serialVersionUID; private static final java.io.ObjectStreamField[] serialPersistentFields; private void writeObject(java.io.ObjectOutputStream); private void readObject(java.io.ObjectInputStream); java.lang.Object writeReplace(); java.lang.Object readResolve();}</option>
        </options>
        <libs>
            <lib>${java.home}/lib/rt.jar</lib>
            <lib>${java.home}/lib/jsse.jar</lib>
        </libs>
        <addMavenDescriptor>false</addMavenDescriptor>
    </configuration>
</plugin>

This library has a Spring bean annotated with @Service:

@Service
public class LicenseServiceImpl implements LicenseService {

    @Autowired(required = false)
    LicenseSessionStore licenseSessionStore;

    @Autowired(required = false)
    LicenseStore licenseStore;

...

}

I use this library in a web service Company.License where I want the LicenseService to autowire:

@Component
public class BackgroundTasks {

    @Autowired
    ScheduledExecutorService scheduledExecutorService;

    @Autowired
    LicenseService licenseService;

...

}

So Company.License has a dependency on Common.License.  If I obfuscate Common.License then licenseService will not autowire in BackgroundTasks.  The only way I could work around this was to define licenseService explicitly as a bean:

@Bean(name = "licenseService", autowire = Autowire.BY_NAME)
public LicenseService getLicenseService() {
    if (licenseService == null) {
        licenseService = new LicenseServiceImpl();
    }
    return licenseService;
}

I should not need to explicitly declare this as a bean like this as I have already annotated the class with @Service which should be enough to make the autowiring of licenseService in BackgroundTasks Spring-magically work.  But it doesn't!

What is Proguard specifically doing to make this not work?  Is there anything I can do in the configuration of Proguard to make it more Spring friendly?

Grant

Body:
Here's another way to switch to version 4.4 of proguard (which is probably a bit better):

<configuration>
  <proguardVersion>4.4</proguardVersion>
  <obfuscate>true</obfuscate>
  <options>
  ...
  </options>
  <libs>
    <lib>${java.home}/lib/rt.jar</lib>
    <lib>${java.home}/lib/jsse.jar</lib>
  </libs>
  <addMavenDescriptor>false</addMavenDescriptor>
</configuration>
<dependencies>
  <dependency>
    <groupId>net.sf.proguard</groupId>
    <artifactId>proguard</artifactId>
    <version>4.4</version>
    <scope>runtime</scope>
    <optional>true</optional>
  </dependency>
</dependencies>


问:
AWS lambda function stops working after timed out error
I have a simple lambda function that asynchronously makes an API calls and then returns data. 99% of the time this works great. When ever the API takes longer then the lambda configured timeout, it gives an error as expected. Now the issue is that when I make any subsequent calls to the lambda function it permanently gives me the timeout error.

```<code> "errorMessage": "2016-05-14T22:52:07.247Z {session} Task timed out after 3.00 seconds"
</code>```

In order to test that this was the case I set the lambda timeout to 3 seconds and have a way to trigger these two functions within the lambda.

Javascript

```<code>function now() {
    return response.tell('success');
}

function wait() {
    setTimeout(function() { return response.tell('success'); }, 4000);
}
</code>```

When I call the now function there are no problems. When I call the wait function I get the timeout error and then any subsequent calls to now give me the same error.

Is this an expected behavior? I would think that any subsequent calls to the lambda function should work. I understand I can always increase the configuration timeout, but would rather not.

答:
I've run into the same issue, in fact there are many cases when Lambda becomes unresponsive, e.g.:

Parsing not valid json:

```<code>exports.handler = function(event, context, callback)
{
    var nonValidJson = "Not even Json";
    var jsonParse = JSON.parse(nonValidJson);
</code>```

Accessing property of undefined variable:

```<code>exports.handler = function(event, context, callback)
{
    var emptyObject = {};
    var value = emptyObject.Item.Key;
</code>```

Not closing mySql connection after accessing RDS leads to Lambda timeout and then it becomes non-responsive.

When I'm saying unresponsive it's literally not even loading, i.e. first print inside handler isn't printed, and Lambda just exits every run with timeout:

```<code>exports.handler = function(event, context, callback)
{
    console.log("Hello there");
</code>```

It's a bug, known by AWS team for almost a year:

https://forums.aws.amazon.com/thread.jspa?threadID=238434&tstart=0

Unfortunately it's still not fixed, after some tests it's revealed that in fact Lambda tries to restart (reload the container?), there is just not enough time. If you set the timeout to be 10s, after ~4s of execution time Lambda starts working, and then in next runs comes to behave normally. I've also tried playing with setting:

```<code>context.callbackWaitsForEmptyEventLoop = false;
</code>```

and putting all 'require' blocks inside handler, nothing really worked. The only way to prevent Lambda becoming dead is setting bigger timeout, 10s should be more than enough as a workaround protection against this bug.

Body:
I have a simple lambda function that asynchronously makes an API calls and then returns data. 99% of the time this works great. When ever the API takes longer then the lambda configured timeout, it gives an error as expected. Now the issue is that when I make any subsequent calls to the lambda function it permanently gives me the timeout error.

 "errorMessage": "2016-05-14T22:52:07.247Z {session} Task timed out after 3.00 seconds"

In order to test that this was the case I set the lambda timeout to 3 seconds and have a way to trigger these two functions within the lambda.

Javascript

function now() {
    return response.tell('success');
}

function wait() {
    setTimeout(function() { return response.tell('success'); }, 4000);
}

When I call the now function there are no problems. When I call the wait function I get the timeout error and then any subsequent calls to now give me the same error.

Is this an expected behavior? I would think that any subsequent calls to the lambda function should work. I understand I can always increase the configuration timeout, but would rather not.

Body:
I've run into the same issue, in fact there are many cases when Lambda becomes unresponsive, e.g.:

Parsing not valid json:

exports.handler = function(event, context, callback)
{
    var nonValidJson = "Not even Json";
    var jsonParse = JSON.parse(nonValidJson);

Accessing property of undefined variable:

exports.handler = function(event, context, callback)
{
    var emptyObject = {};
    var value = emptyObject.Item.Key;

Not closing mySql connection after accessing RDS leads to Lambda timeout and then it becomes non-responsive.

When I'm saying unresponsive it's literally not even loading, i.e. first print inside handler isn't printed, and Lambda just exits every run with timeout:

exports.handler = function(event, context, callback)
{
    console.log("Hello there");

It's a bug, known by AWS team for almost a year:

https://forums.aws.amazon.com/thread.jspa?threadID=238434&tstart=0

Unfortunately it's still not fixed, after some tests it's revealed that in fact Lambda tries to restart (reload the container?), there is just not enough time. If you set the timeout to be 10s, after ~4s of execution time Lambda starts working, and then in next runs comes to behave normally. I've also tried playing with setting:

context.callbackWaitsForEmptyEventLoop = false;

and putting all 'require' blocks inside handler, nothing really worked. The only way to prevent Lambda becoming dead is setting bigger timeout, 10s should be more than enough as a workaround protection against this bug.


问:
Microsoft Custom Vision only work for Visual Studio 2015?
The Problem:
When I try to install the packages for Microsoft Custom Vision in VS 2013, it fails. Does Custom Visions just not compatible with VS 2013, or is there another problem here?

When I try to install the Custom Vision package after the first failed attempt (without uninstalling Microsoft.Rest.ClientRuntime 2.3.2), I get a different response, as seen below:

```<code>Attempting to resolve dependency 'Microsoft.Rest.ClientRuntime (≥ 2.3.2)'.
Attempting to resolve dependency 'Newtonsoft.Json (≥ 6.0.8)'.
Attempting to resolve dependency 'System.IO.FileSystem (≥ 4.3.0)'.
Attempting to resolve dependency 'System.Net.Http (≥ 4.3.1)'.
Installing 'System.IO.FileSystem 4.3.0'.
Successfully installed 'System.IO.FileSystem 4.3.0'.
Installing 'System.Net.Http 4.3.1'.
Successfully installed 'System.Net.Http 4.3.1'.
Installing 'Microsoft.Cognitive.CustomVision.Training 1.0.0'.
Successfully installed 'Microsoft.Cognitive.CustomVision.Training 1.0.0'.
Adding 'System.IO.FileSystem 4.3.0' to WpfApplication2.
Uninstalling 'System.IO.FileSystem 4.3.0'.
Successfully uninstalled 'System.IO.FileSystem 4.3.0'.
Install failed. Rolling back...
Install-Package : Could not install package 'System.IO.FileSystem 4.3.0'. You are trying to install this package into a project that targets
'.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For
more information, contact the package author.
At line:1 char:1
+ Install-Package Microsoft.Cognitive.CustomVision.Training
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
</code>```

Can anyone tell me what this means, or offer a potential fix?

Qualifier:
My development team all use Visual Studio 2013, so I'd rather not change to 2015 or 2017.

UPDATE: I have succumb to stress and installed VS 2017- still getting the same error:

```<code>Could not install package 'System.IO.FileSystem 4.3.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5.2', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
</code>```

答:
System.IO.FileSystem 4.3.0 can be installed into a project that targets .NET Framework 4.6.

So I would just change the target framework of your project to .NET 4.6.

Body:
The Problem:
When I try to install the packages for Microsoft Custom Vision in VS 2013, it fails. Does Custom Visions just not compatible with VS 2013, or is there another problem here?

When I try to install the Custom Vision package after the first failed attempt (without uninstalling Microsoft.Rest.ClientRuntime 2.3.2), I get a different response, as seen below:

Attempting to resolve dependency 'Microsoft.Rest.ClientRuntime (≥ 2.3.2)'.
Attempting to resolve dependency 'Newtonsoft.Json (≥ 6.0.8)'.
Attempting to resolve dependency 'System.IO.FileSystem (≥ 4.3.0)'.
Attempting to resolve dependency 'System.Net.Http (≥ 4.3.1)'.
Installing 'System.IO.FileSystem 4.3.0'.
Successfully installed 'System.IO.FileSystem 4.3.0'.
Installing 'System.Net.Http 4.3.1'.
Successfully installed 'System.Net.Http 4.3.1'.
Installing 'Microsoft.Cognitive.CustomVision.Training 1.0.0'.
Successfully installed 'Microsoft.Cognitive.CustomVision.Training 1.0.0'.
Adding 'System.IO.FileSystem 4.3.0' to WpfApplication2.
Uninstalling 'System.IO.FileSystem 4.3.0'.
Successfully uninstalled 'System.IO.FileSystem 4.3.0'.
Install failed. Rolling back...
Install-Package : Could not install package 'System.IO.FileSystem 4.3.0'. You are trying to install this package into a project that targets
'.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For
more information, contact the package author.
At line:1 char:1
+ Install-Package Microsoft.Cognitive.CustomVision.Training
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

Can anyone tell me what this means, or offer a potential fix?

Qualifier:
My development team all use Visual Studio 2013, so I'd rather not change to 2015 or 2017.

UPDATE: I have succumb to stress and installed VS 2017- still getting the same error:

Could not install package 'System.IO.FileSystem 4.3.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5.2', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.


问:
Convert Image to CVPixelBuffer for Machine Learning Swift
I am trying to get Apple's sample Core ML Models that were demoed at the 2017 WWDC to function correctly. I am using the GoogLeNet to try and classify images (see the Apple Machine Learning Page). The model takes a CVPixelBuffer as an input. I have an image called imageSample.jpg that I'm using for this demo. My code is below:

```<code>        var sample = UIImage(named: "imageSample")?.cgImage
        let bufferThree = getCVPixelBuffer(sample!)

        let model = GoogLeNetPlaces()
        guard let output = try? model.prediction(input: GoogLeNetPlacesInput.init(sceneImage: bufferThree!)) else {
            fatalError("Unexpected runtime error.")
        }

        print(output.sceneLabel)
</code>```

I am always getting the unexpected runtime error in the output rather than an image classification. My code to convert the image is below:

```<code>func getCVPixelBuffer(_ image: CGImage) -> CVPixelBuffer? {
        let imageWidth = Int(image.width)
        let imageHeight = Int(image.height)

        let attributes : [NSObject:AnyObject] = [
            kCVPixelBufferCGImageCompatibilityKey : true as AnyObject,
            kCVPixelBufferCGBitmapContextCompatibilityKey : true as AnyObject
        ]

        var pxbuffer: CVPixelBuffer? = nil
        CVPixelBufferCreate(kCFAllocatorDefault,
                            imageWidth,
                            imageHeight,
                            kCVPixelFormatType_32ARGB,
                            attributes as CFDictionary?,
                            &pxbuffer)

        if let _pxbuffer = pxbuffer {
            let flags = CVPixelBufferLockFlags(rawValue: 0)
            CVPixelBufferLockBaseAddress(_pxbuffer, flags)
            let pxdata = CVPixelBufferGetBaseAddress(_pxbuffer)

            let rgbColorSpace = CGColorSpaceCreateDeviceRGB();
            let context = CGContext(data: pxdata,
                                    width: imageWidth,
                                    height: imageHeight,
                                    bitsPerComponent: 8,
                                    bytesPerRow: CVPixelBufferGetBytesPerRow(_pxbuffer),
                                    space: rgbColorSpace,
                                    bitmapInfo: CGImageAlphaInfo.premultipliedFirst.rawValue)

            if let _context = context {
                _context.draw(image, in: CGRect.init(x: 0, y: 0, width: imageWidth, height: imageHeight))
            }
            else {
                CVPixelBufferUnlockBaseAddress(_pxbuffer, flags);
                return nil
            }

            CVPixelBufferUnlockBaseAddress(_pxbuffer, flags);
            return _pxbuffer;
        }

        return nil
    }
</code>```

I got this code from a previous StackOverflow post (last answer here). I recognize that the code may not be correct, but I have no idea of how to do this myself. I believe that this is the section that contains the error. The model calls for the following type of input: Image<RGB,224,224>

答:
You can use a pure CoreML, but you should resize an image to (224,224)

```<code>    DispatchQueue.global(qos: .userInitiated).async {
        // Resnet50 expects an image 224 x 224, so we should resize and crop the source image
        let inputImageSize: CGFloat = 224.0
        let minLen = min(image.size.width, image.size.height)
        let resizedImage = image.resize(to: CGSize(width: inputImageSize * image.size.width / minLen, height: inputImageSize * image.size.height / minLen))
        let cropedToSquareImage = resizedImage.cropToSquare()

        guard let pixelBuffer = cropedToSquareImage?.pixelBuffer() else {
            fatalError()
        }
        guard let classifierOutput = try? self.classifier.prediction(image: pixelBuffer) else {
            fatalError()
        }

        DispatchQueue.main.async {
            self.title = classifierOutput.classLabel
        }
    }

// ...

extension UIImage {

    func resize(to newSize: CGSize) -> UIImage {
        UIGraphicsBeginImageContextWithOptions(CGSize(width: newSize.width, height: newSize.height), true, 1.0)
        self.draw(in: CGRect(x: 0, y: 0, width: newSize.width, height: newSize.height))
        let resizedImage = UIGraphicsGetImageFromCurrentImageContext()!
        UIGraphicsEndImageContext()

        return resizedImage
    }

    func cropToSquare() -> UIImage? {
        guard let cgImage = self.cgImage else {
            return nil
        }
        var imageHeight = self.size.height
        var imageWidth = self.size.width

        if imageHeight > imageWidth {
            imageHeight = imageWidth
        }
        else {
            imageWidth = imageHeight
        }

        let size = CGSize(width: imageWidth, height: imageHeight)

        let x = ((CGFloat(cgImage.width) - size.width) / 2).rounded()
        let y = ((CGFloat(cgImage.height) - size.height) / 2).rounded()

        let cropRect = CGRect(x: x, y: y, width: size.height, height: size.width)
        if let croppedCgImage = cgImage.cropping(to: cropRect) {
            return UIImage(cgImage: croppedCgImage, scale: 0, orientation: self.imageOrientation)
        }

        return nil
    }

    func pixelBuffer() -> CVPixelBuffer? {
        let width = self.size.width
        let height = self.size.height
        let attrs = [kCVPixelBufferCGImageCompatibilityKey: kCFBooleanTrue,
                     kCVPixelBufferCGBitmapContextCompatibilityKey: kCFBooleanTrue] as CFDictionary
        var pixelBuffer: CVPixelBuffer?
        let status = CVPixelBufferCreate(kCFAllocatorDefault,
                                         Int(width),
                                         Int(height),
                                         kCVPixelFormatType_32ARGB,
                                         attrs,
                                         &pixelBuffer)

        guard let resultPixelBuffer = pixelBuffer, status == kCVReturnSuccess else {
            return nil
        }

        CVPixelBufferLockBaseAddress(resultPixelBuffer, CVPixelBufferLockFlags(rawValue: 0))
        let pixelData = CVPixelBufferGetBaseAddress(resultPixelBuffer)

        let rgbColorSpace = CGColorSpaceCreateDeviceRGB()
        guard let context = CGContext(data: pixelData,
                                      width: Int(width),
                                      height: Int(height),
                                      bitsPerComponent: 8,
                                      bytesPerRow: CVPixelBufferGetBytesPerRow(resultPixelBuffer),
                                      space: rgbColorSpace,
                                      bitmapInfo: CGImageAlphaInfo.noneSkipFirst.rawValue) else {
                                        return nil
        }

        context.translateBy(x: 0, y: height)
        context.scaleBy(x: 1.0, y: -1.0)

        UIGraphicsPushContext(context)
        self.draw(in: CGRect(x: 0, y: 0, width: width, height: height))
        UIGraphicsPopContext()
        CVPixelBufferUnlockBaseAddress(resultPixelBuffer, CVPixelBufferLockFlags(rawValue: 0))

        return resultPixelBuffer
    }
}
</code>```

The expected image size for inputs you can find in the mimodel file:

A demo project that uses both pure CoreML and Vision variants you can find here: https://github.com/handsomecode/iOS11-Demos/tree/coreml_vision/CoreML/CoreMLDemo

Body:
I am trying to get Apple's sample Core ML Models that were demoed at the 2017 WWDC to function correctly. I am using the GoogLeNet to try and classify images (see the Apple Machine Learning Page). The model takes a CVPixelBuffer as an input. I have an image called imageSample.jpg that I'm using for this demo. My code is below:

        var sample = UIImage(named: "imageSample")?.cgImage
        let bufferThree = getCVPixelBuffer(sample!)

        let model = GoogLeNetPlaces()
        guard let output = try? model.prediction(input: GoogLeNetPlacesInput.init(sceneImage: bufferThree!)) else {
            fatalError("Unexpected runtime error.")
        }

        print(output.sceneLabel)

I am always getting the unexpected runtime error in the output rather than an image classification. My code to convert the image is below:

func getCVPixelBuffer(_ image: CGImage) -> CVPixelBuffer? {
        let imageWidth = Int(image.width)
        let imageHeight = Int(image.height)

        let attributes : [NSObject:AnyObject] = [
            kCVPixelBufferCGImageCompatibilityKey : true as AnyObject,
            kCVPixelBufferCGBitmapContextCompatibilityKey : true as AnyObject
        ]

        var pxbuffer: CVPixelBuffer? = nil
        CVPixelBufferCreate(kCFAllocatorDefault,
                            imageWidth,
                            imageHeight,
                            kCVPixelFormatType_32ARGB,
                            attributes as CFDictionary?,
                            &pxbuffer)

        if let _pxbuffer = pxbuffer {
            let flags = CVPixelBufferLockFlags(rawValue: 0)
            CVPixelBufferLockBaseAddress(_pxbuffer, flags)
            let pxdata = CVPixelBufferGetBaseAddress(_pxbuffer)

            let rgbColorSpace = CGColorSpaceCreateDeviceRGB();
            let context = CGContext(data: pxdata,
                                    width: imageWidth,
                                    height: imageHeight,
                                    bitsPerComponent: 8,
                                    bytesPerRow: CVPixelBufferGetBytesPerRow(_pxbuffer),
                                    space: rgbColorSpace,
                                    bitmapInfo: CGImageAlphaInfo.premultipliedFirst.rawValue)

            if let _context = context {
                _context.draw(image, in: CGRect.init(x: 0, y: 0, width: imageWidth, height: imageHeight))
            }
            else {
                CVPixelBufferUnlockBaseAddress(_pxbuffer, flags);
                return nil
            }

            CVPixelBufferUnlockBaseAddress(_pxbuffer, flags);
            return _pxbuffer;
        }

        return nil
    }

I got this code from a previous StackOverflow post (last answer here). I recognize that the code may not be correct, but I have no idea of how to do this myself. I believe that this is the section that contains the error. The model calls for the following type of input: Image<RGB,224,224>

Body:
You can use a pure CoreML, but you should resize an image to (224,224)

    DispatchQueue.global(qos: .userInitiated).async {
        // Resnet50 expects an image 224 x 224, so we should resize and crop the source image
        let inputImageSize: CGFloat = 224.0
        let minLen = min(image.size.width, image.size.height)
        let resizedImage = image.resize(to: CGSize(width: inputImageSize * image.size.width / minLen, height: inputImageSize * image.size.height / minLen))
        let cropedToSquareImage = resizedImage.cropToSquare()

        guard let pixelBuffer = cropedToSquareImage?.pixelBuffer() else {
            fatalError()
        }
        guard let classifierOutput = try? self.classifier.prediction(image: pixelBuffer) else {
            fatalError()
        }

        DispatchQueue.main.async {
            self.title = classifierOutput.classLabel
        }
    }

// ...

extension UIImage {

    func resize(to newSize: CGSize) -> UIImage {
        UIGraphicsBeginImageContextWithOptions(CGSize(width: newSize.width, height: newSize.height), true, 1.0)
        self.draw(in: CGRect(x: 0, y: 0, width: newSize.width, height: newSize.height))
        let resizedImage = UIGraphicsGetImageFromCurrentImageContext()!
        UIGraphicsEndImageContext()

        return resizedImage
    }

    func cropToSquare() -> UIImage? {
        guard let cgImage = self.cgImage else {
            return nil
        }
        var imageHeight = self.size.height
        var imageWidth = self.size.width

        if imageHeight > imageWidth {
            imageHeight = imageWidth
        }
        else {
            imageWidth = imageHeight
        }

        let size = CGSize(width: imageWidth, height: imageHeight)

        let x = ((CGFloat(cgImage.width) - size.width) / 2).rounded()
        let y = ((CGFloat(cgImage.height) - size.height) / 2).rounded()

        let cropRect = CGRect(x: x, y: y, width: size.height, height: size.width)
        if let croppedCgImage = cgImage.cropping(to: cropRect) {
            return UIImage(cgImage: croppedCgImage, scale: 0, orientation: self.imageOrientation)
        }

        return nil
    }

    func pixelBuffer() -> CVPixelBuffer? {
        let width = self.size.width
        let height = self.size.height
        let attrs = [kCVPixelBufferCGImageCompatibilityKey: kCFBooleanTrue,
                     kCVPixelBufferCGBitmapContextCompatibilityKey: kCFBooleanTrue] as CFDictionary
        var pixelBuffer: CVPixelBuffer?
        let status = CVPixelBufferCreate(kCFAllocatorDefault,
                                         Int(width),
                                         Int(height),
                                         kCVPixelFormatType_32ARGB,
                                         attrs,
                                         &pixelBuffer)

        guard let resultPixelBuffer = pixelBuffer, status == kCVReturnSuccess else {
            return nil
        }

        CVPixelBufferLockBaseAddress(resultPixelBuffer, CVPixelBufferLockFlags(rawValue: 0))
        let pixelData = CVPixelBufferGetBaseAddress(resultPixelBuffer)

        let rgbColorSpace = CGColorSpaceCreateDeviceRGB()
        guard let context = CGContext(data: pixelData,
                                      width: Int(width),
                                      height: Int(height),
                                      bitsPerComponent: 8,
                                      bytesPerRow: CVPixelBufferGetBytesPerRow(resultPixelBuffer),
                                      space: rgbColorSpace,
                                      bitmapInfo: CGImageAlphaInfo.noneSkipFirst.rawValue) else {
                                        return nil
        }

        context.translateBy(x: 0, y: height)
        context.scaleBy(x: 1.0, y: -1.0)

        UIGraphicsPushContext(context)
        self.draw(in: CGRect(x: 0, y: 0, width: width, height: height))
        UIGraphicsPopContext()
        CVPixelBufferUnlockBaseAddress(resultPixelBuffer, CVPixelBufferLockFlags(rawValue: 0))

        return resultPixelBuffer
    }
}

The expected image size for inputs you can find in the mimodel file:

A demo project that uses both pure CoreML and Vision variants you can find here: https://github.com/handsomecode/iOS11-Demos/tree/coreml_vision/CoreML/CoreMLDemo