Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mariadb connection #191

Open
anatoly-trepet opened this issue Feb 28, 2023 · 0 comments
Open

Mariadb connection #191

anatoly-trepet opened this issue Feb 28, 2023 · 0 comments

Comments

@anatoly-trepet
Copy link

anatoly-trepet commented Feb 28, 2023

I have issue when try to use "anonimatron" tool:
CONFIG.XML:

<?xml version="1.0" encoding="UTF-8"?>
<configuration salt="examplesalt"
    jdbcurl="jdbc:mariadb://127.0.0.1/db" userid="user" password="pwd">
    <anonymizerclass>org.sf.anonimatron.CommunityAnonymizer</anonymizerclass>
    <table name="test">
        <column name="name" type="ROMAN_NAME" size="-1"/>
        <column name="value" type="EMAIL_ADDRESS" size="-1"/>
    </table>
</configuration>

**I put "mariadb-java-client-2.2.5.jar" to jdbcdrivers library

and executed command:
.\anonimatron.bat -config .\config.xml -dryrun -synonyms synonyms.xml

And erorr apear:**

Exception in thread "main" org.exolab.castor.xml.MarshalException: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.{File: [not available]; line: 1; column: 1}
        at org.exolab.castor.xml.Unmarshaller.convertSAXExceptionToMarshalException(Unmarshaller.java:832)
        at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:703)
        at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:589)
        at com.rolfje.anonimatron.configuration.Configuration.readFromFile(Configuration.java:53)
        at com.rolfje.anonimatron.Anonimatron.getConfiguration(Anonimatron.java:64)
        at com.rolfje.anonimatron.Anonimatron.main(Anonimatron.java:47)
Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:204)
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:178)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:399)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:326)
        at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1466)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:993)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:601)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:504)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:841)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:642)
        at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:694)
        ... 4 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant