You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by chevy <ch...@target.com> on 2016/09/21 09:43:29 UTC

Failed to write class name to file: java.io.FileNotFoundException

Hi,

I am getting below error when I try to add data to cache. It used to work
earlier with no issues. I am using Ignite version 1.6.

[ERROR][main][MarshallerContextImpl] Failed to write class name to file
[id=-1398818952, clsName=com.target.ignite.model.sales.SalesModel,
file=/opt/ignite/apache-ignite-fabric-1.6.0-bin/work/marshaller/-1398818952.classname]
java.io.FileNotFoundException:
/opt/ignite/apache-ignite-fabric-1.6.0-bin/work/marshaller/-1398818952.classname
(Permission denied)



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Failed-to-write-class-name-to-file-java-io-FileNotFoundException-tp7855.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: [EXTERNAL] Re: Failed to write class name to file: java.io.FileNotFoundException

Posted by chevy <ch...@target.com>.
Yes, I did provide permissions using your solution but still running into
same issue.



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Failed-to-write-class-name-to-file-java-io-FileNotFoundException-tp7855p7863.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: [EXTERNAL] Re: Failed to write class name to file: java.io.FileNotFoundException

Posted by rjdamore <rj...@gmail.com>.
This may be a Windows OS specific problem, I have the same issue and research
into it has shown this issue exists outside of Ignite as well.  There may be
(further down the stack trace) reference to the statement: "The requested
operation cannot be performed on a file with a user-mapped section open". 
I'm not certain how to solve this issue, but as I've seen during execution
the exception does not prevent further execution.  I'm not sure if this
helps, but I wanted to put it here anyway so others may have an idea of what
the "user-mapped section" info is about. Perhaps someone has seen this
elsewhere and come to a solution?



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Failed-to-write-class-name-to-file-java-io-FileNotFoundException-tp7855p11058.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: [EXTERNAL] Re: Failed to write class name to file: java.io.FileNotFoundException

Posted by Vladislav Pyatkov <vl...@gmail.com>.
Hi,

I almost certain, which the issue in access right.
You can check it write simple java code which modify the file and run under
same the system user.

On Fri, Sep 23, 2016 at 1:47 PM, chevy <ch...@target.com> wrote:

> Any workaround for this issue?
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Failed-to-write-class-name-to-file-java-
> io-FileNotFoundException-tp7855p7906.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>



-- 
Vladislav Pyatkov

Re: [EXTERNAL] Re: Failed to write class name to file: java.io.FileNotFoundException

Posted by chevy <ch...@target.com>.
Any workaround for this issue?



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Failed-to-write-class-name-to-file-java-io-FileNotFoundException-tp7855p7906.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: [EXTERNAL] Re: Failed to write class name to file: java.io.FileNotFoundException

Posted by Vladislav Pyatkov <vl...@gmail.com>.
Ensure, that you have read and execute permissions to all child directories
as well.

