Error: All dihedral coeffs are not set (dihedral.cpp:58) hybrid opls class2

Hi,
I am trying to use the dihedral style hybrid with opls and class2 in lammps 21-Dec2011.
When I try to run I am receiving the following error message : Error: All dihedral coeffs are not set (dihedral.cpp:58). Initially when I was using this I forgot to specify EndBondTorsion Coeffs, MiddleBondTorsion Coeffs, AngleTorsion Coeffs, AngleAngleTorsion Coeffs, and BondBond13 sections all as 0.0.
After setting all the coefficients to 0.0 for each and every term I am getting the above specified error.
I went through it over and over again but still cannot figure it out.
Any help would be really appreciated.

Below are my input and data files

Thanks,
Santosh.

units real
boundary p p p
atom_style full

pair_style lj/charmm/coul/long 10.00 10.10
kspace_style pppm 1.0e-4
bond_style harmonic
angle_style harmonic
dihedral_style hybrid opls class2
read_data 1_data01

neighbor 0.3 bin
neigh_modify every 10 check no
velocity all create 298.0 83451

fix 3 all npt temp 298.16 298.16 5.0 iso 0.0 0.0 1000.0

thermo 5

run 200

LAMMPS data file

2520 atoms
2480 bonds
2600 angles
4440 dihedrals
0 impropers

8 atom types
6 bond types
9 angle types
24 dihedral types

0.0 100.00000000000000 xlo xhi
0.0 100.00000000000000 ylo yhi
0.0 100.00000000000000 zlo zhi

Masses

1 13.018900000000000
2 14.026800000000000
3 15.999000000000001
4 12.010999999999999
5 14.026800000000000
6 15.999000000000001
7 13.018900000000000
8 15.034700000000001

Pair Coeffs

1 0.15169699884701734 3.8300000000000001 0.0000000000000000 0.0000000000000000
2 0.15169699884701734 3.8300000000000001 0.0000000000000000 0.0000000000000000
3 0.16099432554490450 3.4720000000000000 0.0000000000000000 0.0000000000000000
4 0.17172568720904677 3.3119999999999998 0.0000000000000000 0.0000000000000000
5 0.14945034406655106 3.8350000000000000 0.0000000000000000 0.0000000000000000
6 0.18934041671121343 2.8399999999999999 0.0000000000000000 0.0000000000000000
7 7.88924689686310021E-002 3.8500000000000001 0.0000000000000000 0.0000000000000000
8 0.20667044767601067 3.9100000000000001 0.0000000000000000 0.0000000000000000

Bond Coeffs

1 239.00582770918129 1.6000000000000001
2 262.90641048009940 1.4800000000000000
3 322.65786740739475 1.3999999999999999
4 239.00582770918129 1.5300000000000000
5 358.50874156377188 1.2600000000000000
6 95.883164426610719 1.5400000000000000

Angle Coeffs

1 119.50291385459064 108.99999999999999
2 110.30118948778716 117.00000000000000
3 143.40349662550878 119.00000000000000
4 143.40349662550878 111.00000000000000
5 181.64442905897778 124.00000000000000
6 103.25051757036631 114.00000000000000
7 181.64442905897778 124.99999999999999
8 62.100495094955129 114.00000000000000
9 62.100495094955129 109.40000000000002

Dihedral Coeffs

1 opls 135.151568 -65.718088 110.424128 0.0000000000000000
2 opls 135.151568 -65.718088 110.424128 0.0000000000000000
3 opls 135.151568 -65.718088 110.424128 0.0000000000000000
4 opls 217.877616 140.912936 27.166712 0.0000000000000000
5 opls 217.877616 140.912936 27.166712 0.0000000000000000
6 opls 217.877616 140.912936 27.166712 0.0000000000000000
7 class2 110.0 0.0 63.0 0.0 15.0 0.0
8 class2 110.0 0.0 63.0 0.0 15.0 0.0
9 class2 110.0 0.0 63.0 0.0 15.0 0.0
10 opls 36.015872 178.941312 84.633952 0.0000000000000000
11 opls 36.015872 178.941312 84.633952 0.0000000000000000
12 opls 36.015872 178.941312 84.633952 0.0000000000000000
13 opls 12.869984 6.104456 12.25072 0.0000000000000000
14 opls 12.869984 6.104456 12.25072 0.0000000000000000
15 opls 12.869984 6.104456 12.25072 0.0000000000000000
16 opls 215.877664 -184.317752 137.063656 0.0000000000000000
17 opls 215.877664 -184.317752 137.063656 0.0000000000000000
18 opls 215.877664 -184.317752 137.063656 0.0000000000000000
19 opls 215.877664 -184.317752 137.063656 0.0000000000000000
20 class2 7.0 0.0 3.0 0.0 6.0 0.0
21 class2 7.0 0.0 3.0 0.0 6.0 0.0
22 class2 7.0 0.0 3.0 0.0 6.0 0.0
23 opls 0.54392 -7.686008 -37.099528 0.0000000000000000
24 opls 200.216952 1107.843704 63.299736 0.0000000000000000

