User b22f714996
02-11-2005 07:52:38
Hello.
I tried to use reactor for a simple amide formation. I want ammonia, a primary or secondary amine react with an acid.
Now I tried to put this reaction in one SMARTS and tried the following:
[#1:4][N:1]([#1,CX4,c:2])[#1,CX4,c:3].[#8:8][C:6]([#1,CX4,c:5])=[O:7]>>[#1,CX4,c:2][N:1]([#1,CX4,c:3])[C:6]([#1,CX4,c:5])=[O:7]
Well, it works perfectly for a secondary amine with an acid. But the reaction with a primary amine produces the correct result followed by the following thrown exception:
Exception in thread "main" java.lang.NullPointerException
at chemaxon.reaction.ReactionPerformer.fragment(ReactionPerformer.java:1020)
at chemaxon.reaction.ReactionPerformer.reactHit(ReactionPerformer.java:715)
at chemaxon.reaction.ReactionPerformer.reactOne(ReactionPerformer.java:541)
at chemaxon.reaction.ReactionPerformer.react(ReactionPerformer.java:514)
at chemaxon.reaction.Reactor.reactMain(Reactor.java:1159)
at chemaxon.reaction.Reactor.react(Reactor.java:1075)
at chemaxon.reaction.Reactor.processReaction(Reactor.java:1442)
at chemaxon.reaction.Reactor.run(Reactor.java:1586)
at chemaxon.reaction.Reactor.main(Reactor.java:1813)
Now, the reaction with ammonia is not working at all. I just get the exception mentioned above.
The trouble is obviously in my way to describe a amine, but without specifying if it is a primary or secondary amine (or even ammonia).
At the moment I really have no clue how to solve this...
Thanks a lot in advance,
tobias
I tried to use reactor for a simple amide formation. I want ammonia, a primary or secondary amine react with an acid.
Now I tried to put this reaction in one SMARTS and tried the following:
[#1:4][N:1]([#1,CX4,c:2])[#1,CX4,c:3].[#8:8][C:6]([#1,CX4,c:5])=[O:7]>>[#1,CX4,c:2][N:1]([#1,CX4,c:3])[C:6]([#1,CX4,c:5])=[O:7]
Well, it works perfectly for a secondary amine with an acid. But the reaction with a primary amine produces the correct result followed by the following thrown exception:
Exception in thread "main" java.lang.NullPointerException
at chemaxon.reaction.ReactionPerformer.fragment(ReactionPerformer.java:1020)
at chemaxon.reaction.ReactionPerformer.reactHit(ReactionPerformer.java:715)
at chemaxon.reaction.ReactionPerformer.reactOne(ReactionPerformer.java:541)
at chemaxon.reaction.ReactionPerformer.react(ReactionPerformer.java:514)
at chemaxon.reaction.Reactor.reactMain(Reactor.java:1159)
at chemaxon.reaction.Reactor.react(Reactor.java:1075)
at chemaxon.reaction.Reactor.processReaction(Reactor.java:1442)
at chemaxon.reaction.Reactor.run(Reactor.java:1586)
at chemaxon.reaction.Reactor.main(Reactor.java:1813)
Now, the reaction with ammonia is not working at all. I just get the exception mentioned above.
The trouble is obviously in my way to describe a amine, but without specifying if it is a primary or secondary amine (or even ammonia).
At the moment I really have no clue how to solve this...
Thanks a lot in advance,
tobias