*chmod o+rx /opt/ignite/apache-ignite-fabric-1.6.0-bin/work/marshaller/*

On Wed, Sep 21, 2016 at 4:58 PM, chevy <ch...@target.com> wrote:

> Yes, I have given rwxrwxrwx to ‘marshaller’ folder and rwxr-xr-x
> permissions to files inside it. Please suggest if I need to change anything
> here.
>
>
>
> --
>
> Regards,
>
> Chetan.
>
>
>
> *From: *"vdpyatkov [via Apache Ignite Users]" <ml-node+[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=7858&i=0>>
> *Date: *Wednesday, September 21, 2016 at 7:22 PM
> *To: *"Chetan.V.Yadav" <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=7858&i=1>>
> *Subject: *[EXTERNAL] Re: Failed to write class name to file:
> java.io.FileNotFoundException
>
>
>
> Hi,
>
> Are you sure, your application have enough permission on write to the
> directory (/opt/ignite/apache-ignite-fabric-1.6.0-bin/work/marshaller/)?
>
>
>
> On Wed, Sep 21, 2016 at 12:43 PM, chevy <[hidden email]> wrote:
>
> Hi,
>
> I am getting below error when I try to add data to cache. It used to work
> earlier with no issues. I am using Ignite version 1.6.
>
> [ERROR][main][MarshallerContextImpl] Failed to write class name to file
> [id=-1398818952, clsName=com.target.ignite.model.sales.SalesModel,
> file=/opt/ignite/apache-ignite-fabric-1.6.0-bin/work/
> marshaller/-1398818952.classname]
> java.io.FileNotFoundException:
> /opt/ignite/apache-ignite-fabric-1.6.0-bin/work/marshaller/-1398818952.
> classname
> (Permission denied)
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Failed-to-write-class-name-to-file-java-
> io-FileNotFoundException-tp7855.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>
>
>
>
>
> --
>
> Vladislav Pyatkov
>
>
> ------------------------------
>
> *If you reply to this email, your message will be added to the discussion
> below:*
>
> http://apache-ignite-users.70518.x6.nabble.com/Failed-to-
> write-class-name-to-file-java-io-FileNotFoundException-tp7855p7857.html
>
> To unsubscribe from Failed to write class name to file:
> java.io.FileNotFoundException, click here.
> NAML
> <http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
> ------------------------------
> View this message in context: Re: [EXTERNAL] Re: Failed to write class
> name to file: java.io.FileNotFoundException
> <http://apache-ignite-users.70518.x6.nabble.com/Failed-to-write-class-name-to-file-java-io-FileNotFoundException-tp7855p7858.html>
>
> Sent from the Apache Ignite Users mailing list archive
> <http://apache-ignite-users.70518.x6.nabble.com/> at Nabble.com.
>



-- 
Vladislav Pyatkov

Re: [EXTERNAL] Re: Failed to write class name to file: java.io.FileNotFoundException

Posted by chevy <ch...@target.com>.
Yes, I have given rwxrwxrwx to ‘marshaller’ folder and rwxr-xr-x permissions to files inside it. Please suggest if I need to change anything here.

--
Regards,
Chetan.

From: "vdpyatkov [via Apache Ignite Users]" <ml...@n6.nabble.com>
Date: Wednesday, September 21, 2016 at 7:22 PM
To: "Chetan.V.Yadav" <Ch...@target.com>
Subject: [EXTERNAL] Re: Failed to write class name to file: java.io.FileNotFoundException

Hi,
Are you sure, your application have enough permission on write to the directory (/opt/ignite/apache-ignite-fabric-1.6.0-bin/work/marshaller/)?

On Wed, Sep 21, 2016 at 12:43 PM, chevy <[hidden email]<file://localhost/user/SendEmail.jtp%3Ftype=node&node=7857&i=0>> wrote:
Hi,

I am getting below error when I try to add data to cache. It used to work
earlier with no issues. I am using Ignite version 1.6.

[ERROR][main][MarshallerContextImpl] Failed to write class name to file
[id=-1398818952, clsName=com.target.ignite.model.sales.SalesModel,
file=/opt/ignite/apache-ignite-fabric-1.6.0-bin/work/marshaller/-1398818952.classname]
java.io.FileNotFoundException:
/opt/ignite/apache-ignite-fabric-1.6.0-bin/work/marshaller/-1398818952.classname
(Permission denied)



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Failed-to-write-class-name-to-file-java-io-FileNotFoundException-tp7855.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Vladislav Pyatkov

________________________________
If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Failed-to-write-class-name-to-file-java-io-FileNotFoundException-tp7855p7857.html
To unsubscribe from Failed to write class name to file: java.io.FileNotFoundException, click here<http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=7855&code=Y2hldGFuLnYueWFkYXZAdGFyZ2V0LmNvbXw3ODU1fC02OTIwMTYzODA=>.
NAML<http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Failed-to-write-class-name-to-file-java-io-FileNotFoundException-tp7855p7858.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Failed to write class name to file: java.io.FileNotFoundException

Posted by Vladislav Pyatkov <vl...@gmail.com>.
Hi,
Are you sure, your application have enough permission on write to the
directory (/opt/ignite/apache-ignite-fabric-1.6.0-bin/work/marshaller/)?

On Wed, Sep 21, 2016 at 12:43 PM, chevy <ch...@target.com> wrote:

> Hi,
>
> I am getting below error when I try to add data to cache. It used to work
> earlier with no issues. I am using Ignite version 1.6.
>
> [ERROR][main][MarshallerContextImpl] Failed to write class name to file
> [id=-1398818952, clsName=com.target.ignite.model.sales.SalesModel,
> file=/opt/ignite/apache-ignite-fabric-1.6.0-bin/work/
> marshaller/-1398818952.classname]
> java.io.FileNotFoundException:
> /opt/ignite/apache-ignite-fabric-1.6.0-bin/work/marshaller/-1398818952.
> classname
> (Permission denied)
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Failed-to-write-class-name-to-file-java-
> io-FileNotFoundException-tp7855.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>



-- 
Vladislav Pyatkov