MiddleBondTorsion Coeffs

1 class2 0.0 0.0 0.0 0.0
2 class2 0.0 0.0 0.0 0.0
3 class2 0.0 0.0 0.0 0.0
4 class2 0.0 0.0 0.0 0.0
5 class2 0.0 0.0 0.0 0.0
6 class2 0.0 0.0 0.0 0.0
7 class2 0.0 0.0 0.0 0.0
8 class2 0.0 0.0 0.0 0.0
9 class2 0.0 0.0 0.0 0.0
10 class2 0.0 0.0 0.0 0.0
11 class2 0.0 0.0 0.0 0.0
12 class2 0.0 0.0 0.0 0.0
13 class2 0.0 0.0 0.0 0.0
14 class2 0.0 0.0 0.0 0.0
15 class2 0.0 0.0 0.0 0.0
16 class2 0.0 0.0 0.0 0.0
17 class2 0.0 0.0 0.0 0.0
18 class2 0.0 0.0 0.0 0.0
19 class2 0.0 0.0 0.0 0.0
20 class2 0.0 0.0 0.0 0.0
21 class2 0.0 0.0 0.0 0.0
22 class2 0.0 0.0 0.0 0.0
23 class2 0.0 0.0 0.0 0.0
24 class2 0.0 0.0 0.0 0.0

EndBondTorsion Coeffs

1 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
2 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
3 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
4 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
5 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
6 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
7 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
8 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
9 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
10 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
11 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
12 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
13 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
14 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
15 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
16 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
17 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
18 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
19 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
20 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
21 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
22 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
23 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
24 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0

AngleTorsion Coeffs

1 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
2 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
3 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
4 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
5 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
6 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
7 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
8 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
9 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
10 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
11 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
12 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
13 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
14 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
15 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
16 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
17 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
18 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
19 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
20 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
21 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
22 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
23 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
24 class2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0

AngleAngleTorsion Coeffs

1 class2 0.0 0.0 0.0
2 class2 0.0 0.0 0.0
3 class2 0.0 0.0 0.0
4 class2 0.0 0.0 0.0
5 class2 0.0 0.0 0.0
6 class2 0.0 0.0 0.0
7 class2 0.0 0.0 0.0
8 class2 0.0 0.0 0.0
9 class2 0.0 0.0 0.0
10 class2 0.0 0.0 0.0
11 class2 0.0 0.0 0.0
12 class2 0.0 0.0 0.0
13 class2 0.0 0.0 0.0
14 class2 0.0 0.0 0.0
15 class2 0.0 0.0 0.0
16 class2 0.0 0.0 0.0
17 class2 0.0 0.0 0.0
18 class2 0.0 0.0 0.0
19 class2 0.0 0.0 0.0
20 class2 0.0 0.0 0.0
21 class2 0.0 0.0 0.0
22 class2 0.0 0.0 0.0
23 class2 0.0 0.0 0.0
24 class2 0.0 0.0 0.0

BondBond13 Coeffs

1 class2 0.0 0.0 0.0
2 class2 0.0 0.0 0.0
3 class2 0.0 0.0 0.0
4 class2 0.0 0.0 0.0
5 class2 0.0 0.0 0.0
6 class2 0.0 0.0 0.0
7 class2 0.0 0.0 0.0
8 class2 0.0 0.0 0.0
9 class2 0.0 0.0 0.0
10 class2 0.0 0.0 0.0
11 class2 0.0 0.0 0.0
12 class2 0.0 0.0 0.0
13 class2 0.0 0.0 0.0
14 class2 0.0 0.0 0.0
15 class2 0.0 0.0 0.0
16 class2 0.0 0.0 0.0
17 class2 0.0 0.0 0.0
18 class2 0.0 0.0 0.0
19 class2 0.0 0.0 0.0
20 class2 0.0 0.0 0.0
21 class2 0.0 0.0 0.0
22 class2 0.0 0.0 0.0
23 class2 0.0 0.0 0.0
24 class2 0.0 0.0 0.0

Atoms

.

.
.

santosh,

Hi,
I am trying to use the dihedral style hybrid with opls and class2 in lammps
21-Dec2011.
When I try to run I am receiving the following error message : Error: All
dihedral coeffs are not set (dihedral.cpp:58). Initially when I was using
this I forgot to specify EndBondTorsion Coeffs, MiddleBondTorsion Coeffs,
AngleTorsion Coeffs, AngleAngleTorsion Coeffs, and BondBond13 sections all
as 0.0.

have you tried using dihedral_coeff to set
all the dihedral parameters instead of defining
them in the data file? it may be easier to keep
track of what is missing.

cheers,
     axel.