Hi Jona/All,

I have changed pom.xml accordingly as below. But I am getting error.
"
<launcher>
                            <id>import</id>

<mainClass>org.dbpedia.extraction.dump.sql.Import</mainClass>
                            <jvmArgs>
                                <jvmArg>-server</jvmArg>
                            </jvmArgs>
                            <args>
                                <arg>/mnt/ebs/framework/test_dump</arg>

<arg>/mnt/ebs/framework/media_wiki/wikimedia/maintenance/tables.sql</arg>

<arg>jdbc:mysql://localhost:3306/?characterEncoding=UTF-8&amp;user=user-name&amp;password=my_password</arg><!--
MySQL host:port -->
                                <arg>false</arg><!--
require-download-complete -->
                                <arg>en</arg><!-- languages and article
count ranges, comma-separated -->
                            </args>
                        </launcher>
"

I am getting below error--

java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at
org_scala_tools_maven_executions.MainHelper.runMain(MainHelper.java:161)
    at
org_scala_tools_maven_executions.MainWithArgsInFile.main(MainWithArgsInFile.java:26)
Caused by:
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:
Cannot load connection class because of underlying exception:
'java.lang.NumberFormatException: For input string: "mysql:"'.
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
    at com.mysql.jdbc.Util.getInstance(Util.java:386)
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1013)
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982)
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:927)
    at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:314)
    at org.dbpedia.extraction.dump.sql.Import$.main(Import.scala:39)
    at org.dbpedia.extraction.dump.sql.Import.main(Import.scala)
    ... 6 more
Caused by: java.lang.NumberFormatException: For input string: "mysql:"
    at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:492)
    at java.lang.Integer.parseInt(Integer.java:527)
    at
com.mysql.jdbc.NonRegisteringDriver.port(NonRegisteringDriver.java:831)
    at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)
    ... 8 more
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 9.228s
[INFO] Finished at: Mon Mar 25 06:11:54 UTC 2013
[INFO] Final Memory: 8M/56M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.scala-tools:maven-scala-plugin:2.15.2:run (default-cli) on project
dump: wrap: org.apache.commons.exec.ExecuteException: Process exited with
an error: 240(Exit value: 240) -> [Help 1]

On Mon, Mar 25, 2013 at 6:54 AM, Jona Christopher Sahnwaldt <j...@sahnwaldt.de
> wrote:

> On 20 March 2013 15:38, Mohamed Morsey <mor...@informatik.uni-leipzig.de>
> wrote:
> > Hi Jona and all,
> >
> >
> > On 03/20/2013 03:25 PM, Jona Christopher Sahnwaldt wrote:
> >
> > On Wed, Mar 20, 2013 at 3:01 PM, gaurav pant <golup...@gmail.com> wrote:
> >
> >> Hi Morsy/All,
> >>
> >> While running Import.sh is am getting below error.
> >
> > Don't use import.sh.
> >
> >
> >>
> >> missing
> >>
> >>
> /home/gaurav/other_lang_extraction/extraction-framework-master/dump/wiki_dump/dewiki/tables-no-indexes.sql
> >> missing
> >>
> >>
> /home/gaurav/other_lang_extraction/extraction-framework-master/dump/wiki_dump/dewiki/tables-only-indexes.sql
> >>
> >>
> >>
> "/home/gaurav/other_lang_extraction/extraction-framework-master/dump/wiki_dump/dewiki/"
> >> is the directory where my dump exists.
> >>
> >> I think Some index need to be created before actual import start and
> >> required index files are missing. Where can I get these files.
> >>
> >> I am following
> >>
> >> "
> https://github.com/dbpedia/dbpedia/blob/master/abstractExtraction/README.txt
> "
> >
> > See the text at the top of this file:
> >
> > OUTDATED! EVERYTHING IN THIS DIRECTORY,
> > INCLUDING THE INSTRUCTIONS BELOW,
> > IS OUTDATED. THE CURRENT CODE IS IN
> > dbpedia/extraction-framework/dump
> >
> >
> >
> > Sorry for that, I overlooked that note.
>
> All right, I just made some changes that hopefully make it really
> painfully obvious that that stuff is outdated. :-)
>
> >
> >
> > --
> > Kind Regards
> > Mohamed Morsey
> > Department of Computer Science
> > University of Leipzig
>



-- 
Regards
Gaurav Pant
+91-7709196607,+91-9405757794
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Dbpedia-discussion mailing list
Dbpedia-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to