我正在尝试使用 sqljdbc4 在 Intellij 中为 SQL SERVER 2008 设置数据源,并且收到带有 java.lang.NullPointerException 的错误窗口。
我试过的网址:
jdbc:sqlserver://localhost\.:1433;databaseName=mobitrack
jdbc:sqlserver://localhost:1433;databaseName=mobitrack
但结果相同。
关于什么可能导致异常的任何想法?
先感谢您。
这是异常的屏幕截图:http: //i.imgur.com/idIwYqP.png
想法日志:
2013-03-22 17:13:12,770 [7171087] INFO - ution.rmi.RemoteProcessSupport - "c:\program files\jetbrains\intellij idea 11.0\jre\jre\bin\java" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA 11.0\plugins\DatabaseSupport\lib\jdbc-console.jar;C:\Program Files\JetBrains\IntelliJ IDEA 11.0\lib\util.jar;C:\Program Files\JetBrains\IntelliJ IDEA 11.0\lib\annotations.jar;D:\sqljdbc4-4.0.2206.100.jar" com.intellij.persistence.database.console.RemoteJdbcServer com.microsoft.sqlserver.jdbc.SQLServerDriver
2013-03-22 17:13:13,532 [7171849] INFO - ution.rmi.RemoteProcessSupport - Port/ID:30598/RemoteDriverImple39ef7c1
2013-03-22 17:13:14,333 [7172650] ERROR - j.javaee.dataSource.DataSource - null
java.lang.NullPointerException
at com.intellij.javaee.dataSource.DatabaseSchemaLoader.getSchemasToLoad(DatabaseSchemaLoader.java:77)
at com.intellij.javaee.dataSource.DataSource$1.perform(DataSource.java:324)
at com.intellij.javaee.dataSource.DataSource$1.perform(DataSource.java:317)
at com.intellij.javaee.dataSource.DataSource.performJdbcOperation(DataSource.java:257)
at com.intellij.javaee.dataSource.DataSource.refreshMetaData(DataSource.java:317)
at com.intellij.javaee.module.view.dataSource.DataSourceUiUtil$4.run(DataSourceUiUtil.java:138)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:457)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$5.run(ProgressManagerImpl.java:276)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:178)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:206)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:169)
at com.intellij.openapi.application.impl.ApplicationImpl$8$1.run(ApplicationImpl.java:617)
at com.intellij.openapi.application.impl.ApplicationImpl$6.run(ApplicationImpl.java:410)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:135)
2013-03-22 17:13:14,334 [7172651] ERROR - j.javaee.dataSource.DataSource - IntelliJ IDEA 11.0 Build #IU-111.69
2013-03-22 17:13:14,334 [7172651] ERROR - j.javaee.dataSource.DataSource - JDK: 1.6.0_29
2013-03-22 17:13:14,334 [7172651] ERROR - j.javaee.dataSource.DataSource - VM: Java HotSpot(TM) Client VM
2013-03-22 17:13:14,334 [7172651] ERROR - j.javaee.dataSource.DataSource - Vendor: Sun Microsystems Inc.
2013-03-22 17:13:14,335 [7172652] ERROR - j.javaee.dataSource.DataSource - OS: Windows 7
2013-03-22 17:13:14,353 [7172670] INFO - ution.rmi.RemoteProcessSupport - Process finished with exit code 1